Ship 23 transactional templates, shared brand tokens/logo, preview UI, render API, CHANGELOG, and docs for Ecom/Admin/B2B consumers. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| app | ||
| docs/superpowers | ||
| emails | ||
| public/brand | ||
| .gitignore | ||
| CHANGELOG.md | ||
| next-env.d.ts | ||
| next.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Gishen Email Templates
React Email templates and a Next.js preview app for Gishen Pharmacy — shared across Ecom, Admin, and B2B.
Brand colors and logo are taken from Gishen-B2B / Gishen-Admin (#A8C73A, #141414, #E28A1A, cream #F6F7F2).
Features
- 23 templates (auth, orders, B2B, prescriptions, admin ops, marketing, shop analytics)
- English + Amharic (
locale=en|am) - Preview UI with category navigation, locale toggle, HTML download
- Render API for demos / consumer apps
shop-summarywithperiod=daily|weekly|monthly|quarterly|yearly
Getting started
npm install
npm run preview
Open http://localhost:3000.
React Email CLI
npm run email
Export HTML
npm run build
Render API
GET /api/email/[template]?locale=en|am
GET /api/email/shop-summary?locale=en&period=weekly
Returns text/html.
Templates
| ID | Category |
|---|---|
welcome |
Auth |
password-reset |
Auth |
email-verify |
Auth |
user-invite |
Auth |
order-confirmation |
Orders |
order-packing |
Orders |
order-out-for-delivery |
Orders |
order-delivered |
Orders |
order-cancelled |
Orders |
org-invite |
B2B |
join-code |
B2B |
approval-needed |
B2B |
statement-ready |
B2B |
credit-alert |
B2B |
organisation-verified |
B2B |
prescription-submitted |
Prescriptions |
prescription-decision |
Prescriptions |
prescription-ready |
Prescriptions |
low-stock |
Admin ops |
dispatch-assigned |
Admin ops |
procurement-alert |
Admin ops |
promotional |
Marketing |
shop-summary |
Analytics |
Consuming from Gishen apps
- Demo / staging: call the render API and send the HTML through your ESP.
- Production (later): import templates from this package or copy exported HTML into your notification worker.
Do not hardcode brand colours in Ecom/Admin/B2B mailers — keep them here.
Related repos
- Gishen-Ecom
- Gishen-Admin
- Gishen-B2B
- Structure inspired by Amba-Emails / Yaltopia Ticket Email
License
Proprietary — Yaltopia / Gishen.