Provider status

Is each AI provider or model up: a list, a grid, or one summary pill. Host-driven; refreshed by a re-render (wire:poll).

The status set

Support\ProviderState: operational (check-circle, success), degraded (exclamation-triangle, warning), down (x-circle, danger), maintenance (wrench-screwdriver, accent), unknown (question-mark-circle outline, neutral). Status-page spellings are taken (up, partial_outage, major_outage, under_maintenance, booleans, backed enums); anything else is unknown, drawn rather than thrown. Tones are names; views turn them into literal classes. Every status is a mark and a word.

Anatomy

ul[aria-label][data-layout=list|grid].group/providers      list: divided rows | grid: cards
└── li[data-ds-provider-state]                             ds::provider-status-item
    ├── logo (slot or img)                                 aria-hidden / alt=""
    └── div
        ├── name (link to the status page, http(s) only) · mark + word · "412 ms"
        ├── message
        └── span[role=img][aria-label="Last 20 checks: …"] blocks · "Checked "

span[data-ds-provider-status=inline][data-ds-provider-state]
├── span[role=status][aria-live=polite].sr-only  overall state in words
└── a|span pill  mark + "All systems operational" | "1 down, 2 degraded"

The summary counts the rows given and the items in the slot (by their data-ds-provider-state, read from the rendered slot) and takes the worst: down, degraded, maintenance, unknown, operational.

Live region

Only on the pill, and it holds only the overall state ("Degraded performance"), not the counts: a poll that changes nothing, or only a count, changes no text in it and says nothing; one that changes the state is read once. The list has none.

Accessibility

Roleul named by label; uptime blocks one img named by their tally
Nameeach row by its provider name; the status as a word
KeyboardTab to each status-page link, and to the pill's link
Focuslinks draw the system ring

Do not

  • Do not put a live region on each row. A poll would read the whole list.
  • Do not show colour alone for a check; the blocks' name counts them.

From the package repo: edit this page on GitHub.

Was this page helpful?