fix: #3634857 Show the generator of the selected Media Library tab when it is still loading

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

Pressing Generate with AI right after another media type's tab in the Media Library sent the old tab's switch request, so the SVG Image tab could show the Image generator (or the press was lost).

A switch pressed while another tab is loading now waits for that tab and switches it instead.

Before: after a quick tab change, the SVG Image tab shows the Image generator.

Before

After: the SVG Image tab shows its own generator.

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