-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proponent Confirm Email Updates #150
Conversation
Code Climate has analyzed commit 2d3917f and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 26.3% (50% is the threshold). This pull request will bring the total coverage in the repository to 36.6% (0.0% change). View more on Code Climate. |
6690acc
to
0694111
Compare
It's looking great! I think we should decrease the size of the logo and add the same margin to the right of the confirmation email message. Thank you! |
99bec22
to
6c2aa34
Compare
There's a issue that stems from a prior change that we should fix in this PR. Could you please add that logic in? |
@@ -256,7 +266,7 @@ async function emailConfirmation(activityId: string) { | |||
bodyType: 'text', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bodyType
is defined here, and can be set to html as we know the email contents we wish to send. The changes to the email api don't feel necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that works!
6c2aa34
to
f2c8062
Compare
return replacePlaceholders(baseTemplate, replaceConfig); | ||
}; | ||
|
||
export const confirmationTemplateEnquiry = (replaceConfig: { [key: string]: string | string[] | undefined }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function confirmationTemplateEnquiry
has 27 lines of code (exceeds 25 allowed). Consider refactoring.
f2c8062
to
7bb28a6
Compare
done! |
f66dcd6
to
cf9b837
Compare
other than the assistance confirmation email mentioned above, everything is looking good! |
frontend/src/utils/templates.ts
Outdated
const PCNS_URL = 'https://pcns-prod-master.apps.silver.devops.gov.bc.ca'; | ||
const BC_BANNER = 'https://coms.api.gov.bc.ca/api/v1/object/446ee8ee-e302-4cb8-b44d-24a1f583edba'; | ||
const BC_FOOTER = 'https://coms.api.gov.bc.ca/api/v1/object/853de44a-e62f-41f5-81fd-6eff6cb66d52'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a single set of constants in this file instead of duplicated in each function
frontend/src/utils/templates.ts
Outdated
const PCNS_URL = 'https://pcns-prod-master.apps.silver.devops.gov.bc.ca'; | ||
const BC_BANNER = 'https://coms.api.gov.bc.ca/api/v1/object/446ee8ee-e302-4cb8-b44d-24a1f583edba'; | ||
const BC_FOOTER = 'https://coms.api.gov.bc.ca/api/v1/object/853de44a-e62f-41f5-81fd-6eff6cb66d52'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a single set of constants in this file instead of duplicated in each function
frontend/src/utils/templates.ts
Outdated
@@ -59,13 +59,64 @@ const replacePlaceholders = (baseText: string, replacementConfig: { [key: string | |||
return newText; | |||
}; | |||
|
|||
export const confirmationTemplate = (replaceConfig: { [key: string]: string | string[] | undefined }) => { | |||
export const confirmationTemplateSubmission = (replaceConfig: { [key: string]: string | string[] | undefined }) => { | |||
const PCNS_URL = 'https://pcns-prod-master.apps.silver.devops.gov.bc.ca'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you ref the url from the route instead of hard coding in the production url?
Confirmation message text change
cf9b837
to
2d3917f
Compare
Description
PADS-282
Email template updated
Enquiry Description added to the email template
html query parameter added to email endpoint
email service layer updated to pass html data to chefs depending on the content
Types of changes
New feature (non-breaking change which adds functionality)
Checklist
Further comments