Move the Generate Alt Text button to the new Content tab #306
Move the Generate Alt Text button to the new Content tab #306dkotter merged 2 commits intoWordPress:developfrom
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 #306 +/- ##
==========================================
Coverage 58.03% 58.03%
Complexity 576 576
==========================================
Files 37 37
Lines 2955 2955
==========================================
Hits 1715 1715
Misses 1240 1240
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:
|
What?
Closes #252
Moves the Generate Alt Text button and other components to the Content tab instead of the Settings tab
Why?
It appears in WordPress 7.0, block settings are now in three tabs: Content, Settings, Styles. If you don't specify the tab you want, it defaults to Settings.
For our Alt Text Generation Experiment, this meant the process of generating alt text happens in a tab separate from the actual alt text field, which isn't ideal. This PR updates our code to ensure it loads in the Content tab instead.
How?
group="content"to ourInspectorControlscomponentUse of AI Tools
Claude Code running Sonnet 4.6 investigated what changed in WP 7.0 and put together the plan. I then executed that plan as it was just a simple one line change.
Testing Instructions
npm i && npm run buildGenerate Alt Textbutton in the same panel as the actual alt text fieldScreenshots