-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(emails): Email IDM branch (#680)
* made minor text changes, have not tested yet * compared and made the same as the confluence where possible, added the text files, also did a minor rearrange so that it follows cms -> state pattern * merged master & changed email for testing purposes * trying this to get emails to my personal * added missing appK title key for Ammendment title * added a switch just for appK title * changing the appK title logic because I broke it * removed whole appK case bc I think that broke it? * removed my email that was there for testing because I dont need it anymore * fixed extra tag and changed to a value we have * putting appKtitle back * added appKtitle to dataLIst * lowercase K for appk and removed my email * cleaned up a little * changed intial waiver to actionType variable * fixed minor text change missing the variable actionType and matched text for appK * corrected email template text for temporary-extension-state template according to templates confluence page * fixed text for waiver withdraw state email * fixed text on withdraw-rai-1915b-state * added missing TE type variable * oy2-28874: added other text for empty summary * removed duplicate lines as per Hannas Jira comment * Oy2 28892 - fix 1915(c) emails (#692) * make waiver withdraw and respond to rai generic across 1915b and 1915c * remove unused var causing cms withdraw emails to fail * Oy2 28896 (#681) * added cpoc to ToAddresses for waiver/medecaid related email templates * correct email templates toAddresses as per Email Notification Confluence Co-authored-by: Andie Swift <[email protected]> * merged main * deleted src to match master * withdraw chip rai - added the cms reciepents to datalist & added cognito to lookup list to fix issue where no email isnt being sent --------- Co-authored-by: Benjamin Paige <[email protected]> Co-authored-by: Alex Youssefinia <[email protected]> Co-authored-by: bflynn-cms <[email protected]>
- Loading branch information
1 parent
08e0d72
commit 09a6e85
Showing
4 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,7 +247,7 @@ [email protected] or your state lead. | |
Thank you!`, | ||
}, | ||
{ | ||
name: "withdraw-package-1915b-cms", | ||
name: "withdraw-package-waiver-cms", | ||
subject: "Waiver Package {{id}} Withdraw Request", | ||
html: ` | ||
<p>The OneMAC Submission Portal received a request to withdraw the package below. | ||
|
@@ -264,34 +264,34 @@ Summary: | |
<p>If the contents of this email seem suspicious, do not open them, and instead | ||
forward this email to <a href='mailto:[email protected]'>[email protected]</a>.</p> | ||
<p>Thank you!</p>`, | ||
text: ` | ||
he OneMAC Submission Portal received a request to withdraw the package below. | ||
text: ` | ||
The OneMAC Submission Portal received a request to withdraw the package below. | ||
The package will no longer be considered for CMS review: | ||
State or territory: {{territory}} | ||
Name: {{submitterName}} | ||
Email: {{submitterEmail}} | ||
{{actionType}} Number: {{id}} | ||
Waiver Number: {{id}} | ||
Summary: | ||
{{additionalInformation}} | ||
If the contents of this email seem suspicious, do not open them, and instead forward this email to [email protected]. | ||
Thank you!` | ||
Thank you!`, | ||
}, | ||
{ | ||
name: "withdraw-package-1915b-state", | ||
subject: "1915(b) Waiver {{id}} Withdrawal Confirmation", | ||
name: "withdraw-package-waiver-state", | ||
subject: "{{authority}} Waiver {{id}} Withdrawal Confirmation", | ||
html: ` | ||
<p>This email is to confirm 1915(b) Waiver {{id}} was withdrawn | ||
by {{submitterName}}. The review of 1915(b) Waiver {{id}} has concluded.</p> | ||
<p>This email is to confirm {{authority}} Waiver {{id}} was withdrawn | ||
by {{submitterName}}. The review of {{authority}} Waiver {{id}} has concluded.</p> | ||
<p>If you have questions, please contact | ||
<a href='mailto:[email protected]'>[email protected]</a> or your state lead.</p> | ||
<p>Thank you!</p>`, | ||
text: ` | ||
This email is to confirm 1915(b) Waiver {{id}} was withdrawn by {{submitterName}}. | ||
The review of 1915(b) Waiver {{id}} has concluded. | ||
This email is to confirm {{authority}} Waiver {{id}} was withdrawn by {{submitterName}}. | ||
The review of {{authority}} Waiver {{id}} has concluded. | ||
If you have questions, please contact [email protected] or your state lead. | ||
|
@@ -529,7 +529,7 @@ Any other correspondence will be disregarded. | |
If you have any questions, please contact [email protected] or your state lead. | ||
Thank you!` | ||
Thank you!`, | ||
}, | ||
{ | ||
name: "withdraw-rai-1915b-state", | ||
|
@@ -572,7 +572,7 @@ Any other correspondence will be disregarded. | |
If you have any questions, please contact [email protected] or your state lead. | ||
Thank you!` | ||
Thank you!`, | ||
}, | ||
{ | ||
name: "withdraw-package-medicaid-spa-cms", | ||
|
@@ -967,10 +967,10 @@ If you have any questions, please contact [email protected] o | |
Thank you!`, | ||
}, | ||
{ | ||
name: "respond-to-rai-1915b-cms", | ||
name: "respond-to-rai-waiver-cms", | ||
subject: "Waiver RAI Response for {{id}} Submitted", | ||
html: ` | ||
<p>The OneMAC Submission Portal received a 1915(b) Waiver RAI Response Submission:</p> | ||
<p>The OneMAC Submission Portal received a {{authority}} Waiver RAI Response Submission:</p> | ||
<ul> | ||
<li>The submission can be accessed in the OneMAC application, which you | ||
can find at <a href='{{applicationEndpoint}}'>this link</a>.</li> | ||
|
@@ -996,7 +996,7 @@ Summary: | |
forward this email to <a href='mailto:[email protected]'>[email protected]</a>.</p> | ||
<p>Thank you!</p>`, | ||
text: ` | ||
The OneMAC Submission Portal received a 1915(b) Waiver RAI Response Submission: | ||
The OneMAC Submission Portal received a {{authority}} Waiver RAI Response Submission: | ||
- The submission can be accessed in the OneMAC application, which you can | ||
find at {{applicationEndpoint}}. | ||
|
@@ -1024,11 +1024,11 @@ forward this email to [email protected]. | |
Thank you!`, | ||
}, | ||
{ | ||
name: "respond-to-rai-1915b-state", | ||
name: "respond-to-rai-waiver-state", | ||
subject: | ||
"Your 1915(b) Waiver RAI Response for {{id}} has been submitted to CMS", | ||
"Your {{authority}} Waiver RAI Response for {{id}} has been submitted to CMS", | ||
html: ` | ||
<p>This response confirms the submission of your 1915(b) Waiver RAI Response to CMS for review:</p> | ||
<p>This response confirms the submission of your {{authority}} Waiver RAI Response to CMS for review:</p> | ||
<p> | ||
<br><b>State or territory:</b> {{territory}} | ||
<br><b>Name:</b> {{submitterName}} | ||
|
@@ -1053,7 +1053,7 @@ requests on Waivers only. Any other correspondence will be disregarded. | |
or your state lead.</p> | ||
<p>Thank you!</p>`, | ||
text: ` | ||
This response confirms the submission of your 1915(b) Waiver RAI Response to CMS for review: | ||
This response confirms the submission of your {{authority}} Waiver RAI Response to CMS for review: | ||
State or territory: {{territory}} | ||
Name: {{submitterName}} | ||
|
@@ -1231,7 +1231,7 @@ Thank you!`, | |
name: "temporary-extension-cms", | ||
subject: "{{authority}} Waiver Extension {{id}} Submitted", | ||
html: ` | ||
<p>The Submission Portal received a {{authority}} Waiver Extension Submission:</p> | ||
<p>The OneMAC Submission Portal received a {{authority}} Waiver Extension Submission:</p> | ||
<ul> | ||
<li>The submission can be accessed in the OneMAC application, which you | ||
can find at <a href='{{applicationEndpoint}}'>this link</a>.</li> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ import { | |
AttachmentKey, | ||
attachmentTitleMap, | ||
EmailAddresses, | ||
} from "shared-types"; | ||
import { getSecret } from "shared-utils"; | ||
} from "../../packages/shared-types"; | ||
import { getSecret } from "../../packages/shared-utils"; | ||
|
||
interface Attachment { | ||
title: keyof typeof attachmentTitleMap; | ||
|
@@ -171,7 +171,10 @@ export const buildEmailData = async ( | |
emailAddresses[dataType] ?? | ||
`'${dataType} Substitute' <[email protected]>`; | ||
break; | ||
|
||
case "additionalInformation": | ||
returnObject[dataType] = | ||
data[dataType] ?? "No additional information submitted"; | ||
break; | ||
default: | ||
returnObject[dataType] = | ||
data[dataType] ?? lookupValues[dataType] ?? "missing data"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters