Allow pages to set super sidebar expanded by default
What does this MR do and why?
Keep the sidebar expanded by default on certain pages (while the viewport is ≥ 1200px), regardless if a user has previously collapsed the sidebar. The user can still choose to collapse the sidebar while on these pages, though the preference will not be maintained. This exposes important information on these pages that a user may not know exists otherwise.
Screenshots or screen recordings
Page | Recording |
---|---|
Profile | CleanShot_2023-04-20_at_15.28.52 |
Help | CleanShot_2023-04-20_at_15.29.37 |
Search | CleanShot_2023-04-20_at_15.30.07 |
How to set up and validate locally
- Enable super sidebar (if not currently on)
- In
rails c
enable feature flagFeature.enable(:super_sidebar_nav)
- Toggle on "new navigation" in user menu
- In
- Collapse the super sidebar
- Visit user profile, help, and search pages
- Refresh to see super sidebar open by default
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #391285 (closed)