Skip to content

Context switcher search improvements

What does this MR do and why?

This improves the context switcher's search feature by...

  • ...showing a loading spinner while search results are being fetched.
  • ...showing an alert when a search query fails.
  • ...automatically focusing the search input when opening the context switcher.
  • ...adjusting the toggle's colors and focus ring.

Screenshots or screen recordings

Loading spinner Error alert
loading alert

How to set up and validate locally

  1. 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

  2. In the super sidebar, click on the context title to expand the context switcher.

  3. To get the error alert to show up, disable the internet connection before searching for items

    Screenshot_2023-03-15_at_2.56.00_PM

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

Edited by Paul Gascou-Vaillancourt

Merge request reports