Skip to content

Add `Repository` menu to project sidebar refactor

What does this MR do?

This MRs moves the Repository menu from the HAML file to the new project sidebar refactor.

Screenshots (strongly suggested)

Before the MR After the MR
image image
image image

There are two changes related to HTML in the before and after screenshots. The first qa elements. Because we're generating dynamically the elements, we cannot use the static check anymore, so we're using Dynamic element selection.

The second change is related to menu items. In the former code, they aren't wrapped inside <span> tags, and this is an inconsistency because any other menu item of any other menu is wrapped within that tag (https://gitlab.com/gitlab-org/gitlab/blob/master/app/views/layouts/nav/sidebar/_project_menus.html.haml#L235).

Does this MR meet the acceptance criteria?

Conformity

Related to #326427 (closed)

Merge request reports