Adding search functionality for orgNr in party selection#4302
Adding search functionality for orgNr in party selection#4302olemartinorg wants to merge 2 commits into
Conversation
|
Warning Review limit reached
More reviews will be available in 25 minutes and 51 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?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 credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. 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, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds numeric-aware filtering to ChangesParty Search Filtering and Masked SSN
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 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 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 `@src/features/instantiate/containers/PartySelection.tsx`:
- Around line 67-73: The numeric filter validation is incorrectly allowing mixed
text input (like "abc123") to trigger SSN and org number matching. Currently,
the code removes all non-digits from filterString to create numberFilterString,
then checks if numberFilterString matches only digits, but this means any input
with at least one digit will pass the validation. To fix this, change the
hasNumberFilter validation to check if the original filterString itself contains
only digits (using a regex like /^\d+$/ directly on filterString) instead of
validating the stripped numberFilterString. This ensures numeric field matching
only occurs when the user enters pure numeric input without any text characters.
🪄 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: ecd9b174-2f3e-4e43-8b33-41b5b41dc4f5
📒 Files selected for processing (4)
src/__mocks__/getPartyMock.tssrc/features/instantiate/containers/PartySelection.test.tsxsrc/features/instantiate/containers/PartySelection.tsxtest/e2e/support/apps/signing-test/signing-login.ts
…. Adding regression test for this.
|



Description
This adds missing functionality (which was so severe I'm agreeing with calling this a bug) in the party selection view. This should now support searching for org numbers + ssn, even with whitespace.
Related Issue(s)
Verification/QA
kind/*andbackport*label to this PR for proper release notes groupingSummary by CodeRabbit
New Features
Tests