-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Extract Page and NavigableRegion components to an admin-ui package #72106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Size Change: +749 B (+0.04%) Total Size: 1.96 MB
ℹ️ View Unchanged
|
24ba0ba to
c0f7899
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. |
c0f7899 to
beb230f
Compare
| { title } | ||
| </Heading> | ||
| ) } | ||
| { breadcrumbs } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breadcrumbs sounds like a very handy feature as we think about admin pages with potentially deep structures like settings. How does this render? Should breadcrumbs appear before the title, with the title acting as the 'current item' in the trail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea here is that it replaces the title, you provide one or the other, not both
beb230f to
00ef7ba
Compare
|
Flaky tests detected in 92cb0f1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18313585705
|


What?
Within the Site Editor, there are multiple components that are used to compose admin routes and pages. When we open extensibility for third-party plugins to build routes within the site editor or for third-party plugins that want to build plugins that register wp-admin pages that look like site editor pages, they need access to these components to avoid duplicating styles, behavior.
Also, we have other kind of UIs that are not specific to a given route that are more "admin ui" and generic enough to be in a package like #71948
It feels like an "admin-ui" package would be a good solution for this. Also this is a bundled package which means we can adjust it over time while third-parties can benefit from it as an npm dependency.
Testing Instructions