Consistent Global Search Tab Order

Problem to solve

On the results page for global search, the placement of the Code tab within the tab structure is inconsistent depending on which scope you are viewing.

For example, when performing a search and a project is scoped, Code appears in the first tab location (to the left of Issues. When performing a search without a project scoped, Code shows up much later in the tab positions (to the left of Commits).

project scoped Screen_Shot_2021-02-01_at_2.26.08_PM
project not scoped Screen_Shot_2021-02-01_at_2.25.22_PM

Proposal

We should be consistent with where Code shows up in the tab ordering. This is also a good time to review and update the ordering of some of the other tabs based on both usage metrics and also working to maintain a logical ordering that matches users expectations.

Suggested ordering:

Group Level: Projects > Code > Epics > Issues > Merge Requests > Wiki > Commits > Comments > Milestones > Users

Project Level: Code > Issues > Merge Requests > Wiki > Commits > Comments > Milestones > Users

Details on Usage

From Gitlab.com

Screen_Shot_2021-02-22_at_3.12.07_PM

Release Notes

Prior to 13.11, the ordered of the tabs in a global search would change depending on where you were searching. This would lead to unexpected behavior for most users.

This order is now consistent each time and the default tab will still be based on where you search from.

https://docs.gitlab.com/ee/user/search/advanced_global_search.html#searching-globally

Project_not_scoped

Edited by John McGuire