Add Places group to default search view
What does this MR do and why?
Add Places group to default search view
This copies the previously-named "persistent links" from the context switcher dropdown to the default view of the global search modal.
Part of #409522 (closed).
| Iteration | Merge request |
|---|---|
| Add context switcher items to global search mod... (#409522 - closed), copying "static" links over only |
|
| Add context switcher items to global search mod... (#409522 - closed), copying frequent projects/groups only | none yet |
| Replace the tertiary 🔎 button in the navigatio... (#415809 - closed) | !127935 (merged) |
| Replace the context switcher toggle with contex... (#415811 - closed) | none yet |
| Tidy up the context switcher changes (#415812 - closed) | none yet |
Commits
Flatten/simplify result list template conditionals
Add Places group to default search view
This copies the previously-named "persistent links" from the context switcher dropdown to the default view of the global search modal.
The recent issues and merge requests links are now only shown when in a context which has them. This avoids sending issue/merge request dashboard links to non-logged in users, who would just be redirected to the login page anyway.
This also preserves/extends a feature added in !114285 (merged), which hides issue-related links from users in projects with the feature disabled.
Part of #409522 (closed).
Screenshots or screen recordings
How to set up and validate locally
Logged out state
echo "Feature.enable(:super_sidebar_logged_out)" | rails c- Visit a publicly visible page, like a public project, group or
/explore. (The root path/redirects to the login page, so isn't useful.) - Open the search modal by pressing /, or clicking the search icon in the sidebar.
Logged in state
- Visit any page.
- Open the search modal by pressing /, or clicking the search icon 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.
-
I have evaluated the MR acceptance checklist for this MR.















