Consistency in search results page tabs

Problem

Depending on the type of search being performed, the available tabs in the search results are different. The tabs are also ordered differently depending on the scope leading to inconsistent behavior in how search results are presented.

Proposal (source)

When searching in a specific project, the tab that our search results page defaults to is Code. When searching in a group, that default tab is Projects. If we scope all search queries to groups, we should change that default search tab to prevent a big part of search queries to land at a page with 0 results. My own recommendation would be to make the order consistent and start off with code in both scopes, as the chance for getting results is probably the highest in that one.

GitLab.org GitLab.org/GitLab
image image