204 Pro components and page blocks

Get Pro

Updated

Incident Postmortem

Pro

Preview

Customize

SEV-2
Replay2.6s
Width500px

Installation

Pro

Incident Postmortem is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/incident-postmortem

Usage

import { IncidentPostmortem } from "@/components/uibrik/incident-postmortem/incident-postmortem";​const events = [  { at: 6, kind: "detected", title: "Error-rate alert fired on checkout-api.", by: "PagerDuty" },  { at: 11, kind: "acknowledged", title: "On-call engineer took the page and opened an incident channel.", by: "Maya Chen" },  // …3 more];​const rootCause = "A connection pool limit shipped in v2.4.1 was too low for peak traffic, so the primary database refused new connections.";​<IncidentPostmortem  severity="2"  title="Checkout API returning 503s"  impact="18% of checkout requests"  replay={2.6}  defaultOpen={false}  width={500}  events={events}  chartFrom={12}  start="14:02"  date="Nov 24"  services={["checkout-api", "payments", "postgres-primary"]}  rootCause={rootCause}  // errorRate={[0]}  // actions={[{ title: "…", done: false }]}  // onActionsChange={(actions) => {}}  // open={false}  // onOpenChange={(open) => {}}/>

Where to use Incident Postmortem

  • Status pages and incident history

    Each past incident reads in two lines and opens into its full timeline.

    Pairs with Uptime Bar and Status Dashboard

  • Engineering postmortems

    Response times and the gaps between steps make the review about facts, not memory.

    Pairs with Stack Trace

  • SRE and on-call dashboards

    Hovering an event finds it on the error-rate chart, so cause and effect line up.

Props

IncidentPostmortem
severity
Type "1" | "2" | "3"
"2"
Severity, which sets the accent colour.
title
Type string
"Checkout API returning 503s"
What broke.
impact
Type string
"18% of checkout requests"
Who or what was affected.
replay
Type number
2.6
Seconds the replay takes from impact to resolution.
defaultOpen
Type boolean
false
Show the timeline on mount.
width
Type number
500
Width of the card; never wider than its container.
events
Type { at: number; kind: "detected" | "acknowledged" | "mitigated" | "resolved" | "update"; title: string; by?: string }[]
–
What happened, in minutes after impact began. The four key kinds drive the response times.
errorRate / chartFrom
Type number[] / number
–
Error rate per minute in %, starting chartFrom minutes before impact.
start / date
Type string
–
Clock time impact began ("HH:MM") and the date line.
services
Type string[]
–
Affected services, shown as chips.
rootCause
Type string
–
One or two sentences under the card.
actions / onActionsChange
Type { title: string; owner?: string; done: boolean }[] / (actions) => void
–
Follow-up items, ticked off in the checklist under the card.
open / onOpenChange
Type boolean / (open) => void
–
Controlled open state.
className
Type string
–
Classes for the wrapper.