Skip to content

feat(diff): give the diff header its own color identity#35

Merged
rickliujh merged 1 commit into
mainfrom
feat/diff-handoff-teal
Jul 23, 2026
Merged

feat(diff): give the diff header its own color identity#35
rickliujh merged 1 commit into
mainfrom
feat/diff-handoff-teal

Conversation

@rickliujh

@rickliujh rickliujh commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up on breadcrumb visibility (after #33/#34). Two goals: set the diff's module header apart from the run log it prints after, and lift the breadcrumb so it doesn't fade into the diff body.

  • White turn chip — the ≡ root ≡ chip is now white (inverted), not the run log's indigo root color (38;5;61), so the banner reads as "this is the diff" rather than more run output.
  • One bright-teal hand-off — the ▸ parent › marker + parent + separator now share a brighter teal (38;5;80), replacing the muted gray (38;5;244) that faded against the diff. The child — the step that matters — stays bold.

Non-color output and the single-module / target lines are unchanged.

Diff header (real terminal)

≡ bulk-deploy-k8s ≡  deploy-k8s-1     ← white inverted chip (vs log's indigo)
▸ deploy-k8s-1 › autocert             ← bright teal marker+parent, bold child
file://…/cluster-1 (main)

Testing

  • go build ./..., go vet ./..., full go test ./... — all green.
  • TestDiffHeader_ColorTurnBannerAndHandoff asserts composition symbolically, so it validates the new structure; color constants live in pkg/action/diff.go.
  • Verified the real ANSI via a pty run of a nested bulk module: white chip 7m;231;1m, teal hand-off 38;5;80m.

🤖 Generated with Claude Code

The hand-off's parent segment was muted gray (log color 244), which faded
against the diff — the breadcrumb between diffs read faint. Extend the worker
teal from the "▸" marker across the parent name and separator so the hand-off
reads as one legible breadcrumb unit under the indigo turn chip. The child —
the step that matters — stays bold. Non-color output and every other header
(turn banner, target line, single-module chip) are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rickliujh
rickliujh merged commit aed5109 into main Jul 23, 2026
2 checks passed
@rickliujh rickliujh changed the title feat(diff): paint the submodule hand-off in one teal unit feat(diff): give the diff header its own color 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