Skip to content
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

Merged
merged 6 commits into from
Jun 28, 2024

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Jun 25, 2024

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:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels. (Add the label "On Staging" to get the branch automatically merged into staging.)
  • I have requested a review from another person on the project

Copy link
Contributor

github-actions bot commented Jun 25, 2024

Bundle sizes [mpdx-react]

Compared against b3e0d9a

Route Size (gzipped) Diff
/accountLists/[accountListId]/tools/fixMailingAddresses/[[...contactId]] 188.33 KB +1.55 KB

@dr-bizz dr-bizz requested review from caleballdrin and removed request for caleballdrin June 25, 2024 14:54
@dr-bizz dr-bizz force-pushed the confirm-buttons-on-fix-mailing-addressess branch from 0012367 to a3ad428 Compare June 25, 2024 14:56
@dr-bizz dr-bizz requested a review from caleballdrin June 25, 2024 14:56
Copy link
Contributor

@caleballdrin caleballdrin left a 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.

@dr-bizz dr-bizz requested a review from caleballdrin June 28, 2024 14:01
@dr-bizz dr-bizz added the Preview Environment Add this label to create an Amplify Preview label Jun 28, 2024
Copy link
Contributor

Copy link
Contributor

@caleballdrin caleballdrin left a 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

@dr-bizz dr-bizz merged commit bdb139d into main Jun 28, 2024
20 checks passed
@dr-bizz dr-bizz deleted the confirm-buttons-on-fix-mailing-addressess branch June 28, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Preview Environment Add this label to create an Amplify Preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants