Skip to content

feat(diff): give the diff header its own white/gray identity#36

Open
rickliujh wants to merge 2 commits into
mainfrom
feat/diff-header-color-identity
Open

feat(diff): give the diff header its own white/gray identity#36
rickliujh wants to merge 2 commits into
mainfrom
feat/diff-header-color-identity

Conversation

@rickliujh

@rickliujh rickliujh commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Give the diff's module header a monochrome white/gray identity so it stands out against the diff and stays distinct from the run log (which owns the indigo and teal chips). Colored text alone couldn't separate from the diff's cyan/green lines, so the anchors are now filled chips.

  • White turn chip≡ root ≡ is white (38;5;231, inverted), not the log's indigo root color.
  • Light-gray submodule chip — the hand-off's child (the module that produced the diff) is a filled light-gray chip (38;5;250, inverted), one step below the turn chip. The marker and parent are muted gray (38;5;244) context. No teal — nothing collides with the run log.

Diff header (real terminal)

≡ bulk-deploy-k8s ≡  deploy-k8s-1     ← white inverted chip
▸ deploy-k8s-1 › [autocert]           ← gray marker/parent, light-gray chip
▸ deploy-k8s-1 › [ingress]

No submodule? There's no hand-off line at all — the header is just the white-chip turn banner, which already stands out on its own.

Layout, non-color output, and the single-module header are unchanged.

Testing

  • go build ./..., go vet ./..., full go test ./... — all green.
  • Verified real ANSI via a pty run of a nested bulk module: white chip 7m;231, gray submodule chip 7m;250, no teal.

🤖 Generated with Claude Code

rickliujh and others added 2 commits July 24, 2026 00:27
The diff's module header shared the run log's colors, so it read like more run
output and the teal hand-off faded against the diff. Give the header its own
identity:

- the turn chip is white (inverted), not the log's indigo root color, so the
  banner reads as "this is the diff";
- the hand-off jumps from the dim slate teal to a brighter teal so the
  breadcrumb between diffs stays legible.

Only the two diff color constants change; layout and non-color output are
untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bright color alone didn't stand out: the hand-off's hue sat next to the diff's
cyan hunk lines, so a colored line couldn't separate from colored lines. Render
the child — the module that produced the diff — as an inverted light-gray chip:
a filled anchor no diff line has, one step below the white turn chip, and in
neither the run log's indigo nor teal so it never reads as more run output. The
marker and parent stay muted context.

A turn with no submodule has no hand-off line, so it keeps just the white-chip
turn banner, which already stands out on its own.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rickliujh
rickliujh force-pushed the feat/diff-header-color-identity branch from 25d4a30 to 79b8d11 Compare July 23, 2026 23:45
@rickliujh rickliujh changed the title feat(diff): white turn chip and brighter teal hand-off feat(diff): give the diff header its own white/gray identity Jul 23, 2026
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