{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "report-audit-recommendations",
  "type": "registry:block",
  "title": "Audit, recommendations",
  "description": "Prioritized audit findings with impact, effort, scope, affected pages and a concrete next action.",
  "categories": [
    "report"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/badge.json",
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/button.json",
    "https://ui.klarhimmel.com/r/editing.json"
  ],
  "files": [
    {
      "path": "src/blocks/report-audit-recommendations/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/report-audit-recommendations/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, t, req, link } from '../_shared/schema';\nconst schema = z.object({ eyebrow: t(60), title: t(120), description: t(300), items: z.array(z.object({ title: req(100), impact: t(40), effort: t(40), scope: t(60), reason: t(240), next: t(240), pages: z.array(link).max(5), action: link })).min(1).max(8), });\nexport const spec = defineSpec({\n  type: 'report-audit-recommendations', aliases: ['report/audit-recommendations'], name: 'Audit, recommendations', category: 'report', role: 'body',\n  description: 'Prioritized audit findings with impact, effort, scope, affected pages and a concrete next action.', schema,\n  defaults: {\n  \"eyebrow\": \"Name the section\",\n  \"title\": \"Say what to do first\",\n  \"description\": \"Say how the list is ordered, and what to confirm before acting.\",\n  \"items\": [\n    {\n      \"title\": \"Name the first change, as an action\",\n      \"impact\": \"High impact\",\n      \"effort\": \"Small effort\",\n      \"scope\": \"Page-level\",\n      \"reason\": \"Say why it matters, with the evidence found on the sampled pages\",\n      \"next\": \"Say the concrete next action and how to check it worked\",\n      \"pages\": [\n        {\n          \"label\": \"Name the page\",\n          \"href\": \"https://example.com/services\"\n        }\n      ],\n      \"action\": {\n        \"label\": \"Say where to read more\",\n        \"href\": \"https://example.com/notes\"\n      }\n    },\n    {\n      \"title\": \"Name the second change, as an action\",\n      \"impact\": \"Medium impact\",\n      \"effort\": \"Small effort\",\n      \"scope\": \"Site-wide\",\n      \"reason\": \"Say why it matters, with the evidence found on the sampled pages\",\n      \"next\": \"Say the concrete next action and how to check it worked\",\n      \"pages\": [],\n      \"action\": {\n        \"label\": \"\",\n        \"href\": \"\"\n      }\n    }\n  ]\n},\n});\n"
    },
    {
      "path": "src/blocks/report-audit-recommendations/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/report-audit-recommendations/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { Container, Section, SectionHeader, ActionLink } 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 { Badge } from '../../ui/badge';\nimport { Gate } from '../_shared/kit';\nimport { safeHref } from '../../ui/button';\nfunction AuditRecommendations({ 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  <ol className=\"mt-8 space-y-4\">{props.items.map((it,i)=><li key={i} className=\"rounded-kh-lg border border-kh-line bg-kh-surface p-6\">\n   <div className=\"flex items-start gap-4\"><span aria-hidden className=\"font-kh-mono text-kh-heading text-kh-muted\">{String(i+1).padStart(2,'0')}</span><div className=\"min-w-0 flex-1\">\n    <Text path={['items',i,'title']} value={it.title} as=\"h3\" className=\"text-kh-heading font-semibold\" />\n    <div className=\"mt-3 flex flex-wrap gap-2\">{(['impact','effort','scope'] as const).map(k=><Badge key={k} tone=\"outline\"><Text path={['items',i,k]} value={it[k]} as=\"span\" /></Badge>)}</div>\n    <Text path={['items',i,'reason']} value={it.reason} as=\"p\" className=\"mt-4 text-kh-body text-kh-muted\" />\n    <Text path={['items',i,'next']} value={it.next} as=\"p\" className=\"mt-3 text-kh-body font-medium\" />\n    <ul className=\"mt-4 space-y-1\">{it.pages.map((p,j)=><li key={j}><Gate label={p.label}><a href={safeHref(p.href)} className=\"inline-flex min-h-11 items-center text-kh-small underline underline-offset-4 [overflow-wrap:anywhere] focus-visible:outline-2 focus-visible:outline-(--kh-focus)\"><Text path={['items',i,'pages',j,'label']} value={p.label} as=\"span\" /></a></Gate></li>)}</ul>\n    <ActionLink path={['items',i,'action']} value={it.action} variant=\"secondary\" className=\"mt-4\" />\n   </div></div>\n  </li>)}</ol>\n </Container></Section>;\n}\nexport default withHeadingLevel(AuditRecommendations);\n"
    }
  ]
}
