Design Library

Deploy list - ledger

deploy-list-ledger.tsx

componentskill: design-taste-frontendlistdevtooldensedashboard

Variants of deploy-list-2026-q3: deploy-list-manifest, deploy-list-spine

Brief

The prompt that produced this. Re-run it to generate more in the same taste.

Aesthetic
Vercel-native devtool - Geist ramp, hairline rules, mono for machine strings, tight radii, colour spent only on states that need attention
Reference
https://vercel.com/dashboard
Intent
a deploy list read in ten seconds to answer one question: is anything broken or still building. one monorepo push fans out to N projects, so the same commit must never be printed N times
Guardrails
always group by commit run, mono for branches, targets and URLs, state carried by a left rail, not repeated per row
never shadows for structure, card per row, accent as decoration, shared data repeated per row

Install

pnpm dlx shadcn@latest add http://localhost:3040/r/deploy-list-ledger.json

Source

Meta block and library type import stripped - this is what pastes cleanly elsewhere.

import { GitBranch } from 'lucide-react'

type Deploy = { name: string; target: 'production' | 'preview'; state: State }
type State = 'ready' | 'error' | 'building' | 'canceled'
type Push = { commit: string; branch: string; when: string; deploys: Deploy[] }

const STATE: Record<State, { label: string; rail: string; text: string }> = {
  ready: { label: 'READY', rail: 'bg-emerald-500', text: 'text-emerald-600 dark:text-emerald-400' },
  error: { label: 'ERROR', rail: 'bg-red-500', text: 'text-red-600 dark:text-red-400' },
  building: { label: 'BUILDING', rail: 'bg-amber-500', text: 'text-amber-700 dark:text-amber-400' },
  canceled: { label: 'CANCELED', rail: 'bg-transparent', text: 'text-muted-foreground' },
}

const PUSHES: Push[] = [
  {
    commit: 'fix(api): normalise readyState across list and detail',
    branch: 'main',
    when: '2m',
    deploys: [
      { name: 'customer-portal', target: 'production', state: 'building' },
      { name: 'shop', target: 'preview', state: 'ready' },
      { name: 'blog', target: 'preview', state: 'error' },
    ],
  },
  {
    commit: 'chore(launch): add cost-estimator dev server config',
    branch: 'dev',
    when: '3h',
    deploys: [
      { name: 'shop-vivienne', target: 'preview', state: 'canceled' },
      { name: 'pro-landing', target: 'preview', state: 'canceled' },
      { name: 'storybook', target: 'preview', state: 'canceled' },
      { name: 'hadesor-docs', target: 'preview', state: 'canceled' },
    ],
  },
  {
    commit: 'feat(widget): WidgetKit target reads the shared snapshot',
    branch: 'main',
    when: '1d',
    deploys: [{ name: 'website', target: 'production', state: 'ready' }],
  },
]

export default function DeployListLedger() {
  return (
    <div className="min-h-[100dvh] bg-background px-4 py-10 sm:px-8">
      <div className="mx-auto max-w-3xl">
        <h1 className="font-semibold text-2xl tracking-[-0.03em]">Deployments</h1>
        <p className="mt-1 text-muted-foreground text-sm">Three pushes, eight deployments.</p>

        <div className="mt-8 border-t">
          {PUSHES.map((push) => (
            <section key={push.commit} className="border-b py-5">
              {/* Shared data lives once, at the head of the run. */}
              <div className="flex flex-wrap items-baseline gap-x-3 gap-y-1 px-1">
                <h2 className="font-medium text-[15px] leading-snug tracking-[-0.01em]">
                  {push.commit}
                </h2>
                <span className="inline-flex items-center gap-1 font-mono text-[11px] text-muted-foreground tabular-nums">
                  <GitBranch className="size-3" aria-hidden />
                  {push.branch}
                </span>
                <span className="ml-auto font-mono text-[11px] text-muted-foreground tabular-nums">
                  {push.when} ago
                </span>
              </div>

              <ul className="mt-3">
                {push.deploys.map((d) => (
                  <li key={d.name}>
                    <button
                      type="button"
                      className="group flex h-9 w-full items-center gap-3 rounded-[4px] pr-2 text-left transition-[background-color,transform] duration-[160ms] ease-[cubic-bezier(0.23,1,0.32,1)] hover:bg-muted/60 active:scale-[0.985] motion-reduce:transition-none motion-reduce:active:scale-100"
                    >
                      {/* Rail, not a dot: reads as a scannable column and stays
                          transparent for settled work so only live or broken
                          deployments pull the eye. */}
                      <span
                        className={`h-full w-[3px] shrink-0 rounded-full ${STATE[d.state].rail}`}
                        aria-hidden
                      />
                      <span className="min-w-0 flex-1 truncate font-medium text-[14px]">
                        {d.name}
                      </span>
                      <span
                        className={`font-mono text-[10px] tracking-wider ${STATE[d.state].text}`}
                      >
                        {STATE[d.state].label}
                      </span>
                      {/* Target yields first at narrow widths - measured at
                          375px it was truncating the project name instead. */}
                      <span className="hidden w-[68px] shrink-0 text-right font-mono text-[11px] text-muted-foreground sm:inline">
                        {d.target}
                      </span>
                    </button>
                  </li>
                ))}
              </ul>
            </section>
          ))}
        </div>
      </div>
    </div>
  )
}