feat: #3634871 Move focus to the description and announce Generate mode after the switch on the media add page

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

On the media add page the Upload / Generate with AI switch is a full page load, so focus restarted at the top and nothing said the mode changed.

After the switch, focus now goes to the description (or to Upload) and the mode is announced, as the Media Library switch already does.

Before: after the switch, focus is back at the top of the page.

Before

After: focus is on the description, and the mode is announced.

After

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