Skip to content
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

Library click through to template part focus mode hides sidebar and Navigation editing feature #51839

Closed
getdave opened this issue Jun 23, 2023 · 5 comments · Fixed by #51897
Closed
Assignees
Labels
[Block] Template Part Affects the Template Parts Block [Feature] Focus Mode Zoomed in focus mode for editing things like template parts [Feature] Navigation in Site View Navigation section in the Site Editor when in Site View, offering a way to manage Navigation Menus a [Type] Regression Related to a regression in the latest release

Comments

@getdave
Copy link
Contributor

getdave commented Jun 23, 2023

As part of Navigation on Browse Mode it was agreed that in focus mode for Template Parts it would be useful to display any Navigation Menus present in the blocks within in the browse mode sidebar.

However with the change to Library, when you click on a Template Part you now get taken to the focus mode in "edit" mode (canvas=edit) which hides the sidebar.

Given the value of #51492, we should retain the sidebar. If necessary this can be done conditionally by detecting whether a Navigation block is present in the blocks.

Screen.Capture.on.2023-06-23.at.11-09-15.mp4
@getdave getdave added [Type] Regression Related to a regression in the latest release [Block] Template Part Affects the Template Parts Block [Feature] Focus Mode Zoomed in focus mode for editing things like template parts [Feature] Navigation in Site View Navigation section in the Site Editor when in Site View, offering a way to manage Navigation Menus a labels Jun 23, 2023
@getdave
Copy link
Contributor Author

getdave commented Jun 23, 2023

cc @talldan for visibility

@talldan
Copy link
Contributor

talldan commented Jun 26, 2023

cc @talldan for visibility

Thanks. I don't know much about the sidebar specifics. It might have been a design choice or an accidental inclusion where we didn't spot the regression. It's quite a subtle difference, so when testing I personally wouldn't have considered this a bug.

@SaxonF @kevin940726 or @aaronrobertshaw may know more.

@getdave
Copy link
Contributor Author

getdave commented Jun 26, 2023

@WordPress/gutenberg-design Just a reminder that this feature was requested in #50704 as part of #50396.

I think all that needs to change is, if there is a Navigation in the Template Part then show the sidebar.

Or we could just show the sidebar at all times.

@kevin940726
Copy link
Member

I noticed this too when I was fixing the routing issue for mobile. I thought it was a deliberate change so I retained the behavior. I agree that landing the canvas=view page first will be better though!

FWIW, due to how the sidebar animation is working now, landing directly to the edit mode might cause some unwanted flickering. It's not impossible to fix, but landing to the view mode first might make it easier.

@getdave
Copy link
Contributor Author

getdave commented Jun 26, 2023

Ok I raised a PR in #51897 and folks can approve or reject as we determine. Thanks all 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Template Part Affects the Template Parts Block [Feature] Focus Mode Zoomed in focus mode for editing things like template parts [Feature] Navigation in Site View Navigation section in the Site Editor when in Site View, offering a way to manage Navigation Menus a [Type] Regression Related to a regression in the latest release
Projects
Development

Successfully merging a pull request may close this issue.

4 participants