Skip to content

Resolve "[Search results] Align secondary information in search results to use text.color.subtle, 400 weight, and smaller font size"

What does this MR do and why?

Refactors code search to be more in line with the other search results in global search.

Removes helper method search_blob_title and the EE override, advanced search (which includes code search) is not included in the CE version of GitLab (https://docs.gitlab.com/user/search/advanced_search/) so have removed the exception for EE.

For reference, here are the other search results in global search:

current view
comments Screenshot_2025-03-13_at_12.35.57
MRs Screenshot_2025-03-13_at_12.35.40
issues Screenshot_2025-03-13_at_12.35.24

Also good to note that on gitlab.com global code searches are disabled when there is no project or group scope.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

before after
no project selected Screenshot_2025-03-14_at_17.49.23 Screenshot_2025-03-14_at_17.40.49
with project selected Screenshot_2025-03-14_at_17.49.10 Screenshot_2025-03-14_at_17.41.05

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #519774 (closed)

Edited by James Rushford

Merge request reports

Loading