New Diffs: Document current features
To better understand which features should or shouldn't be included in the new architecture we should first document the current state of the diffs. This covers both Diffs app on the merge requests (Vue) and compare branches\commit view (HAML + JavaScript). Also pages similar to commit view: merge request creation, wikis diffs.
Common features
Merge request Diffs app (Vue)
Code view
- Line link
- Edit file link
- Code highlight
- Expand lines
- CRUD comment on line range
- Draft comment on line range
- Codequality highlights
- Test coverage highlights
- Side by side view
- Toggle whitespace changes
- Auto-collapse large file
Commit view (HAML)
MR view (Vue)
Image view
As a table:
✓ – available in both MR and Commit views.
Features | Code | Image | Other |
---|---|---|---|
Filename | ✓ | ✓ | ✓ |
Copy file path | ✓ | ✓ | ✓ |
Collapse\expand file | ✓ | ✓ | ✓ |
File stats | ✓ | ✓ | ✓ |
Lines changed (0 for blobs) | ✓ | ✓ | ✓ |
Permissions changed | ✓ | ✓ | ✓ |
CRUD comment on file | ✓ | ✓ | ✓ |
View file link | ✓ | ✓ | ✓ |
Mark as viewed | MR | MR | MR |
Hide all comments | MR | MR | MR |
Show full file (expand all lines) | MR | ||
Line link | ✓ | ||
Edit file link | ✓ | ||
Code highlight | ✓ | ||
Expand lines | ✓ | ||
CRUD comment on line range | ✓ | ||
Draft comment on line range | ✓ | ||
Codequality highlights | ✓ | ||
Test coverage highlights | ✓ | ||
Hide whitespace changes | ✓ | ||
Auto-collapse large file | ✓ | ||
View as raw | Commit | ||
Side by side view | ✓ |
Edited by Stanislav Lashmanov