{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-priority-queue-this-week-s-focus-1",
  "type": "registry:block",
  "title": "This week’s focus",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/priority-queue-this-week-s-focus-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/priority-queue-this-week-s-focus-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/projects.tsx:545.\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { SceneCard, Action } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const { tasks, setTasks } = useWorkData();\n  const items = tasks.filter((task) => task.status !== \"Complete\");\n  const move = (index: number, delta: number) => {\n    const next = [...items];\n    [next[index], next[index + delta]] = [next[index + delta], next[index]];\n    setTasks([...next, ...tasks.filter((task) => task.status === \"Complete\")]);\n  };\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"sortable\">\n        <SceneCard\n          title=\"This week’s focus\"\n          description=\"Move tasks to set the order for your team.\"\n        >\n          {items.map((task, index) => (\n            <div className=\"scene-priority\" key={task.id}>\n              <b>{String(index + 1).padStart(2, \"0\")}</b>\n              <div>\n                <strong>{task.title}</strong>\n                <small>\n                  {task.project} · {task.person}\n                </small>\n              </div>\n              <Action disabled={index === 0} onClick={() => move(index, -1)}>\n                Move up\n              </Action>\n              <Action\n                disabled={index === items.length - 1}\n                onClick={() => move(index, 1)}\n              >\n                Move down\n              </Action>\n            </div>\n          ))}\n          {!items.length && (\n            <p>All tasks are complete. Add new work from the board.</p>\n          )}\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/priority-queue-this-week-s-focus-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
