Commit trail
import { CommitTrail } from "@arcadia/ui";- Commit Committed Retry failed webhooks
- Push Push failed The remote branch moved
- Pull request No pull request
main
CommitTrail
commitsrequired- readonly TrailCommit[]
- The branch's commits, newest first; a commit's own commits fold under it.
receipts- readonly TrailStageReceipt[]
- What actually happened at each stage: commit, push, pull request, merge and deploy stay separate, and a failure keeps its error.
refs- Readonly<Record<string, string>>
- What a chip in a message stands for, by its text: a pointer resting on it shows this ("feature/commit-trail").
kinds- Readonly<Record<string, TrailKindMeta>>
- Words and inks for kinds of change, on top of the kit's own (feat, fix, refactor, perf, docs, test, chore, release, merge).
branches- readonly string[]
- Every branch a commit could be on: two or more make the branch line a switcher.
branch- string
- The branch shown (controlled).
defaultBranch- string
- The branch shown at first. Default: the first of branches.
onBranchChange- (branch: string) => void
- Told the branch a person picked.
open- string | null
- The open commit's id (controlled): one is open at a time.
defaultOpen- string | null
- The open commit at first.
onOpenChange- (id: string | null) => void
- Told the commit that opened, or null when the open one closed.
expanded- readonly string[]
- The merges whose own commits are unfolded (controlled).
defaultExpanded- readonly string[]
- The merges unfolded at first.
onExpandedChange- (ids: string[]) => void
- Told every merge open after a fold or an unfold.
hasMore- boolean
- Default:
false - The trail goes on past the last commit: its line fades at its end.
maxHeight- number
- The list's greatest height in pixels, past which it scrolls.
locale- string
- Default:
en-US - The locale of a full date. The kit's.
now- number
- The clock a render stands at, for a render that must not drift (a prerender). Default: now, every minute.
labels- CommitTrailLabelsInput
- The words it says.
rootStyle- RootStyle<CommitTrailKnobs>
- Typed StyleX override: where the trail sits, and its --trail-rail and --trail-node.
Rest props go to HTMLAttributes<HTMLDivElement>.
State machine
main