fix: #3634872 Leave the name out of the review note when the form hides the Name field

Issue: https://www.drupal.org/project/ai_media/issues/3634872

The review note always asked to check the name, even on a form display without the Name field. The note is now built from the fields the form display shows (name, alternative text, both or neither), and the Media Library announcement uses the same note. The name is still generated when the form hides it, as core's standard image and audio forms do. Kernel test added.

Before (1.0.x), Educare, Gin, English: with the Name field hidden, the note still asks to check the name.

Before (1.0.x): with the Name field hidden, the note still asks to check the name and alternative text

After (one screenshot for #3634872 and #3634873 together), Educare, Gin, English: the note asks to check the alternative text only.

After: the note asks to check the alternative text only

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release

🤖 Generated with Claude Code

Edited by Rajab Natshah

Merge request reports

Loading
Loading