Create MJML registration confirmation email template #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — discovered during registration flow audit (2026-04-07). Current confirmation email is inline Python HTML with hardcoded March 24 tryout details.
Repo
forgejo_admin/westside-emailsUser Story
As a parent who just registered
I want to receive a professional branded email confirming my registration with my player details and login credentials
So that I know my registration worked and can access my account
Context
The confirmation email is currently built as 180 lines of inline HTML in
basketball-api/services/email.pyvia_build_confirmation_html(). It hardcodes "Tuesday, March 24" tryout details. The MJML template system already exists and is used byjersey-reminder— this template needs to join that system. Thesponsor-outreach.mjmltemplate provides the brand shell to follow: dark header with logo, red accent bar, body content, dark footer.File Targets
Files to create:
src/registration-confirmation.mjml— new MJML templatecompiled/registration-confirmation.html— compiled outputFiles for reference (do not modify):
src/sponsor-outreach.mjml— brand shell to matchcompiled/jersey-reminder.html— example of working compiled templateAcceptance Criteria
Test Expectations
mjml src/registration-confirmation.mjml -o compiled/registration-confirmation.htmlmjml src/registration-confirmation.mjml -o compiled/registration-confirmation.htmlConstraints
sponsor-outreach.mjml(Ubuntu font, 13px base, dark palette)#c41230(matches existing templates)https://minio-api.tail5b443a.ts.net/assets/westside/branding/logo.jpeg{{key}}(literal double braces — basketball-api does simple string replacement, no Jinja)Checklist
Related
westside-basketball— projectforgejo_admin/basketball-api#383— consumes this template viaload_email_template()(parallel ticket)pal-e-platform/docs/superpowers/specs/2026-04-07-registration-flow-fix-design.mdAPPROVED — reference files verified, placeholders aligned, no conflicts.
Verification details:
src/sponsor-outreach.mjmlexists as brand shell reference.compiled/exists with 5 existing templates (action, announcement, jersey-reminder, notification, sponsor-outreach).mjml src/registration-confirmation.mjml -o compiled/registration-confirmation.html.parent_name,player_name,division,position,height,grad_class,profile_url,frontend_url,credentials_block,tenant_name) align with the design spec.divisionis a new addition (not in current inline HTML) — the parallel basketball-api ticket (#383) will wire it.profile_urlreplaces the oldreg_urlwith updated copy context.registration-confirmation.mjmldoes not exist insrc/.Ready for dev.