feat: #3634868 Show how many characters are left in the description

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

Adds a live "N characters left" counter under the description (linked with aria-describedby, announced politely at 100, 20 and 0 left, "N characters too many" when dictation overshoots). Generate also stops calling the provider when core already refused the description as too long; before, that request was still sent and paid for.

Before: no character counter under the description.

Before

After: "N characters left" under the description.

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