{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "release-hall",
  "title": "Shipyard, Release coordination",
  "description": "A release board for a team: regions on a split-flap board, services moving through stages, a deploy queue, a freeze everyone must lift, and the promote switch. A whole screen for a Next.js app, at /release-hall.",
  "dependencies": [],
  "registryDependencies": [
    "https://bevel-ui.vercel.app/r/bevel.json",
    "https://bevel-ui.vercel.app/r/annunciator.json",
    "https://bevel-ui.vercel.app/r/guarded-switch.json",
    "https://bevel-ui.vercel.app/r/lockout.json",
    "https://bevel-ui.vercel.app/r/split-flap.json",
    "https://bevel-ui.vercel.app/r/take-a-number.json",
    "https://bevel-ui.vercel.app/r/visible-file.json"
  ],
  "files": [
    {
      "path": "registry/bevel/blocks/release-hall/shipyard/shipyard.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { demoMilestone } from \"../shared/events\"\nimport {\n  SplitFlap,\n  SplitFlapRow,\n  SplitFlapText,\n} from \"@/components/ui/split-flap\"\nimport {\n  VisibleFile,\n  VisibleFileRow,\n  VisibleFileSignal,\n} from \"@/components/ui/visible-file\"\nimport {\n  TakeANumber,\n  TakeANumberDispenser,\n  TakeANumberSign,\n  TakeANumberStatus,\n} from \"@/components/ui/take-a-number\"\nimport {\n  Lockout,\n  LockoutAction,\n  LockoutHasp,\n  LockoutLock,\n} from \"@/components/ui/lockout\"\nimport {\n  GuardedSwitch,\n  GuardedSwitchControl,\n  GuardedSwitchLabel,\n  GuardedSwitchStatus,\n} from \"@/components/ui/guarded-switch\"\nimport {\n  Annunciator,\n  AnnunciatorAcknowledge,\n  AnnunciatorPanel,\n  AnnunciatorTile,\n} from \"@/components/ui/annunciator\"\nimport { cn } from \"@/lib/utils\"\nimport { Legend, PanelKey, Screw, Screws, StatusStrip } from \"../shared/environment\"\nimport { signFace } from \"../shared/fonts\"\n\n/* ------------------------------------------------------------------ data */\n\nconst RELEASE = \"checkout v2.15\"\nconst FROM = \"V2.14\"\nconst TO = \"V2.15\"\n\nconst stages = [\"Queued\", \"Build\", \"Test\", \"Canary\", \"Live\"]\nconst CANARY = 3\nconst LIVE = 4\n\nconst services = [\n  { id: \"checkout-api\", owner: \"Lena Okafor\" },\n  { id: \"cart-worker\", owner: \"Dev Hartmann\" },\n  { id: \"price-engine\", owner: \"Ama Reyes\" },\n  { id: \"receipt-mailer\", owner: \"You\" },\n]\n/** The service whose first canary goes bad. */\nconst FLAKY = \"cart-worker\"\n\nconst regions = [\"US-EAST\", \"US-WEST\", \"EU-WEST\", \"EU-NORTH\", \"AP-SOUTH\"]\nconst regionStatus = [\"QUEUED\", \"ROLLOUT\", \"LIVE\"]\n\n/** Board columns: what they're called on the housing, and how many flaps. */\nconst columns = [\n  { label: \"Region\", length: 8, hideOnPhone: false },\n  { label: \"Version\", length: 5, hideOnPhone: true },\n  { label: \"Status\", length: 7, hideOnPhone: false },\n]\n\n/** Deploys ahead of you in the queue, by ticket number. */\nconst queueAhead: Record<number, { release: string; who: string }> = {\n  41: { release: \"search-indexer v3.2\", who: \"Rosa Lindqvist\" },\n  42: { release: \"auth-gateway v1.9\", who: \"Theo Brandt\" },\n  43: { release: \"ledger-sync v0.8\", who: \"Ines Moraes\" },\n}\nconst FIRST_SERVING = 41\nconst FIRST_FREE = 44\n\ntype Lock = { id: string; owner: string; reason: string }\nconst startLocks: Lock[] = [\n  { id: \"mara\", owner: \"Mara (SRE)\", reason: \"Incident review open\" },\n  { id: \"payments\", owner: \"Payments\", reason: \"Ledger migration\" },\n  { id: \"you\", owner: \"You\", reason: \"Checking release notes\" },\n]\n\n/** Keys on the light steel desk are moulded darker, so their legends read. */\nconst deskKey = \"[--bevel-material:#2F363A]\"\n\nconst FIRST_NEWS = \"Mara (SRE) froze promotions during an incident review.\"\n\n/* ------------------------------------------------------------ environment */\n\n/** Lettering painted on the hall wall. */\nfunction WallSign({ className, ...props }: React.ComponentProps<\"h2\">) {\n  return (\n    <h2\n      className={cn(\n        \"text-[22px] leading-none font-extrabold text-[#EEF2EC] [text-shadow:0_1px_0_rgb(0_0_0/0.35)]\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/** An engraved label plate screwed to the desk: white letters cut through black. */\nfunction DeskLegend({ className, ...props }: React.ComponentProps<\"p\">) {\n  return (\n    <Legend\n      className={cn(\n        \"inline-block self-start rounded-[3px] bg-[#1E2427] px-3 py-1.5 shadow-(--bevel-depth-raised)\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/* ------------------------------------------------------------------ app */\n\nexport function Shipyard() {\n  // Deploy queue\n  const [serving, setServing] = React.useState(FIRST_SERVING)\n  const [ticket, setTicket] = React.useState<number | null>(null)\n  const yourTurn = ticket !== null && serving >= ticket\n\n  // Pipeline\n  const [at, setAt] = React.useState<Record<string, number>>(() =>\n    Object.fromEntries(services.map((s) => [s.id, 0]))\n  )\n  const [canaryFailing, setCanaryFailing] = React.useState(false)\n  const [failedOnce, setFailedOnce] = React.useState(false)\n  const atCanary = services.every((s) => at[s.id]! >= CANARY)\n\n  // Freeze\n  const [locks, setLocks] = React.useState(startLocks)\n  const [cleared, setCleared] = React.useState(false)\n  const frozen = locks.length > 0 || !cleared\n\n  // Promote and rollout\n  const [promoting, setPromoting] = React.useState(false)\n  const [rollout, setRollout] = React.useState(() => regions.map(() => 0))\n  const done = rollout.every((r) => r === 2)\n  const started = rollout.some((r) => r > 0)\n  const [blockedNote, setBlockedNote] = React.useState<string | null>(null)\n\n  // The latest event, shown on the strip under the board.\n  const [news, setNews] = React.useState(FIRST_NEWS)\n  const note = React.useCallback((text: string) => setNews(text), [])\n\n  /* The queue moves while you're waiting in it. */\n  React.useEffect(() => {\n    if (ticket === null || serving >= ticket) return\n    const timer = setTimeout(() => {\n      const next = serving + 1\n      setServing(next)\n      if (next === ticket)\n        note(`Ticket ${ticket} called: ${RELEASE} starts building.`)\n      else\n        note(`Now deploying ${queueAhead[next]?.release ?? `ticket ${next}`}.`)\n    }, 3000)\n    return () => clearTimeout(timer)\n  }, [serving, ticket, note])\n\n  /* On your turn, services work their way to canary, one step at a time. */\n  React.useEffect(() => {\n    if (!yourTurn || atCanary || canaryFailing) return\n    const timer = setTimeout(() => {\n      const open = services.filter((s) => at[s.id]! < CANARY)\n      const pick = open[Math.floor(Math.random() * open.length)]!\n      const stage = at[pick.id]! + 1\n      setAt((all) => ({ ...all, [pick.id]: stage }))\n      if (stage === CANARY && pick.id === FLAKY && !failedOnce) {\n        setCanaryFailing(true)\n        setFailedOnce(true)\n        note(`${pick.id} canary: error rate 4.1% against a 1% budget.`)\n      } else if (stage === CANARY) {\n        note(`${pick.id} canary healthy.`)\n      }\n    }, 1500)\n    return () => clearTimeout(timer)\n  }, [yourTurn, atCanary, canaryFailing, at, failedOnce, note])\n\n  /* Other people's locks come off as their work wraps up. Yours is yours to remove. */\n  React.useEffect(() => {\n    if (!yourTurn) return\n    const others = locks.filter((l) => l.id !== \"you\")\n    if (!others.length) return\n    const timer = setTimeout(() => {\n      const lock = others[0]!\n      setLocks((all) => all.filter((l) => l.id !== lock.id))\n      note(`${lock.owner} removed their lock.`)\n    }, 7000)\n    return () => clearTimeout(timer)\n  }, [yourTurn, locks, note])\n\n  /* Promoted: regions go one by one, QUEUED, ROLLOUT, LIVE. */\n  React.useEffect(() => {\n    if (!promoting || done) return\n    const timer = setTimeout(() => {\n      const i = rollout.findIndex((r) => r < 2)\n      const next = rollout[i]! + 1\n      setRollout((all) => all.map((r, j) => (j === i ? next : r)))\n      note(\n        `${regions[i]}: ${next === 1 ? \"rolling out\" : `live on ${TO.toLowerCase()}`}.`\n      )\n      if (next === 2 && i === regions.length - 1) {\n        setAt(Object.fromEntries(services.map((s) => [s.id, LIVE])))\n        note(`${RELEASE} is live in every region.`)\n      }\n    }, 2200)\n    return () => clearTimeout(timer)\n  }, [promoting, done, rollout, note])\n\n  /* Once everything is live, your deploy leaves the queue. */\n  React.useEffect(() => {\n    if (!done || ticket === null || serving > ticket) return\n    const timer = setTimeout(() => setServing(ticket + 1), 2500)\n    return () => clearTimeout(timer)\n  }, [done, ticket, serving])\n\n  const blocker = done\n    ? \"Already live in every region.\"\n    : ticket === null\n      ? \"Take a number in the deploy queue first.\"\n      : !yourTurn\n        ? `Waiting in the deploy queue: ${ticket - serving} ahead of you.`\n        : canaryFailing\n          ? `${FLAKY} canary is failing. Roll it back first.`\n          : !atCanary\n            ? \"Services are still building and testing.\"\n            : locks.length\n              ? `Release freeze: locked by ${locks.map((l) => l.owner).join(\", \")}.`\n              : !cleared\n                ? \"All locks are off. Lift the freeze to promote.\"\n                : null\n\n  /** A refused flip is called out until the reason changes. */\n  const refused = blockedNote !== null && blockedNote === blocker\n\n  const onPromote = (next: boolean) => {\n    if (next && blocker) {\n      setBlockedNote(blocker)\n      note(`Promote blocked: ${blocker}`)\n      return\n    }\n    if (next === promoting) return\n    setPromoting(next)\n    if (done) return\n    if (next) demoMilestone(\"shipyard\", \"promote\")\n    note(\n      next\n        ? `Promoted ${RELEASE} to production.`\n        : \"Cover closed: rollout paused.\"\n    )\n  }\n\n  const rollBack = () => {\n    setCanaryFailing(false)\n    setAt((all) => ({ ...all, [FLAKY]: CANARY - 1 }))\n    note(`${FLAKY} canary rolled back; retrying with the fix.`)\n  }\n\n  const reset = () => {\n    setServing(FIRST_SERVING)\n    setTicket(null)\n    setAt(Object.fromEntries(services.map((s) => [s.id, 0])))\n    setCanaryFailing(false)\n    setFailedOnce(false)\n    setLocks(startLocks)\n    setCleared(false)\n    setPromoting(false)\n    setRollout(regions.map(() => 0))\n    setBlockedNote(null)\n    setNews(\"Board reset.\")\n  }\n\n  const releaseState = done\n    ? \"Live\"\n    : promoting\n      ? \"Rolling out\"\n      : started\n        ? \"Paused\"\n        : yourTurn\n          ? atCanary && !canaryFailing\n            ? \"In canary\"\n            : \"Building\"\n          : ticket !== null\n            ? \"In queue\"\n            : \"Not queued\"\n\n  const regionLabel = (i: number) => {\n    const r = rollout[i]!\n    if (r === 0 && started && !promoting) return \"PAUSED\"\n    return regionStatus[r]!\n  }\n\n  const promoteLine = refused\n    ? `Blocked. ${blocker}`\n    : done\n      ? \"Shipped to every region. Close the cover when you're done.\"\n      : blocker\n        ? `Not ready. ${blocker}`\n        : promoting\n          ? \"Rolling out region by region. Close the cover to pause.\"\n          : started\n            ? \"Paused. Lift the cover and flip to resume.\"\n            : \"Ready. Lift the cover, then flip the switch.\"\n\n  return (\n    <div\n      className={cn(\n        signFace.variable,\n        \"min-h-svh overflow-x-clip bg-[#3F4F48] font-[family-name:var(--font-sign)] text-[#EEF2EC]\",\n        // The hall is lit from above; the board catches most of it.\n        \"bg-[radial-gradient(ellipse_75%_45%_at_50%_0%,rgb(255_255_255/0.11),transparent_72%)]\",\n        \"[--foreground:#EEF2EC] [--muted-foreground:#B5C2BB] [--legend:#E8ECEA]\"\n      )}\n    >\n      {/* ------------------------------------------------ the wall */}\n      <main className=\"mx-auto max-w-[1360px] px-4 sm:px-8\">\n        <header className=\"flex flex-wrap items-center gap-x-6 gap-y-3 pt-7 pb-8 sm:pt-9\">\n          {/* An enamel station sign. */}\n          <p className=\"rounded-[6px] bg-[#1D3B5C] px-4 py-2 text-[22px] leading-none font-extrabold text-[#F4F6F2] shadow-(--bevel-depth-raised) ring-2 ring-[#F4F6F2]/85 ring-inset\">\n            Shipyard\n          </p>\n          <h1 className=\"min-w-0 text-[24px] leading-tight font-semibold text-[#EEF2EC] sm:text-[28px]\">\n            {RELEASE} to 5 regions\n          </h1>\n          <p className=\"flex items-center gap-2.5 text-[20px] font-semibold text-[#B5C2BB] sm:ml-auto\">\n            <span\n              aria-hidden\n              className={cn(\n                \"size-2.5 rounded-full\",\n                done || promoting\n                  ? \"bg-[#7FE3A4] shadow-[0_0_8px_rgb(127_227_164/0.7)]\"\n                  : canaryFailing\n                    ? \"bg-[#FF7A6B] shadow-[0_0_8px_rgb(255_122_107/0.7)]\"\n                    : \"bg-[#E8C46A] shadow-[0_0_8px_rgb(232_196_106/0.6)]\"\n              )}\n            />\n            {releaseState}\n          </p>\n        </header>\n\n        {/* The departures board: the hero, centred on the wall. */}\n        <section\n          aria-labelledby=\"shipyard-board\"\n          className=\"flex flex-col items-center gap-4\"\n        >\n          <WallSign\n            id=\"shipyard-board\"\n            className=\"text-[26px] sm:text-[32px]\"\n          >\n            Departures\n          </WallSign>\n          <div className=\"relative max-w-full\">\n            {/* Wall brackets holding the housing. */}\n            {[\"top-[18%]\", \"bottom-[18%]\"].map((y) => (\n              <React.Fragment key={y}>\n                <span\n                  aria-hidden\n                  className={cn(\n                    \"bevel-metal absolute -left-7 hidden h-12 w-9 rounded-l-[4px] shadow-(--bevel-depth-raised) [--bevel-material:#6F787D] lg:block\",\n                    y\n                  )}\n                >\n                  <Screw className=\"top-1/2 left-2 -translate-y-1/2\" angle={40} />\n                </span>\n                <span\n                  aria-hidden\n                  className={cn(\n                    \"bevel-metal absolute -right-7 hidden h-12 w-9 rounded-r-[4px] shadow-(--bevel-depth-raised) [--bevel-material:#6F787D] lg:block\",\n                    y\n                  )}\n                >\n                  <Screw className=\"top-1/2 right-2 -translate-y-1/2\" angle={110} />\n                </span>\n              </React.Fragment>\n            ))}\n            <div className=\"relative text-[15px] sm:text-[24px] md:text-[30px] lg:text-[38px] xl:text-[44px]\">\n              <SplitFlap\n                aria-label=\"Region rollout board\"\n                className=\"p-[0.4em] pt-[0.3em]\"\n              >\n                {/* Column heads, printed on the housing. */}\n                <li\n                  aria-hidden\n                  className=\"flex gap-3 pb-[0.1em] text-[#C9CFD3]\"\n                >\n                  {columns.map((c) => (\n                    <span\n                      key={c.label}\n                      className={cn(\"shrink-0\", c.hideOnPhone && \"max-sm:hidden\")}\n                      style={{\n                        width: `calc(${c.length} * (var(--split-flap-cell-width) + 1px) - 1px)`,\n                      }}\n                    >\n                      <span className=\"block font-[family-name:var(--font-sign)] text-[max(0.36em,12px)] font-semibold\">\n                        {c.label}\n                      </span>\n                    </span>\n                  ))}\n                </li>\n                {regions.map((r, i) => (\n                  <SplitFlapRow key={r} name={r}>\n                    <SplitFlapText value={r} length={8} />\n                    {/* On a phone the board drops the version column to keep status in view. */}\n                    <SplitFlapText\n                      value={rollout[i] === 2 ? TO : FROM}\n                      length={5}\n                      className=\"max-sm:hidden\"\n                    />\n                    <SplitFlapText\n                      value={regionLabel(i)}\n                      length={7}\n                      tone=\"amber\"\n                    />\n                  </SplitFlapRow>\n                ))}\n              </SplitFlap>\n            </div>\n            {/* The news strip under the board: the latest thing that happened. */}\n            <StatusStrip className=\"mt-3\">{news}</StatusStrip>\n          </div>\n        </section>\n\n        {/* Below the board: the Kardex and the alarm panel, hung on the wall. */}\n        <div className=\"mt-12 grid gap-10 pb-12 lg:grid-cols-[3fr_2fr] lg:gap-12 [&>*]:min-w-0\">\n          <section\n            aria-labelledby=\"shipyard-pipeline\"\n            className=\"flex flex-col gap-4\"\n          >\n            <WallSign id=\"shipyard-pipeline\">Pipeline</WallSign>\n            <VisibleFile\n              aria-label=\"Services by stage\"\n              scale={stages}\n              className=\"max-sm:grid-cols-[7.5rem_minmax(0,1fr)] max-sm:px-2 [&_[data-slot=visible-file-row]_span]:text-[15px]\"\n            >\n              {services.map((s) => {\n                const failing = canaryFailing && s.id === FLAKY\n                return (\n                  <VisibleFileRow key={s.id} title={s.id} detail={s.owner}>\n                    <VisibleFileSignal\n                      value={at[s.id]!}\n                      label={failing ? \"Failing at\" : \"Stage\"}\n                      tone={\n                        failing\n                          ? \"red\"\n                          : at[s.id] === LIVE\n                            ? \"green\"\n                            : at[s.id] === CANARY\n                              ? \"amber\"\n                              : \"blue\"\n                      }\n                    />\n                  </VisibleFileRow>\n                )\n              })}\n            </VisibleFile>\n          </section>\n\n          <section\n            aria-labelledby=\"shipyard-alarms\"\n            className=\"flex flex-col gap-4\"\n          >\n            <WallSign id=\"shipyard-alarms\">Alarms</WallSign>\n            <Annunciator aria-label=\"Release alarms\" className=\"max-w-none\">\n              <AnnunciatorPanel className=\"grid-cols-2 sm:grid-cols-3\">\n                <AnnunciatorTile\n                  id=\"freeze\"\n                  tone=\"amber\"\n                  active={frozen && !done}\n                >\n                  Freeze active\n                </AnnunciatorTile>\n                <AnnunciatorTile id=\"canary\" tone=\"red\" active={canaryFailing}>\n                  Canary failing\n                </AnnunciatorTile>\n                <AnnunciatorTile\n                  id=\"errors\"\n                  tone=\"amber\"\n                  active={canaryFailing}\n                >\n                  Error rate high\n                </AnnunciatorTile>\n                <AnnunciatorTile\n                  id=\"turn\"\n                  tone=\"white\"\n                  active={yourTurn && !done}\n                >\n                  Your turn\n                </AnnunciatorTile>\n                <AnnunciatorTile\n                  id=\"rolling\"\n                  tone=\"green\"\n                  active={promoting && !done}\n                >\n                  Rolling out\n                </AnnunciatorTile>\n                <AnnunciatorTile id=\"live\" tone=\"green\" active={done}>\n                  All regions live\n                </AnnunciatorTile>\n              </AnnunciatorPanel>\n              <AnnunciatorAcknowledge />\n            </Annunciator>\n          </section>\n        </div>\n      </main>\n\n      {/* ------------------------------------------------ the desk ledge */}\n      <div className=\"mx-auto max-w-[1440px] sm:px-4\">\n        <div\n          className={cn(\n            \"relative text-[#15191B] [--foreground:#15191B] [--muted-foreground:#283034] [--legend:#E8ECEA]\"\n          )}\n        >\n          {/* The raised front lip, catching the light. */}\n          <span\n            aria-hidden\n            className=\"bevel-metal absolute inset-x-0 top-0 z-10 h-3 rounded-t-[10px] shadow-(--bevel-depth-raised) [--bevel-material:#A9B1B5] sm:rounded-t-[14px]\"\n          />\n          <div className=\"bevel-metal relative rounded-t-[10px] px-4 pt-10 pb-10 shadow-(--bevel-depth-object) [--bevel-material:#8E979C] [--bevel-material-edge:#5C6468] sm:rounded-t-[14px] sm:px-10 lg:px-12\">\n            <Screws inset=\"4\" />\n            <div className=\"grid gap-y-10 lg:grid-cols-[1fr_1.35fr_1fr] [&>*]:min-w-0\">\n              {/* Take a number. */}\n              <section\n                aria-labelledby=\"shipyard-queue\"\n                className=\"flex flex-col gap-5 lg:pr-10\"\n              >\n                <DeskLegend id=\"shipyard-queue\">Deploy queue</DeskLegend>\n                <TakeANumber\n                  aria-label=\"Deploy queue\"\n                  serving={serving}\n                  ticket={ticket}\n                  className=\"max-w-none\"\n                >\n                  <TakeANumberSign />\n                  <TakeANumberDispenser\n                    onClick={() => {\n                      setTicket(FIRST_FREE)\n                      note(`You took ticket ${FIRST_FREE} for ${RELEASE}.`)\n                    }}\n                  />\n                  <TakeANumberStatus className=\"text-[16px] text-[#283034]\" />\n                </TakeANumber>\n              </section>\n\n              {/* The freeze: a hasp bolted to the desk front. */}\n              <section\n                aria-labelledby=\"shipyard-freeze\"\n                className=\"flex flex-col gap-5 border-[#5C6468]/60 pt-10 max-lg:border-t lg:border-x lg:px-10 lg:pt-0\"\n              >\n                <DeskLegend id=\"shipyard-freeze\">Freeze</DeskLegend>\n                <Lockout\n                  aria-label=\"Release freeze\"\n                  className=\"max-w-none [&_[role=status]]:text-[15px] [&_[role=status]]:text-[#283034]\"\n                >\n                  <div className=\"relative\">\n                    <Screw className=\"top-0.5 left-1 z-20\" angle={15} />\n                    <Screw className=\"top-0.5 right-1 z-20\" angle={95} />\n                    <LockoutHasp>\n                      {locks.map((l) => (\n                        <LockoutLock\n                          key={l.id}\n                          id={l.id}\n                          owner={l.owner}\n                          reason={l.reason}\n                          onRemove={\n                            l.id === \"you\"\n                              ? () => {\n                                  setLocks((all) =>\n                                    all.filter((x) => x.id !== \"you\")\n                                  )\n                                  note(\"You removed your lock.\")\n                                }\n                              : undefined\n                          }\n                        />\n                      ))}\n                    </LockoutHasp>\n                  </div>\n                  <LockoutAction\n                    onClick={() => {\n                      if (cleared) return\n                      setCleared(true)\n                      note(\"Freeze lifted. Promotion is open.\")\n                    }}\n                  >\n                    {cleared ? \"Freeze lifted\" : \"Lift the freeze\"}\n                  </LockoutAction>\n                </Lockout>\n              </section>\n\n              {/* Promote, and the keys beside it. */}\n              <section\n                aria-labelledby=\"shipyard-promote\"\n                className=\"flex flex-col gap-5 border-[#5C6468]/60 pt-10 max-lg:border-t lg:pt-0 lg:pl-10\"\n              >\n                <DeskLegend id=\"shipyard-promote\">Promote</DeskLegend>\n                <div className=\"flex flex-wrap items-start gap-x-6 gap-y-5\">\n                  <GuardedSwitch\n                    checked={promoting}\n                    onCheckedChange={onPromote}\n                    autoClose={false}\n                    aria-describedby=\"shipyard-promote-why\"\n                    className=\"shrink-0\"\n                  >\n                    <GuardedSwitchLabel>Promote to prod</GuardedSwitchLabel>\n                    <GuardedSwitchControl />\n                    <GuardedSwitchStatus />\n                  </GuardedSwitch>\n                  <div className=\"flex min-w-0 flex-1 basis-40 flex-col gap-4\">\n                    <p\n                      id=\"shipyard-promote-why\"\n                      className={cn(\n                        \"text-[17px] leading-snug\",\n                        refused\n                          ? \"font-semibold text-[#8E1A12]\"\n                          : \"text-[#15191B]\"\n                      )}\n                    >\n                      {promoteLine}\n                    </p>\n                    <div className=\"flex flex-col items-start gap-3\">\n                      <PanelKey\n                        tone={canaryFailing ? \"go\" : \"plain\"}\n                        className={deskKey}\n                        disabled={!canaryFailing}\n                        onClick={rollBack}\n                      >\n                        Roll back canary\n                      </PanelKey>\n                      <PanelKey className={deskKey} onClick={reset}>Start over</PanelKey>\n                    </div>\n                  </div>\n                </div>\n              </section>\n            </div>\n          </div>\n          {/* The desk's front face. */}\n          <span\n            aria-hidden\n            className=\"bevel-metal block h-5 [--bevel-material:#5C6468]\"\n          />\n        </div>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/bevel-demos/shipyard/shipyard.tsx"
    },
    {
      "path": "registry/bevel/blocks/release-hall/shared/environment.tsx",
      "content": "import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\n/**\n * Pieces of the physical environments the demos are set in. Each demo\n * mounts Bevel components on a surface; these are the surface's own parts.\n */\n\n/** A legend engraved into the surface: names the control below it. */\nexport function Legend({ className, ...props }: React.ComponentProps<\"p\">) {\n  return (\n    <p\n      className={cn(\n        \"text-[15px] leading-none font-semibold tracking-wide text-(--legend) [text-shadow:0_-1px_0_rgb(0_0_0/0.45),0_1px_0_rgb(255_255_255/0.08)]\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/** A slotted screw head, for panel corners. */\nexport function Screw({ className, angle = 30 }: { className?: string; angle?: number }) {\n  return (\n    <span\n      aria-hidden\n      className={cn(\"bevel-metal absolute size-3.5 rounded-full shadow-(--bevel-depth-raised)\", className)}\n    >\n      <span className=\"absolute inset-x-0.5 top-1/2 h-px -translate-y-1/2 bg-black/50\" style={{ rotate: `${angle}deg` }} />\n    </span>\n  )\n}\n\n/** Four screws, one in each corner of a positioned panel. */\nconst screwCorners = {\n  \"2\": [\"top-2 left-2\", \"top-2 right-2\", \"bottom-2 left-2\", \"bottom-2 right-2\"],\n  \"3\": [\"top-3 left-3\", \"top-3 right-3\", \"bottom-3 left-3\", \"bottom-3 right-3\"],\n  \"4\": [\"top-4 left-4\", \"top-4 right-4\", \"bottom-4 left-4\", \"bottom-4 right-4\"],\n} as const\n\nexport function Screws({ inset = \"3\" }: { inset?: keyof typeof screwCorners }) {\n  return (\n    <>\n      {screwCorners[inset].map((c, i) => (\n        <Screw key={c} className={c} angle={[20, 75, 130, 160][i]} />\n      ))}\n    </>\n  )\n}\n\n/** A physical key: a raised plastic button that goes down when pressed. */\nexport function PanelKey({ className, tone = \"plain\", ...props }: React.ComponentProps<\"button\"> & { tone?: \"plain\" | \"go\" }) {\n  return (\n    <button\n      type=\"button\"\n      data-tone={tone}\n      className={cn(\n        \"bevel-raised inline-flex h-11 items-center whitespace-nowrap justify-center rounded-(--bevel-radius-sm) px-5 text-[15px] font-semibold outline-none select-none\",\n        \"[--bevel-material:#5B636B] text-[#EEF1F3] data-[tone=go]:[--bevel-material:#C9A44A] data-[tone=go]:text-[#2A2208]\",\n        \"transition-[translate,box-shadow] duration-(--bevel-duration-press) active:translate-y-0.5 active:bevel-pressed\",\n        \"focus-visible:ring-3 focus-visible:ring-[#E9D28A]/60 disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/** A backlit status strip: one line of glowing text behind glass. */\nexport function StatusStrip({ className, children }: { className?: string; children: React.ReactNode }) {\n  return (\n    <div\n      className={cn(\n        \"relative overflow-hidden rounded-(--bevel-radius-sm) bg-[#0E1A17] px-4 py-3 shadow-(--bevel-depth-recessed)\",\n        className\n      )}\n    >\n      <p className=\"text-[17px] sm:truncate tracking-wide text-[#8FF0CF] [text-shadow:0_0_8px_rgb(143_240_207/0.55)]\">{children}</p>\n      <span aria-hidden className=\"bevel-glass absolute inset-0\" />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/bevel-demos/shared/environment.tsx"
    },
    {
      "path": "registry/bevel/blocks/release-hall/shared/events.ts",
      "content": "/**\n * Announces a milestone in a demo (a merge, a top-up) as a DOM event. It\n * does nothing on its own; a page that wants to count milestones listens\n * for \"bevel:demo\". The Bevel site forwards them to its analytics.\n */\nexport function demoMilestone(demo: string, action: string) {\n  if (typeof window === \"undefined\") return\n  window.dispatchEvent(new CustomEvent(\"bevel:demo\", { detail: { demo, action } }))\n}\n",
      "type": "registry:component",
      "target": "components/bevel-demos/shared/events.ts"
    },
    {
      "path": "registry/bevel/blocks/release-hall/shared/fonts.ts",
      "content": "import { Barlow_Condensed, Libre_Caslon_Text, Overpass, Source_Serif_4 } from \"next/font/google\"\n\n/** Each demo product has its own type voice, drawn from its world. */\n\n/** Relay: console legends, the condensed grotesk of control-room engraving. */\nexport const consoleFace = Barlow_Condensed({ subsets: [\"latin\"], weight: [\"500\", \"600\", \"700\"], variable: \"--font-console\" })\n\n/** Meterline: a ledger serif, for a desk where money is written down. */\nexport const ledgerFace = Libre_Caslon_Text({ subsets: [\"latin\"], weight: [\"400\", \"700\"], variable: \"--font-ledger\" })\n\n/** Shipyard: highway-sign lettering, for a board read from across a room. */\nexport const signFace = Overpass({ subsets: [\"latin\"], weight: [\"400\", \"600\", \"800\"], variable: \"--font-sign\" })\n\n/** Casefile: a document serif, for papers on a desk. */\nexport const documentFace = Source_Serif_4({ subsets: [\"latin\"], weight: [\"400\", \"600\", \"700\"], variable: \"--font-document\" })\n",
      "type": "registry:component",
      "target": "components/bevel-demos/shared/fonts.ts"
    },
    {
      "path": "registry/bevel/blocks/release-hall/page.tsx",
      "content": "import { Shipyard } from \"@/components/bevel-demos/shipyard/shipyard\"\n\nexport default function Page() {\n  return <Shipyard />\n}\n",
      "type": "registry:page",
      "target": "app/release-hall/page.tsx"
    }
  ],
  "categories": [
    "blocks"
  ],
  "type": "registry:block"
}