Skip to content

Commit

Permalink
Merge pull request #348 from bcgov/DAP-1006-email-template
Browse files Browse the repository at this point in the history
DAP-1006: Updated email template
  • Loading branch information
BradyMitch authored Nov 27, 2024
2 parents 917fa59 + 81899ee commit 9b092cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
18 changes: 11 additions & 7 deletions backend/src/modules/filelist/utils/email.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
export const filelistEmail = `<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333333; margin: 0; padding: 0;">
<div style="width: 100%; max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #dddddd; border-radius: 5px; background-color: #f9f9f9;">
<div style="width: 100%; max-width: 600px; margin: 10px auto; padding: 20px; border: 1px solid #dddddd; border-radius: 5px; background-color: #f9f9f9;">
<div style="font-size: 18px; font-weight: bold; color: #0263cb; margin-bottom: 10px;">
Digital Archives Transfer Service
Digital File List
</div>
<div style="font-size: 16px;">
<p style="margin: 0 0 10px;">
The creation of your file list for the Digital Archives Transfer Service is complete.
Please find your digital file list (ARS 662) attached to this email.
</p>
<p style="margin: 0 0 10px;">
Please find the generated file list attached to this email for your review and records.
If you have questions please contact
<a href="mailto:[email protected]?subject=Records%20Transfer%20Question">
[email protected]
</a> or your
<a href="https://www2.gov.bc.ca/gov/content/governments/services-for-government/information-management-technology/records-management/records-contacts/ministries" target="_blank">
Government Information Management (GIM) Specialists.
</a>
</p>
<p style="margin: 0;">
Thank you for using the Digital Archives Transfer Service!
Thank you for using the Digital Archives Transfer Service (DATS)!
</p>
</div>
<div style="font-size: 12px; color: #888888; margin-top: 20px;">
<p style="margin: 0;">
This is an automated message. Please do not reply to this email.
<br />
For assistance, please email the PO, Alexandra Khan @ [email protected]
</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions backend/src/modules/filelist/utils/queueConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const queueConsumer = async (msg: amqp.ConsumeMessage, channel: amqp.Chan
// Handle output file type
switch (filelist.outputFileType) {
case "excel": {
const filename = `File_List_${date}.xlsx`;
const filename = `Digital_File_List_${date}.xlsx`;

// Create Excel workbook
const workbook: Workbook = createExcelWorkbook({
Expand Down Expand Up @@ -74,14 +74,14 @@ export const queueConsumer = async (msg: amqp.ConsumeMessage, channel: amqp.Chan
bodyType: "html",
body: filelistEmail,
to: [email],
subject: "DATS - File List",
subject: "DATS - Digital File List Created",
});

return channel.ack(msg);
}

case "json": {
const filename = `File_List_${date}.json`;
const filename = `Digital_File_List_${date}.json`;

// Create JSON file list
const jsonFile: JsonFileList = createJsonFileList({
Expand Down
8 changes: 5 additions & 3 deletions desktop/src/renderer/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,18 @@ export const HomePage = ({ authenticated }: Props) => {
)}
</Stack>

<Stack gap={1} sx={{ marginTop: 1 }}>
<Typography variant="h3">Need Assistance?</Typography>
<Stack sx={{ marginTop: 1 }}>
<Typography variant="h3" sx={{ marginBottom: "10px" }}>
Need Assistance?
</Typography>

<Stack direction="row" gap={"5px"} sx={{ alignItems: "center", marginLeft: 2 }}>
<Typography variant="h4">For assistance, contact your</Typography>
<Link
href="https://www2.gov.bc.ca/gov/content/governments/services-for-government/information-management-technology/records-management/records-contacts/ministries"
target="_blank"
>
GIM Specialists.
Government Information Management (GIM) Specialists.
</Link>
</Stack>

Expand Down

0 comments on commit 9b092cf

Please sign in to comment.