Repository navigation
chore(docs): consolidate agent instructions under CLAUDE.md - #71
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 24 minutes and 17 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughPR consolidates scattered agent-instruction rules into a single canonical source in ChangesAgent Instruction Centralization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Type
Summary
Implements backlog A5 / ADR 0005: splits the 3,829-line
registry/demos.tsxmonolith into per-slugdemo.tsxfragments assembled at build time, eliminating the last high-conflict shared registry file for new components.Deleted
registry/demos.tsxNew layout
registry/demos/shared.tsxregistry/demos/demo-key-order.jsoncomponentDemoskeysregistry/{slug}/demo.tsxexport const demoEntries = { … })registry/blocks/hero/{slug}/demo.tsxBuild pipeline
scripts/assemble-demos.ts— globsregistry/**/demo.tsx, mergesdemoEntriesbodies indemo-key-order.jsonorder, emits fullcomponentDemosmapscripts/build-registry.ts—renderDemosConfig()callsassembleDemosSource()instead of reading a single monolith filescripts/split-demos.mjs— one-time codemod that produced the split (kept for history/re-runs)Regression gate: assembled output must match generated
apps/www/config/demos.tsxbyte-for-byte (banner stripped). Parser handles quoted/bare keys, section comments, and comma-split at brace/paren/bracket depth 0 (commas inside JSX text do not split entries).Contributor workflow updates:
CLAUDE.md,.claude/skills/add-component/SKILL.md,scripts/scaffold-component.mjs, and.cursor/rules/coderabbit-review-patterns.mdcnow point atregistry/{slug}/demo.tsx+demo-key-order.json.Output guarantee: no diff in
registry.jsonorapps/www/public/registry/*— demos refactor only affects docs preview assembly.Screenshots / video (UI changes only)
N/A — structural refactor only. Docs previews should render identically; no component source or visual behavior changes.
Test plan
pnpm test— turbo:@uniqueui/registry-schema,@uniqueui/cli-core,www,uniqueui-clipnpm build:registry— succeeds; regeneratesapps/www/config/demos.tsxfrom fragmentspnpm --filter uniqueui-cli build— not run; no CLI package changesapps/wwwdev server — not run (byte-identical assembly is the gate)Additional checks
pnpm test:repo— 48 passed (assemble-demos2 tests: byte parity with generated demos + all keys indemo-key-order.json)apps/wwwcomponent-sync.test.ts— updated to assertassembleDemosSource()matches generatedconfig/demos.tsxregistry.json— zero diff vsmain(confirmed)New component checklist
Skip — no new components. Updated workflow for future PRs:
registry/{slug}/demo.tsx(orregistry/blocks/hero/{slug}/demo.tsxfor hero blocks)registry/demos/demo-key-order.jsonregistry/demos/shared.tsxonly when reused across demospnpm build:registry— do not editapps/www/config/demos.tsxby handRelated issues
Implements A5 from
backlogs.md(splitregistry/demos.tsx). Follow-up called out indocs/adr/0003-fold-metadata-into-slug-manifests.md.Not in this PR: changelogs monolith split (
changelogs.json→ per-slug manifest field); optional per-slug default export shape (fragments usedemoEntriesmap for multi-key slugs like scenariodemoKeys).Commits (1)
cef648bref(registry): split demos monolith into per-slug demo.tsx fragmentsSummary by CodeRabbit
Chores
Tests