Commit 0e39d59
Email templating system (#755)
* feat: Implement email templates
This commit introduces the email templates feature, allowing you to create reusable templates for broadcast and sequence emails.
Backend:
- Added `EmailTemplate` model.
- Implemented GraphQL queries (`getEmailTemplate`, `getEmailTemplates`) and mutations (`createEmailTemplate`, `updateEmailTemplate`, `deleteEmailTemplate`) for email templates.
- Added logic for the new GraphQL operations.
Frontend:
- Added a 'Templates' tab to the `/dashboard/mails` page.
- Created a `TemplatesList` component to display email templates.
- Created an email template editor page.
- Created a new page for selecting a template when creating a new broadcast or sequence.
- Updated the `createSequence` mutation to accept `title` and `content` from a template.
* Lint fixes
* Email templating system
* Email templating system
* Added email template docs
* Removed state-management package dist and its other mentions
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Rajat <hi@rajatsaxena.dev>1 parent 3ebbf57 commit 0e39d59
File tree
47 files changed
+3874
-309
lines changed- .github/workflows
- apps
- docs
- public/assets/emails
- src
- pages/en
- email-marketing
- website
- web
- __mocks__
- app/(with-contexts)
- (with-layout)/login
- dashboard
- (sidebar)/mails
- new
- __tests__
- sequence/[id]
- template/[id]
- mail
- sequence/[sequenceId]/[mailId]
- template/[id]
- internal
- components/admin
- dashboard-skeleton
- mails
- config
- graphql/mails
- __tests__
- templates/system-emails
- ui-config
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+3874
-309
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
0 commit comments