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 |
---|---|
![]() |
![]() |
How to set up and validate locally
-
Enable the new nav:
-
In the super sidebar, click on the context title to expand the context switcher.
-
To get the error alert to show up, disable the internet connection before searching for items
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #378541 (closed)
Merge request reports
Activity
changed milestone to %15.10
assigned to @pgascouvaillancourt
mentioned in merge request !114491 (merged)
added 273 commits
-
98d72751...fe82cc3a - 270 commits from branch
378541-context-switcher-search
- 6a121376 - Show a loading spinner while searching
- c131da47 - Auto-focus context switcher search input
- 39397be9 - Show an alert when search fails
Toggle commit list-
98d72751...fe82cc3a - 270 commits from branch
- Resolved by Vitaly Slobodin
@aregnery I think we can get started with the UX review here while we wait on !114491 (merged) to be merged. Could you review the three improvements this does and let me know if there's anything we need to change?
requested review from @aregnery
- Resolved by Austin Regnery
@pgascouvaillancourt here are some areas that need to be cleaned up that I would consider context switcher UI polish
Focus state of the context switcher
We forgot to add a design spec for the focus state. Can we make sure to at least add this in?
Inconsistent :focus across browsers Proposed :focus state Nitpick (non-blocking): Color
It looks like avatar icon, title and chevron svg are all
#000
but those colors need to be adjusted.- Chevron →
gray-400
#89888d
- Icon →
gray-700
#53518
- Title →
gray-900
#333238
Lots room for UI polishing (non-blocking)
I noticed we still have lots of small design decisions to update in the context switcher. Question: How would you like to approach polishing towards the proposed design?
Current Design Edited by Austin Regnery - Chevron →
added 2 commits
@aregnery
, thanks for approving this merge request.This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.
For more info, please refer to the following links:
added pipeline:mr-approved label
removed review request for @aregnery
1 Warning Please add a merge request subtype to this merge request. 1 Message CHANGELOG missing: If you want to create a changelog entry for GitLab FOSS, add the
Changelog
trailer to the commit message you want to add to the changelog.If you want to create a changelog entry for GitLab EE, also add the
EE: true
trailer to your commit message.If this merge request doesn't need a CHANGELOG entry, feel free to ignore this message.
Reviewer roulette
Changes that require review have been detected!
Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:
Category Reviewer Maintainer frontend Stanislav Lashmanov (
@slashmanov
) (UTC+4, 8 hours ahead of@pgascouvaillancourt
)Tristan Read (
@tristan.read
) (UTC+13, 17 hours ahead of@pgascouvaillancourt
)UX Annabel Dunstone Gray (
@annabeldunstone
) (UTC+0, 4 hours ahead of@pgascouvaillancourt
)Maintainer review is optional for UX To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot, based on their timezone. Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.
To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.
Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.
If needed, you can retry the
danger-review
job that generated this comment.Generated by
Danger- Resolved by Paul Gascou-Vaillancourt
@andrei.zubov could you review the frontend please?
requested review from @andrei.zubov
mentioned in issue #378541 (closed)
Allure report
allure-report-publisher
generated test report!e2e-review-qa:
test report for 73f93b29expand test summary
+-----------------------------------------------------------------------+ | suites summary | +------------------+--------+--------+---------+-------+-------+--------+ | | passed | failed | skipped | flaky | total | result | +------------------+--------+--------+---------+-------+-------+--------+ | Create | 28 | 0 | 1 | 0 | 29 | ✅ | | Manage | 34 | 0 | 3 | 1 | 37 | ❗ | | Plan | 49 | 0 | 1 | 0 | 50 | ✅ | | Govern | 26 | 0 | 5 | 5 | 31 | ❗ | | Package | 0 | 0 | 1 | 0 | 1 | ➖ | | Framework sanity | 9 | 0 | 1 | 0 | 10 | ✅ | | Monitor | 4 | 0 | 0 | 0 | 4 | ✅ | | Verify | 12 | 0 | 0 | 3 | 12 | ❗ | +------------------+--------+--------+---------+-------+-------+--------+ | Total | 162 | 0 | 12 | 9 | 174 | ❗ | +------------------+--------+--------+---------+-------+-------+--------+
added 298 commits
-
9ae590bd...ee7b6392 - 292 commits from branch
master
- 8ac92ac7 - Show a loading spinner while searching
- e723b62c - Auto-focus context switcher search input
- 4f7402d2 - Show an alert when search fails
- 01fa2674 - Adjust context switcher toggle colors
- c1a01489 - Add inset focus style to toggle
- eb1d47bd - Regenerate translations file
Toggle commit list-
9ae590bd...ee7b6392 - 292 commits from branch
Bundle size analysis [beta]
This compares changes in bundle size for entry points between the commits 60df263d and 73f93b29
Special assetsEntrypoint / Name Size before Size after Diff Diff in percent average 3.56 MB 3.56 MB - 0.0 % mainChunk 2.05 MB 2.05 MB - 0.0 %
Note: We do not have exact data for 60df263d. So we have used data from: 980bdfe0.
The target commit was too new, so we used the latest commit from master we have info on.
It might help to rerun thebundle-size-review
job
This might mean that you have a few false positives in this report. If something unrelated to your code changes is reported, you can check this comparison in order to see if they caused this change.Please look at the full report for more details
Read more about how this report works.
Generated by
Dangermentioned in merge request !114945 (merged)
- Resolved by Paul Gascou-Vaillancourt
- Resolved by Paul Gascou-Vaillancourt
- Resolved by Paul Gascou-Vaillancourt
removed review request for @andrei.zubov
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
Toggle commit list-
04b85400...0a222f53 - 214 commits from branch
- Resolved by Paul Gascou-Vaillancourt
- Resolved by Paul Gascou-Vaillancourt
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
Toggle commit list-
a43e447b...77c0111f - 106 commits from branch
requested review from @andrei.zubov
- Resolved by Paul Gascou-Vaillancourt
- Resolved by Paul Gascou-Vaillancourt
removed review request for @andrei.zubov
added 92 commits
-
77a9dd1f...b68f7476 - 80 commits from branch
master
- b68f7476...cd4c72cd - 2 earlier commits
- 25185d34 - Show an alert when search fails
- 0ff7a655 - Adjust context switcher toggle colors
- ce9a3149 - Add inset focus style to toggle
- d1a6073c - Regenerate translations file
- 882a5fad - Rename internal state property
- 6e8dcaa1 - Make auto-focus more robust
- 88ef93a7 - Create isSearching computed prop
- ce50ff7f - Add test for isShown->false
- a7228b94 - Rewrite auto-focus logic
- ffe60e03 - Add comment about publicly exposed method
Toggle commit list-
77a9dd1f...b68f7476 - 80 commits from branch
- Resolved by Vitaly Slobodin
@vitallium could you review this please?
requested review from @vitallium
changed milestone to %15.11
added missed-deliverable missed:15.10 labels
added 175 commits
Toggle commit listenabled an automatic merge when the pipeline for 506894d3 succeeds
mentioned in commit 15cf3bcb
added workflowstaging-canary label and removed workflowin dev label
added workflowcanary label and removed workflowstaging-canary label
added workflowstaging label and removed workflowcanary label
added workflowproduction label and removed workflowstaging label
added workflowpost-deploy-db-production label and removed workflowproduction label
mentioned in issue gitlab-org/manage/foundations/team-tasks#232
added releasedcandidate label
added releasedpublished label and removed releasedcandidate label
mentioned in merge request kubitus-project/kubitus-installer!2061 (merged)
mentioned in issue gitlab-com/www-gitlab-com#14699 (closed)
mentioned in merge request gitlab-com/www-gitlab-com!134289 (merged)