Add "Stop impersonating" button to the new nav

Merged Paul Gascou-Vaillancourt requested to merge 396689-stop-impersonation-btn into master

What does this MR do and why?

When impersonating a user, shows the "Stop impersonating" button in the super sidebar, next to the user menu.

Screenshots or screen recordings


How to set up and validate locally

  1. Enable the super_sidebar_nav feature flag:

    echo "Feature.enable(:super_sidebar_nav)" | rails c
  2. Navigate to Admin Area > Overview > User.

  3. Select any user and click on the Impersonate button in the top right.


  4. Enable the new nav user setting from the user dropdown:


  5. Click on the incognito button in the super sidebar to stop the impersonation.

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 #396689 (closed)

Edited by Paul Gascou-Vaillancourt