feat(cli): colorize sync timeline lanes per unit#27164
Draft
SasSwart wants to merge 1 commit into
Draft
Conversation
Give each unit in `coder exp sync timeline` its own color, cycled from a fixed palette by lane index (git-log style). The lane glyphs (*, |, \, /) and the unit name in each row are drawn in the lane's color, making it easier to follow a unit across the graph. Color is resolved via cliui.Color, which returns a colorless profile in tests and on non-TTY output, so golden files are unaffected and no gating is required. Generated by Coder Agents on behalf of @SasSwart.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Retrofits the per-unit color idea from
coder exp sync graphontocoder exp sync timeline. Each unit (lane) now gets its own color, cycled from a fixed palette by lane index (git-log style):*,|,\,/) are drawn in their lane's color.This makes it much easier to follow a single unit across the timeline graph.
Stacked on top of #27162 (the graph command).
Golden stability
Color is resolved via
cliui.Color, which returns a colorless profile in tests and on non-TTY output. The existing timeline golden files are therefore unchanged, and no output gating is required. Color renders only on an interactive terminal.Testing
go build ./cli/...go test ./cli -run 'TestSyncCommands_Golden/timeline'(goldens unchanged, confirming colorless-in-test)make lint/emdash, gofmt cleanNote on placement
The timeline command itself lives further down the stack (#27150). To avoid rebasing the entire stack, this enhancement is stacked on top of the current tip as its own small PR. It can instead be folded into #27150 if a single cohesive timeline PR is preferred, at the cost of a stack rebase.
Generated by Coder Agents on behalf of @SasSwart.