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

Show Received on pledge modal to avoid confusion #1170

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Nov 1, 2024

Description

I have added the "Received" option back to the pledge modal. Looking back at previous messages, it looks like users can try to put the contact into "Received." Most of the time, the server will override their choice, but not always.

Putting it back this way will make it simpler for users until we overhaul the appeals Committed->Given process.

Test:

  1. Go to the appeals page.
  2. Add a commitment/pledge
  3. You should now be able to select "received"

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

@dr-bizz dr-bizz requested a review from canac November 1, 2024 20:11
@dr-bizz dr-bizz added the Preview Environment Add this label to create an Amplify Preview label Nov 1, 2024
Copy link
Contributor

github-actions bot commented Nov 1, 2024

Copy link
Contributor

github-actions bot commented Nov 1, 2024

Bundle sizes [mpdx-react]

Compared against 7fe882a

No significant changes found

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious about the flaky test fix, but the pledge modal fix looks good.


const { findByText } = render(
<ThemeProvider theme={theme}>
<TestRouter router={router}>
<GqlMockedProvider<{ UserOption: UserOptionQuery }> mocks={mocks}>
<ContactsWrapper>
<>
<Component />
<ContactsContext.Provider
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why this helps? ContactsWrapper already wraps its children in <ContactsContext.Provider>.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is that the viewMode was getting set randomly, but I could be wrong. I figured if I controlled all the properties, I would know for sure it would pass.

@dr-bizz dr-bizz merged commit 1c203d1 into main Nov 4, 2024
18 checks passed
@dr-bizz dr-bizz deleted the add-received-option-to-avoid-confusion branch November 4, 2024 15:46
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