-
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.
feat(upload-sub-medicaid): add email templates for medicaid spa uploa…
…d subsequent docs (#905) * add all logic for upload subsequent documents * add andies comments * linter * Remove pairing comments * address comments * change territory
- Loading branch information
Showing
7 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
lib/libs/email/content/upload-subsequent-documents/emailTemplates/MedSpaCMS.tsx
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { CommonEmailVariables, Events } from "shared-types"; | ||
import { | ||
PackageDetails, | ||
BasicFooter, | ||
Attachments, | ||
SubDocHowToAccess, | ||
} from "../../email-components"; | ||
import { BaseEmailTemplate } from "../../email-templates"; | ||
|
||
export const MedSpaCMSEmail = (props: { | ||
variables: Events["UploadSubsequentDocuments"] & CommonEmailVariables; | ||
}) => { | ||
const variables = props.variables; | ||
|
||
return ( | ||
<BaseEmailTemplate | ||
previewText={`Medicaid SPA ${variables.id}`} | ||
heading={`New documents have been submitted for Medicaid SPA ${variables.id} in OneMAC.`} | ||
applicationEndpointUrl={variables.applicationEndpointUrl} | ||
footerContent={<BasicFooter />} | ||
> | ||
<PackageDetails | ||
details={{ | ||
"State or Territory": variables.territory, | ||
"Medicaid SPA Package ID": variables.id, | ||
Summary: variables.additionalInformation, | ||
}} | ||
/> | ||
<Attachments attachments={variables.attachments} /> | ||
<SubDocHowToAccess appEndpointURL={variables.applicationEndpointUrl} /> | ||
</BaseEmailTemplate> | ||
); | ||
}; |
35 changes: 35 additions & 0 deletions
35
lib/libs/email/content/upload-subsequent-documents/emailTemplates/MedSpaState.tsx
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Events } from "shared-types"; | ||
import { CommonEmailVariables } from "shared-types"; | ||
import { Text } from "@react-email/components"; | ||
import { PackageDetails, Attachments, BasicFooter } from "../../email-components"; | ||
import { BaseEmailTemplate } from "../../email-templates"; | ||
import { styles } from "../../email-styles"; | ||
|
||
export const MedSpaStateEmail = (props: { | ||
variables: Events["UploadSubsequentDocuments"] & CommonEmailVariables; | ||
}) => { | ||
const variables = props.variables; | ||
|
||
return ( | ||
<BaseEmailTemplate | ||
previewText={`Additional documents submitted for Medicaid SPA ${variables.id}`} | ||
heading={`You’ve successfully submitted the following to CMS reviewers for Medicaid SPA ${variables.id}`} | ||
applicationEndpointUrl={variables.applicationEndpointUrl} | ||
footerContent={<BasicFooter />} | ||
> | ||
<PackageDetails | ||
details={{ | ||
"State or Territory": variables.territory, | ||
Name: variables.submitterName, | ||
"Email Address": variables.submitterEmail, | ||
"Medicaid SPA Package ID": variables.id, | ||
Summary: variables.additionalInformation, | ||
}} | ||
/> | ||
<Attachments attachments={variables.attachments} /> | ||
<Text style={{ ...styles.text.base, marginTop: "16px" }}> | ||
If you have questions or did not expect this email, please contact your CPOC. | ||
</Text> | ||
</BaseEmailTemplate> | ||
); | ||
}; |
2 changes: 2 additions & 0 deletions
2
lib/libs/email/content/upload-subsequent-documents/emailTemplates/index.tsx
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export { ChipSpaCMSEmail } from "./ChipSpaCMS"; | ||
export { ChipSpaStateEmail } from "./ChipSpaState"; | ||
export { MedSpaCMSEmail } from "./MedSpaCMS"; | ||
export { MedSpaStateEmail } from "./MedSpaState"; | ||
export { AppKStateEmail } from "./AppKState"; | ||
export { AppKCMSEmail } from "./AppKCMS"; |
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
28 changes: 28 additions & 0 deletions
28
lib/libs/email/preview/Upload Subsequent Documents/CMS/MED_SPA.tsx
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { MedSpaCMSEmail } from "lib/libs/email/content/upload-subsequent-documents/emailTemplates"; | ||
import { emailTemplateValue } from "lib/libs/email/mock-data/upload-subsequent-documents"; | ||
import * as attachments from "lib/libs/email/mock-data/attachments"; | ||
|
||
const ChipSpaCMSEmailPreview = () => { | ||
return ( | ||
<MedSpaCMSEmail | ||
variables={{ | ||
...emailTemplateValue, | ||
id: "CO-24-1234", | ||
event: "upload-subsequent-documents", | ||
actionType: "Amend", | ||
authority: "Medicaid SPA", | ||
attachments: { | ||
currentStatePlan: attachments.currentStatePlan, | ||
amendedLanguage: attachments.amendedLanguage, | ||
coverLetter: attachments.coverLetter, | ||
budgetDocuments: attachments.budgetDocuments, | ||
publicNotice: attachments.publicNotice, | ||
tribalConsultation: attachments.tribalConsultation, | ||
other: attachments.other, | ||
}, | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default ChipSpaCMSEmailPreview; |
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
27 changes: 27 additions & 0 deletions
27
lib/libs/email/preview/Upload Subsequent Documents/State/MED_SPA.tsx
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { emailTemplateValue } from "lib/libs/email/mock-data/upload-subsequent-documents"; | ||
import { MedSpaStateEmail } from "lib/libs/email/content/upload-subsequent-documents/emailTemplates"; | ||
import * as attachments from "lib/libs/email/mock-data/attachments"; | ||
const ChipSpaStateEmailPreview = () => { | ||
return ( | ||
<MedSpaStateEmail | ||
variables={{ | ||
...emailTemplateValue, | ||
id: "CO-24-1234", | ||
event: "upload-subsequent-documents", | ||
actionType: "Amend", | ||
authority: "Medicaid SPA", | ||
attachments: { | ||
currentStatePlan: attachments.currentStatePlan, | ||
amendedLanguage: attachments.amendedLanguage, | ||
coverLetter: attachments.coverLetter, | ||
budgetDocuments: attachments.budgetDocuments, | ||
publicNotice: attachments.publicNotice, | ||
tribalConsultation: attachments.tribalConsultation, | ||
other: attachments.other, | ||
}, | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default ChipSpaStateEmailPreview; |