Repository navigation
feat(core-ui): git widgets for the graph and diffs (G1 Task 12) - #146
Merged
Merged
Conversation
GraphCanvas draws a graph row's lanes in the UI Design style: 2 px lines with rounded corners and filled, hollow, dashed and ring markers in the eight lane colors. It reads a GraphRowShape without allocating. RefChip, StatusDot and AuthorInitials draw ref labels, check states and authors. DiffViewer shows unified and side-by-side diffs with word-level highlights (java-diff-utils), syntax colors through the Highlighter interface (dev.snipme:highlights), +/- gutter markers, screen-reader line labels, and F7 / Shift+F7. Closes #21 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dwiki Riyadi <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dwiki Riyadi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
G1 Task 12: the git widgets in
:module:core:ui(core.ui.git).GraphCanvas: 2 px lanes with rounded corners into and out of the node; 10 px markers: filled commit, hollow stash, dashed shelf, a ring for WIP; the 8 Atom One lane colors. It reads aGraphRowShapewithout allocating; Task 13 adapts the feature'sGraphRowto it.RefChip: Carbon pills for local (filled), remote (outlined, cloud icon) and tag; HEAD in bold with a check;main ⇄ origin/main;↑2 ↓3; one spoken label.StatusDot(a different shape for each state) andAuthorInitials(any script; a stable tint per email; the bot icon for bots).DiffViewer: unified and side by side; word-level highlights between paired lines (java-diff-utils4.18); syntax colors throughHighlighter(D7;dev.snipme:highlights1.2.0);+/−markers; line labels like "Added line 12: …"; F7 / Shift+F7 throughDiffViewerState.GraftTokens.syntax: One's syntax colors, with AA steps. Both libraries are credited in NOTICE.Rulings are in
plans/progress.md. The main ones:DiffDocumentmodel.Tests:
./gradlew checkpasses on macOS.Closes #21
🤖 Generated with Claude Code