Skip to content

feat(core-ui): git widgets for the graph and diffs (G1 Task 12) - #146

Merged
dwikiriyadi merged 2 commits into
mainfrom
feat/g1-task12-git-widgets
Nov 16, 2026
Merged

dwikiriyadi merged 2 commits into
mainfrom
feat/g1-task12-git-widgets

Conversation

@dwikiriyadi

Copy link
Copy Markdown
Member

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 a GraphRowShape without allocating; Task 13 adapts the feature's GraphRow to 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) and AuthorInitials (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-utils 4.18); syntax colors through Highlighter (D7; dev.snipme:highlights 1.2.0); + / − markers; line labels like "Added line 12: …"; F7 / Shift+F7 through DiffViewerState.
  • GraftTokens.syntax: One's syntax colors, with AA steps. Both libraries are credited in NOTICE.

Rulings are in plans/progress.md. The main ones:

  • Merges are filled dots, because the hollow marker is for stashes.
  • The diff viewer has its own DiffDocument model.
  • Long lines soft-wrap by default.
  • The gutter arrows and the color-blind diff palette come in G2.

Tests:

  • 8 logic tests and 3 UI tests: line labels in both modes, and F7 / Shift+F7.
  • 7 screenshots: graph, refs and unified diff in light and dark, and side by side in light.
  • ./gradlew check passes on macOS.
  • The 7 Linux goldens will come from this PR's first CI run, as in Tasks 10 and 11.

Closes #21

🤖 Generated with Claude Code

dwikiriyadi and others added 2 commits November 16, 2026 12:46
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]>
@dwikiriyadi
dwikiriyadi merged commit 4a2c98f into main Nov 16, 2026
6 checks passed
@dwikiriyadi
dwikiriyadi deleted the feat/g1-task12-git-widgets branch November 16, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

:module:core:ui: git widgets (graph canvas, ref chips, diff viewer)

1 participant