Add switch to toggle between current navigation and alpha of new nav
What does this MR do and why?
Behind a FF, adds a new entry to the user dropdown that allows to switch between the current and the new navigation (&9044).
The toggle is implemented as a Vue app, so we can reuse the same code for toggling back from within the new "super sidebar" navigation.
This MR is only about the toggle itself. When enabled, there is nothing different yet. We'll implement the navigation behind the FF introduced in this MR. This is only the first step of many
Resolves #378666 (closed).
Screenshots or screen recordings
(In the recording you can still see a "Provide feedback" link, which was only a stub. We've removed it from the code while it's not yet implemented.)
How to set up and validate locally
- Enable the feature flag for your user:
Feature.enable(:super_sidebar_nav, User.first)
-
With the FF enabled, you should see a toggle in the top-right user dropdown. It should be disabled!
-
Toggle it, which should reload the page.
-
There currently is no visual difference, except for the toggle itself which should now show as enabled.
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.