Ballmac UI home

Reliability 1: uptime and incidents

A reliability page: one sentence on whether things work right now, each service's last 60 days day by day, error budgets as gauges with a target, and the incidents behind the red days.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/reliability-1

Usage

Example: reliability-1-demo.tsx
"use client"

import { Reliability1 } from "@/components/ballmac/blocks/reliability-1/reliability-1"

export default function Reliability1Demo() {
  return <Reliability1 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton banner, services and gauges under the real heading, announced as loading.

    state="loading"
  • No services yet

    Says there are no services yet; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry).

    state="error"

Dependencies

Use with AI

Reliability page. <Reliability1 title description services={[{ id, name, days, uptime? }]} budgets={[{ id, label, value, target, description }]} incidents={[{ id, title, when, duration, status, summary }]} />. The headline is worked out from the last day of each service. Each budget is a gauge with At risk, Watch it and Healthy zones around its target. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Reliability 1: uptime and incidents (@ballmac/reliability-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A public or internal status page
  • The reliability section of a product dashboard

Not for

  • One incident in detail; use incident-1
  • Error budgets only; use slo-1

Registry JSON: https://ui.ballmac.com/r/reliability-1.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.