Skip to content

Super sidebar expanded on load for user preference pages

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

127.0.0.1_3000_-_profile 127.0.0.1_3000_-_profile_account 127.0.0.1_3000_-_profile_applications 127.0.0.1_3000_-_profile_chat_names 127.0.0.1_3000_-_profile_personal_access_tokens 127.0.0.1_3000_-_profile_emails 127.0.0.1_3000_-_profile_password_edit 127.0.0.1_3000_-_profile_notifications 127.0.0.1_3000_-_profile_keys 127.0.0.1_3000_-_profile_gpg_keys 127.0.0.1_3000_-_profile_preferences 127.0.0.1_3000_-_profile_active_sessions 127.0.0.1_3000_-_profile_audit_log 127.0.0.1_3000_-_profile_usage_quotas

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. Collape sidebar
  3. View profile preference pages under /-/profile
  4. Sidebar should be expanded by defualt, ignoring local cookie

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)

Edited by Scott de Jonge

Merge request reports

Loading