[Core Commands]: Handle navigation commands based on access of site editor#52987
[Core Commands]: Handle navigation commands based on access of site editor#52987ntsekouras merged 2 commits intotrunkfrom
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 Commandspackage 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-editordependency 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
useSiteEditorBasicNavigationCommandscommands.Test the following commands:
Testing Instructions