Add opt-in user preference toggle for Rapid Diffs in merge requests
Summary
Implement a user-facing toggle that allows users to opt-in to Rapid Diffs for MRs.
Requirements
- User preference toggle in the interface to opt-in to the new experience
- Default to existing implementation (opt-in only)
- Toggle state persists across sessions
- Link to feedback issue (comment)
- Ability to toggle back to current experience
- Tracking of enabled (comment)
Related
Part of the rollout strategy for &18457 (closed).
Designs
| Default | Hover to show popover | Enabled - Dropdown |
|---|---|---|
![]() |
![]() |
![]() |
- When Rapid Diffs enabled =
false(default)- Add button style confirm/tertiary with label "Try Rapid Diffs"
- Button has "Beta" badge inside it to make it fit well visually
- When hover over button, display popover
- Title:
Improved performance loading diffs - Body:
Speeds up diff loading and interactions when reviewing code changes. - "Learn more" button goes to docs
- Title:
- When clicked then rapid diffs is enabled
- Track rapid diffs enabled
- When Rapid Diffs enabled =
true- Display dropdown button "Rapid diffs"
- When click, display dropdown menu
- Option 1
- Label: "Learn more"
- Icon:
help - Click navigates to docs
- Option 2
- Label: "Leave feedback"
- Icon:
comment-dots(correction: this change is not reflected in screenshots and video) - Click navigates to feedback issue (tbd)
- Option 3
- Label: "Switch to classic loading"
- Click set Rapid Diffs as no longer enabled
- Decrement count for rapid diffs enabled
- Option 1
Other notes/considerations
Edited by Michael Le


