Fix[Content Classification]: Improve focus management - #873
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #873 +/- ##
==========================================
Coverage 78.44% 78.44%
Complexity 2454 2454
==========================================
Files 104 104
Lines 9925 9925
==========================================
Hits 7786 7786
Misses 2139 2139
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:
|
|
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. |
What, Why, and How?
Closes #872
This PR improves keyboard focus management in the content classification suggestion panel because dynamically replacing the generate button or removing a focused suggestion caused focus loss. It tracks pending focus with refs and moves focus to the generating button, the first available suggestion, or the generate button as the interface updates.
Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5.6 Sol
Used for: Initial code skeleton, code review, and PR metadata.
Testing Instructions
Screencast
screencast.mov
Changelog Entry