Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1031 +/- ##
==========================================
Coverage 80.72% 80.72%
Complexity 2998 2998
==========================================
Files 124 124
Lines 11978 11978
==========================================
Hits 9669 9669
Misses 2309 2309
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
bae65a4 to
165492f
Compare
|
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. |
dkotter
left a comment
There was a problem hiding this comment.
Left a few comments to discuss.
May be nice also to add E2E tests specific to these decorative paths to ensure they work. And documentation could also be updated to mention this.
374e17d to
e5997b4
Compare
What, Why, and How?
Closes #1030
This PR integrates Alt Text Generation with the Image block’s decorative setting. It disables generation for images marked as decorative and prevents applying an existing suggestion after the image is marked decorative. When AI identifies an image as decorative, it presents a suggestion with a “Mark as decorative” action, keeping the decision with the user.
The action mirrors core by clearing alt text and setting caption and link attributes to
undefined. If supported, it also setsisDecorative, leaving core to renderrole="none"on the front-end. On editors without support, it clears the same attributes but omits the flag (isDecorative).Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-6 Astra
Used for: Multiple rounds of code-reviews to stress test the changes, and to generate the PR description.
Testing Instructions
role="none".isDecorative.Screencast
alt-text-screencast.mp4
Changelog Entry