{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "app-operations-summary",
  "type": "registry:block",
  "title": "Operations, daily summary",
  "description": "A daily operational count line with an explicit attention message and source provenance. No counts are inferred.",
  "categories": [
    "app"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/source-note.json"
  ],
  "files": [
    {
      "path": "src/blocks/app-operations-summary/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/app-operations-summary/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, t, req } from '../_shared/schema';\nconst schema = z.object({ eyebrow: t(60), title: t(120), description: t(300), items: z.array(z.object({ label: req(40), value: t(20) })).min(1).max(5), attention: t(160), source: t(100), sourceNote: t(200), });\nexport const spec = defineSpec({\n  type: 'app-operations-summary', aliases: ['app/operations-summary'], name: 'Operations, daily summary', category: 'app', role: 'body',\n  description: 'A daily operational count line with an explicit attention message and source provenance. No counts are inferred.', schema,\n  defaults: {\n    \"eyebrow\": \"Today\",\n    \"title\": \"Name the overview\",\n    \"description\": \"Say who the overview is for.\",\n    \"items\": [\n      {\n        \"label\": \"Name a count\",\n        \"value\": \"0\"\n      },\n      {\n        \"label\": \"Name a ready count\",\n        \"value\": \"0\"\n      },\n      {\n        \"label\": \"Name an open count\",\n        \"value\": \"0\"\n      },\n      {\n        \"label\": \"Name an end count\",\n        \"value\": \"0\"\n      }\n    ],\n    \"attention\": \"Say what needs attention and what to check first.\",\n    \"source\": \"Name the source\",\n    \"sourceNote\": \"Say when it last synced and what changes made elsewhere may be missing.\"\n  },\n});\n"
    },
    {
      "path": "src/blocks/app-operations-summary/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/app-operations-summary/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { Container, Section, SectionHeader } from '../_shared/kit';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\nimport { SourceNote } from '../../ui/source-note';\nfunction OperationsSummary({ props }: BlockProps<Props>) {\n const id = useId();\n return <Section labelledBy={id}><Container><SectionHeader id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n  <dl className=\"my-6 flex flex-wrap gap-x-8 gap-y-5\">{props.items.map((it,i)=><div key={i}><dt className=\"text-kh-small text-kh-muted\"><Text path={['items',i,'label']} value={it.label} as=\"span\" /></dt><dd className=\"mt-1 font-kh-mono text-kh-title font-semibold tabular-nums\"><Text path={['items',i,'value']} value={it.value} as=\"span\" /></dd></div>)}</dl>\n  {/* a small dot by the words, never a coloured left border (Felix 2026-11-05: \"looks AI generated mainly because of the left colored border\", UI-32) */}\n  {props.attention && <p className=\"mb-5 flex items-baseline gap-2.5 text-kh-body font-medium\"><span aria-hidden className=\"size-2 shrink-0 translate-y-[-0.1em] rounded-kh-pill bg-kh-accent\" /><Text path={['attention']} value={props.attention} as=\"span\" /></p>}\n  <SourceNote source={<Text path={['source']} value={props.source} as=\"span\" />}><Text path={['sourceNote']} value={props.sourceNote} as=\"p\" /></SourceNote>\n </Container></Section>;\n}\nexport default withHeadingLevel(OperationsSummary);\n"
    }
  ]
}
