{
  "component": {
    "id": "approval-queue",
    "name": "Approval queue",
    "tier": "pro",
    "exampleId": "approval-queue",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/approval-queue-demo.tsx",
    "exportName": "ApprovalQueueDemo",
    "sha256": "15f8f4cc49095667d7245c22e1ed32571fe2d5da6b993a3c6b9cfd6c60bdf8fd",
    "helperImports": [],
    "directComponentImports": [
      "approval-queue",
      "approval-request"
    ],
    "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/approval-queue",
    "registryUrl": "https://tidalui.com/r/pro/approval-queue.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/approval-queue",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/approval-queue",
      "registryUrl": "https://tidalui.com/r/pro/approval-queue.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/approval-queue.tsx",
    "exports": [
      "TidalApprovalQueue",
      "TidalApprovalState",
      "TidalQueueFilter",
      "TidalQueuedApproval"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/approval-queue.css",
      "components/ui/approval-request.css",
      "components/ui/status-badge.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/approval-request",
      "https://tidalui.com/r/status-badge.json"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "approval-queue",
      "approval-request",
      "status-badge",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/approval-queue.css",
      "components/ui/approval-request.css",
      "components/ui/status-badge.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/approval-queue.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/approval-queue-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalApprovalQueue, type TidalQueueFilter, type TidalQueuedApproval } from \"./components/ui/approval-queue\";\n\nimport type { TidalApprovalState } from \"./components/ui/approval-request\";\n\nimport \"./components/ui/approval-queue.css\";\n\nimport \"./components/ui/approval-request.css\";\n\nimport \"./components/ui/status-badge.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .approval-queue-demo {\\n  width: 100%;\\n  max-width: 1080px;\\n  min-width: 0;\\n}\\n.tidal-scope .approval-queue-demo > p {\\n  font-size: 11px;\\n  line-height: 1.6;\\n  text-align: center;\\n  color: var(--t-muted);\\n  margin: 12px 8px 0;\\n}\";\n\nconst originals: TidalQueuedApproval[] = [\n  {\n    id: \"access\",\n    title: \"Temporary workspace access\",\n    description: \"A contractor needs read-only access for the design review.\",\n    requester: \"Mira Chen\",\n    submitted: \"12 minutes ago\",\n    state: \"pending\",\n    details: [\n      { id: \"scope\", label: \"Access\", value: \"Read-only\" },\n      { id: \"expires\", label: \"Expires\", value: \"October 22\" },\n      { id: \"workspace\", label: \"Workspace\", value: \"Design team\" },\n    ],\n  },\n  {\n    id: \"export\",\n    title: \"Customer data export\",\n    description: \"A sample export request for an internal account review.\",\n    requester: \"Jon Bell\",\n    submitted: \"38 minutes ago\",\n    state: \"pending\",\n    details: [\n      { id: \"format\", label: \"Format\", value: \"CSV\" },\n      { id: \"records\", label: \"Records\", value: \"128 sample rows\" },\n    ],\n  },\n  {\n    id: \"publish\",\n    title: \"Publish release notes\",\n    description: \"Release-note text approved for the next sample version.\",\n    requester: \"Sam Rivera\",\n    submitted: \"1 hour ago\",\n    state: \"approved\",\n    details: [{ id: \"version\", label: \"Version\", value: \"v1.8.0\" }],\n  },\n];\n\nexport function ApprovalQueueDemo() {\n  const [states, setStates] = useState<Record<string, TidalApprovalState>>({}),\n    [selected, setSelected] = useState<string | null>(\"access\"),\n    [filter, setFilter] = useState<TidalQueueFilter>(\"all\"),\n    [status, setStatus] = useState(\"Select a request to review.\");\n  return (\n    <div className=\"approval-queue-demo\">\n      <TidalApprovalQueue\n        title=\"Review requests\"\n        description=\"Workspace requests awaiting a decision.\"\n        requests={originals.map((item) => ({\n          ...item,\n          state: states[item.id] ?? item.state,\n        }))}\n        selectedId={selected}\n        onSelectionChange={setSelected}\n        filter={filter}\n        onFilterChange={setFilter}\n        onDecision={(id, decision) => {\n          setStates((current) => ({\n            ...current,\n            [id]: decision === \"approve\" ? \"approved\" : \"rejected\",\n          }));\n          setStatus(\n            `${originals.find((item) => item.id === id)?.title} ${decision === \"approve\" ? \"approved\" : \"rejected\"} in this sample.`,\n          );\n        }}\n      />\n      <p role=\"status\">{status}</p>\n      <p>\n        Local sample requests. No access, export or publication is executed.\n      </p>\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      <ApprovalQueueDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/approval-queue.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [
    {
      "name": "onDecision",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onFilterChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onSelectionChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "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": []
}
