{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-overview-overview-1-1",
  "type": "registry:block",
  "title": "Studio metrics",
  "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-overview-1-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/overview-overview-1-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/overview.tsx:88.\nimport { workload } from \"./runtime/data/workspace/operations\";\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { MetricGroup } from \"./runtime/registry/overtrue/metric-group\";\nimport { revenue } from \"./runtime/data/workspace/studio\";\nimport { Metric } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample({\n  pageId = \"index\",\n}: {\n  title?: string;\n  pageId?: string;\n} = {}) {\n  const { tasks: work, projects, clients } = useWorkData();\n  const open = work.filter((task) => task.status !== \"Complete\");\n  const allocated = workload.reduce((sum, member) => sum + member.allocated, 0);\n  const capacity = workload.reduce((sum, member) => sum + member.capacity, 0);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={pageId}>\n        <MetricGroup className=\"mb-6 scene-overview-metrics\">\n          <Metric\n            label=\"Active projects\"\n            value={String(\n              projects.filter((project) => project.status !== \"Complete\")\n                .length,\n            )}\n            note={`${clients.length} client relationships`}\n          />\n          <Metric\n            label=\"Open tasks\"\n            value={String(open.length)}\n            note={`${work.filter((task) => task.status === \"In review\").length} ready for review`}\n          />\n          <Metric\n            label=\"Team allocation\"\n            value={`${Math.round((allocated / capacity) * 100)}%`}\n            note={`${capacity - allocated} hours available this week`}\n          />\n          <Metric\n            label=\"September revenue\"\n            value={\"$\" + revenue[8].value.toLocaleString(\"en-US\")}\n            note=\"Booked & planned · USD\"\n          />\n        </MetricGroup>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/overview-overview-1-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
