Repository navigation
SelectControl: Migrate Query settings to @wordpress/ui - #86560
Conversation
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: -193 B (0%) Total Size: 8.63 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Navigates the items list via UP/DOWN arrow keys in
|
e6cfb08 to
9c664ca
Compare
Part of #80412.
What?
Use
@wordpress/uiSelectControl for Query Loop's Post type, Order by, and Sticky posts settings.Why?
Continue the migration in a focused, independently testable block area.
How?
Resolve selected items from the existing options, ignore reselection of the current post type, and give the empty-string Include choice a stable UI identifier.
Testing Instructions
Testing Instructions for Keyboard
Tab to each selector. Press Enter to open it, use Home and the arrow keys to move between options, and press Enter to select. Reopen and press Escape to dismiss without changing the value. Focus should return to the selector.
Verification
Production build, block-library type check, scoped lint, eight Query unit tests, and the post-type reselection regression repeated three times passed. Keyboard, forced-colors, and Chromium emulated-touch checks passed. Screen-reader testing remains manual.
Screenshots or screencast
Captured in the post editor with Chromium at 1440 × 1000, using the migrated Query Loop inspector.
Post type
Order by
Sticky posts
Use of AI Tools
Implemented and verified with OpenAI Codex, including an independent agent review.