Skip to content

fix(docs): register preview keys for 5 missing blocks#442

Merged
Shooksie merged 1 commit intomainfrom
fix/missing-block-previews-20260426
Apr 26, 2026
Merged

fix(docs): register preview keys for 5 missing blocks#442
Shooksie merged 1 commit intomainfrom
fix/missing-block-previews-20260426

Conversation

@Shooksie
Copy link
Copy Markdown
Contributor

Summary

  • Quotes the preview keys for timeline, maintenance, agency, portfolio, and startup in apps/docs/src/lib/block-previews.tsx.
  • The render functions already existed (Timeline, Maintenance, Agency, Portfolio, Startup are all imported and rendered) — they were just declared with unquoted shorthand keys, which the audit regex (/^\s{2}"([^"]+)":/gm) skips.

Verification

node /Users/samishukri/ao-templates/scripts/find-missing-block-previews.mjs
# REGISTERED_BLOCKS_COUNT: 215
# PREVIEW_KEYS_COUNT: 219
# MISSING_PREVIEWS_COUNT: 0
  • pnpm build (apps/docs) passes
  • pnpm lint no new errors
  • No source components touched (Timeline/Maintenance/Agency/Portfolio/Startup unchanged)
  • blocks-registry.ts not touched

Quote the preview keys for timeline, maintenance, agency, portfolio,
and startup so the registry audit detects them. The render functions
already exist; the audit script's regex matches only quoted keys, so
unquoted shorthand entries went uncounted.

MISSING_PREVIEWS_COUNT: 5 -> 0
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Apr 26, 2026 8:10pm

Request Review

@Shooksie Shooksie merged commit 1e919e4 into main Apr 26, 2026
4 checks passed
@Shooksie Shooksie deleted the fix/missing-block-previews-20260426 branch April 26, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant