# Status page

Provider and model health for an AI product: a plain headline, 90 days of daily bars and uptime per model, and incidents as timelines.

> chatcn Pro: needs a Pro license (https://chatcn.dev/pro). Install from the `@chatcn-pro` registry with your license token; setup at https://chatcn.dev/docs/chatcn-pro.

Example: Status page. Opus is slow right now: the incident leads with its updates, and every model shows 90 days and its uptime. Preview: https://chatcn.dev/preview/status-page-demo

## Installation

```bash
npx shadcn@latest add @chatcn-pro/status-page
```

## Usage

```tsx
import { StatusPage } from "@/components/ui/chatcn/pro/status-page"

<StatusPage
  components={[
    { id: "opus", group: "Anthropic", name: "Claude Opus 5.5", status: "degraded", latencyMs: 2840, uptime: 0.9991, days },
    { id: "files", group: "Our platform", name: "Files and search", status: "operational", days },
  ]}
  incidents={[
    {
      id: "inc_1",
      title: "Slow responses from Claude Opus 5.5",
      status: "degraded",
      affects: ["opus"],
      updates: [{ at, stage: "Identified", text: "Sonnet and Haiku are not affected; chats can switch." }],
    },
  ]}
  checkedAt={lastCheck}
/>
```

Built for products that run on other people's models: group components by provider and add your own platform as a group. The headline says in words whether anything needs attention. Each component shows its status (from the free `model-status`), its latency over the last hour when you pass it, one bar per day colored by that day's worst state, and its uptime. Pass measured `uptime`; without it the page shows the share of days with no outage rather than inventing a precise figure. Incidents happening now sit on top with their updates as a timeline, newest first; resolved ones fold under Past incidents. On a phone the bars show the last 30 days.

## Examples

### States

Example: States. Everything working, and a narrow frame where the bars show 30 days. Preview: https://chatcn.dev/preview/status-page-states

## Props

| Prop | Type | Notes |
| --- | --- | --- |
| `components` | `StatusComponent[]` | `{ id, name, group?, status, days?, latencyMs?, uptime? }` |
| `incidents` | `StatusIncident[]` | `{ id, title, status, affects?, updates, resolved? }` |
| `checkedAt` | `Date | string` | When statuses were last checked |
| `now`, `locale` |  | Dates and relative times |
| `labels` | `Partial<StatusPageLabels>` | Every string, for translation |

## Accessibility

- The headline is a status message.
- Each row of daily bars is an image labelled with the uptime; every bar has its date and state as a title.
- Status is a word next to its dot, never color alone.
- Past incidents are a disclosure button that reports whether it is open.

## Motion

The past incidents chevron turns over 150 ms. Nothing else moves.

Source: https://chatcn.dev/docs/components/status-page