Implement compare revisions kebab menu and "View file @ [SHA]" item
What does this MR do and why?
For #561794 (closed)
Implements the kebab menu with View file @ [SHA]
for Rapid Diffs diff files.
References
- A prior implementation of the same menu in a different part of Rapid Diffs: !182222 (merged)
Screenshots or screen recordings
The initial scope of this change was just to add the menu for the Compare Revisions page, so those screenshots are below.
Before | After |
---|---|
![]() |
![]() |
Now that the scope has expanded to "all Diff Files shown by Rapid Diffs," there are multiple places this change will show.
For example, below is the main Merge Request diff files display:
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Have a branch that differs from another branch (like a branch with changes from
main
) - Visit the compare revisions page:
/-/compare?from=master&to=master
- Update the from/to branches to be your correct branches
- Click "Compare"
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Thomas Randolph