feat(cms): white-label email templates and API doc config #2

Merged
libretech merged 1 commits from feat/white-label-content into main 2026-04-29 20:13:24 +02:00
Owner

Summary

  • Replace all hardcoded muellerprints brand identity in email templates with template variables sourced from env vars
  • Inject shop context into both sendInvoice and sendDeliveryNote template calls in order.ts
  • Make API documentation title/description env-var driven

New env vars (all optional with safe defaults)

Var Default Used in
SHOP_NAME "Shop" Email subject, body, footer
SHOP_CONTACT_NAME "" Email footer
SHOP_ADDRESS "" Email footer
SHOP_PHONE "" Email footer
SHOP_EMAIL ADMIN_EMAIL_ADDRESS Email footer
SHOP_LOGO_URL "" Email header logo
SHOP_SECONDARY_LOGO_URL "" Email footer logo
API_TITLE "Paperwork API" Swagger/OpenAPI title
API_DESCRIPTION "Paperwork API" Swagger/OpenAPI description

Test plan

  • Set SHOP_NAME=TestShop and trigger invoice send → confirm subject and body use TestShop
  • Leave SHOP_NAME unset → confirm default "Shop" appears
  • Set SHOP_LOGO_URL → confirm logo renders in email header; unset → confirm no broken <img> tag
  • Check Strapi admin /documentation with API_TITLE=MyAPI env var

Closes #1

## Summary - Replace all hardcoded muellerprints brand identity in email templates with template variables sourced from env vars - Inject shop context into both `sendInvoice` and `sendDeliveryNote` template calls in `order.ts` - Make API documentation title/description env-var driven ## New env vars (all optional with safe defaults) | Var | Default | Used in | |-----|---------|---------| | `SHOP_NAME` | `"Shop"` | Email subject, body, footer | | `SHOP_CONTACT_NAME` | `""` | Email footer | | `SHOP_ADDRESS` | `""` | Email footer | | `SHOP_PHONE` | `""` | Email footer | | `SHOP_EMAIL` | `ADMIN_EMAIL_ADDRESS` | Email footer | | `SHOP_LOGO_URL` | `""` | Email header logo | | `SHOP_SECONDARY_LOGO_URL` | `""` | Email footer logo | | `API_TITLE` | `"Paperwork API"` | Swagger/OpenAPI title | | `API_DESCRIPTION` | `"Paperwork API"` | Swagger/OpenAPI description | ## Test plan - [ ] Set `SHOP_NAME=TestShop` and trigger invoice send → confirm subject and body use `TestShop` - [ ] Leave `SHOP_NAME` unset → confirm default `"Shop"` appears - [ ] Set `SHOP_LOGO_URL` → confirm logo renders in email header; unset → confirm no broken `<img>` tag - [ ] Check Strapi admin `/documentation` with `API_TITLE=MyAPI` env var Closes #1
libretech added 1 commit 2026-04-29 20:01:50 +02:00
feat(cms): white-label email templates and API doc config
All checks were successful
Build and publish / build (pull_request) Successful in 4m38s
f0855a07e7
Replace all hardcoded muellerprints brand identity in email templates
with template variables (shopName, shopContactName, shopAddress,
shopPhone, shopEmail, shopLogoUrl, shopSecondaryLogoUrl) sourced from
env vars SHOP_NAME, SHOP_CONTACT_NAME, SHOP_ADDRESS, SHOP_PHONE,
SHOP_EMAIL, SHOP_LOGO_URL, SHOP_SECONDARY_LOGO_URL.

API documentation title/description now driven by API_TITLE and
API_DESCRIPTION env vars.

Closes #1
libretech merged commit defd078e4b into main 2026-04-29 20:13:24 +02:00
libretech deleted branch feat/white-label-content 2026-04-29 20:13:29 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: libreshop/cms#2
No description provided.