{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-status-register-status-register-1-1",
  "type": "registry:block",
  "title": "Status register 1",
  "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/status-register-status-register-1-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/status-register-status-register-1-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/workspace-tools.tsx:146.\nimport { useState } from \"react\";\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { SceneCard, Pill } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const { projects } = useWorkData();\n  const [filter] = useState(\"All projects\");\n  const visible = projects.filter(\n    (p) => filter === \"All projects\" || p.status === filter,\n  );\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"badges\">\n        <SceneCard\n          title={`${visible.length} projects`}\n          className=\"scene-table-card\"\n        >\n          <div\n            className=\"scene-table-wrap\"\n            tabIndex={0}\n            role=\"region\"\n            aria-label=\"Scrollable records\"\n          >\n            <table className=\"scene-table\">\n              <thead>\n                <tr>\n                  <th>Project</th>\n                  <th>Owner</th>\n                  <th>Status</th>\n                  <th>Milestone</th>\n                </tr>\n              </thead>\n              <tbody>\n                {visible.map((p) => (\n                  <tr key={p.id}>\n                    <td>\n                      <a href={`#/datagrid?project=${p.id}`}>{p.name}</a>\n                      <small>{p.client}</small>\n                    </td>\n                    <td>{p.owner}</td>\n                    <td>\n                      <Pill>{p.status}</Pill>\n                    </td>\n                    <td>{p.due}</td>\n                  </tr>\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/status-register-status-register-1-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
