-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add feature flag to toggle the new site editor sidebar #36516
Conversation
Size Change: +4.83 kB (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
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.
Works as advertised.
The feature flag makes sense to me, as it allows us to enable the new template list at the same time as disabling this one.
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.
Thanks @kevin940726, this looks like a good way to revert it. I've tested this in isolation and cherry picked on top of release/11.9
and it seems to work well, I think it'll be a good one for inclusion in an 11.9
point release. I'll merge this in and then cherry pick.
Cheers!
This PR was cherry picked into the GB 11.9.1 point release in 1551934 |
I noticed that all templates that are alphabetically after "Page" (e.g. search, single) are not available in the sidebar. Not too sure whether to open a new issue, or is this comment sufficient? |
Please disregard my previous comment. It is not as simple an issue as I first thought. Taking Twenty Twenty-Two theme, and adding Doing the same in another theme, bumps both This is very strange, and needs more of a deep dive to find out what is happening. |
@@ -49,6 +49,8 @@ export function initialize( id, settings ) { | |||
fetchLinkSuggestions( search, searchOptions, settings ); | |||
settings.__experimentalFetchRichUrlData = fetchUrlData; | |||
settings.__experimentalSpotlightEntityBlocks = [ 'core/template-part' ]; | |||
// Feature flag for the new menu sidebar which isn't stable yet. | |||
settings.__experimentalNewMenuSidebar = false; |
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.
Im curious why this is hardcoded here as false
as opposed to initialized as false
on the php side for the settings that are passed into this init function. With the former, the nav sidebar is always there without making direct changes to the build. With the latter, we could filter this setting and have it either way?
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.
This is just a temporary solution and I don't want to make it too easy to change that. It wouldn't be here for too long anyway. Also, I think you could do wp.data.dispatch( editSiteStore ).updateSettings()
to switch this flag using JS.
Description
Adding a feature flag to revert #36194 to the old navigation panel in site editor.
This is meant to be a temporary solution until #36379 is merged. And we can still develop the new screen by switching the flag.
How has this been tested?
tt1-blocks
__experimentalNewMenuSidebar
totrue
inedit-site/src/index.js
and reloadTypes of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).