Ability to collapse/hide commit list in compare view
# Description Very simply, when there are multiple commits (especially 10+), one must scroll quite far to view the diffs in the branch compare view. It would be nice to be able to hide/collapse the commit list so that one doesn't have to scroll past the commits to get to the diffs. ![image](/uploads/a6d3afe4efcbc823e813981238afad4c/image.png) # Design proposal Add a collapse/expand arrow. By default, the section should be expanded so that commits are visible, but users have the option to collapse the section if needed. The same collapse/expand element used in the [merge request page](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/177708) should be used. ![proposal.png](/uploads/d79f7a59ebb8f7f88bd2cb30ad4461bf/proposal.png){width="1248" height="828"} # Implementation guide * Primary file to modify * [\_commit_list.html.haml](https://gitlab.com/gitlab-org/gitlab/-/blob/609e13dc5c107e70d4721905e81b297bf4cea50e/app/views/projects/commits/\_commit_list.html.haml) * Use collapsing functionality in new variant of `Crud` component being introduced by @seggenberger ([in progress](https://gitlab.com/gitlab-org/gitlab/-/issues/19735#note_2298922250)) * Vue: https://gitlab-org.gitlab.io/gitlab/storybook/?path=/story/vue-shared-crud--default # Feature checklist Make sure these are completed before closing the issue, with a link to the relevant commit. - [ ] [Feature assurance](https://about.gitlab.com/handbook/product/#feature-assurance) - [ ] Documentation - [ ] Added to [features.yml](https://gitlab.com/gitlab-com/www-gitlab-com/blob/master/data/features.yml)
issue