{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-operations-service-health-2",
  "type": "registry:block",
  "title": "Service health",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/operations-service-health-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/operations-service-health-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/overview.tsx:494.\nimport { ServiceStatus } from \"./runtime/registry/overtrue/service-status\";\nimport { useState } from \"react\";\nimport { FilterTabs } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const [region, setRegion] = useState(\"All regions\");\n  const services = [\n    { name: \"Workspace API\", regions: [\"Europe\", \"Asia\"], uptime: \"99.99%\" },\n    { name: \"Asset delivery\", regions: [\"Europe\", \"Asia\"], uptime: \"99.98%\" },\n    { name: \"Preview builds\", regions: [\"Europe\"], uptime: \"99.96%\" },\n    { name: \"Email delivery\", regions: [\"Europe\"], uptime: \"99.97%\" },\n  ].filter(\n    (service) => region === \"All regions\" || service.regions.includes(region),\n  );\n\n  return (\n    <>\n      <div\n        className=\"overtrue-block-content\"\n        data-workspace-page=\"operations-overview\"\n      >\n        <ServiceStatus\n          title=\"Service health\"\n          actions={\n            <FilterTabs\n              items={[\"All regions\", \"Europe\", \"Asia\"]}\n              value={region}\n              onChange={setRegion}\n            />\n          }\n          services={services.map((service, index) => ({\n            id: service.name,\n            name: service.name,\n            status: \"operational\",\n            samples: Array.from({ length: 30 }, (_, day) => ({\n              id: String(day),\n              label: `September ${day + 1}`,\n              status: (day + index) % 29 === 0 ? \"degraded\" : \"operational\",\n            })),\n            startLabel: service.regions.join(\" & \"),\n            endLabel: `${service.uptime} uptime`,\n          }))}\n        />\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/operations-service-health-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
