{
  "component": {
    "id": "roadmap-board",
    "name": "Roadmap board",
    "tier": "pro",
    "exampleId": "roadmap-board",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/roadmap-board-demo.tsx",
    "exportName": "RoadmapBoardDemo",
    "sha256": "b96be3a232260d31bc258bbcdb520e38ccfcfb940abd2bad15d568f6cc4984e9",
    "helperImports": [],
    "directComponentImports": [
      "roadmap-board"
    ],
    "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/roadmap-board",
    "registryUrl": "https://tidalui.com/r/pro/roadmap-board.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/roadmap-board",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/roadmap-board",
      "registryUrl": "https://tidalui.com/r/pro/roadmap-board.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/roadmap-board.tsx",
    "exports": [
      "TidalRoadmapBoard",
      "TidalRoadmapInitiative"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/roadmap-board.css",
      "components/ui/sheet-drawer.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [
      "@tidal-pro/sheet-drawer"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "roadmap-board",
      "sheet-drawer"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/roadmap-board.css",
      "components/ui/sheet-drawer.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/roadmap-board.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/roadmap-board-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { TidalRoadmapBoard, type TidalRoadmapInitiative } from \"./components/ui/roadmap-board\";\n\nimport \"./components/ui/roadmap-board.css\";\n\nimport \"./components/ui/sheet-drawer.css\";\n\n\n\nconst tidalExampleStyles = \".roadmap-board-demo {\\n  width: min(100%, 1040px);\\n  min-width: 0;\\n}\\n\\n.roadmap-board-demo-status,\\n.roadmap-board-demo-note,\\n.roadmap-board-demo aside {\\n  margin: 12px 0 0;\\n  color: var(--t-muted);\\n  font:\\n    600 11px/1.5 Inter,\\n    ui-sans-serif,\\n    system-ui,\\n    sans-serif;\\n  overflow-wrap: anywhere;\\n}\\n\\n.roadmap-board-demo aside {\\n  padding: 12px 14px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n}\\n\\n.roadmap-board-demo aside:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 2px;\\n}\\n\\n.roadmap-board-demo aside p {\\n  margin: 4px 0 0;\\n  color: var(--t-muted);\\n}\";\n\nconst STAGES = [\n  {\n    id: \"planned\",\n    title: \"Planned\",\n    accessibleLabel: \"planned initiatives\",\n    status: \"planned\" as const,\n    description: \"Ideas being shaped and reviewed.\",\n    emptyMessage: \"No planned initiatives in this view.\",\n  },\n  {\n    id: \"in-progress\",\n    title: \"In progress\",\n    accessibleLabel: \"initiatives in progress\",\n    status: \"in-progress\" as const,\n    description: \"Work currently underway.\",\n    emptyMessage: \"No initiatives are in progress.\",\n  },\n  {\n    id: \"shipped\",\n    title: \"Shipped\",\n    accessibleLabel: \"shipped initiatives\",\n    status: \"shipped\" as const,\n    description: \"Recently completed sample work.\",\n    emptyMessage: \"No shipped initiatives in this view.\",\n  },\n] as const;\n\nconst BASE_INITIATIVES: readonly TidalRoadmapInitiative[] = [\n  {\n    id: \"saved-views\",\n    stageId: \"planned\",\n    title: \"Saved project views\",\n    accessibleLabel: \"Saved project views\",\n    summary: \"Keep a preferred filter and layout ready for the next visit.\",\n    timeframe: \"Exploring\",\n    tags: [\"Projects\", \"Views\"],\n    voteLabel: \"18\",\n    voteAccessibleLabel: \"Vote for Saved project views\",\n    detail: {\n      description: \"A sample planned initiative.\",\n      content: (\n        <>\n          <p>\n            The sample scope includes named views, visible filter summaries and\n            a clear reset path.\n          </p>\n          <p>No delivery date is implied by this preview.</p>\n        </>\n      ),\n    },\n  },\n  {\n    id: \"review-digest\",\n    stageId: \"planned\",\n    title: \"Review digest\",\n    accessibleLabel: \"Review digest\",\n    summary: \"Collect recent review decisions into one readable update.\",\n    timeframe: \"Under review\",\n    tags: [\"Reviews\"],\n    voteLabel: \"9\",\n    voteAccessibleLabel: \"Vote for Review digest\",\n    detail: {\n      description: \"A sample planned initiative.\",\n      content: <p>The local preview shows a concise decision summary.</p>,\n    },\n  },\n  {\n    id: \"command-history\",\n    stageId: \"in-progress\",\n    title: \"Command history\",\n    accessibleLabel: \"Command history\",\n    summary: \"Revisit recent workspace commands with their visible outcomes.\",\n    timeframe: \"In progress\",\n    tags: [\"Workspace\", \"History\"],\n    voteLabel: \"31\",\n    voteAccessibleLabel: \"Vote for Command history\",\n    detail: {\n      description: \"A sample initiative currently in progress.\",\n      content: (\n        <p>\n          The sample detail includes the command label, completion state and a\n          route back to its workspace context.\n        </p>\n      ),\n    },\n    destination: {\n      href: \"#roadmap-release-notes\",\n      label: \"Release note\",\n      accessibleLabel: \"Read the Command history sample release note\",\n    },\n  },\n  {\n    id: \"compact-navigation\",\n    stageId: \"shipped\",\n    title: \"Compact navigation\",\n    accessibleLabel: \"Compact navigation\",\n    summary: \"Keep primary destinations clear in narrow workspace layouts.\",\n    timeframe: \"Sample shipped state\",\n    tags: [\"Navigation\"],\n    voteLabel: \"41\",\n    voteAccessibleLabel: \"Vote for Compact navigation\",\n    detail: {\n      description: \"A completed item in this fictional roadmap.\",\n      content: (\n        <p>The sample outcome is a smaller, readable navigation rail.</p>\n      ),\n    },\n  },\n];\n\nexport function RoadmapBoardDemo({\n  theme = \"light\",\n}: {\n  theme?: \"light\" | \"dark\";\n}) {\n  const generatedId = useId().replace(/:/g, \"\");\n  const releaseNoteId = `${generatedId}-roadmap-release-notes`;\n  const [filter, setFilter] = useState(\"all\");\n  const [votedIds, setVotedIds] = useState<readonly string[]>([\n    \"compact-navigation\",\n  ]);\n  const [detailId, setDetailId] = useState<string | null>(null);\n  const [message, setMessage] = useState(\"Showing every sample stage.\");\n  const initiatives = BASE_INITIATIVES.map((initiative) => ({\n    ...initiative,\n    voted: votedIds.includes(initiative.id),\n    voteLabel: String(\n      Number(initiative.voteLabel) + (votedIds.includes(initiative.id) ? 1 : 0),\n    ),\n    voteAccessibleLabel: votedIds.includes(initiative.id)\n      ? `Remove vote from ${initiative.accessibleLabel}`\n      : `Vote for ${initiative.accessibleLabel}`,\n    destination:\n      initiative.id === \"command-history\"\n        ? { ...initiative.destination!, href: `#${releaseNoteId}` }\n        : initiative.destination,\n  }));\n  const filters = [\n    {\n      id: \"all\",\n      label: \"All\",\n      accessibleLabel: \"Show all roadmap initiatives\",\n      stageIds: STAGES.map((stage) => stage.id),\n      count: initiatives.length,\n    },\n    ...STAGES.map((stage) => ({\n      id: stage.id,\n      label: stage.title,\n      accessibleLabel: `Show ${stage.accessibleLabel}`,\n      stageIds: [stage.id],\n      count: initiatives.filter((item) => item.stageId === stage.id).length,\n    })),\n  ];\n\n  return (\n    <div className=\"roadmap-board-demo\">\n      <TidalRoadmapBoard\n        title=\"Product roadmap\"\n        description=\"A fictional view of planned, active and completed product work.\"\n        stages={STAGES}\n        initiatives={initiatives}\n        filters={filters}\n        filterValue={filter}\n        onFilterChange={(next) => {\n          setFilter(next);\n          setMessage(\n            next === \"all\"\n              ? \"Showing every sample stage.\"\n              : `Showing the ${STAGES.find((stage) => stage.id === next)?.title ?? next} sample stage.`,\n          );\n        }}\n        onVoteRequest={(initiative, voted) => {\n          setVotedIds((current) =>\n            voted\n              ? [...current, initiative.id]\n              : current.filter((id) => id !== initiative.id),\n          );\n          setMessage(\n            voted\n              ? `Local vote added to ${initiative.accessibleLabel}.`\n              : `Local vote removed from ${initiative.accessibleLabel}.`,\n          );\n        }}\n        detailInitiativeId={detailId}\n        onDetailOpenChange={(nextId) => setDetailId(nextId)}\n        detailSheetProps={{\n          placement: \"right\",\n          mobilePlacement: \"bottom\",\n        }}\n        theme={theme}\n      />\n      <p className=\"roadmap-board-demo-status\" role=\"status\">\n        {message}\n      </p>\n      <aside id={releaseNoteId} tabIndex={-1}>\n        <strong>Command history sample note</strong>\n        <p>Recent commands now show a clear local outcome.</p>\n      </aside>\n      <p className=\"roadmap-board-demo-note\">\n        Fictional sample roadmap. Filters and votes stay in this preview; no\n        release promise or saved change is made.\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      <RoadmapBoardDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/roadmap-board.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "filterValue",
      "type": "inferred-from-existing-demo",
      "initial": "\"all\"",
      "setter": "setFilter",
      "proposalCanBeRejected": false
    },
    {
      "prop": "detailInitiativeId",
      "type": "inferred-from-existing-demo",
      "initial": "null",
      "setter": "setDetailId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onDetailOpenChange",
      "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": "onVoteRequest",
      "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": 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": "Verify focus returns to the invoking control after dismissal.",
    "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": []
}
