Add Rapid Diffs ViewComponents foundation
!151848 (merged) (#461843 (closed))
This is a retry ofWhat does this MR do and why?
Implements Create ViewComponents (HAML) for Rapid Diffs (#451789 - closed).
This MR adds foundational ViewComponents for Rapid Diffs:
DiffFileComponent
DiffFileHeaderComponent
This includes very basic logic for the components and basic styling. Please not the the actual viewer part is reused right now. It should be rewritten as ViewComponents in future iterations.
This MR also renders these components on the commit view and merge request diffs tab.
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
How to set up and validate locally
- Enable
rapid_diffs
feature flag - Open any commit view
- Add
?rapid_diffs=true
to the URL and load that URL - You should see diffs rendered using the new ViewComponents