Skip to content

docs(git-graph): say what the six-colour palette actually guarantees - #1669

Merged
huichen merged 2 commits into
mainfrom
pr/huichen
Nov 22, 2026
Merged

huichen merged 2 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Clarifies the six-colour palette contract in the shared git-graph package and in both TUI guides: colour follows the column a row prints, not the line of work behind it, and every line folded into the sixth-column bundle shares that column's colour. The old comments claimed two lanes sharing a colour stay six columns apart, which stopped being true when LANE_WINDOW began drawing every line past the sixth inside the sixth column.

Commits

  • docs(git-graph): say what the six-colour palette actually guarantees

Verification

  • Documentation and source-comment change only: git diff shows no executable line changed in packages/git-graph/src/palette.ts (every changed line there is inside the doc comment), so no build or test was run.
  • No code, schema, default value or dependency changes.

User-visible changes

none (documentation and source comments only)

The palette's contract comment claimed two lanes sharing a colour are six columns apart, which LANE_WINDOW stopped being true: a line past the sixth is drawn inside the sixth column, so the lines folded there share one cell and one colour. Colour follows the drawn column, not the line of work, and the row's refs are what tell those lines apart.

The TUI guide repeated the same claim as "one colour per branch line"; both languages now say one colour per column.
@huichen
huichen enabled auto-merge (squash) November 22, 2026 06:17
@huichen
huichen merged commit 8547c13 into main Nov 22, 2026
14 checks passed
@huichen
huichen deleted the pr/huichen branch November 22, 2026 06:30
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.

1 participant