Skip to content

Commit

Permalink
fix(email): update preview text and subject for withdrawal emails (#1162
Browse files Browse the repository at this point in the history
)
  • Loading branch information
asharonbaltazar authored Feb 14, 2025
1 parent 710820c commit 875c94c
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ChipSpaCMSEmail = ({
variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => (
<BaseEmailTemplate
previewText={`CHIP SPA Package ${variables.id} Withdraw Request`}
previewText={`CHIP SPA Package ${variables.id} Withdraw Requested`}
heading="The OneMAC Submission Portal received a request to withdraw the package below. The package will no longer be considered for CMS review:"
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ChipSpaStateEmail = ({
variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => (
<BaseEmailTemplate
previewText={`CHIP SPA Package ${variables.id} Withdraw Request`}
previewText={`CHIP SPA Package ${variables.id} Withdraw Requested`}
heading="This is confirmation that you have requested to withdraw the package below. The package will no longer be considered for CMS review:"
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const MedSpaCMSEmail = ({
variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => (
<BaseEmailTemplate
previewText={`SPA SPA Package ${variables.id} Withdraw Request`}
previewText={`SPA SPA Package ${variables.id} Withdraw Requested`}
heading="The OneMAC Submission Portal received a request to withdraw the package below. The package will no longer be considered for CMS review:"
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const MedSpaStateEmail = ({
variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => (
<BaseEmailTemplate
previewText={`SPA Package ${variables.id} Withdraw Request`}
previewText={`SPA Package ${variables.id} Withdraw Requested`}
heading="This is confirmation that you have requested to withdraw the package below. The package will no longer be considered for CMS review:"
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const WaiverCMSEmail = ({
variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => (
<BaseEmailTemplate
previewText={`Waiver Package ${variables.id} Withdraw Request`}
previewText={`Waiver Package ${variables.id} Withdraw Requested`}
heading="The OneMAC Submission Portal received a request to withdraw the package below. The package will no longer be considered for CMS review:"
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const WaiverStateEmail = ({
}) => {
return (
<BaseEmailTemplate
previewText={`Waiver Package ${variables.id} Withdraw Request`}
previewText={`Waiver Package ${variables.id} Withdraw Requested`}
heading={
"This is confirmation that you have requested to withdraw the package below. The package will no longer be considered for CMS review:"
}
Expand Down
16 changes: 8 additions & 8 deletions lib/libs/email/content/withdrawPackage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
return {
to: variables.emails.osgEmail,
cc: variables.emails.dpoEmail,
subject: `SPA Package ${variables.id} Withdraw Request`,
subject: `SPA Package ${variables.id} Withdraw Requested`,
body: await render(<MedSpaCMSEmail variables={variables} />),
};
},
Expand All @@ -29,7 +29,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
to: variables.allStateUsersEmails?.length
? variables.allStateUsersEmails
: [`${variables.submitterName} <${variables.submitterEmail}>`],
subject: `SPA Package ${variables.id} Withdraw Request`,
subject: `SPA Package ${variables.id} Withdraw Requested`,
body: await render(<MedSpaStateEmail variables={variables} />),
};
},
Expand All @@ -45,7 +45,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
...variables.emails.srtEmails,
],
cc: variables.emails.chipCcList,
subject: `CHIP SPA Package ${variables.id} Withdraw Request`,
subject: `CHIP SPA Package ${variables.id} Withdraw Requested`,
body: await render(<ChipSpaCMSEmail variables={variables} />),
};
},
Expand All @@ -56,7 +56,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
to: variables.allStateUsersEmails?.length
? variables.allStateUsersEmails
: [`${variables.submitterName} <${variables.submitterEmail}>`],
subject: `CHIP SPA Package ${variables.id} Withdraw Request`,
subject: `CHIP SPA Package ${variables.id} Withdraw Requested`,
body: await render(<ChipSpaStateEmail variables={variables} />),
};
},
Expand All @@ -71,7 +71,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
...variables.emails.cpocEmail,
...variables.emails.srtEmails,
],
subject: `Waiver Package ${variables.id} Withdraw Request`,
subject: `Waiver Package ${variables.id} Withdraw Requested`,
body: await render(<WaiverCMSEmail variables={variables} />),
};
},
Expand All @@ -82,7 +82,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
to: variables.allStateUsersEmails?.length
? variables.allStateUsersEmails
: [`${variables.submitterName} <${variables.submitterEmail}>`],
subject: `Waiver Package ${variables.id} Withdraw Request`,
subject: `Waiver Package ${variables.id} Withdraw Requested`,
body: await render(<WaiverStateEmail variables={variables} />),
};
},
Expand All @@ -98,7 +98,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
...variables.emails.cpocEmail,
...variables.emails.srtEmails,
],
subject: `Waiver Package ${variables.id} Withdraw Request`,
subject: `Waiver Package ${variables.id} Withdraw Requested`,
body: await render(<WaiverCMSEmail variables={variables} />),
};
},
Expand All @@ -109,7 +109,7 @@ export const withdrawPackage: AuthoritiesWithUserTypesTemplate = {
to: variables.allStateUsersEmails?.length
? variables.allStateUsersEmails
: [`${variables.submitterName} <${variables.submitterEmail}>`],
subject: `Waiver Package ${variables.id} Withdraw Request`,
subject: `Waiver Package ${variables.id} Withdraw Requested`,
body: await render(<WaiverStateEmail variables={variables} />),
};
},
Expand Down
Loading

0 comments on commit 875c94c

Please sign in to comment.