You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://www.loom.com/share/11affd2a119549c18a4056ad5db34cb6?sid=c86dd093-b8ca-4600-afb1-dda78e40b6a5
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Adds support for 'resend' email provider, updating configurations,
schemas, and UI components to handle the new provider.
>
> - **Behavior**:
> - Adds support for 'resend' email provider in
`createOrUpdateProjectWithLegacyConfig()` in `projects.tsx`.
> - Updates `PageClient` in `page-client.tsx` to handle 'resend'
provider in email configuration.
> - Modifies `EditEmailServerDialog` to include 'resend' option and
handle its configuration.
> - **Schema**:
> - Updates `environmentConfigSchema` in `schema.ts` to include 'resend'
as a valid provider.
> - Modifies `AdminEmailConfig` type to include 'resend' in
`project-configs/index.ts`.
> - **UI**:
> - Updates `SendEmailDialog` and `TestSendingDialog` in
`page-client.tsx` to handle 'resend' provider.
> - Adjusts form fields in `EditEmailServerDialog` to support 'resend'
specific fields like API Key.
>
> <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 615fd72. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- New Features
- Added support for Resend email provider alongside Shared and Custom
SMTP.
- Introduced an in-app test to verify email settings before saving.
- New Shared Email Server dialog with guidance and warnings.
- Improvements
- Streamlined email configuration with a type dropdown and conditional
fields.
- Clearer defaults and display text, including noreply@stackframe.co for
Shared setups.
- Enhanced validation tailored to each email mode.
- Chores
- Updated configuration schema to include a provider field for email
servers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
host: definedWhenNotShared(yup.string(),"Host is required"),
108
-
port: definedWhenNotShared(yup.number().min(0,"Port must be a number between 0 and 65535").max(65535,"Port must be a number between 0 and 65535"),"Port is required"),
109
-
username: definedWhenNotShared(yup.string(),"Username is required"),
110
-
password: definedWhenNotShared(yup.string(),"Password is required"),
111
-
senderEmail: definedWhenNotShared(strictEmailSchema("Sender email must be a valid email"),"Sender email is required"),
112
-
senderName: definedWhenNotShared(yup.string(),"Email sender name is required"),
host: definedWhenTypeIsOneOf(yup.string(),["standard"],"Host is required"),
116
+
port: definedWhenTypeIsOneOf(yup.number().min(0,"Port must be a number between 0 and 65535").max(65535,"Port must be a number between 0 and 65535"),["standard"],"Port is required"),
117
+
username: definedWhenTypeIsOneOf(yup.string(),["standard"],"Username is required"),
118
+
password: definedWhenTypeIsOneOf(yup.string(),["standard","resend"],"Password is required"),
119
+
senderEmail: definedWhenTypeIsOneOf(strictEmailSchema("Sender email must be a valid email"),["standard","resend"],"Sender email is required"),
120
+
senderName: definedWhenTypeIsOneOf(yup.string(),["standard","resend"],"Email sender name is required"),
0 commit comments