fix(design-sync): P1/P2 fixes from claude.ai/design review#627
Conversation
- Real prop contracts for all 10 synced components via dtsPropsFor (was: [key: string]: unknown stubs) - PanelHeading/EmptyState: icon prop now optional (no crash when omitted); no-icon preview stories added - Bundle re-exports a curated lucide icon set (consumers have no lucide-react); conventions updated to import icons from the package - --text-hero--line-height companion token marks --text-hero as a font-size token (stops font-family misparse downstream) - AccessibleTable prompt example now self-contained (inlined data) - NOTES.md records accepted design-validator heuristics (--tw-* vars, pseudo theme scopes, token-count difference) verify:cheap green (lint, typecheck, 2197 tests). Re-synced and re-verified: render check 10/10 clean, all cells graded good. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe design sync bundle now exports curated icons, supports iconless ChangesDesign sync component and tooling updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Implements Part 1 of the July 2026 design-side review (
CLAUDE_CODE_FIXES.md): fixes to the design-sync inputs plus two small source fixes, then a verified re-sync to the Clinical KB Design System project.dtsPropsFor(was[key: string]: unknown)--text-heromisparse: added the Tailwind v4--text-hero--line-heightcompanion (1.15) so tooling can't read theclamp()size as a font-family; the only call site sets explicitleading-[1.05], so no visual changePanelHeading/EmptyStateiconis now optional (icon tile skipped when absent) + no-icon preview stories proving it renderslucide-reactAccessibleTableprimary example inlines its data--tw-*scoped vars, pseudo theme scopes, README token-count difference) recorded in.design-sync/NOTES.mdas validator heuristics, per the review's own auditVerification
verify:cheapgreen (lint, typecheck, 2197 vitest, type-scale/icon-scale/brand checks).d.ts/icons/prompt.md fixes confirmed in the uploaded outputPart 2 of the review (E1–E6 design-elevation refactor) is deliberately not in this PR — it is an app-wide token migration program, assessed separately.
Clinical governance preflight
Not applicable — UI primitives + design-sync config only; no ingestion, answer generation, search/ranking, source governance, document access, privacy, or production env changes.
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Refactor