Incident Timeline
ProNewAn incident from first report to resolution: impact, what is affected, four stages with the current one marked, and the updates newest first.
Installation
pnpm dlx shadcn@latest add @viewport/incident-timeline
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| title* | stringWhat is wrong, in a line, e.g. "Sandboxes slow to start in eu-west". | — |
| impact* | "minor" | "major" | "critical"How bad it is. | — |
| status* | IncidentStatusWhere the incident stands now. | — |
| affected | string[]What is affected, e.g. regions or services. | [] |
| started | stringWhen it began and how long it has run, already formatted. | — |
| duration | string | — |
| updates* | { status: IncidentStatus; time: string; body: string }[]Updates, newest first. | — |
Accessibility
- An article named with the stage and the title.
- Stages are an ordered list with the current one marked and stated.
- Impact and Resolved are words as well as colors.
- The current stage pulses only when motion is allowed.
- Server component with no client JavaScript.