Fix chip text field focus synchronization - #202
Conversation
|
Warning Review limit reached
Next review available in: 30 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe focus model now tracks UI focus separately and emits uniquely identified focus requests. ChangesText-field focus synchronization
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
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
`@chiptextfield-core/src/commonMain/kotlin/com/dokar/chiptextfield/ChipTextFieldState.kt`:
- Around line 147-170: Change the focus-request flow between
ChipTextFieldState.updateTextFieldFocusRequest and BasicChipTextField so
requests are consumed as one-shot events rather than retained and replayed by
restarted effects. In
chiptextfield-core/src/commonMain/kotlin/com/dokar/chiptextfield/ChipTextFieldState.kt:147-170,
expose a consume-or-clear operation for textFieldFocusRequest; in
chiptextfield-core/src/commonMain/kotlin/com/dokar/chiptextfield/BasicChipTextField.kt:332-348,
consume each request after handling it while preserving the existing
focused/unfocused behavior.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 12955f09-e577-401d-be91-6e34a73d9e7e
📒 Files selected for processing (4)
chiptextfield-core/build.gradlechiptextfield-core/src/commonMain/kotlin/com/dokar/chiptextfield/BasicChipTextField.ktchiptextfield-core/src/commonMain/kotlin/com/dokar/chiptextfield/ChipTextFieldState.ktchiptextfield-core/src/commonTest/kotlin/com/dokar/chiptextfield/ChipTextFieldStateTest.kt
Fix #174
Summary by CodeRabbit
Bug Fixes
Tests