Status Page

Free

A public status / uptime page for a SaaS product: an overall banner derived from the components and active incidents, each component's current state and a 90-day uptime bar with "99.98% uptime over 90 days", active incidents with their update timeline, scheduled maintenance and a day-grouped incident history. Read-only; every state is a word and an icon as well as a colour, and every date and time is formatted with `Intl` in your locale and time zone.

</>sv-status-page status pageuptimeincidentoutagemaintenanceslaavailabilitystatuspagehealth

Complexity tier: Primitive Presents a value: held to semantic markup and contrast, laid out with logical properties so it mirrors under right-to-left, and with what it does on paper decided.

import { SvStatusPageComponent } from '@styloviz/display/status-page';

Demo & usage

Basic usage

Usage example — open the gallery for the full interactive demo.

An interactive demo for this component lives in the gallery.

Open live demo

More examples

Components and their uptime

One entry per day: a `status`, a measured `percentage`, or both. A day with only a percentage is coloured by fixed thresholds (≥ 99.9 % operational, ≥ 99 % degraded, ≥ 95 % partial outage, below that a major outage). `uptimePercent` passes your monitoring's own figure for the window.

example.htmlAngular
components: SvStatusComponent[] = [
  { id: 'api', name: 'API', group: 'Platform', status: 'operational',
    uptime: [{ date: '2026-10-26', percentage: 100 }, { date: '2026-10-25', percentage: 99.2 } /* … */] },
  { id: 'web', name: 'Dashboard', group: 'Platform', status: 'degraded', uptimePercent: 99.95,
    uptime: [{ date: '2026-10-26', status: 'degraded' } /* … */] },
];

An incident with its updates

Active incidents (anything not `resolved`) are listed on top, worst impact first; resolved ones move into the history under the day they began. An active incident raises the overall status: minor → degraded, major → partial outage, critical → major outage.

example.htmlAngular
incidents: SvStatusIncident[] = [{
  id: 'inc-311', title: 'Elevated API error rate', status: 'monitoring', impact: 'minor', components: ['api'],
  updates: [
    { at: '2026-10-26T09:12:00Z', status: 'investigating', message: 'We are looking into 5xx responses.' },
    { at: '2026-10-26T09:40:00Z', status: 'monitoring', message: 'A fix is deployed; watching error rates.' },
  ],
}];

A page that refreshes in place

Poll your status endpoint and set `live` so a screen reader announces a change in the overall status. Keep `loading` false on the refreshes — it withholds the page and is for the first request only.

example.htmlAngular
<sv-status-page [components]="components()" [incidents]="incidents()" [lastUpdated]="fetchedAt()"
  [live]="true" timeZone="UTC" />

The same figures elsewhere

example.htmlAngular
import { svOverallStatus, svUptimeSummary, svFormatUptime } from '@styloviz/display';

const overall = svOverallStatus(components, incidents, maintenances); // 'degraded'

When to use

  • The public status page of a SaaS product, or the "System status" screen of an admin console.
  • An internal service-health page where each row is a dependency with its own uptime record.
  • Use `sv-audit-log` for an audit trail with field-level changes, and `sv-timeline` on its own for an activity feed that is not about availability.

Compare with

  • Timeline — Timeline shows any ordered list of events. Status Page uses it for each incident's updates, and adds the overall banner, the per-component uptime bars, maintenance and the incident history around it.
  • Heatmap Calendar — Heatmap Calendar plots a year of values as a week-by-day grid. Status Page draws one row of days per service, coloured by status rather than by magnitude.

Async states

  • loading
  • error
  • retry

Item identity & owned state

Item key
itemKey — set this when your rows have no id, so selection survives a reorder.

Inputs

NameTypeDefaultDescription
componentsreadonly SvStatusComponent[][]The monitored services, in display order. Rows with no `name` are skipped.
incidentsreadonly SvStatusIncident[][]Incidents, active and resolved, any order. Active ones are listed on top; resolved ones form the history.
maintenancesreadonly SvStatusMaintenance[][]Planned maintenance windows, any order — listed by start time. `completed` windows are left out.
statusSvStatusLevel | nullnullThe overall status, when your backend states it. Null derives it: the worst of every component's status, every active incident's impact and any in-progress maintenance.
daysnumber90How many days the uptime bars cover, ending on the day of `lastUpdated` (clamped to 1–365).
lastUpdatedSvStatusInstant | nullnullWhen the data was fetched — shown as "Last updated …" and the last day of the uptime bars. Null ends the bars on the latest day any component reports.
loadingbooleanfalseTrue while the first request is in flight — keep it false on a background refresh.
errorSvDataError | string | nullnullThe load failed. A string or an `SvDataError`; a non-retryable error hides the retry button.
itemKeySvItemKey<SvStatusComponent>'id'Identity of a component row, a property name or a function.
incidentKeySvItemKey<SvStatusIncident>'id'Identity of an incident.
maintenanceKeySvItemKey<SvStatusMaintenance>'id'Identity of a maintenance window.
localestringsvLocale()BCP-47 locale for dates, times and percentages.
timeZonestring | nullnullIANA time zone the times are shown in (and incident days are grouped by), e.g. `'UTC'` or `'Europe/Berlin'`. Null, or a zone `Intl` rejects, uses the viewer's own.
livebooleanfalseMake the overall banner a polite live region (`role="status"`), so a screen reader announces a change when the page refreshes in place. Leave it off for a page that is rendered once — a live region that never changes is noise.
headingLevelSvStatusPageHeadingLevel2Heading level of the section headings — match your page outline.
labelsPartial<SvStatusPageLabels>{}Per-instance text, merged over the registry's `display` labels.

