feat: custom-radio#88
Conversation
✅ Deploy Preview for kleros-v2-ui-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR adds a reusable RadioIndicator component and a CustomRadio suite (CustomRadioItem + CustomRadio) built on react-aria-components, refactors radio-group to use RadioIndicator, adds Storybook examples (Cards, Composition), and exports the new components from the public library index. ChangesCustom Radio Component Suite
🎯 3 (Moderate) | ⏱️ ~20 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/form/radio-indicator.tsx`:
- Line 34: The class string contains an invalid Tailwind easing token
"ease-ease" in radio-indicator.tsx; replace "ease-ease" (and any matching after:
variant like "after:ease-ease") with a valid Tailwind easing class such as
"ease", "ease-in", "ease-out", "ease-in-out", or "ease-linear" (e.g., change to
"ease-in-out after:ease-in-out transition-all after:transition-all") so the
component's transition classes are valid and consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 11f917c7-d05c-4af8-a211-0dbe88151f01
📒 Files selected for processing (5)
src/lib/form/custom-radio.tsxsrc/lib/form/radio-group.tsxsrc/lib/form/radio-indicator.tsxsrc/lib/index.tssrc/stories/customRadio.stories.tsx
|



PR-Codex overview
This PR introduces a new
CustomRadiocomponent along with its associated items and indicators, enhancing the radio button functionality with customizable options. It also modifies the existingRadioGroupto utilize the newRadioIndicatorfor a more streamlined appearance.Detailed summary
CustomRadio,CustomRadioItem, andRadioIndicatorinsrc/lib/index.ts.RadioIndicatorcomponent insrc/lib/form/radio-indicator.tsx.RadioGroupto useRadioIndicatorinstead of a span for rendering.CustomRadioandCustomRadioItemcomponents insrc/lib/form/custom-radio.tsx.CustomRadioinsrc/stories/customRadio.stories.tsx, showcasing usage with cards and composition options.Summary by CodeRabbit
New Features
Documentation