Skip to content

feat(notification): add Denario wallet branding for verification-code mail#4375

Open
joshuakrueger-dfx wants to merge 2 commits into
developfrom
agent/denario-mail-branding
Open

feat(notification): add Denario wallet branding for verification-code mail#4375
joshuakrueger-dfx wants to merge 2 commits into
developfrom
agent/denario-mail-branding

Conversation

@joshuakrueger-dfx

Copy link
Copy Markdown
Collaborator

Summary

  • Wire the Denario partner wallet into the existing per-wallet mail branding mechanism (same pattern as RealUnit/onchainlabs)
  • New denario.hbs template (branded header, footer) used for all future Denario transactional mail
  • English mail-denario.json override for the verification-code mail (subject, salutation, dashed-border code box, closing) — other languages fall back to DFX default text
  • No dedicated mailbox provided by Denario, so it uses the default DFX mail transport with a custom display name

Test plan

  • tsc --noEmit clean
  • eslint clean on changed files
  • prettier --check clean
  • Live Handlebars render test (strict mode) of denario.hbs with verification-code content and with generic url/mail affix items (future non-verification mails)
  • Visual review of a real sent mail in sandbox once merged

… mail

Wires the Denario partner wallet into the existing per-wallet mail
branding mechanism (same mechanism as RealUnit/onchainlabs): a
dedicated denario.hbs template plus English verification_code
overrides, using the default DFX mail transport (no dedicated mailbox
provided by Denario).
- forcedLang 'en' so Denario's branded shell never wraps DFX default-
  language text for non-English users
- replace invalid div-in-p markup in the verification-code box with an
  inline-block span
- give the 2FA-login and email-change verification contexts distinct,
  accurate copy instead of reusing "continue with your registration"
  for both
- resolveMailWallet: order the branded-wallet lookup deterministically
  (most recently linked wins) now that more than one wallet can be
  isPreferred at once, since account merges are not wallet-restricted
- update the notification-service test to match: a preferred wallet is
  now always configured, so the DB lookup runs
@joshuakrueger-dfx
joshuakrueger-dfx marked this pull request as ready for review July 24, 2026 18:24
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