Add diff file toggle button [Rapid Diffs][Diff File]
What does this MR do and why?
- In support of Rapid Diffs - a feature-flagged rewrite (
rapid_diffs
) - For part of #498890
- Adds the down/right chevron button for toggling content to the left side of diff file header
- (Also toggles the diff file)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | Before (rapid_diffs ) |
After |
---|---|---|
Screencast_from_2025-01-06_18-24-19 | Screencast_from_2025-01-06_18-26-49 |
How to set up and validate locally
- Enable the rapid diffs feature flag in the Rails console
rails c
Feature.enable( :rapid_diffs )
- Have - or create - an MR with at least 1 changed line
- View the MR's Changes tab
- Add
?rapid_diffs=true
to the URL, (or:&rapid_diffs=true
, if you've already modified the search parameters) - Note (& use) the toggle file button
Edited by Thomas Randolph