Skip to content

feat: Wire up email functions to use JSX templates from database (apn-htw1u4)#303

Merged
paulvanbrenk merged 1 commit intomainfrom
merge/apn-htw1u4
Feb 16, 2026
Merged

feat: Wire up email functions to use JSX templates from database (apn-htw1u4)#303
paulvanbrenk merged 1 commit intomainfrom
merge/apn-htw1u4

Conversation

@paulvanbrenk
Copy link
Collaborator

Summary

  • Adds template rendering utility to fetch and render JSX email templates from database
  • Updates sendWelcome and sendDigest functions to use DB templates with fallback to hardcoded HTML
  • Resolves rebase conflict: incorporated APP_BASE_URL fix into fallback HTML
  • Adds tests for template rendering and sendWelcome function

Test plan

  • All 395 tests pass
  • Rebase conflict resolved (APP_BASE_URL in fallback digest HTML)
  • Verify email templates render correctly from DB
  • Verify fallback works when no template exists

🤖 Generated with Claude Code

…-htw1u4)

Add templateRenderer utility that transpiles JSX source from EmailTemplates
DB table using esbuild and renders via @react-email/render. Update
sendWelcome and sendDigest to fetch templates from DB with fallback to
existing hardcoded HTML. Add comprehensive tests for all new functionality.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paulvanbrenk paulvanbrenk merged commit 2aea550 into main Feb 16, 2026
3 of 4 checks passed
@paulvanbrenk paulvanbrenk deleted the merge/apn-htw1u4 branch February 16, 2026 20:13
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