Skip to content

Conversation

@jcscottiii
Copy link
Collaborator

This commit introduces a comprehensive email delivery system, complete with structured templates, reusable components, and a dedicated styling system.

New email templates, including a defaultEmailTemplate, have been added, leveraging Go's html/template package for dynamic content rendering. These templates are designed with a component-based architecture, making them modular and easy to maintain.

A key feature of this commit is the introduction of reusable email components, such as badges, banners, and stat boxes. These components are defined in workers/email/pkg/digest/components.go and are designed to be easily configurable and reusable across different email types.

To ensure a consistent and polished look, a dedicated styling system has been implemented in workers/email/pkg/digest/styles.go. This file contains all the CSS styles used in the email templates, defined as template snippets. This approach centralizes all styling information, making it easy to manage and update the visual appearance of the emails.

A golden file, digest.golden.html, has been added to the test data to ensure that the email rendering remains consistent and predictable. The .prettierignore and Makefile have been updated to exclude this file from formatting and license checks.

Additionally, a suite of email icons and logos has been added to frontend/src/static/img/email to enhance the visual appeal of the emails.

This commit introduces a comprehensive email delivery system, complete with structured templates, reusable components, and a dedicated styling system.

New email templates, including a `defaultEmailTemplate`, have been added, leveraging Go's `html/template` package for dynamic content rendering. These templates are designed with a component-based architecture, making them modular and easy to maintain.

A key feature of this commit is the introduction of reusable email components, such as badges, banners, and stat boxes. These components are defined in `workers/email/pkg/digest/components.go` and are designed to be easily configurable and reusable across different email types.

To ensure a consistent and polished look, a dedicated styling system has been implemented in `workers/email/pkg/digest/styles.go`. This file contains all the CSS styles used in the email templates, defined as template snippets. This approach centralizes all styling information, making it easy to manage and update the visual appearance of the emails.

A golden file, `digest.golden.html`, has been added to the test data to ensure that the email rendering remains consistent and predictable. The `.prettierignore` and `Makefile` have been updated to exclude this file from formatting and license checks.

Additionally, a suite of email icons and logos has been added to `frontend/src/static/img/email` to enhance the visual appeal of the emails.
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt8 branch from 0b99b68 to b67a8e4 Compare December 31, 2025 02:27
@jcscottiii
Copy link
Collaborator Author

Example based on the designed mocks:

image image

@jcscottiii jcscottiii requested a review from jrobbins December 31, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant