Skip to content

Split email template and update text #528

Closed
@maxceem

Description

@maxceem

Background

We have 12 kind of email notifications, which are at the moment presented using 1 HTML template https://github.com/topcoder-platform/taas-apis/blob/dev/data/notifications-email-template.html.
This email template is inserted into sendgird and we render different email depend on the data we pass there.

Such a big single template is hard to edit from Sendgrid by managers, also, some data we pass from API so managers cannot edit it from Sengrid.

  • We would like to split this template into separate email template for each notification.
  • And we should stop passing data from API which can be edited directly in template.

Task

  1. Split HTML template https://github.com/topcoder-platform/taas-apis/blob/dev/data/notifications-email-template.html into separate HTML template for each kind of email.

    • We should be able to defined Sendgrid Template Id for each of these templates by ENV var.
    • {{description}} should not be passed from API anymore, it should be included directly inside the template as text, so managers could edit it there. If there is any other hardcoded text which we pass from API we should not pass it anymore and should include directly in email template.
  2. Update each email text as per document https://docs.google.com/document/d/1L3_1SWwjwfpbiddLWwxDBD1HebRK2iT_pmBPehz2yKo/edit

  3. Update script https://github.com/topcoder-platform/taas-apis/tree/dev/scripts/demo-email-notifications so it can render demo notifications using different templates for demo.

  4. For verification, please, provide screenshot and rendered HTML file for each kind of 12 email notifications.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions