Skip to content

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

  1. Enable super sidebar (if not currently on)
    1. In rails c enable feature flag Feature.enable(:super_sidebar_nav)
    2. Toggle on "new navigation" in user menu
  2. Collapse the super sidebar
  3. Visit user profile, help, and search pages
  4. 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.

Related to #391285 (closed)

Merge request reports