"use client"; import "./components/ui/tidal.css"; import { useId, useState } from "react"; import { TidalRoadmapBoard, type TidalRoadmapInitiative } from "./components/ui/roadmap-board"; import "./components/ui/roadmap-board.css"; import "./components/ui/sheet-drawer.css"; const 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}"; const STAGES = [ { id: "planned", title: "Planned", accessibleLabel: "planned initiatives", status: "planned" as const, description: "Ideas being shaped and reviewed.", emptyMessage: "No planned initiatives in this view.", }, { id: "in-progress", title: "In progress", accessibleLabel: "initiatives in progress", status: "in-progress" as const, description: "Work currently underway.", emptyMessage: "No initiatives are in progress.", }, { id: "shipped", title: "Shipped", accessibleLabel: "shipped initiatives", status: "shipped" as const, description: "Recently completed sample work.", emptyMessage: "No shipped initiatives in this view.", }, ] as const; const BASE_INITIATIVES: readonly TidalRoadmapInitiative[] = [ { id: "saved-views", stageId: "planned", title: "Saved project views", accessibleLabel: "Saved project views", summary: "Keep a preferred filter and layout ready for the next visit.", timeframe: "Exploring", tags: ["Projects", "Views"], voteLabel: "18", voteAccessibleLabel: "Vote for Saved project views", detail: { description: "A sample planned initiative.", content: ( <>
The sample scope includes named views, visible filter summaries and a clear reset path.
No delivery date is implied by this preview.
> ), }, }, { id: "review-digest", stageId: "planned", title: "Review digest", accessibleLabel: "Review digest", summary: "Collect recent review decisions into one readable update.", timeframe: "Under review", tags: ["Reviews"], voteLabel: "9", voteAccessibleLabel: "Vote for Review digest", detail: { description: "A sample planned initiative.", content:The local preview shows a concise decision summary.
, }, }, { id: "command-history", stageId: "in-progress", title: "Command history", accessibleLabel: "Command history", summary: "Revisit recent workspace commands with their visible outcomes.", timeframe: "In progress", tags: ["Workspace", "History"], voteLabel: "31", voteAccessibleLabel: "Vote for Command history", detail: { description: "A sample initiative currently in progress.", content: (The sample detail includes the command label, completion state and a route back to its workspace context.
), }, destination: { href: "#roadmap-release-notes", label: "Release note", accessibleLabel: "Read the Command history sample release note", }, }, { id: "compact-navigation", stageId: "shipped", title: "Compact navigation", accessibleLabel: "Compact navigation", summary: "Keep primary destinations clear in narrow workspace layouts.", timeframe: "Sample shipped state", tags: ["Navigation"], voteLabel: "41", voteAccessibleLabel: "Vote for Compact navigation", detail: { description: "A completed item in this fictional roadmap.", content: (The sample outcome is a smaller, readable navigation rail.
), }, }, ]; export function RoadmapBoardDemo({ theme = "light", }: { theme?: "light" | "dark"; }) { const generatedId = useId().replace(/:/g, ""); const releaseNoteId = `${generatedId}-roadmap-release-notes`; const [filter, setFilter] = useState("all"); const [votedIds, setVotedIds] = useState{message}
Fictional sample roadmap. Filters and votes stay in this preview; no release promise or saved change is made.