Skip to content

Add support for admin mode to the new navigation

Joseph Wambua requested to merge jj_406757_admin_mode into master

What does this MR do and why?

The admin mode feature is toggled on/off via a button in the old nav. We are now adding a toggle to the new navigation.

#406757 (closed)

Screenshots or screen recordings

Screen_Shot_2023-04-13_at_14.40.47 Screen_Shot_2023-04-13_at_14.41.44

How to set up and validate locally

To enable this feature locally, you need to run the following commands in the rails console:

Feature.enable(:super_sidebar_nav)

Feature.enable(:user_mode_in_session)
::Gitlab::CurrentSettings.update!(admin_mode: true)

This will enable the new navigation and admin mode.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Joseph Wambua

Merge request reports