-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Reuse Onyx's validateCodeAction everywhere for handling errors of magic code #58934
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
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
7d5e470
Use VALIDATE_ACTION_CODE for storing/displaying magic code errors
youssef-lr f50c655
Remove unused function
youssef-lr 4ee6648
Clearr both magic code and flow specific error onClose
youssef-lr 90117e7
Use default for validateCodeActionErrorField
youssef-lr 13e6928
Clear validateCode errors properly
youssef-lr c62a055
Pass validateCodeAction to ValidateCodeForm
youssef-lr a973516
Use magic code errors coming from PendingContactAction instead of log…
youssef-lr e321cc0
Lint
youssef-lr 0487f20
Bring back prop validatePendingAction
youssef-lr 3a51c84
Update comment
youssef-lr 2b1b74a
Use validateCodeAction for handling magic code errors when reporting …
youssef-lr 6e20b2f
Update comment
youssef-lr 480874a
Don't remove virtual cards optimistically
youssef-lr 0c6009c
Fix virtual card modal closing when entering bad magic code
youssef-lr cb32f5a
Add validatePendingAction to props of ValidateCodeActionModal
youssef-lr 947c170
Use validateCodeAction errors in copy codes page
youssef-lr 4727877
Don't make some props required
youssef-lr e7a471e
Pass validateCodeAction so we can use the pending action
youssef-lr 421e613
Revert unneeded change
youssef-lr ec9aed9
Improve magic code error handling when reveal virtual card
youssef-lr 02889a7
Use validateCodeAction errors when adding delegate
youssef-lr 648f6f5
Use validateCodeAction errors when updating delegate role
youssef-lr 2355609
Use validateCodeAction in remaining magic code modals
youssef-lr f5f2752
Rename Onyx key
youssef-lr 2cad204
Rename variable
youssef-lr 86a25ed
Fix lint
youssef-lr 14e6e01
Clear magic code errors in BaseValidateCodeForm instead of parent com…
youssef-lr a776794
Lint
youssef-lr c588345
Remove offline data from Onyx data when adding contact method as it's…
youssef-lr 46416a2
Remove dead code
youssef-lr a4ee23f
Merge branch 'main' into youssef_better_validation_error_handling
youssef-lr 4a22e09
Revert unneeded change
youssef-lr 2b4900b
Use validateCodeAction in base componenet and don't require it for pa…
youssef-lr fb58d6a
Add missing props to validate modal of contact method details
youssef-lr 3709509
Clean up no longer needed params/variables
youssef-lr dc0e52c
Lint
youssef-lr 21a9529
Allow pasing hasMagicCodeBeenSent when we're not getting it from vali…
youssef-lr 3fb94ba
Fix missing errorField prop
youssef-lr cc8475a
Merge branch 'main' into youssef_better_validation_error_handling
youssef-lr 2af25c1
Address comments
youssef-lr 7693118
Merge branch 'main' into youssef_better_validation_error_handling
youssef-lr acb5032
Fix no error shown in validate code modal when revealing card details
youssef-lr a5aa550
Cleanup
youssef-lr fd8581f
Update comment
youssef-lr a3bc4cd
Allow clearig validate error in reveal details page
youssef-lr 2ce1dbc
Also clear backend errors when submitting
youssef-lr aeebe79
Merge branch 'main' into youssef_better_validation_error_handling
youssef-lr 6c29811
Merge branch 'main' into youssef_better_validation_error_handling
youssef-lr 2f64f56
Merge branch 'main' into youssef_better_validation_error_handling
youssef-lr 9631c45
Update src/components/ValidateCodeActionModal/ValidateCodeForm/BaseVa…
youssef-lr a398641
Apply suggestions from code review
youssef-lr b067ea3
Lint
youssef-lr 07af406
Merge branch 'main' into youssef_better_validation_error_handling
youssef-lr 4ce7a5b
Use new method in BaseOnboardingWorkEmailValidation
youssef-lr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Coming from #72754, we also need to clearDefaultValidationCodeError