{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "task-card-fixtures",
  "title": "Task Card — fixtures",
  "author": "ilinxa",
  "description": "Task Card plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/task-card"
  ],
  "files": [
    {
      "path": "src/registry/components/data/task-card/dummy-data.ts",
      "content": "/**\n * Demo fixtures — four items per plan §4:\n *   1. Fresh task (early ramp) — green border\n *   2. Urgent task (late ramp) — orange-red border\n *   3. Overdue task (past expireAt) — pinned full red\n *   4. Nested family (3 levels) — exercises recursion + mixed-color\n */\n\nimport type {\n  TaskItem,\n  TaskLabelOption,\n  TaskPriorityOption,\n  TaskStatusOption,\n} from \"./types\";\n\nconst DAY = 24 * 60 * 60 * 1000;\nconst HOUR = 60 * 60 * 1000;\n\n// Anchor \"now\" to a stable timestamp so the demo is deterministic across\n// reloads. Consumers will pass their own (or omit) for real-time behavior.\nconst NOW = new Date(\"2026-05-20T12:00:00Z\");\n\nexport const DEMO_NOW = NOW;\n\nexport const DEMO_STATUS_OPTIONS: TaskStatusOption[] = [\n  { value: \"todo\", label: \"To do\", variant: \"outline\" },\n  { value: \"in-progress\", label: \"In progress\", variant: \"default\" },\n  { value: \"blocked\", label: \"Blocked\", variant: \"destructive\" },\n  { value: \"done\", label: \"Done\", variant: \"secondary\" },\n];\n\n/**\n * v0.3 — same statuses with `tone` so done/blocked become terminal (gray\n * border + dimmed overlay + auto-collapse). Kept separate from\n * DEMO_STATUS_OPTIONS so the other demos keep their time-driven borders.\n */\nexport const DEMO_STATUS_OPTIONS_TONED: TaskStatusOption[] = [\n  { value: \"todo\", label: \"To do\", variant: \"outline\" },\n  { value: \"in-progress\", label: \"In progress\", variant: \"default\" },\n  { value: \"blocked\", label: \"Blocked\", variant: \"destructive\", tone: \"blocked\", icon: \"🚫\" },\n  { value: \"done\", label: \"Done\", variant: \"secondary\", tone: \"done\", icon: \"✅\" },\n];\n\n/** v0.3 — priority bucket display metadata; colors paint border + text only. */\nexport const DEMO_PRIORITY_OPTIONS: TaskPriorityOption[] = [\n  { value: \"urgent\", label: \"Urgent\", color: \"oklch(0.62 0.21 25)\" },\n  { value: \"high\", label: \"High\", color: \"oklch(0.70 0.17 60)\" },\n  { value: \"normal\", label: \"Normal\" },\n];\n\n/** v0.3 — label/tag display metadata. */\nexport const DEMO_LABEL_OPTIONS: TaskLabelOption[] = [\n  { value: \"frontend\", label: \"Frontend\", color: \"oklch(0.65 0.16 250)\" },\n  { value: \"security\", label: \"Security\", color: \"oklch(0.62 0.21 25)\" },\n  { value: \"q3\", label: \"Q3\" },\n];\n\nexport const FRESH_TASK: TaskItem = {\n  id: \"task-fresh\",\n  name: \"Draft the OKR for Q3\",\n  description: \"Outline goals, key results, and timelines for the next quarter.\",\n  status: \"in-progress\",\n  active: true,\n  setAt: new Date(NOW.getTime() - 2 * HOUR).toISOString(),\n  expireAt: new Date(NOW.getTime() + 5 * DAY).toISOString(),\n  targetPerson: {\n    id: \"hessam\",\n    name: \"Hessam\",\n    avatar: \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=128&h=128&fit=crop&crop=faces&q=80\",\n  },\n  creatorPerson: {\n    id: \"leadership\",\n    name: \"Leadership team\",\n  },\n  links: [\n    { url: \"https://docs.example.com/okr-template\", label: \"OKR template\" },\n  ],\n};\n\nexport const URGENT_TASK: TaskItem = {\n  id: \"task-urgent\",\n  name: \"Review pull request #482\",\n  description: \"Auth middleware rewrite — flagged by legal compliance.\",\n  status: \"in-progress\",\n  active: true,\n  setAt: new Date(NOW.getTime() - 36 * HOUR).toISOString(),\n  expireAt: new Date(NOW.getTime() + 4 * HOUR).toISOString(),\n  targetPerson: {\n    id: \"hessam\",\n    name: \"Hessam\",\n    avatar: \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=128&h=128&fit=crop&crop=faces&q=80\",\n  },\n  creatorPerson: {\n    id: \"legal-bot\",\n    name: \"Legal Compliance Bot\",\n  },\n  links: [\n    { url: \"https://github.com/example/repo/pull/482\", label: \"PR #482\" },\n    { url: \"https://compliance.example.com/finding-2026-04-12\" },\n  ],\n};\n\nexport const OVERDUE_TASK: TaskItem = {\n  id: \"task-overdue\",\n  name: \"Publish Q1 retrospective\",\n  description: \"Past expireAt — engine pins the border to full red.\",\n  status: \"blocked\",\n  active: true,\n  setAt: new Date(NOW.getTime() - 14 * DAY).toISOString(),\n  expireAt: new Date(NOW.getTime() - 2 * DAY).toISOString(),\n  targetPerson: {\n    id: \"amir\",\n    name: \"Amir\",\n    avatar: \"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=128&h=128&fit=crop&crop=faces&q=80\",\n  },\n  links: [{ url: \"https://docs.example.com/q1-retro-draft\", label: \"Draft\" }],\n  images: [\n    {\n      src: \"https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=400\",\n      alt: \"Brainstorming wall\",\n      caption: \"Wall of stickies from offsite\",\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=400\",\n      alt: \"Notebook with diagrams\",\n      caption: \"Hand-drawn flow\",\n    },\n  ],\n};\n\nexport const NESTED_FAMILY: TaskItem = {\n  id: \"task-nested-root\",\n  name: \"Ship the new design system\",\n  description: \"Three-level nested example. Each child has its own dates.\",\n  status: \"in-progress\",\n  active: true,\n  setAt: new Date(NOW.getTime() - 7 * DAY).toISOString(),\n  expireAt: new Date(NOW.getTime() + 10 * DAY).toISOString(),\n  targetPerson: {\n    id: \"hessam\",\n    name: \"Hessam\",\n    avatar: \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=128&h=128&fit=crop&crop=faces&q=80\",\n  },\n  children: [\n    {\n      id: \"task-nested-1\",\n      name: \"Color tokens\",\n      status: \"done\",\n      active: true,\n      setAt: new Date(NOW.getTime() - 7 * DAY).toISOString(),\n      expireAt: new Date(NOW.getTime() - 1 * DAY).toISOString(),\n      borderColor: \"oklch(0.45 0.02 250)\",\n    },\n    {\n      id: \"task-nested-2\",\n      name: \"Typography\",\n      status: \"in-progress\",\n      active: true,\n      setAt: new Date(NOW.getTime() - 3 * DAY).toISOString(),\n      expireAt: new Date(NOW.getTime() + 3 * DAY).toISOString(),\n      children: [\n        {\n          id: \"task-nested-2-1\",\n          name: \"Pick body font\",\n          status: \"todo\",\n          active: true,\n          setAt: new Date(NOW.getTime() - 1 * DAY).toISOString(),\n          duration: 2 * HOUR,\n        },\n        {\n          id: \"task-nested-2-2\",\n          name: \"Lock heading scale\",\n          status: \"todo\",\n          active: true,\n          setAt: new Date(NOW.getTime() - 1 * DAY).toISOString(),\n          expireAt: new Date(NOW.getTime() + 2 * DAY).toISOString(),\n          locked: true,\n        },\n      ],\n    },\n    {\n      id: \"task-nested-3\",\n      name: \"Component playground\",\n      status: \"todo\",\n      active: false,\n      setAt: new Date(NOW.getTime() - 1 * DAY).toISOString(),\n      expireAt: new Date(NOW.getTime() + 8 * DAY).toISOString(),\n    },\n  ],\n};\n\n/* ───────── v0.3 fixtures — priority/labels meta row + status tones ───────── */\n\nexport const PRIORITIZED_TASK: TaskItem = {\n  id: \"task-prioritized\",\n  name: \"Migrate auth to the new session service\",\n  description: \"Priority + labels surface in the header meta row.\",\n  status: \"in-progress\",\n  active: true,\n  setAt: new Date(NOW.getTime() - 6 * HOUR).toISOString(),\n  expireAt: new Date(NOW.getTime() + 2 * DAY).toISOString(),\n  priority: \"high\",\n  labels: [\"frontend\", \"security\", \"q3\"],\n  targetPerson: { id: \"hessam\", name: \"Hessam\", avatar: \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=128&h=128&fit=crop&crop=faces&q=80\" },\n};\n\nexport const DONE_TASK: TaskItem = {\n  id: \"task-done\",\n  name: \"Wire up the analytics dashboard\",\n  description: \"Terminal `done` tone — gray border, dimmed overlay, auto-collapsed.\",\n  status: \"done\",\n  active: true,\n  setAt: new Date(NOW.getTime() - 3 * DAY).toISOString(),\n  expireAt: new Date(NOW.getTime() - 1 * DAY).toISOString(),\n  priority: \"normal\",\n};\n\nexport const BLOCKED_TASK: TaskItem = {\n  id: \"task-blocked\",\n  name: \"Deploy to the EU region\",\n  description: \"Terminal `blocked` tone — reddish overlay; change status to clear it.\",\n  status: \"blocked\",\n  active: true,\n  setAt: new Date(NOW.getTime() - 1 * DAY).toISOString(),\n  expireAt: new Date(NOW.getTime() + 1 * DAY).toISOString(),\n  priority: \"urgent\",\n  labels: [\"security\"],\n};\n\nexport const DEMO_ITEMS = [FRESH_TASK, URGENT_TASK, OVERDUE_TASK, NESTED_FAMILY];\n\n// @ilinxa/task-card-fixtures 0.5.1\n",
      "type": "registry:component",
      "target": "components/task-card/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.5.1",
    "status": "alpha"
  },
  "categories": [
    "data",
    "task-management",
    "fixtures"
  ],
  "type": "registry:block"
}