feat(backend): Add email template system (verification, notifications… - #505
Open
elcabasa wants to merge 2 commits into
Open
feat(backend): Add email template system (verification, notifications…#505elcabasa wants to merge 2 commits into
elcabasa wants to merge 2 commits into
Conversation
…, dispute) - Add Handlebars-based email template engine with EmailTemplateService - Create base layout with Vaultix branding (dark theme, inline CSS) - Add templates: email verification, password reset, escrow invitation, escrow status change, dispute filed, dispute resolved, milestone release, party accepted/rejected, condition fulfilled/confirmed, expiration warning - Refactor EmailSender to use template service instead of inline HTML - Wire up sendEmailVerification() in AuthService to send real emails - Add admin preview endpoint (GET /v1/admin/email-templates/preview/:name) - All templates use inline CSS and table-based layout for email client compatibility
|
@elcabasa Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
feat(backend): Add reusable email template system for Vaultix notifications
fixes #491
Summary
This PR introduces a reusable email templating system for Vaultix, providing a consistent, branded experience across all transactional emails. The implementation includes a shared base layout, reusable components, event-specific templates, and an admin preview endpoint to simplify development and testing.
The goal is to establish a maintainable foundation for all future email communications while ensuring compatibility with major email clients.
Closes #491
What Changed
Email Template System
Transactional Email Templates
Implemented templates for:
Each template supports dynamic content including:
Template Preview
Styling
Testing
Added test coverage for:
Validation
Verified that:
Why This Change?
Vaultix previously had no dedicated email template system, making future email functionality inconsistent and difficult to maintain.
This implementation provides:
Acceptance Criteria
Security Impact
No security changes were introduced.
This PR focuses on email presentation and template infrastructure. The preview endpoint follows the project's existing authentication and authorisation patterns to prevent unauthorised access.
Notes for Reviewers