Store expanded state of Pinned section as cookie
What does this MR do and why?
This implements a small missing piece of #378547 (closed). With this change, the Pinned section in the new sidebar remembers its expanded/collapsed state
Screenshots or screen recordings
How to set up and validate locally
- Enable the feature flag:
Feature.enable(:super_sidebar_nav, User.first)
- Toggle on the New navigation in the user dropdown.
- Go to either a project or a group. Only their sidebars have pins.
- Collapse the Pinned section. This sets a cookie.
- Reload or navigate to another page with a project/group sidebar.
- The Pinned section should still be collapsed.
- Open it again, reload, should stay open.
- Bonus points: Delete the cookie and it should default to open again.
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.
Edited by Thomas Hutterer