Conversation
…/UserOfficeProject/user-office-core into add-configurable-email-templates
Thank you for clarifying, that user will enter the PUG syntax in the field. And then - yes we can add latter the syntax verification and highligting with the library. Would be nice addition and seems like a low hanging fruit. |
Perfect, thanks. This sounds promissing. |
mutambaraf
left a comment
There was a problem hiding this comment.
Looks good just the few comments.
apps/backend/src/datasources/mockups/EmailTemplateDataSource.ts
Outdated
Show resolved
Hide resolved
|
I also tried to use it as is on my local set up and having this error |
I guess you have status actions referencing email templates. These templates should be created with proper names, subjects and bodies. I can create the templates in this PR in the DB patch but I don't know the email bodies and subjects. Having this feature, would you move the email subjects/bodies completely into UOS? Or you still want to keep those details outside UOS? |
…/UserOfficeProject/user-office-core into add-configurable-email-templates
So we need to move from files and create all our template into the database. |


Description
Configure email templates from UI. The PR introduces a new table for storing email templates (name, description, subject, body). The logic of assigning email templates to status actions will be the same as before: the user selects the template name from the list of available templates (populated from DB).
Important notes:
Motivation and Context
At ELI we frequently change the email templates and found it uncomfortable to write physical files on the host of the backend.
How Has This Been Tested
Manual tests + backend test.
Fixes
N/A
Changes
See above
Depends on
N/A
Tests included/Docs Updated?
Yes