-
Notifications
You must be signed in to change notification settings - Fork 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
Global Sidebar - prevent collapsed state from bleeding into other areas. #90280
Global Sidebar - prevent collapsed state from bleeding into other areas. #90280
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~8 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
Looks like it resolves the issue in my testing!
Pushed a fix dc762ea - this should be good for testing again. |
Hrm, was that on this live link and not accidently for another PR? 😕 I am unable to repro now on live or local. With the current logic the collapsed sidebar selectors are always returning false in the reader as well. |
I can consistently reproduce the bug on Horizon by:
I can't seem to get it to happen on the live link or localhost for this branch. |
Just retested. That may have been the case because now I can't seem to be able to replicate it. |
Related to a bug we noticed while testing # #90229
Proposed Changes
true
fromgetShouldShowCollapsedGlobalSidebar
This fixes a weird bug that is semi difficult to repro. But if you go to the reader -> conversations (maybe not required this specific tab but it seemed to happen more here for me) -> reduce the width to mobile -> slowly expand width. You can see a point where the sidebar gets stuck in a collapsed state that it should never be in.
This PR resolves this issue. The
getShouldShowCollapsedGlobalSidebar
would returntrue
simply for having the redesign flag and being under a specific breakpoint. It doesn't seem like it should ever return true if we aren't in section groups that require this behavior (I think that is limited tosites-dashboard
andsites
?) .Testing Instructions
Pre-merge Checklist