{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-project-details-delivery-progress-5",
  "type": "registry:block",
  "title": "Delivery progress",
  "description": "Projects card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "projects"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/project-details-delivery-progress-5.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/project-details-delivery-progress-5.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/records.tsx:346.\nimport { useSearchParams } from \"react-router-dom\";\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { SceneCard, Progress } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const [params] = useSearchParams();\n  const { projects, tasks } = useWorkData();\n  const project =\n    projects.find((item) => item.id === params.get(\"project\")) ?? projects[0];\n  const work = tasks.filter((task) => task.project === project.client);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"datagrid\">\n        <SceneCard title=\"Delivery progress\">\n          <div className=\"scene-big-number\">\n            {project.progress}\n            <span>% complete</span>\n          </div>\n          <Progress value={project.progress} />\n          <p>\n            {work.filter((task) => task.status === \"Complete\").length} of{\" \"}\n            {work.length} tracked deliverables completed.\n          </p>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/project-details-delivery-progress-5. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
