Skip to content

feat: Resend email infrastructure with branded templates#98

Merged
Kikolator merged 1 commit intodevfrom
feat/resend-email-templates
Mar 21, 2026
Merged

feat: Resend email infrastructure with branded templates#98
Kikolator merged 1 commit intodevfrom
feat/resend-email-templates

Conversation

@Kikolator
Copy link
Copy Markdown
Owner

@Kikolator Kikolator commented Mar 21, 2026

Summary

  • Install Resend SDK + React Email for transactional email sending
  • Add platform-branded layout (platform logo, footer) for platform-level emails
  • Add tenant-branded layout (dynamic space logo/name header, accent bar using space primary color, business address footer) for tenant-scoped emails
  • Create starter templates: new space (platform), booking confirmation + space signup (tenant)
  • Add sendPlatformEmail() / sendTenantEmail() helpers with notifications_log integration and idempotency key support
  • Add buildTenantBranding() utility to resolve space branding from DB records
  • Add email:dev script for local template preview

Files

  • apps/web/lib/resend.ts — Resend client init
  • apps/web/lib/email.ts — send helpers, notification logging, tenant branding builder
  • apps/web/emails/components/ — platform + tenant layout components
  • apps/web/emails/platform/new-space.tsx — platform-branded template
  • apps/web/emails/tenant/booking-confirmation.tsx — tenant-branded with booking details
  • apps/web/emails/tenant/space-signup.tsx — tenant-branded welcome email

Test plan

  • Add RESEND_API_KEY via vercel integration add resend + vercel env pull
  • Run npm run email:dev --workspace=apps/web to preview templates locally
  • Verify tenant layout renders space logo, name, colors, and address correctly
  • Send test email via Resend test domain (onboarding@resend.dev)
  • Verify notifications_log entry is created on send

🤖 Generated with Claude Code

Set up Resend + React Email with platform-branded and tenant-branded
layouts. Includes booking confirmation, space signup, and new space
templates with dynamic tenant branding (logo, colors, business details).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
cowork-admin Ignored Ignored Mar 21, 2026 2:53pm
cowork-platform Ignored Ignored Mar 21, 2026 2:53pm

Request Review

@Kikolator Kikolator merged commit f0d460e into dev Mar 21, 2026
11 checks passed
@Kikolator Kikolator deleted the feat/resend-email-templates branch March 21, 2026 20:14
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