Clarify the usefulness of the search bar
Description
With #35269 (closed) we're removing the “project switcher” from the breadcrumbs to avoid duplicating existing functionality. The current search bar already searches projects, groups, project pages, settings, and help pages — it's an incredibly powerful and useful tool, yet it's too subtle and unnoticed for any kind of user. We need to make this functionality clearer and accessible to everyone. This will be a step in the direction of making the search bar become more of an omnibox, Spotlight, or Alfred.
Proposal
There are two changes that will dramatically improve the search bar:
- Rephrasing the search bar placeholder to: “Search or navigate GitLab”
- Removing the scope token and indicating the search scope with options inside of the dropdown
- Global option:
Search GitLab for 'git'
- Group-scoped option:
Search this group for 'git'
- Project-scoped option:
Search this project for 'git'
Normal | Focused | Active/open |
---|---|---|
![]() |
![]() |
![]() |
If the user is not in the context of a group or a project, there is only a global-scoped suggestion in the dropdown:
Other minor changes in this proposal:
- Slightly expand the search bar on focus to allow for more comfortable typing
- Search suggestions should always be at the top, above navigation suggestions
- Change the active state style for the search bar so it has a white background
- Copy changes to the menu that default options in the search dropdown:
- Global:
Quick search
- Group:
Quick search this group
- Project:
Quick search this project
- Remove the separator between
Issues I've created
andMerge Requests assigned to me
- Style project suggestion rows to match #35010 (closed)
Links / references
- Related: #35010 (closed)