Lifecycle bar
To build in the appCanon lifecycle bar from the catalog's rt-lifecycle-bar: observational state progression for a system-managed entity (order, invoice, batch), not a wizard stepper. The system moves the entity; the user reads where it sits. **Fuller form, left-aligned (2026-10-07):** each step is a dot with its label under it, laid out the way the foundation's R6955 order page does — starting on the title's left edge, the first label flush to it. The compact one-row form (2026-10-05) read as a strip of tags. No dates on the bar, as R6955 has none: a step's date belongs in its card. Each step is a column as wide as its label; its dot row is [half trail][dot][half trail] and a 40px connector joins the columns, so the line runs dot to dot whatever the label widths (80px across a group boundary). **A step can open a card** (`card`): a click Popover with a heading, a quiet line, label/value rows and a footer band for the step's one action — R6955's "Pending Approval" card. A step with a card shows the dashed-underline reveal on its label. Completed steps carry the group colour and a check (20px), the current step a mustard ring with a pulsing dot (24px; or an error ring with a warning icon), future steps a dashed outline. The current step's detail is the one second line, under its label — P7 wants a failed sync on the bar, not behind a click. Respellings from the catalog: labels are ui-xs; group -text colours are the -deep tokens; the 700 weight is font-semibold. The workshop wizard stepper is a different, user-driven unit (conflict 4).
App: Ui::LifecycleBarComponent
Order at Fulfilled
#order-fulfilledThe catalog example. Production steps are complete up to Fulfilled (current); the invoicing group is still ahead, separated by a double-length connector.
- Pending
- Planned
- Packed
- Fulfilled
- Invoiced
- Unpaid
- Synced
Steps with cards
#cardsPending and Fulfilled carry a card: hovering one (or focusing it, or tapping it on touch) opens its Popover, and the label takes the dashed-underline reveal. Fulfilled's footer holds the step's one action. Steps without a card are plain text.
- Planned
- Packed
- Invoiced
- Unpaid
- Synced
Current is the first step
#first-stepNothing completed yet; every trail is dashed.
- Pending
- Planned
- Packed
- Fulfilled
- Invoiced
- Unpaid
- Synced
Current is the last step
#all-completeEverything before Synced is complete; the terminal step still shows the current ring.
- Pending
- Planned
- Packed
- Fulfilled
- Invoiced
- Unpaid
- Synced
Error on the current step
#errorstatus: "error" swaps the mustard ring for the error ring and icon; detail sits under the label, so a failed sync reads off the bar.
- Pending
- Planned
- Packed
- Fulfilled
- Invoiced
- Unpaid
- SyncedSync failed
Single group
#single-groupAn invoice with only invoicing states: every connector is the same length.
- Draft
- Sent
- Paid
- Synced
Narrow container
#narrowThe row keeps its step widths and scrolls horizontally when the container is narrower (phone widths).
- Pending
- Planned
- Packed
- Fulfilled
- Invoiced
- Unpaid
- Synced
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| entity | string | — | Required. Rendered as data-entity (order, invoice, batch) |
| current | string | — | Required. The state of the current step |
| steps | LifecycleStep[] | — | Required. In lifecycle order; consecutive steps with the same group form one segment |
| steps[].group | production | invoicing | — | Area spoke that colours the step |
| steps[].state | string | — | Machine state; title-cased for the label |
| steps[].date | string | — | Read out in the step's aria-label, not drawn (2026-10-07). Put the date in the step's card |
| steps[].detail | string | — | Under the current step's label, e.g. a failure reason |
| steps[].card | LifecycleCard | — | { title, subtitle?, rows?: { label, value }[], footer? }. Makes the step a hover trigger for a Popover card (keyboard focus opens it too; on touch a tap toggles it). Steps without one are plain text |
| steps[].status | "error" | — | Marks the current step as failed; ignored elsewhere |
| className | string | — | On the scroll wrapper. The bar is left-aligned and shrink-to-fit; it carries no width of its own |