Skip to content

Commit 0e39d59

Browse files
rajat1saxenagoogle-labs-jules[bot]Rajat
authored
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

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

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
pnpm --filter @courselit/common-models build
2727
pnpm --filter @courselit/utils build
2828
pnpm --filter @courselit/text-editor build
29-
pnpm --filter @courselit/state-management build
3029
pnpm --filter @courselit/components-library build
3130
pnpm --filter @courselit/page-primitives build
3231
pnpm --filter @courselit/page-blocks build

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ report*.json
4444
globalConfig.json
4545

4646
# CourseLit files
47-
domains_to_delete.txt
47+
domains_to_delete.txt
48+
.codex

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Command for running tests: `pnpm test`.
77
- The project uses shadcn for building UI so stick to its conventions and design.
88
- In `apps/web` workspace, create a string first in `apps/web/config/strings.ts` and then import it in the `.tsx` files, instead of using inline strings.
9+
- For admin/dashboard empty states in `apps/web`, prefer reusing `apps/web/components/admin/empty-state.tsx` instead of creating one-off placeholder UIs.
910
- When working with forms, always use refs to keep the current state of the form's data and use it to enable/disable the form submit button.
1011
- Check the name field inside each package's package.json to confirm the right name—skip the top-level one.
1112
- While working with forms, always use zod and react-hook-form to validate the form. Take reference implementation from `apps/web/components/admin/settings/sso/new.tsx`.

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@docsearch/css": "^3.1.0",
1919
"@docsearch/react": "^3.1.0",
2020
"@types/node": "^18.0.0",
21-
"@types/react": "^17.0.45",
21+
"@types/react": "^18.0.0",
2222
"@types/react-dom": "^18.0.0",
2323
"astro": "^1.4.2",
2424
"preact": "^10.7.3",
758 KB
Loading
572 KB
Loading
468 KB
Loading
326 KB
Loading
108 KB
Loading

apps/docs/src/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ export const SIDEBAR: Sidebar = {
9696
text: "Sequences (Campaigns)",
9797
link: "en/email-marketing/sequences",
9898
},
99+
{
100+
text: "Templates",
101+
link: "en/email-marketing/templates",
102+
},
99103
{
100104
text: "Analytics",
101105
link: "en/email-marketing/analytics",

0 commit comments

Comments
 (0)