Files
Kordant/tasks/rebrand-to-kordant/05-update-web-email-notification-templates.md
2026-05-25 21:53:01 -04:00

47 lines
2.1 KiB
Markdown

# 05. Update Email Templates, Notification Content, and Queue Names
meta:
id: rebrand-to-kordant-05
feature: rebrand-to-kordant
priority: P1
depends_on: [rebrand-to-kordant-01]
tags: [backend, email]
objective:
- Replace all "ShieldAI" references in email templates, notification services, report generators, and BullMQ queue names.
deliverables:
- email.templates.ts — brand text, subjects, bodies, headers, footers updated
- email.templates.test.ts — test assertions updated
- notification.service.ts — from address updated to kordant.ai
- alert.publisher.ts — push notification title prefix updated
- reports.service.ts — report title updated
- reports/generator.ts — report text updated
- reports/templates/*.html — HTML report templates updated
- queue.ts — BullMQ queue name updated from "shieldai-jobs" to "kordant-jobs"
- waitlist-email-sequence-implementation.md — domain references updated
steps:
1. Edit email.templates.ts — replace all "ShieldAI" brand text in subjects, HTML, plain text bodies, footers, team signatures
2. Edit email.templates.ts — update from/noreply email to `noreply@kordant.ai`
3. Edit email.templates.test.ts — update test assertions to expect "Kordant"
4. Edit notification.service.ts — update `noreply@shieldai.app``noreply@kordant.ai`
5. Edit alert.publisher.ts — update `` `[ShieldAI] ${alert.title}` `` → `` `[Kordant] ${alert.title}` ``
6. Edit reports.service.ts — update report title from "ShieldAI" to "Kordant"
7. Edit reports/generator.ts — update all brand text references
8. Edit reports/templates/*.html — update title and footer in weekly-digest, monthly-plus, annual-premium
9. Edit queue.ts — update queue name "shieldai-jobs" → "kordant-jobs"
tests:
- Unit: Email template tests pass with new brand name
- Unit: Report generator tests pass
acceptance_criteria:
- No "ShieldAI" remains in any email template, notification, or report
- Email from address uses `@kordant.ai`
- BullMQ queue name uses "kordant-jobs"
validation:
- Run `grep -rn "ShieldAI" web/src/server/services/` — expect zero results
- Run `grep "shieldai-jobs" web/src/server/jobs/queue.ts` — expect zero