{
  "component": {
    "id": "service-status",
    "name": "Service status",
    "tier": "pro",
    "exampleId": "service-status",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/service-status-demo.tsx",
    "exportName": "ServiceStatusDemo",
    "sha256": "20a511ebf95a8a1a3c41815ee75ede83727a916ee872d683e80eaae4a4bed235",
    "helperImports": [],
    "directComponentImports": [
      "service-status",
      "tidal-button"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/service-status",
    "registryUrl": "https://tidalui.com/r/pro/service-status.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/service-status",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/service-status",
      "registryUrl": "https://tidalui.com/r/pro/service-status.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/tidal-button.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/tidal-button.json",
      "registryUrl": "https://tidalui.com/r/tidal-button.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/service-status.tsx",
    "exports": [
      "TidalButton",
      "TidalServiceGroup",
      "TidalServiceStatus"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/service-status.css",
      "components/ui/status-badge.css",
      "components/ui/collapsible-panel.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "https://tidalui.com/r/status-badge.json",
      "@tidal-pro/collapsible-panel"
    ],
    "additionalRegistry": [
      "https://tidalui.com/r/tidal-button.json"
    ],
    "installClosure": [
      "collapsible-panel",
      "service-status",
      "status-badge",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/service-status.css",
      "components/ui/status-badge.css",
      "components/ui/collapsible-panel.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/service-status.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/service-status-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalServiceStatus, type TidalServiceGroup } from \"./components/ui/service-status\";\n\nimport { TidalButton } from \"./components/ui/tidal-button\";\n\nimport \"./components/ui/service-status.css\";\n\nimport \"./components/ui/status-badge.css\";\n\nimport \"./components/ui/collapsible-panel.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .service-status-demo {\\n  width: 100%;\\n  max-width: 680px;\\n  min-width: 0;\\n}\\n.tidal-scope .service-status-demo-controls {\\n  display: flex;\\n  align-items: center;\\n  flex-wrap: wrap;\\n  gap: 12px;\\n  margin-top: 16px;\\n}\\n.tidal-scope .service-status-demo-controls > span {\\n  font-size: 11px;\\n  line-height: 1.5;\\n  color: var(--t-muted);\\n}\";\n\nexport function ServiceStatusDemo() {\n  const [issue, setIssue] = useState(false);\n  const groups: TidalServiceGroup[] = [\n    {\n      id: \"platform\",\n      label: \"Platform\",\n      services: [\n        {\n          id: \"api\",\n          label: \"API\",\n          status: \"operational\",\n          description: \"Requests and integrations\",\n        },\n        {\n          id: \"dashboard\",\n          label: \"Dashboard\",\n          status: issue ? \"degraded\" : \"operational\",\n          description: \"Workspace and project pages\",\n        },\n        {\n          id: \"delivery\",\n          label: \"File delivery\",\n          status: \"operational\",\n          description: \"Uploads and downloads\",\n        },\n      ],\n    },\n  ];\n  return (\n    <div className=\"service-status-demo\">\n      <TidalServiceStatus\n        title=\"Service status\"\n        description=\"Sample availability for a product workspace.\"\n        groups={groups}\n        updated={{\n          label: \"Sample update · 10:30 UTC\",\n          dateTime: \"2026-10-14T10:30:00Z\",\n        }}\n        incidents={\n          issue\n            ? [\n                {\n                  id: \"slow-pages\",\n                  title: \"Dashboard response delays\",\n                  status: \"investigating\",\n                  summary: \"Some workspace pages are loading slowly.\",\n                  details: (\n                    <p>\n                      The sample team is checking a slow database query. API\n                      requests and file delivery are unaffected.\n                    </p>\n                  ),\n                  time: {\n                    label: \"Sample incident · October 14, 2026\",\n                    dateTime: \"2026-10-14\",\n                  },\n                },\n              ]\n            : []\n        }\n        noIncidentsMessage=\"No incidents in this sample.\"\n      />\n      <div className=\"service-status-demo-controls\">\n        <TidalButton\n          variant=\"secondary\"\n          aria-pressed={issue}\n          onClick={() => setIssue(!issue)}\n        >\n          {issue ? \"Reset sample\" : \"Show incident\"}\n        </TidalButton>\n        <span>Sample data. No monitoring is connected.</span>\n      </div>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <ServiceStatusDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/service-status.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "pressed",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setIssue",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Consumer-provided label remains required where the component API requires one.",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
