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

MPDX-7955 - Add edit appeal functionality #986

Merged
merged 5 commits into from
Aug 26, 2024

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Jul 31, 2024

Description

In this PR, I added a modal that allows the user to edit the appeal's name and goal.
I've also added tests to the appeal.

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 changed the base branch from MPDX-7948-creating-appeal-details-pages-2 to MPDX-7955-add-functionality July 31, 2024 19:34
@dr-bizz dr-bizz requested a review from wrandall22 July 31, 2024 19:35
Copy link
Contributor

github-actions bot commented Jul 31, 2024

Bundle sizes [mpdx-react]

Compared against 6642dc6

Dynamic import Size (gzipped) Diff
../src/components/Tool/Appeal/AppealDetails/EditAppealHeaderInfoModal/DynamicEditAppealHeaderInfoModal.tsx -> ./EditAppealHeaderInfoModal 28.49 KB added

@dr-bizz dr-bizz requested review from caleballdrin and removed request for wrandall22 August 1, 2024 20:42
@caleballdrin caleballdrin added the Preview Environment Add this label to create an Amplify Preview label Aug 5, 2024
Copy link
Contributor

github-actions bot commented Aug 5, 2024

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. That is cool how you have it dynamically load on mouse hover.


const EditAppealSchema: yup.SchemaOf<EditAppealFormikSchema> = yup.object({
name: yup.string().required('Please enter a name'),
amount: yup.number().required('Please enter a goal'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could force the goal amount to be a positive number? Not necessary though.

@dr-bizz dr-bizz force-pushed the MPDX-7955-add-functionality branch from 089ef36 to 199afc8 Compare August 22, 2024 19:19
Base automatically changed from MPDX-7955-add-functionality to main August 23, 2024 13:57
@dr-bizz dr-bizz force-pushed the MPDX-7955-add-header-info-functionality branch from c2648a2 to 0d73ade Compare August 23, 2024 16:07
@dr-bizz dr-bizz merged commit 69daa04 into main Aug 26, 2024
17 of 18 checks passed
@dr-bizz dr-bizz deleted the MPDX-7955-add-header-info-functionality branch August 26, 2024 12:54
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