Status / incident summary card

The incident lead does this after an incident is resolved. The retro is done. You have severity, start, resolution, and a one-line impact. The internal writeup needs a card that can’t disagree with those facts.

This is after-the-retro work. Duration and resolution time on the card have to come from the timestamps. You don’t type a duration into a text layer and a severity into a chip and hope they still match.

The job is to write { severity, startedAt, resolvedAt, impact } after the retro and export once. One incident, one file, one run.

Give Lerret a React component under .lerret/ and optional data. export writes a PNG. Same component, data swapped, many images. There is no batch product, no queue, no orchestrator.

The component is .lerret/ops/incident-summary.jsx. It shows a severity chip, duration, an impact line, and resolution time. The severity chip’s color is derived from the severity field. A sev-1 can’t render a green chip because the color isn’t a separate choice. That’s why the chip is driven by the field.

Data is { severity, startedAt, resolvedAt, impact }, written after the retro. Pass it with --data. One incident, one file, one run. The next incident is a new file. You’re not bulk-exporting a year of incidents unless you choose to re-run --data for each.

The image is a PNG 1200×630 for the internal writeup. One card. Lerret writes the image.

You use Lerret because the severity chip’s color is derived from the severity field, so the card can’t show a green chip on a sev-1. The timestamps are fields. Duration and resolution time stay tied to them. A design file you recolor by hand, or a screenshot of a status page, can disagree with the retro notes.

Severity, startedAt, resolvedAt, and impact are the only inputs. Duration and resolution time are derived on the card. You write the file after the retro, then you run export.

npx @lerret/cli@latest export --data

Pass the file you wrote after the retro. Start a project with npx create-lerret@latest. More in the use cases index.