Skip to content

Modernize transactional email templates - #144

Open
sschipke wants to merge 1 commit into
developfrom
feature/modernize-email-templates
Open

sschipke wants to merge 1 commit into
developfrom
feature/modernize-email-templates

Conversation

@sschipke

Copy link
Copy Markdown
Owner

Summary

  • Rebuilt all 13 transactional emails on a shared Handlebars layout with branded header, footer, CTA buttons, and info callouts
  • Added emailLogoUrl / emailHeaderColor config, bundled favicon asset, and npm run email:preview for local HTML previews
  • Fixed sendSessionDeletionErrorEmail to use the session-deletion-error template (was incorrectly using session-deletion-count)

Post-deploy verification checklist

Verify each email after deploying to staging. Check branding (burgundy header, green CTAs, logo, footer), links, and copy.

# Template Subject Recipient How to trigger in staging
1 welcome Welcome to the SpKuLeHaS App! New user Create a user account that sends the legacy welcome email (if still used in your flow)
2 password-reset Password Reset User Log out → Forgot Password? → submit a member email
3 new-member Welcome {firstName}, to Schipke SpKuLeHaS! New member Admin → add a new member (welcome / create-password email)
4 email-change-alert Your Email Has Changed Member Admin or member updates the account email address
5 status-change-alert Your Status Has Changed Member Admin changes a member's status (e.g. to shareholder S1)
6 profile-change-notification {name}'s Profile Has Been Updated Member Admin updates a member's profile (address / phone)
7 reservation-change Your Reservation Has Changed Affected members Admin edits an existing reservation (dates and/or member)
8 reservation-created A Reservation Has Been Created Admin Member or admin creates a new reservation
9 reservation-deleted Reservation Canceled Affected members Admin cancels / deletes a reservation
10 new-member-alert A New Member Has Been Created Admin Admin adds a new member
11 bulk-reservations-delete Past Reservations Have Been Deleted Admin Wait for the nightly cron that purges past reservations, or trigger that job manually
12 session-deletion-count Session Deletion from SpKuLeHaS Admin Wait for the session cleanup cron, or trigger it manually when expired sessions exist
13 session-deletion-error ERROR: Session Deletion from SpKuLeHaS Admin Induced only on session-cleanup failure (optional — verify via npm run email:preview locally)

Local preview (no deploy required)

npm run email:preview
open tmp/email-previews/index.html

Test plan

  • npm run email:preview renders all 13 templates
  • Spot-check password reset and new-member emails in Gmail / Apple Mail after staging deploy
  • Confirm logo loads from https://spkulehas.com/favicon.png in received mail
  • Walk through the staging checklist above for member-facing emails (rows 2–9)
  • Confirm admin alert emails (rows 8, 10–12) arrive with correct data

Made with Cursor

Introduce reusable Handlebars layout/partials, brand config tokens, local preview tooling, and updated styling across all 13 notification emails.

Co-authored-by: Cursor <[email protected]>
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