{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-profile-current-projects-1",
  "type": "registry:block",
  "title": "Current projects",
  "description": "People card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "people"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/profile-current-projects-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/profile-current-projects-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/people.tsx:207.\nimport { Link, useSearchParams } from \"react-router-dom\";\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { team } from \"./runtime/data/workspace/studio\";\nimport { SceneCard, Pill, Progress } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const [params] = useSearchParams();\n  const person =\n    team.find((member) => member.id === params.get(\"member\")) ?? team[0];\n  const { projects } = useWorkData();\n  const ownProjects = projects.filter(\n    (project) => project.owner === person.name,\n  );\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"profile\">\n        <SceneCard\n          title=\"Current projects\"\n          description={`${ownProjects.length} directly owned engagements`}\n          className=\"scene-table-card\"\n        >\n          <div\n            className=\"scene-table-wrap\"\n            tabIndex={0}\n            role=\"region\"\n            aria-label=\"Member projects\"\n          >\n            <table className=\"scene-table\">\n              <thead>\n                <tr>\n                  <th>Project</th>\n                  <th>Status</th>\n                  <th>Progress</th>\n                  <th>Delivery</th>\n                </tr>\n              </thead>\n              <tbody>\n                {ownProjects.map((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                      <Pill>{project.status}</Pill>\n                    </td>\n                    <td>\n                      <Progress value={project.progress} />\n                    </td>\n                    <td>{project.due}</td>\n                  </tr>\n                ))}\n              </tbody>\n            </table>\n            {!ownProjects.length && (\n              <p className=\"scene-empty\">\n                {person.name.split(\" \")[0]} supports the studio across projects.\n                No directly owned engagements.\n              </p>\n            )}\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/profile-current-projects-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
