Skip to content

chip-rendering-showcase

history

6-commit history with every branch-tip-chip variant visible at once (HEAD, local, slashy-local, two remotes, tag)

Every branch-tip-chip kind on screen at once. Six commits on `main`
where each row in the history view exercises a different chip code
path. Useful for:

  - visual regression checks on TUIs that colour-code chip kinds
  - verifying that "ref contains a slash" heuristics don't
    misclassify local feature branches as remote
  - multi-remote rendering (origin + upstream)
  - confirming tag refs render in the trailing list, not as a chip

Composed states:
  - HEAD on `main` (current branch)
  - `develop` local branch at commit 2 (plain, no slash)
  - `feat/widgets` local branch at commit 4 (has a slash — regression
    test for "slash = remote" heuristics)
  - `origin` remote with `origin/main` pinned at commit 5
  - `upstream` remote with `upstream/main` pinned at commit 3
  - tag `v0.1.0` at commit 1
  - `main` configured to track `origin/main` (1 ahead, 0 behind)
  • main is checked out
  • main has 6 commits
  • develop branch exists at commit 2
  • feat/widgets branch exists at commit 4
  • origin/main exists at commit 5
  • upstream/main exists at commit 3
  • tag v0.1.0 exists at commit 1
  • main is 1 commit ahead of origin/main
  • main tracks origin/main
  • worktree is clean
renderingshowcasechipshistory
developfeat/widgetsmain
import { spinUpScenario } from '@gfargo/git-scenarios'

const repo = await spinUpScenario('chip-rendering-showcase')
* 7476241 (HEAD -> main) feat: widget tests
* 0ca3242 (origin/main) feat: widget interactions
* 7f6d04d (feat/widgets) feat: add widget module
* c4e9179 (upstream/main) refactor: extract helpers
* af22682 (develop) feat: scaffold core module
* 2cbc857 (tag: v0.1.0) chore: initial commit

Back to Scenario Browser