chore(repo): phase-7 structural cleanup#77
Conversation
…drop USAGE + root design-tokens.json, sweep stale src refs - Move 6 reference docs (design-system, architecture, principles, theming, tokens, migration) into docs/reference/ - Fix scripts/generate-tokens.mjs: write to tokens/design-tokens.json, drop src/index.css fallback, update $description - Fix scripts/generate-counts.mjs: drop src/ fallbacks, use registry/ + tokens/ directly - Fix scripts/build-registry.mjs: clean up stale migration comment - Fix tests/tokens.contract.test.ts + tests/tokens.test.ts: read from tokens/design-tokens.json - Delete root design-tokens.json (now generated to tokens/) - Delete USAGE.md; fold license/usage content into README.md License & Usage section - Update all reference links in README, CLAUDE.md, docs/README.md, docs/ai/*, docs/guides/* to new docs/reference/ paths - Confirm internal-file gitignore guard covers PHASE-*.md, audits, prompts; no internal files tracked Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (24)
📝 WalkthroughWalkthrough
ChangesToken file relocation
Documentation link migration to
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Summary
design-system,architecture,principles,theming,tokens,migration) intodocs/reference/scripts/generate-tokens.mjs: write totokens/design-tokens.json(not root), dropsrc/index.cssfallback, fix$descriptionstringscripts/generate-counts.mjs: dropsrc/fallbacks, useregistry/+tokens/directlydesign-tokens.json(now generated intotokens/)USAGE.md; fold content intoREADME.mdLicense & Usage sectiondocs/reference/pathstests/tokens.test.tsandtests/tokens.contract.test.tsto read fromtokens/design-tokens.jsonPHASE-*.md,audits/, prompts); no internal files trackedTest plan
npm run buildgreen — counts: atoms:11 molecules:18 organisms:19 templates:7 ui:48tokens/design-tokens.jsongenerated; rootdesign-tokens.jsonabsentnpm test— 125 tests passing (4 suites)grep -rn "src/components\|src/index.css" scripts/ tests/→ only intentional shadcn consumer-path docs (lines 50-51 of build-registry.mjs)git ls-files | grep -iE "PHASE-|audit|testing-session|prompt"→ empty🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
docs/reference/section with updated links across all documentation files.Chores