{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "template-audit-report",
  "type": "registry:block",
  "title": "Website audit report template",
  "description": "A technical audit report for Cedar Studio: overall readiness, scope and provenance, module scores that preserve unavailable checks, and a short actionable recommendation list.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/report-audit-overview.json",
    "https://ui.klarhimmel.com/r/report-audit-modules.json",
    "https://ui.klarhimmel.com/r/report-audit-recommendations.json",
    "https://ui.klarhimmel.com/r/theme.json"
  ],
  "files": [
    {
      "path": "templates/audit-report.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/templates/audit-report.tsx",
      "content": "// Website audit report template (Klarhimmel UI). Each section is a block, its copy is the block's props. Change the\n// copy here; colours, fonts and radius come from the Style. Blocks validate their props and fall back field by field.\n//\n// Wire before shipping:\n//  - Data: all scores and findings are fictional examples. Supply assessed results from your own audit; unavailable checks must remain unassessed and must not contribute a zero to your aggregate.\n//  - Links: replace example.com destinations with your implementation notes and affected pages.\n//  - Scoring: the host owns aggregation and scoring rules. These blocks display the values supplied.\n\nimport { Theme, type Style } from '../theme/style';\nimport { BlockSurface } from '../blocks/surface';\nimport ReportAuditOverview, { spec as ReportAuditOverviewSpec } from '../blocks/report-audit-overview';\nimport ReportAuditModules, { spec as ReportAuditModulesSpec } from '../blocks/report-audit-modules';\nimport ReportAuditRecommendations, { spec as ReportAuditRecommendationsSpec } from '../blocks/report-audit-recommendations';\n\nconst style: Style = {\n  \"preset\": \"Klarhimmel\",\n  \"mode\": \"light\",\n  \"colors\": {\n    \"canvas\": \"#faf9f7\",\n    \"surface\": \"#ffffff\",\n    \"ink\": \"#17171a\",\n    \"muted\": \"#6b6b75\",\n    \"line\": \"#e8e6e1\",\n    \"accent\": \"#1c6ee0\",\n    \"accentFg\": \"#ffffff\"\n  },\n  \"altColors\": {\n    \"canvas\": \"#0b0b0d\",\n    \"surface\": \"#1a1a1f\",\n    \"ink\": \"#f2f1ee\",\n    \"muted\": \"#8f8f9a\",\n    \"line\": \"#383842\",\n    \"accent\": \"#5b9bf5\",\n    \"accentFg\": \"#0b1a2c\"\n  },\n  \"fonts\": {\n    \"display\": \"Geist\",\n    \"sans\": \"Geist\",\n    \"mono\": \"Geist Mono\"\n  },\n  \"radius\": 8,\n  \"size\": 16\n};\n\nexport default function AuditReportTemplate() {\n  return (\n    <Theme theme=\"brand\" style={style} mode=\"system\">\n      <BlockSurface id=\"overview\">\n        <ReportAuditOverview\n          props={{\n            ...ReportAuditOverviewSpec.defaults,\n            ...{\n              \"eyebrow\": \"Website audit\",\n              \"title\": \"Search readiness report\",\n              \"description\": \"A technical baseline for Cedar Studio. These checks describe the sampled pages, not a prediction of traffic or rankings.\",\n              \"score\": 68,\n              \"scoreLabel\": \"Overall readiness\",\n              \"unavailable\": \"Not assessed\",\n              \"verdict\": \"A useful foundation, with three gaps to address first.\",\n              \"facts\": [\n                {\n                  \"label\": \"Website\",\n                  \"value\": \"cedar.example\"\n                },\n                {\n                  \"label\": \"Scope\",\n                  \"value\": \"12 sampled pages\"\n                },\n                {\n                  \"label\": \"Checked\",\n                  \"value\": \"12 October 2026\"\n                }\n              ],\n              \"source\": \"Public pages, sampled crawl\",\n              \"sourceNote\": \"Unavailable checks are excluded. This is a point-in-time assessment.\",\n              \"action\": {\n                \"label\": \"See recommended changes\",\n                \"href\": \"#recommendations\"\n              },\n              \"headingLevel\": \"1\"\n            },\n          } as typeof ReportAuditOverviewSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"modules\" tone=\"muted\">\n        <ReportAuditModules\n          props={{\n            ...ReportAuditModulesSpec.defaults,\n            ...{\n              \"eyebrow\": \"Assessment\",\n              \"title\": \"What was checked\",\n              \"description\": \"Read each module independently. A missing assessment is not a failed check.\",\n              \"modules\": [\n                {\n                  \"title\": \"Crawl and discovery\",\n                  \"state\": \"scored\",\n                  \"score\": 82,\n                  \"status\": \"Assessed\",\n                  \"findings\": [\n                    \"The sitemap is reachable.\",\n                    \"Two sampled pages are missing canonical URLs.\"\n                  ]\n                },\n                {\n                  \"title\": \"Structured data\",\n                  \"state\": \"scored\",\n                  \"score\": 45,\n                  \"status\": \"Needs attention\",\n                  \"findings\": [\n                    \"Organization markup is present.\",\n                    \"Service pages have no matching structured data.\"\n                  ]\n                },\n                {\n                  \"title\": \"Accessibility\",\n                  \"state\": \"unavailable\",\n                  \"score\": null,\n                  \"status\": \"Not assessed — excluded from the overall score\",\n                  \"findings\": [\n                    \"The automated browser check did not complete.\"\n                  ]\n                },\n                {\n                  \"title\": \"Content readiness\",\n                  \"state\": \"pending\",\n                  \"score\": null,\n                  \"status\": \"Waiting for assessment\",\n                  \"findings\": []\n                }\n              ]\n            },\n          } as typeof ReportAuditModulesSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"recommendations\">\n        <ReportAuditRecommendations\n          props={{\n            ...ReportAuditRecommendationsSpec.defaults,\n            ...{\n              \"eyebrow\": \"Next moves\",\n              \"title\": \"Fix these first\",\n              \"description\": \"An ordered shortlist. Confirm each finding before changing the site.\",\n              \"items\": [\n                {\n                  \"title\": \"Give every service page a canonical URL\",\n                  \"impact\": \"High impact\",\n                  \"effort\": \"Small effort\",\n                  \"scope\": \"Page-level\",\n                  \"reason\": \"Two sampled service pages do not declare their preferred URL.\",\n                  \"next\": \"Add self-referencing canonical tags, then check the rendered HTML.\",\n                  \"pages\": [\n                    {\n                      \"label\": \"Service page\",\n                      \"href\": \"https://example.com/services\"\n                    }\n                  ],\n                  \"action\": {\n                    \"label\": \"Open implementation notes\",\n                    \"href\": \"https://example.com/notes\"\n                  }\n                },\n                {\n                  \"title\": \"Describe the organization consistently\",\n                  \"impact\": \"Medium impact\",\n                  \"effort\": \"Small effort\",\n                  \"scope\": \"Site-wide\",\n                  \"reason\": \"Organization details differ between the homepage and service pages.\",\n                  \"next\": \"Use one set of organization details and validate the structured data.\",\n                  \"pages\": [],\n                  \"action\": {\n                    \"label\": \"\",\n                    \"href\": \"\"\n                  }\n                }\n              ]\n            },\n          } as typeof ReportAuditRecommendationsSpec.defaults}\n        />\n      </BlockSurface>\n    </Theme>\n  );\n}\n"
    }
  ]
}
