Fix bulk alt text no-provider notice#561
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #561 +/- ##
==========================================
Coverage 71.21% 71.21%
Complexity 1151 1151
==========================================
Files 67 67
Lines 5565 5565
==========================================
Hits 3963 3963
Misses 1602 1602
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Changed - When no provider is configured, show an error notice instead of an admin notice for alt text generation Co-authored-by: ekamran <ekamran@git.wordpress.org> Co-authored-by: dkotter <dkotter@git.wordpress.org>

What?
Updates the bulk Alt Text Generation no-provider message to use an error admin notice.
Why?
When running the Media Library bulk Generate Alt Text action without a configured AI Connector, generation cannot proceed.
The existing message explained the problem, but it used a neutral info notice even though the action failed. Using an error notice makes the state clearer and better matches the severity of the issue.
How?
Use of AI Tools
AI assistance: Yes
Tool(s): ChatGPT / Codex
Used for: Repository review, implementation guidance, test updates, and local verification. I reviewed the changes, tested the behavior locally, and take responsibility for the final submission.
Testing Instructions
Automated checks run locally:
npm run lint:js -- src/experiments/alt-text-generation/bulk.ts tests/e2e/specs/experiments/alt-text-generation.spec.jsnpm run typechecknpm run buildnpm run test:e2e -- tests/e2e/specs/experiments/alt-text-generation.spec.js --project=chromium --grep "Bulk action shows an error notice when no provider is configured"Screenshots or screencast
Before
No provider is configured. The bulk action cannot generate alt text, but the message appears as an info notice.
After
No provider is configured. The same message appears as an error notice.