feat(shared): add UI primitives and kernel barrel#13
Conversation
Add Box, Flex, Typography, Button, Checkbox, Label, Textarea cva-based primitives with a shared/ui barrel, plus a shared/kernel barrel re-exporting registry and result. Harden main.tsx root lookup with an explicit HTMLElement cast. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR establishes core shared library infrastructure by introducing a comprehensive UI component library, configuring kernel module exports, and refactoring the application entry point. The UI components follow a consistent pattern: define variants via class-variance-authority, render polymorphically with Radix UI, and apply merged styling. ChangesShared Library and Application Foundation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
devbox | d839a66 | Commit Preview URL Branch Preview URL |
Jun 02 2026, 02:41 PM |
What
Adds reusable, cva-based UI primitives under
src/shared/uiwith a barrel export:displayvariant +asChilddirection/align/justify/wrap/gap/inline+asChildvariant(h1–h4, p, span, code, muted, …) maps to semantic tag,asoverride +asChildAlso adds a
src/shared/kernelbarrel re-exportingregistry+result, and hardensmain.tsxroot lookup with an explicitHTMLElementcast.Why
Establishes a small design-system layer so feature code composes primitives instead of repeating raw
div/span+ Tailwind. Consumer refactors (shell, base64) land in follow-up PRs.Verification
vp checkpasses (format, lint, types) on all new files.🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Refactor