Skip to content

Convert admin menu from haml to panel

Joseph Wambua requested to merge jj_391501_admin_menu_conversion into master

What does this MR do and why?

This MR rewrites our admin sidebar using a panel instead of a HAML view. This will make it easier to support the upcoming super sidebar.

Fixes: [Legacy Nav] Convert Admin Sidebar from HAML to... (#391501 - closed) • Joseph Wambua • 15.11 • At risk

Screenshots or screen recordings

Before or with super sidebar disabled After (with super sidebar enabled)
image image

How to set up and validate locally

  1. Login as a user with admin rights
  2. Enable the new nav:
    1. Enable the feature flag:

      echo "Feature.enable(:super_sidebar_nav)" | rails c
    2. Enable the user setting from the user dropdown:

      Screenshot_2022-12-13_at_1.32.43_PM

  3. Click on the 'Admin' link in the sidebar

MR acceptance checklist

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

Merge request reports

Loading