Skip to content

Add "Stop impersonating" button to the new nav

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

Screenshot_2023-03-31_at_2.58.33_PM

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.

    Screenshot_2023-04-03_at_7.10.12_AM

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

    Screenshot_2022-12-13_at_1.32.43_PM

  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

Merge request reports