Skip to content
Snippets Groups Projects

Context switcher search improvements

All threads resolved!

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Andrei Zubov removed review request for @andrei.zubov

    removed review request for @andrei.zubov

  • added 3 commits

    • d6e408ba - Rename internal state property
    • f95f7643 - Make auto-focus more robust
    • 04b85400 - Create isSearching computed prop

    Compare with previous version

  • requested review from @andrei.zubov

  • added 223 commits

    • 04b85400...0a222f53 - 214 commits from branch master
    • 72a4771c - Show a loading spinner while searching
    • 0895efd6 - Auto-focus context switcher search input
    • 3c8180c6 - Show an alert when search fails
    • cbba8040 - Adjust context switcher toggle colors
    • 5c3af7c1 - Add inset focus style to toggle
    • b2e3ea79 - Regenerate translations file
    • a9d79c41 - Rename internal state property
    • 6d6142da - Make auto-focus more robust
    • a43e447b - Create isSearching computed prop

    Compare with previous version

  • Andrei Zubov removed review request for @andrei.zubov

    removed review request for @andrei.zubov

  • added 116 commits

    • a43e447b...77c0111f - 106 commits from branch master
    • ff5f85af - Show a loading spinner while searching
    • 1aea6d4b - Auto-focus context switcher search input
    • 3474492b - Show an alert when search fails
    • 7bd56a78 - Adjust context switcher toggle colors
    • 8b7feef9 - Add inset focus style to toggle
    • 21ca2d2f - Regenerate translations file
    • 826270be - Rename internal state property
    • a1514076 - Make auto-focus more robust
    • 7a9c9149 - Create isSearching computed prop
    • e5e24b89 - Add test for isShown->false

    Compare with previous version

  • requested review from @andrei.zubov

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Andrei Zubov
  • Andrei Zubov approved this merge request

    approved this merge request

  • Andrei Zubov removed review request for @andrei.zubov

    removed review request for @andrei.zubov

  • added 92 commits

    Compare with previous version

  • requested review from @vitallium

  • 🤖 GitLab Bot 🤖 changed milestone to %15.11

    changed milestone to %15.11

  • added 175 commits

    Compare with previous version

  • Vitaly Slobodin resolved all threads

    resolved all threads

  • Vitaly Slobodin resolved all threads

    resolved all threads

  • Vitaly Slobodin approved this merge request

    approved this merge request

  • Vitaly Slobodin enabled an automatic merge when the pipeline for 506894d3 succeeds

    enabled an automatic merge when the pipeline for 506894d3 succeeds

  • Vitaly Slobodin mentioned in commit 15cf3bcb

    mentioned in commit 15cf3bcb

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading