Appearance
A.5: Email Templates
Summary
Admins create, edit, preview, test, and delete email templates used by the backend email delivery service.
Role
- Primary: Admin
- Secondary: System, Resend
Entry Point
- List tab:
/admin/system-settings?tab=email - Detail:
/admin/system-settings/email-templates/:templateId
Preconditions
- User is authenticated as admin.
Steps
- Admin opens the email templates tab.
- Admin creates a new template or opens an existing one.
- Admin edits key, language, subject, body, and metadata.
- Admin previews rendered content.
- Admin optionally sends a test email.
- Admin saves or deletes the template.
Diagram
Edge Cases
- Test email: Test sends directly through template service and does not create a notification delivery record.
- Template key/language: Runtime email delivery looks up by key and language with English fallback.
- Delete: Deleting a template can affect future transactional email delivery.
Current Implementation Notes
- Frontend:
frontend/src/app/pages/admin/system-settings.tsx,frontend/src/app/pages/admin/email-template-detail.tsx - Backend:
backend/internal/services/email_template_service.go
Screenshot Status
- Not captured.