Outputs

EventPayload typeDescription
retryvoidThe error state's retry button was pressed — re-run the request.

Wire it to your API

This component is headless about transport: it renders what you give it and reports what the user asks for. Nothing below requires @styloviz/data — drive it from whatever you already use.

Template

Bound to the names this component actually exposes.

usage.htmlAngular
<sv-status-page
  [components]="components()"
  [loading]="loading()"
  [error]="error()"
  (retry)="load()"
/>

Host class

Drive the three async inputs from your own fetch.

host.component.tsTypeScript
import { signal } from '@angular/core';
import { toSvDataError, type SvDataError } from '@styloviz/core';
import type { SvStatusComponent } from '@styloviz/display/status-page';

readonly components = signal<SvStatusComponent[]>([]);
readonly loading = signal(false);
readonly error = signal<SvDataError | null>(null);

async load(): Promise<void> {
  this.loading.set(true);
  this.error.set(null);
  try {
    const res = await fetch('/api/components');
    if (!res.ok) throw res;
    this.components.set(await res.json());
  } catch (e) {
    this.error.set(toSvDataError(e));
  } finally {
    this.loading.set(false);
  }
}
  • This component does not emit a query, so it renders what you give it. Call `load()` on your own trigger and bind `components`, `loading` and `error`.
  • Normalize failures with `toSvDataError()` from `@styloviz/core`. It derives `retryable` from the status, so a 404 does not get a "Try again" button that can only fail again.

Full walkthrough: Connecting to a backend.

Customization & theming

  • Status colours paint from the `accent` (operational), `warning` (degraded, partial outage), `danger` (major outage), `info` (maintenance) and `gray` (no data) tokens, so a theme that remaps them recolours the bars, the banner and the chips.
  • `days` (1–365) sets the window of the bars; `headingLevel` fits the section headings into your page outline.
  • Every string comes from the `display` labels (`status*` keys) in 12 language packs — `provideSvLabels(SV_DISPLAY_LABELS_DE)` or the per-instance `labels` input.
  • `svOverallStatus`, `svStatusFromUptime`, `svUptimeSummary`, `svWorstStatus` and `svFormatUptime` are exported for an e-mail digest or a chat summary that should quote the same figures.

Best practices

  • Do: Pass `lastUpdated` — a status page without a timestamp cannot be trusted, and it also fixes the last day of the uptime bars.
  • Do: Report days in the zone your monitoring uses and set `timeZone` to match, so "Oct 20" means the same day in the bars, the incident history and your SLA report.
  • Do: Pass `uptimePercent` when your monitoring computes the window's availability; the averaged figure only sees the days it was given.
  • Don't: Don't set `status` to "operational" while an incident is open. Leave it null and the banner is derived from the components and the active incidents.
  • Don't: Don't set `loading` on a background refresh — the page would blank and announce itself again. Swap the arrays in place.
  • Tip: Set `live` only when the page refreshes itself; a live region on a page rendered once is noise.

Accessibility

  • Every state is an icon and words beside a colour: the banner says "Partial system outage", a component says "Degraded performance", an incident says "Monitoring" and "Minor impact".
  • Each uptime bar is one `role="img"` named with the component, the uptime figure and the date range ("API: 99.98% uptime over 90 days, Jul 29, 2026 to Oct 26, 2026"); the days that were not operational are listed after it for a screen reader, and each day has a mouse tooltip.
  • The overall banner is a `role="status"` live region only when `live` is set, so a refreshing page announces a change and a static one stays quiet.
  • Sections are labelled regions with real headings at `headingLevel`; incidents and windows are list items with their own headings, and times are `<time datetime>` elements.
  • An incident's updates are an `sv-timeline` with a feed intent and an accessible name ("Updates on Elevated API error rate").

Feedback on Status Page

Spotted a gap in this page, or something that didn't work as described? Comments are GitHub Discussions in the public styloviz/community repo, so posting needs a GitHub account.

Loads giscus.app and GitHub — nothing is fetched until you click.