stack/apps/backend/src
BilalG1 43340f0eb7
default new email templates (#788)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> This PR adds default email templates and themes, updates schema and
components, and introduces a migration tool for email templates.
> 
>   - **Behavior**:
> - Adds default email templates and themes, including `Email
Verification`, `Password Reset`, `Magic Link/OTP`, `Team Invitation`,
and `Sign In Invitation`.
> - Updates `render-email` and `send-email` routes to use `themes` and
`templates` instead of `themeList` and `templateList`.
> - Introduces migration tool for email templates in `page-client.tsx`
and `page.tsx`.
>   - **Schema**:
> - Updates `branchConfigSchema` and `organizationConfigDefaults` to use
`selectedThemeId`, `themes`, and `templates`.
>     - Adds `templateThemeIdSchema` to `schema-fields.ts`.
>   - **Components**:
> - Replaces `ThemePreview` with `EmailPreview` in various components.
>     - Adds `ResizableContainer` for email preview resizing.
>   - **Tests**:
> - Updates e2e tests for email themes and templates to reflect new
schema and behavior.
>   - **Misc**:
> - Renames `themeList` to `themes` and `templateList` to `templates` in
multiple files.
>     - Adds new email template metadata in `utils.tsx`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 49554ca03d. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->
2025-07-25 10:54:34 -07:00
..
app default new email templates (#788) 2025-07-25 10:54:34 -07:00
auto-migrations Auto migration (#526) 2025-07-24 02:38:37 +02:00
lib default new email templates (#788) 2025-07-25 10:54:34 -07:00
oauth Auto migration (#526) 2025-07-24 02:38:37 +02:00
route-handlers Source of Truth (#660) 2025-07-11 17:59:03 -07:00
utils Source of Truth (#660) 2025-07-11 17:59:03 -07:00
analytics.tsx Fix event capture 2024-08-14 12:49:35 -07:00
globals.d.ts Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
instrumentation.ts Source of Truth (#660) 2025-07-11 17:59:03 -07:00
middleware.tsx Fix Apple OAuth (#669) 2025-05-13 18:38:09 +02:00
polyfills.tsx Fix unhandled promise rejections in rawQuery 2025-04-11 09:59:45 -07:00
prisma-client.tsx Auto migration (#526) 2025-07-24 02:38:37 +02:00
smart-router.tsx Move /api/v1 to /api/latest 2025-02-05 17:24:43 -08:00