-
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
[MPDX-8193] Preselect new appeal options #1059
Conversation
Preview branch generated at https://8193-appeal-preselected-options.d3dytjb8adxkk5.amplifyapp.com |
Bundle sizes [mpdx-react]Compared against 0712f37 No significant changes found |
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 great. Can we move the logic inside the AddAppealForm? As these settings are standard wherever the form will be used.
<AddAppealForm | ||
accountListId={accountListId || ''} | ||
appealStatuses={[ | ||
{ | ||
name: '-- All Active --', | ||
value: 'ACTIVE', | ||
}, | ||
]} | ||
appealExcludes={contactExclusions.filter( | ||
(exclusion) => | ||
exclusion.value === ExclusionEnum.DoNotAskAppeals, | ||
)} | ||
/> |
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.
These changes need to be added to the form itself as this is the default.
Can you move these changes inside the <AddAppealForm/>
?
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.
Why does AddAppealForm
accept props to initialize the form then? Can those props all be removed?
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.
It accepts props as they will be used in the announcements, which can pass down appeal statements and appeal excludes.
Can we make the appealStatuses and appealExcludes have a default value of what you have above?
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.
It uses it in the old one here: src/tools/appeals/appeals.service.ts
Line 62 "oneClickAppeal"
5a525e6
to
ada2107
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.
Awesome work!
Description
Add contacts with the following status(es):
to-- All Active --
Do not add contacts who:
toHave "Send Appeals" set to No
Checklist: