-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix Mailing Address - Confirm buttons #965
Conversation
Bundle sizes [mpdx-react]Compared against b3e0d9a
|
0012367
to
a3ad428
Compare
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.
Small UI change that I missed on the other PR.
Preview branch generated at https://confirm-buttons-on-fix-mailing-addressess.d3dytjb8adxkk5.amplifyapp.com |
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.
Looks good. Thanks for the example of the bulk mutation
Description
In this PR, I added the functionality to confirm a single contact or bulk contacts based on their source.
The functionality should be the same as MPDX Web, but I've added many more alerts to inform the user about what is happening.
When doing the bulk, we don't have a bulkAddresses GraphQl mutation, so I'm having to loop over each single Address mutation many times, which is why I put it into a promise.all() function.
The GraphQL code currently has an error; however, I can't do much about it. I have requested Andrew update the mutation to allow me to pass
primary mailing address
, but until then, it will cause an error.I've added tests, but I'm unable to test the successful requests due to the GraphQL error.
Checklist: