Skip to content
Eskais UI

Data

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

  1. Branch
  2. Pull request
  3. In Dev
  4. In Staging
  5. In Prod
  • Retry webhook deliveriesIn Prod
  • Paginate the audit log exportIn Staging
  • Show seat usage on billingIn Dev
  • Drop the legacy CSV importerPull request

Installation

npx shadcn@latest add @eskais/stage-track

Usage

Import
import { StagePill, StageTrack, StageFilter } from "@/components/ui/stage-track"import { StageFilter } from "@/components/ui/stage-filter"

API reference

StagePill

PropTypeDefault
stagerequiredStage–
size"sm" | "md""sm"
hrefstring–

Also takes StatusPill except tone, children.

StageTrack

PropTypeDefault
stagesrequiredreadonly 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

PropTypeDefault
stagesrequiredreadonly 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.booleantrue
sizeStageSize"md"
localestring–

Also takes ToggleGroup except children, multiple, orientation.

Other exports

type Stagetype StagePillPropstype StageSizetype StageTrackPropstype StageFilterProps

Accessibility

  • 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.