Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Incident Timeline

ProNew

An 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

PropTypeDefault
title*string

What is wrong, in a line, e.g. "Sandboxes slow to start in eu-west".

—
impact*"minor" | "major" | "critical"

How bad it is.

—
status*IncidentStatus

Where the incident stands now.

—
affectedstring[]

What is affected, e.g. regions or services.

[]
startedstring

When it began and how long it has run, already formatted.

—
durationstring—
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.