GRV-Email/README.md
kirukib fe0c693dc4 Add milestones-complete and post-event thank-you emails
- All milestones complete: sent on the scan that finishes every booth,
  investee and the mystery investee, with points, rank and badges.
- Thank you for coming: sent once by an admin after the event to everyone
  who checked in, with their own points, booths and connections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:46:34 +03:00

2.9 KiB

GRV-Email

Branded email templates for the Great Rift Valley Innovation Summit (GRV Summit 2.0), presented by the Ethiopian Diaspora Trust Fund.

Every email the platform sends is defined here: HTML (table-based, inline styles, works in Gmail, Outlook and Apple Mail), a plain-text version, and sample data for previews. The backend sends exactly these templates, and the admin has a preview page for them.

Templates

Group Template Sent when
Account Sign-in code (OTP) Someone signs in to the app or admin
Account Team invite (door staff / admin) An admin adds someone on the Team page
Invitations Summit invitation (guest / investor / speaker) Personal invitations to attend
Invitations Invitation to apply Recommended startups, before the deadline
Applications Draft saved (resume link) A founder starts an application
Applications Application received A founder submits
Applications Decision: Finalist, Accepted into GRV, Shortlisted, Not selected Staff change an application's status
Requests & partners Request received: partnership, sponsorship, booth, press, general, sales, startup recommendation, newsletter Any website form
Requests & partners Partner confirmed (sponsor / exhibitor / partner) A partnership is confirmed
Tickets Order received (tickets / merch), Tickets issued Orders and payments
At the summit All milestones complete An attendee finishes every booth, investee and the mystery investee
At the summit Thank you for coming (with their stats) An admin sends it after the event to everyone who checked in
Staff New application, New request Team inbox notifications

Use

pnpm install
pnpm preview      # renders previews/*.html (+ .txt) and a gallery: open previews/index.html
pnpm sync         # copies src/ into ../GRV-Backend/src/shared/email (BACKEND_DIR to override)
pnpm typecheck

SITE_URL=http://localhost:3000 pnpm preview renders against a local site.

How it fits

  • src/layout.ts is the GRV layout and brand tokens (greens #30614c / #1a4034, sage #b9d8c9, gold badges, DM Sans, topographic hero).
  • src/templates.ts has createTemplates({ siteUrl, adminUrl, assetsUrl }), which returns every email as { subject, html, text }.
  • src/catalog.ts lists every template and version with sample data. The admin's Email templates page and pnpm preview both use it.
  • The backend's src/shared/email-templates.ts adapts backend data to these functions. Change wording or design here, then run pnpm sync; never edit the synced copy in the backend.

Images

Emails load images from the public site: /GRVLogo.png and /email/pattern.png (in GRVSummit/public/email/, copied from assets/). Until the site is deployed with them, the hero falls back to solid brand green. Point the backend at another host with EMAIL_ASSETS_URL.