Stage Track
Where a piece of work is in a configurable pipeline (branch, PR, dev, prod): StageTrack shows every stage in a row, reached ones filled and the current one emphasised, or only the current one as a StagePill. StageFilter is a toggle group with a count per stage.
Example
- Branch
- Pull request
- In Dev
- In Staging
- In Prod
- Retry webhook deliveriesIn Prod
- Paginate the audit log exportIn Staging
- Show seat usage on billingIn Dev
- Drop the legacy CSV importerPull request
stage-track-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
StagePill
| Prop | Type | Default |
|---|---|---|
stagerequired | Stage | – |
size | "sm" | "md" | "sm" |
href | string | – |
Also takes StatusPill except tone, children.
StageTrack
| Prop | Type | Default |
|---|---|---|
stagesrequired | readonly Stage[] | – |
currentrequiredThe id of the stage the work is in. Stages before it count as reached. | string | – |
size | "sm" | "md" | "md" |
variant`track`: every stage in a row. `pill`: only the current one. | "track" | "pill" | "track" |
getHrefMakes a stage a link, like the PR or the deployment it stands for. | (stage: Stage) => string | undefined | – |
Also takes <ol> attributes except children.
StageFilter
| Prop | Type | Default |
|---|---|---|
stagesrequired | readonly Stage[] | – |
countsHow many items are in each stage, by stage id (and by `noStage.value`). | Readonly<Record<string, number>> | – |
noStageA last toggle for items in no stage, drawn with a hollow dot. | { value: string; label: string } | – |
multipleSeveral stages at once (the default), or one, which pressing again clears. | boolean | true |
size | StageSize | "md" |
locale | string | – |
Also takes ToggleGroup except children, multiple, orientation.
Other exports
type Stagetype StagePillPropstype StageSizetype StageTrackPropstype StageFilterPropsAccessibility
- An ordered list with aria-current="step"; each state has its own marker shape (check, ring, hollow).
- StageFilter is a toggle group: nothing pressed means no filter.
Agent actions
Agents set StageFilter with setValue and stage ids.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.