-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add configurable email templates #1173
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
Merged
Merged
Changes from all commits
Commits
Show all changes
139 commits
Select commit
Hold shift + click to select a range
23a1cb7
feat: add backend implementation for configurable email templates
ecb009e
Merge branch 'develop' into add-configurable-email-templates
bbf6b81
feat: add skeleton for frontend implementation of configurable email …
16fc59e
Merge branch 'develop' into add-configurable-email-templates
c032423
feat: update backed for email templates
892ca3b
Merge branch 'develop' into add-configurable-email-templates
4647053
feat: update migration script
537f445
--amend
2ade6c1
Merge branch 'develop' into add-configurable-email-templates
ac9919e
feat: update email templates backend
bb3ae4b
Merge branch 'develop' into add-configurable-email-templates
2ed631c
feat: update graphql
0a69611
Merge branch 'develop' into add-configurable-email-templates
0301e94
feat: add validation for email template delete
9828a7e
feat: start backend test implementation
209bcb9
Merge branch 'develop' into add-configurable-email-templates
8ac3a81
feat: add backend tests
e9cb621
feat: fix email template events
593c1b0
Merge branch 'develop' into add-configurable-email-templates
7f035d1
fix: restore vite.config.mts
8d04cd8
fix: e2e tests
3884223
Merge branch 'develop' into add-configurable-email-templates
gnyiri 6e808f6
fix: update email folder for temporary template files
3306878
Merge branch 'add-configurable-email-templates' of https://github.com…
62e48a5
fix: update Mail service for e2e run
19fac52
fix: update Mail service for e2e run
97683e4
fix: change email templates verification
868727a
fix: update email temp directory
0336aec
fix: update e2d for email templates
048b88e
fix: update e2d for email templates
0061bcf
Merge branch 'develop' into add-configurable-email-templates
gnyiri 75ec614
Merge branch 'develop' into add-configurable-email-templates
gnyiri e5adfe1
fix: complete failed merge
bbc250c
fix: delete unnecessary db seed file
bcc44ae
Merge branch 'develop' into add-configurable-email-templates
gnyiri 2bd3ea2
fix: add logs
7d15582
Merge branch 'add-configurable-email-templates' of https://github.com…
e0eb37e
Merge branch 'develop' into add-configurable-email-templates
gnyiri ce7e11b
fix: change temporary template file name
be11205
fix: add check for template file existence
36e4341
fix: add logs
5d5ecb0
fix: update e2e tests
f2af9bc
fix: update e2e tests
c441c9f
fix: update test-build.yml
09ebc7c
Merge branch 'develop' into add-configurable-email-templates
f4a4f61
Merge branch 'develop' into add-configurable-email-templates
c3602ec
Merge branch 'develop' into add-configurable-email-templates
9124e43
fix email template create patch to deal with NULL array length
434a482
Merge branch 'develop' into add-configurable-email-templates
61adfb7
Merge branch 'develop' into add-configurable-email-templates
gnyiri eda5b1d
Merge branch 'develop' into add-configurable-email-templates
gnyiri 587ad82
Merge branch 'develop' into add-configurable-email-templates
gnyiri 5d66635
Merge branch 'develop' into add-configurable-email-templates
gnyiri 8e0c4c3
Merge branch 'develop' into add-configurable-email-templates
gnyiri 481d4b8
Merge branch 'develop' into add-configurable-email-templates
9cd5c9c
Merge branch 'develop' into add-configurable-email-templates
3bfb6bc
fix: change resetDb in statusActions.ts.cy
d561534
Merge branch 'develop' into add-configurable-email-templates
gnyiri 6381bc5
Merge branch 'develop' into add-configurable-email-templates
gnyiri 89d9645
Merge
bc4f54f
Merge
cdc1c05
Merge branch 'develop' into add-configurable-email-templates
b3fb8a6
fix: review comments
d2657ca
fix: build error
18f6995
Merge branch 'develop' into add-configurable-email-templates
gnyiri b599dc2
fix: review comments
4fc0ff7
Merge branch 'develop' into add-configurable-email-templates
23b7078
fix: email template delete
039f3c8
fix: backend test
60aa48c
fix: e2e tests
5235f1b
fix: review findings
0c9625d
Merge branch 'develop' into add-configurable-email-templates
09bbddd
fix: use rendered html directly when sending email
60667c4
fix: backend tests
6464c61
fix: e2e tests
39dd7f5
fix: e2e tests
1958cb3
fix: e2e tests
59cf824
fix: e2e tests
ccd1efa
fix: e2e tests
b362fdf
fix: backend tests
ab6bb33
fix: remove migration part of DB script
27e797c
Merge branch 'develop' into add-configurable-email-templates
gnyiri f613257
Merge branch 'develop' into add-configurable-email-templates
febf06b
Merge branch 'develop' into add-configurable-email-templates
333a24e
Merge branch 'develop' into add-configurable-email-templates
gnyiri 09753e2
Merge branch 'develop' into add-configurable-email-templates
gnyiri eef02e8
Merge branch 'develop' into add-configurable-email-templates
gnyiri c2db754
fix: rename emailTemplateId to emailTemplateName
d5cfb10
Merge branch 'develop' into add-configurable-email-templates
b9d22f2
Merge branch 'develop' into add-configurable-email-templates
gnyiri 56bf649
Merge branch 'develop' into add-configurable-email-templates
gnyiri 8deded2
Merge branch 'develop' into add-configurable-email-templates
b035a01
Merge branch 'add-configurable-email-templates' of https://github.com…
085b07d
Merge branch 'develop' into add-configurable-email-templates
gnyiri 3cdca8f
Merge branch 'develop' into add-configurable-email-templates
mutambaraf 06990cf
fix: look for the email template file first and only use the DB if no…
3634ed6
add email template option to use subject and body from template file
0d500d3
Merge branch 'develop' into add-configurable-email-templates
gnyiri 23d3444
Merge branch 'develop' into add-configurable-email-templates
gnyiri 68642d5
Merge branch 'develop' into add-configurable-email-templates
gnyiri 27b3069
Merge branch 'develop' into add-configurable-email-templates
gnyiri b431871
Merge branch 'develop' into add-configurable-email-templates
gnyiri 82ae153
fix: review findings
74b539a
Merge branch 'develop' into add-configurable-email-templates
gnyiri 1ba552b
Merge branch 'add-configurable-email-templates' of https://github.com…
485f69b
Merge branch 'develop' into add-configurable-email-templates
41a16c6
fix: review findings
7ef1077
Merge branch 'develop' into add-configurable-email-templates
09229a6
fix: backend tests for email templates
48d6389
Merge branch 'develop' into add-configurable-email-templates
gnyiri 0303f95
fix: e2e tests for statusActions
34fd178
fix: e2e tests for statusActions
5c626af
fix: e2e tests for statusActions
96a4678
Merge branch 'develop' into add-configurable-email-templates
gnyiri 85e6cc7
Merge branch 'develop' into add-configurable-email-templates
gnyiri 1a81547
fix: lint
33c8764
fix: lint
9d30834
fix: validation of email template delete
bec1e3d
Merge branch 'develop' into add-configurable-email-templates
gnyiri 2d690da
Merge branch 'develop' into add-configurable-email-templates
gnyiri aa666db
Merge branch 'develop' into add-configurable-email-templates
gnyiri 2574725
Merge branch 'develop' into add-configurable-email-templates
gnyiri c3620e4
Merge branch 'develop' into add-configurable-email-templates
gnyiri f0b8daa
fix: import order
47ac413
Merge branch 'develop' into add-configurable-email-templates
gnyiri f5ddfd0
fix: backend tests for essEmailHandler
7cc346b
Merge branch 'develop' into add-configurable-email-templates
gnyiri 08016f7
fix: backend tests for essEmailHandler
9327fbb
Merge branch 'develop' into add-configurable-email-templates
gnyiri 400bbba
Merge branch 'develop' into add-configurable-email-templates
gnyiri eebe042
Merge branch 'develop' into add-configurable-email-templates
gnyiri 0ea99d9
Merge branch 'develop' into add-configurable-email-templates
gnyiri b8c01e7
Merge branch 'develop' into add-configurable-email-templates
mutambaraf 0c81007
Merge branch 'develop' into add-configurable-email-templates
gnyiri 9037a29
Merge branch 'develop' into add-configurable-email-templates
gnyiri e979bb4
Merge branch 'develop' into add-configurable-email-templates
mutambaraf 5445336
Merge branch 'develop' into add-configurable-email-templates
bolmsten 44aabce
Merge branch 'develop' into add-configurable-email-templates
gnyiri f67f9a9
Merge branch 'develop' into add-configurable-email-templates
yoganandaness File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
apps/backend/db_patches/0202_CreateEmailTemplatesTable.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| DO | ||
| $$ | ||
| BEGIN | ||
| IF register_patch('CreateEmailTemplatesTable.sql', 'Gergely Nyiri', 'Create email templates table', '2025-07-15') THEN | ||
| CREATE TABLE IF NOT EXISTS email_templates ( | ||
| email_template_id serial PRIMARY KEY, | ||
| created_by INT NOT NULL REFERENCES users(user_id), | ||
| created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), | ||
| name varchar(100) NOT NULL UNIQUE, | ||
| description varchar(255) NOT NULL, | ||
| use_template_file boolean DEFAULT FALSE, | ||
| subject varchar(160), | ||
| body text | ||
| ); | ||
| END IF; | ||
| END; | ||
| $$ | ||
| LANGUAGE plpgsql; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/backend/src/asyncJobs/jobs/checkInviteReminderJob.spec.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { EmailTemplate } from '../models/EmailTemplate'; | ||
| import { EmailTemplatesFilter } from '../resolvers/queries/EmailTemplatesQuery'; | ||
|
|
||
| export interface EmailTemplateDataSource { | ||
| getEmailTemplate(id: number): Promise<EmailTemplate | null>; | ||
| getEmailTemplateByName(name: string): Promise<EmailTemplate | null>; | ||
| getEmailTemplates( | ||
| filter?: EmailTemplatesFilter | ||
| ): Promise<{ totalCount: number; emailTemplates: EmailTemplate[] }>; | ||
|
|
||
| create( | ||
| createdByUserId: number, | ||
| name: string, | ||
| description: string, | ||
| useTemplateFile: boolean, | ||
| subject?: string, | ||
| body?: string | ||
| ): Promise<EmailTemplate>; | ||
|
|
||
| update( | ||
| id: number, | ||
| name: string, | ||
| description: string, | ||
| useTemplateFile: boolean, | ||
| subject?: string, | ||
| body?: string | ||
| ): Promise<EmailTemplate>; | ||
|
|
||
| delete(id: number): Promise<EmailTemplate>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.