-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Core Commands]: Handle navigation commands based on access of site editor #52987
Conversation
56ca7c0
to
df307a2
Compare
Size Change: -2 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Flaky tests detected in df307a2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5670952023
|
Nice! This is a much cleaner approach, thanks for looking at this. Do we also want to make |
I don't see the reason why the |
Yeah, actually that makes much more sense. The low level package should be the |
fed7558
to
ea4c8fd
Compare
useCommands
What?
Part of: #52154
Related: #52817
Core Commands
package loads some navigation commands that need different handling between a block theme and a classic one, and we need to take into account if the user has permissions to access the site editor. For this reason theblock-editor
dependency is added(also see here).Notes
We will need some reorganization(and addition of some extra logic) of the current navigation commands, because more commands navigate to the site editor interface(ex a link to page, etc..). This PR for now only adds conditionally the
useSiteEditorBasicNavigationCommands
commands.Test the following commands:
Testing Instructions