{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "task-board",
  "title": "Shift handoff",
  "description": "Add a task to the handoff checklist and track how much of the shift is ready.",
  "dependencies": [
    "lucide-react@1.73.0"
  ],
  "registryDependencies": [
    "https://www.cyberspec.dev/r/recipe-layout.json",
    "https://www.cyberspec.dev/r/button.json",
    "https://www.cyberspec.dev/r/checkbox.json",
    "https://www.cyberspec.dev/r/progress.json",
    "https://www.cyberspec.dev/r/text-field.json"
  ],
  "files": [
    {
      "path": "registry/cyber/recipes/task-board.tsx",
      "content": "\"use client\"\n\nimport { useRef, useState } from \"react\"\nimport { Plus } from \"lucide-react\"\nimport { Button } from \"@/registry/cyber/ui/button\"\nimport { Checkbox, CheckboxGroup } from \"@/registry/cyber/ui/checkbox\"\nimport { Progress } from \"@/registry/cyber/ui/progress\"\nimport { TextField } from \"@/registry/cyber/ui/text-field\"\nimport \"./recipe-layout.css\"\n\nconst initialTasks = [\n  { id: \"weather\", title: \"Check the coastal forecast\" },\n  { id: \"battery\", title: \"Charge the spare beacon\" },\n  { id: \"handoff\", title: \"Brief the morning shift\" },\n]\n\nexport default function TaskBoard() {\n  const [tasks, setTasks] = useState(initialTasks)\n  const [complete, setComplete] = useState<string[]>([\"weather\"])\n  const [draft, setDraft] = useState(\"\")\n  const sequence = useRef(0)\n\n  return (\n    <div className=\"sink-stack\">\n      <Progress label=\"Shift readiness\" value={complete.length} max={tasks.length} />\n      <CheckboxGroup label=\"Handoff checklist\" value={complete} onValueChange={setComplete}>\n        {tasks.map(task => <Checkbox key={task.id} label={task.title} value={task.id} />)}\n      </CheckboxGroup>\n      <form className=\"sink-stack\" onSubmit={event => {\n        event.preventDefault()\n        const title = draft.trim()\n        if (!title) return\n        const task = { id: `added-${++sequence.current}`, title }\n        setTasks(previous => [...previous, task])\n        setDraft(\"\")\n      }}>\n        <TextField label=\"New checklist item\" placeholder=\"Log a handoff task\" maxLength={72} value={draft} onValueChange={setDraft} />\n        <div className=\"sink-row\"><Button size=\"sm\" type=\"submit\" disabled={!draft.trim()}><Plus aria-hidden /> Add task</Button></div>\n      </form>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/recipes/task-board.tsx"
    }
  ],
  "categories": [
    "recipe",
    "workspace"
  ],
  "type": "registry:component"
}
