diff --git a/frontend/package.json b/frontend/package.json index 20bcbd25b..9d30ddbde 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -31,7 +31,6 @@ "@types/js-cookie": "^3.0.6", "@types/jsonwebtoken": "^9.0.9", "@types/markdown-it": "^13.0.9", - "@types/node": "^22.13.12", "@types/react": "^19.0.12", "@types/react-dom": "^19.0.4", "constructs": "^10.4.2", diff --git a/frontend/src/__tests__/app/message-plans/choose-email-template/preview-template/__snapshots__/page.test.tsx.snap b/frontend/src/__tests__/app/message-plans/choose-email-template/preview-template/__snapshots__/page.test.tsx.snap index 20bcdec5e..f148d0121 100644 --- a/frontend/src/__tests__/app/message-plans/choose-email-template/preview-template/__snapshots__/page.test.tsx.snap +++ b/frontend/src/__tests__/app/message-plans/choose-email-template/preview-template/__snapshots__/page.test.tsx.snap @@ -62,7 +62,7 @@ exports[`PreviewEmailTemplateFromMessagePlan page renders Email template preview
| + Select + | ++ Name + | ++ Type + | ++ Last edited + | ++ |
|---|---|---|---|---|
|
+
+
+
+
+
+ |
+ + + authoring letter template name + | ++ + Standard letter + | +
+
+ 13th Jan 2025
+ + 10:19 + |
+ + + + Preview + + | +
+ file.pdf +
- app content + +
+ file.csv
- -+ a.pdf +
++ b.pdf +
+- This template cannot be edited because it has been submitted. -
If you want to change a submitted or live template, you must create a new template to replace it.
@@ -145,7 +266,7 @@ exports[`PreviewSubmittedTemplate component routing = false should render app me- email content + app content
@@ -315,7 +411,7 @@ exports[`PreviewSubmittedTemplate component routing = false should render email `; -exports[`PreviewSubmittedTemplate component routing = false should render letter 1`] = ` +exports[`PreviewSubmittedTemplate component routing = false should render authoring letter 1`] = `- file.csv -
-- a.pdf -
-- b.pdf -
-- SMS content + email content
@@ -726,7 +796,7 @@ exports[`PreviewSubmittedTemplate component routing = false should render sms 1` `; -exports[`PreviewSubmittedTemplate component routing = true should render app message 1`] = ` +exports[`PreviewSubmittedTemplate component routing = false should render sms 1`] = `- You cannot edit or delete this template because it's used in a message plan that's in production. -
-- - Copy this template - - to create a draft with the same content. -
-- app content + SMS content
@@ -872,6 +921,12 @@ exports[`PreviewSubmittedTemplate component routing = true should render app mes+ This template cannot be edited because it has been submitted. +
++ If you want to change a submitted or live template, you must create a new template to replace it. +
`;
-exports[`PreviewSubmittedTemplate component routing = true should render email 1`] = `
+exports[`PreviewSubmittedTemplate component routing = true should render PDF letter 1`] = `
- You cannot edit or delete this template because it's used in a message plan that's in production. -
-- - Copy this template - - to create a draft with the same content. + You cannot delete this template because it's used in a message plan that's in production.
+ file.pdf +
- email content + +
+ file.csv
- -+
+ a.pdf +
++ b.pdf +
+
`;
-exports[`PreviewSubmittedTemplate component routing = true should render letter 1`] = `
+exports[`PreviewSubmittedTemplate component routing = true should render app message 1`] = `
- You cannot delete this template because it's used in a message plan that's in production.
+ You cannot edit or delete this template because it's used in a message plan that's in production.
+
+
+ Copy this template
+
+ to create a draft with the same content.
- file.pdf
+
+ app content
+ You cannot delete this template because it's used in a message plan that's in production.
+
- a.pdf
-
- b.pdf
-
+ You cannot edit or delete this template because it's used in a message plan that's in production.
+
+
+ Copy this template
+
+ to create a draft with the same content.
+
+ email content
+
+
+ Edit name
+
+ for Authoring Letter
+
+
+
+
+ Edit name
+
+ for Authoring Letter
+
+
+
- file.pdf
+
+ app content
- file.pdf
-
- app content
-
- template.pdf
+
+ message
- message
+
+
+ template.pdf
+
+ Edit name
+
+ for test-template-letter
+
+
+
+
+ Edit name
+
+ for test-template-letter
+
+
+
+
+ Edit name
+
+ for test-template-letter
+
+
+
+
+ {actions.editName}
+
+ {' '}
+ for {template.name}
+
+
+
- {backLinkText}
+ {backLinkText}
+
+ {backLinkText}
+
+
+
+
+
+
+ Example authoring letter
+
+
+
-
+ Standard letter
+
+ Example Email template
+
+
+
+
+
@@ -1429,7 +1868,7 @@ exports[`PreviewSubmittedTemplate component routing = true should render sms 1`]
+ Authoring Letter
+
+
+ Authoring Letter
+
+
+ Authoring Letter
+
+
- Example template
-
-
-
-
- Example template
-
-
-
-
-
-
+ test-template-letter
+
+
+ There is a problem
+
+
+
+
+ test-template-letter
+
+
+ There is a problem
+
+
+
+
+ test-template-letter
+
+
- {proofFilenames.map((file) => (
-
-
+ {proofFilenames.map((file) => (
+
+