Status Tracker
Status tracker for uptime and run history, plus StatusStripMini — the small strip for tables and lists.
Playground
Installation
Status Tracker comes with WunderUI Core and Pro, in the package from your plan. See the plans.
The charts live in their own entry point: import the chart, its card and its hooks from @wunderui/react/charts, not from @wunderui/react.
Then import what you need:
import {
StatusTracker,
StatusStripMini,
StatusTrackerProps,
StatusTrackerVariant,
} from "@wunderui/react/charts"Then use it:
import { StatusTracker, type TrackerStatus } from "@wunderui/react/charts"
const statuses: TrackerStatus[] = ["operational", "operational", "degraded", "operational", "outage", "operational"]
export function ApiStatus() {
return <StatusTracker rows={[{ label: "API", caption: "Last 6 days", statuses }]} label="API status, last 6 days" />
}Expected result: You see one row labelled API with six cells. The third is marked degraded and the fifth as an outage.
When to use
Use Status Tracker for
- Health over time: uptime per service and day
- The history of runs: builds, deploys, syncs
- A compact strip of statuses in a table or a list (StatusStripMini)
Use something else for
- Timeline Chart for tasks and events on a time scale
- Sparkline for a numeric trend in a tile
- Heatmap for a number for every cell
- Progress Chart for completion against a target
States
Loading, empty and error keep the chart's size, so the card never jumps. Add a retry handler and the error state offers a Try again button.
Status Strip Mini
StatusStripMini is the strip of a table or list: one cell per period, coloured by status, with no label or tooltip. Give it an aria-label that names the service and the period.
Keyboard interactions
The plot is focusable. Arrow keys step through every cell, row after row, and the live region reads the service, the day or run and the cell's status.
- TaborShiftTab
- Moves focus to the plot and away from it. The plot is one tab stop; so is every legend badge.
- ArrowRightorArrowLeft
- Moves to the next or previous cell. The tooltip follows, and a live region announces the one you are on. The first press starts at the first one (Left: the last one).
- HomeorEnd
- Jumps to the first or last cell.
- Escape
- Clears the active point.
- EnterorSpace
- On a legend badge of a ChartCard: switches its series off or on. The last visible series stays on.
Behavior and motion
What the chart does on its own and what the page decides.
- Rows
- Rows is a list with a label, caption, statuses and cell labels: one row per service or workflow, one cell per status. Cell labels name the cells in the tooltip, for example the date or run id.
- Statuses
- Each status has its own colour, with no data in muted. The tooltip and live region name the status in words, so colour is never the only cue.
- Shape
- Uptime tracker draws tall bars and run history short pills.
- Description
- The chart's description counts incidents per row. The live region and data table give the status of every cell, not only the tooltip.
- Loading, empty and error
- The chart keeps its size while loading, empty or failed, so the card never jumps. Add a retry handler to show a Try again button on error.
- Size
- The chart fills the width of its container, and you set the plot height. Text never scales, so labels keep their size at every width.
Motion
The enter sequence and the hover follow the library's motion tokens.
- Fade in
- Cells fade in from left to right when the chart first comes into view, after loading and when the rows change. You can turn it off.
- Reduced motion
- With reduced motion the chart appears at once. The tooltip, the crosshair and every state still work.
Anatomy
StatusTracker shows health over time as rows of cells, one row per service or workflow and one cell per day or run, coloured by status. StatusStripMini is the 120 by 24 px strip for a table cell.
System status
| label | Status |
|---|---|
| API · Day 1 | Operational |
| API · Day 2 | Operational |
| API · Day 3 | Operational |
| API · Day 4 | Operational |
| API · Day 5 | Operational |
| API · Day 6 | Operational |
| API · Day 7 | Operational |
| API · Day 8 | Operational |
| API · Day 9 | Operational |
| API · Day 10 | Operational |
| API · Day 11 | Operational |
| API · Day 12 | Operational |
| API · Day 13 | Operational |
| API · Day 14 | Operational |
| API · Day 15 | Operational |
| API · Day 16 | Operational |
| API · Day 17 | Operational |
| API · Day 18 | Operational |
| API · Day 19 | Operational |
| API · Day 20 | Operational |
| API · Day 21 | Operational |
| API · Day 22 | Operational |
| API · Day 23 | Operational |
| API · Day 24 | Operational |
| API · Day 25 | Operational |
| API · Day 26 | Operational |
| API · Day 27 | Operational |
| API · Day 28 | Operational |
| API · Day 29 | Operational |
| API · Day 30 | Operational |
| API · Day 31 | Operational |
| API · Day 32 | Operational |
| API · Day 33 | Operational |
| API · Day 34 | Operational |
| API · Day 35 | Operational |
| API · Day 36 | Operational |
| API · Day 37 | Operational |
| API · Day 38 | Operational |
| API · Day 39 | Operational |
| API · Day 40 | Operational |
| API · Day 41 | Operational |
| API · Day 42 | Degraded |
| API · Day 43 | Operational |
| API · Day 44 | Operational |
| API · Day 45 | Operational |
| API · Day 46 | Operational |
| API · Day 47 | Operational |
| API · Day 48 | Operational |
| API · Day 49 | Operational |
| API · Day 50 | Operational |
| API · Day 51 | Operational |
| API · Day 52 | Operational |
| API · Day 53 | Operational |
| API · Day 54 | Operational |
| API · Day 55 | Operational |
| API · Day 56 | Operational |
| API · Day 57 | Operational |
| API · Day 58 | Operational |
| API · Day 59 | Operational |
| API · Day 60 | Operational |
| Dashboard · Day 1 | Operational |
| Dashboard · Day 2 | Operational |
| Dashboard · Day 3 | Operational |
| Dashboard · Day 4 | Operational |
| Dashboard · Day 5 | Operational |
| Dashboard · Day 6 | Operational |
| Dashboard · Day 7 | Operational |
| Dashboard · Day 8 | Operational |
| Dashboard · Day 9 | Operational |
| Dashboard · Day 10 | Operational |
| Dashboard · Day 11 | Operational |
| Dashboard · Day 12 | Operational |
| Dashboard · Day 13 | Operational |
| Dashboard · Day 14 | Operational |
| Dashboard · Day 15 | Operational |
| Dashboard · Day 16 | Operational |
| Dashboard · Day 17 | Operational |
| Dashboard · Day 18 | Operational |
| Dashboard · Day 19 | Operational |
| Dashboard · Day 20 | Operational |
| Dashboard · Day 21 | Operational |
| Dashboard · Day 22 | Operational |
| Dashboard · Day 23 | Operational |
| Dashboard · Day 24 | Outage |
| Dashboard · Day 25 | Operational |
| Dashboard · Day 26 | Operational |
| Dashboard · Day 27 | Operational |
| Dashboard · Day 28 | Operational |
| Dashboard · Day 29 | Operational |
| Dashboard · Day 30 | Operational |
| Dashboard · Day 31 | Operational |
| Dashboard · Day 32 | Operational |
| Dashboard · Day 33 | Operational |
| Dashboard · Day 34 | Operational |
| Dashboard · Day 35 | Degraded |
| Dashboard · Day 36 | Operational |
| Dashboard · Day 37 | Operational |
| Dashboard · Day 38 | Operational |
| Dashboard · Day 39 | Operational |
| Dashboard · Day 40 | Operational |
| Dashboard · Day 41 | Operational |
| Dashboard · Day 42 | Operational |
| Dashboard · Day 43 | Operational |
| Dashboard · Day 44 | Operational |
| Dashboard · Day 45 | Operational |
| Dashboard · Day 46 | Operational |
| Dashboard · Day 47 | Operational |
| Dashboard · Day 48 | Operational |
| Dashboard · Day 49 | Operational |
| Dashboard · Day 50 | Operational |
| Dashboard · Day 51 | Operational |
| Dashboard · Day 52 | Operational |
| Dashboard · Day 53 | Operational |
| Dashboard · Day 54 | Operational |
| Dashboard · Day 55 | Operational |
| Dashboard · Day 56 | Operational |
| Dashboard · Day 57 | Operational |
| Dashboard · Day 58 | Operational |
| Dashboard · Day 59 | Operational |
| Dashboard · Day 60 | Operational |
Takes rows, each with a label, an optional caption like 99.98 % uptime, a list of statuses and optional cell labels for the tooltip. The variant is uptime tracker or run history.
- data-slot="chart-plot"
The focusable region. Arrow keys step through every cell, row after row, and the live region reads the service, day or run and status, like API · Mar 2: Outage, as the tooltip does on hover.
- data-slot="chart-marks"
Row labels on the left, then one rounded cell per status, fading in from left to right: tall bars for uptime and short pills for run history. The hovered cell dims slightly.
Each status has its own chart colour: operational and success, degraded, outage and failed, running, skipped, and no data in muted. The tooltip names the status in words.
- data-slot="chart-tooltip"
The status name with the cell label, such as the date or the run id.
- data-slot="chart-message"
Muted bars under the shimmer in a frame sized from the number of rows. A tracker with no cells counts as empty.
A hidden table for screen readers with one row per cell and a Status column. The chart description counts incidents per row, so every cell's status is available beyond the tooltip.
- data-slot="status-strip-mini"
A compact strip with one bar per status, 120 by 24 px by default. Its label counts the days with an outage and the degraded ones, unless you set your own.
Best practices
- Do
Pass cell labels with dates or run ids, so the tooltip, live region and table say which day or run a cell is.
- Do
Give every row the same number of cells and the same period. Rows of different lengths align by cell, not by date.
- Do
Keep to about 90 cells per row. Wider rows make cells narrower than the 2 px minimum and hard to hover.
- Don’t
Don't rely on colour alone for incidents. The tooltip and caption must state the status and the count in words.
- Don’t
Don't use the none status to mean healthy. It is for missing data and is drawn in the muted colour.
API reference
Two tables: StatusTracker, the rows of cells, and StatusStripMini, the compact strip for a table or list. Both are plain components with their own props.
Takes rows, each with a label, an optional caption like 99.98 % uptime, a list of statuses and optional cell labels for the tooltip. The variant is uptime tracker or run history.
A compact strip with one bar per status, 120 by 24 px by default. Its label counts the days with an outage and the degraded ones, unless you set your own.
Notes for AI
Give your coding assistant the Markdown reference instead of screenshots.
get_component("status-tracker")The full library index for assistants is at /llms.txt.