{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-overview-projects-in-motion-2",
  "type": "registry:block",
  "title": "Projects in motion",
  "description": "Charts & metrics card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "charts-metrics"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/overview-projects-in-motion-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/overview-projects-in-motion-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/overview.tsx:125.\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { Link } from \"react-router-dom\";\nimport {\n  SceneCard,\n  Progress,\n  Person,\n  Go,\n} from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample({\n  pageId = \"index\",\n}: {\n  title?: string;\n  pageId?: string;\n} = {}) {\n  const { projects } = useWorkData();\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={pageId}>\n        <SceneCard\n          title=\"Projects in motion\"\n          description=\"Upcoming milestones, ordered by delivery date\"\n          action={<Go to=\"/cards\">All projects</Go>}\n          className=\"scene-table-card\"\n        >\n          <div className=\"scene-table-wrap\">\n            <table className=\"scene-table\">\n              <thead>\n                <tr>\n                  <th>Project</th>\n                  <th>Owner</th>\n                  <th>Progress</th>\n                  <th>Delivery</th>\n                </tr>\n              </thead>\n              <tbody>\n                {[projects[2], projects[0], projects[1], projects[3]].map(\n                  (project) => (\n                    <tr key={project.id}>\n                      <td>\n                        <Link to={`/datagrid?project=${project.id}`}>\n                          <strong>{project.name}</strong>\n                        </Link>\n                        <small>{project.client}</small>\n                      </td>\n                      <td>\n                        <Person name={project.owner} />\n                      </td>\n                      <td>\n                        <div className=\"scene-progress-cell\">\n                          <Progress value={project.progress} />\n                          <small>{project.progress}%</small>\n                        </div>\n                      </td>\n                      <td>{project.due}</td>\n                    </tr>\n                  ),\n                )}\n              </tbody>\n            </table>\n          </div>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/overview-projects-in-motion-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
