Repository navigation
Admin UI: Improve Page Storybook examples to be realistic and follow patterns - #87369
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: 0 B Total Size: 8.73 MB
⚡ 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
|
|
Seems reasonable to me :) |
| * The header of a settings subpage. The breadcrumbs lead back to the parent | ||
| * page, the badge shows the status of the page, and "Save changes" saves it. |
There was a problem hiding this comment.
I'd keep just the first sentence here. Following “Settings” leaves the preview on Privacy, and the save button has no handler.
There was a problem hiding this comment.
I'd keep just the first sentence here. Following “Settings” leaves the preview on Privacy, and the save button has no handler.
Simplified in 8e18754.
317acd0 to
8e18754
Compare
What?
Makes a handful of improvements to the
Pagecomponent stories to make them more complete and usable:breadcrumbsprop documentation that it is expected to be used within a@wordpress/routerouter. This may change later in Admin UI: Update Page breadcrumbs to receive configuration array #86982, though is true today.ariaLabelin examples where we'd expect a label to be provided: with breadcrumbs and headerless.FullHeaderexample to avoid mixing breadcrumbs and section navigation, following guidance "The subpage drops the section navigation"Why?
So that package consumers will be more successful in implementing this component successfully following established patterns. The Storybook examples are included in both the live Storybook site and also (as of #86615) the Design System's MCP server.
Testing Instructions
npm run storybook:devlocallyScreenshots or screencast
This is just one example, of the many that were updated:
Use of AI Tools
Researched and implemented in coordination with Claude Code + Opus 5.5.