Add compare button to tree view page
What does this MR do and why?
Add a compare button to the tree view page when not on the root ref.
This MR adds a compare button to the tree view page when not on the root ref. This allows users to easily compare the current branch to another branch or commit, comparable to the branches/index view's more-action "mochi"-menu
- Refs: #21242 (closed)
Screenshots or screen recordings
Before | After |
---|---|
2023-09-20_compare_button_on_tree_view |
How to set up and validate locally
- Create a new branch on your project
- Go to Code -> Branches
- Click your branch
- Verify that the compare button is visible on the tree view page
- View the tree view for the root branch (typically
main
ormaster
) - Verify no compare button is visible
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
This description was generated for revision 2898d848 using AI