Skip to content

feat: Add Gerrit-style LOC bar chart to workspace stack panel - #169

Merged
Ziinc merged 3 commits into
mainfrom
claude/stack-panel-gerrit-loc-bars
Aug 6, 2026
Merged

feat: Add Gerrit-style LOC bar chart to workspace stack panel#169
Ziinc merged 3 commits into
mainfrom
claude/stack-panel-gerrit-loc-bars

Conversation

@Ziinc

@Ziinc Ziinc commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Each stacked workspace in the "Stack" card now shows a small green/red horizontal bar next to its +N -N line-change count, sized relative to the largest change in the stack (à la Gerrit's change list).
  • Commit fetching for the stack was lifted from each item into the panel itself (useQueries) so bar widths can be scaled against the stack's max change size.
  • No changes to the stack's ordering or layout — this is scoped to just the diff-bar visualization.

Test plan

  • WorkspaceStackPanel.test.tsx unit tests pass (6/6, unchanged assertions)
  • Extended scripts/screenshot/specs/stacked-workspace-panel.spec.tsx with two differently-sized commits (+2 and +10) and verified via the screenshot harness that the bars render with visibly different widths, scaled correctly
    Generated by Claude Code

Each stacked workspace's line-change count now gets a small green/red
horizontal bar sized relative to the largest change in the stack, a
la Gerrit's change list. Ordering and layout of the stack card are
unchanged.
@Ziinc Ziinc changed the title Add Gerrit-style LOC bar chart to workspace stack panel feat: Add Gerrit-style LOC bar chart to workspace stack panel Aug 6, 2026
claude added 2 commits August 6, 2026 07:21
Insertions now grow left from a center axis line and deletions grow
right, with the green +N number to the left of the bar and red -N to
the right, matching Gerrit's layout more closely. Also shrinks the
bar's overall footprint.
CI's check:format step failed on the DiffBar width calculations.
@Ziinc
Ziinc merged commit d7a8740 into main Aug 6, 2026
7 checks passed
@Ziinc
Ziinc deleted the claude/stack-panel-gerrit-loc-bars branch August 6, 2026 17:21
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.

2 participants