-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Debounce in AddClaimantModal
#14454
Conversation
(removes mention of Pulac Cerullo in URL)
added proptypes; refactored into functional component
added story for `AddClaimantModal`; updated `SelectClaimant` to allow opening of `AddClaimantModal` if `attorneyFees` feature toggle is enabled;
… `SelectClaimant`
…Claimant` is true;
added ADD_CLAIMANT_MODAL_TITLE to COPY
…ed on returning participantId
(if appropriate feature toggle is set)
(avoids errors with async functions at top level of files)
(default — optionally supports a different async fn as a prop)
added basic local/mock data & async search fn in `AddClaimantModal` story;
added @testing-library/user-event;
- loading indicator - filterOption fn - filterOptions fn (it passes relevant props to react-select)
…ons returned from backend
additional jest tests for `AddClaimantModal`;
Generated by 🚫 Danger |
Code Climate has analyzed commit a86b33c and detected 0 issues on this pull request. View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% sure if I completely understand the behavior that was happening with the bug, I added a comment to the test. I think it'll make sense for Yang to check this out too since he's more familiar, but so far looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion for the debounce test, but after that I'd say this is 👍 to go!
TIL that debounce comes with lodash, and leading vs trailing edges.
Connects #14430
Description
Fixes regression from #14202; this brings fully functioning debounce functionality in
AddClaimantModal
along with additional JS testsAcceptance Criteria
AddClaimantModal