feat(number-field): add decimalSeparator prop #596#623
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesNumberField Decimal Separator Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
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/tedi/components/form/number-field/number-field.tsx`:
- Around line 189-200: handleInputChange currently normalizes and parses the
typed value then only applies forceToLimits before calling
onChange/setInputInnerValue, which diverges from handleButtonClick that also
applies roundValue; update handleInputChange to apply roundValue after
forceToLimits (using the same roundValue function) so values respect
decimalPlaces before calling onChange and setInputInnerValue (keep using
forceToLimits then roundValue in that order and reference handleButtonClick,
roundValue, forceToLimits, setInputInnerValue, and onChange when making the
change).
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 51496411-be3b-44dc-93a9-485cc53e43e1
📒 Files selected for processing (2)
src/tedi/components/form/number-field/number-field.spec.tsxsrc/tedi/components/form/number-field/number-field.tsx
Summary by CodeRabbit
New Features
Tests