mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
<!-- Make sure you've read the CONTRIBUTING.md guidelines: https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md --> <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Implement batch email rendering and sending with enhanced processing and error handling. > > - **Behavior**: > - Implement batch email rendering and sending in `route.tsx` using `renderEmailsWithTemplateBatched()` and `sendEmailResendBatched()`. > - Add per-recipient notification category resolution and unsubscribe link generation. > - Support templates from IDs, raw HTML, or drafts with dynamic theme handling. > - Enhanced result reporting, including users without primary emails. > - **Functions**: > - Add `renderEmailsWithTemplateBatched()` in `email-rendering.tsx` for batch email rendering. > - Add `sendEmailResendBatched()` in `emails.tsx` for batch email sending. > - Add `getChunks()` in `arrays.tsx` to split arrays into chunks. > - **Tests**: > - Add timed waits in `send-email.test.ts` and `unsubscribe-link.test.ts` to stabilize email delivery checks. > - **Dependencies**: > - Add `@react-email/render` and `resend` to `package.json` for email rendering and sending. > > <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 |
||
|---|---|---|
| .. | ||
| api-keys.tsx | ||
| arrays.tsx | ||
| base64.tsx | ||
| booleans.tsx | ||
| browser-compat.tsx | ||
| bytes.tsx | ||
| caches.tsx | ||
| compile-time.tsx | ||
| crypto.tsx | ||
| currencies.tsx | ||
| currency-constants.tsx | ||
| dates.tsx | ||
| dom.tsx | ||
| env.tsx | ||
| errors.tsx | ||
| esbuild.tsx | ||
| featurebase.tsx | ||
| fs.tsx | ||
| functions.tsx | ||
| geo.tsx | ||
| globals.tsx | ||
| hashes.tsx | ||
| html.tsx | ||
| http.tsx | ||
| ips.tsx | ||
| json.tsx | ||
| jwt.tsx | ||
| locks.tsx | ||
| maps.tsx | ||
| math.tsx | ||
| node-http.tsx | ||
| numbers.tsx | ||
| oauth.tsx | ||
| objects.tsx | ||
| passkey.tsx | ||
| promises.tsx | ||
| proxies.tsx | ||
| react.tsx | ||
| results.tsx | ||
| sentry.tsx | ||
| stores.tsx | ||
| strings.nicify.test.ts | ||
| strings.tsx | ||
| telemetry.tsx | ||
| types.tsx | ||
| unicode.tsx | ||
| urls.tsx | ||
| uuids.tsx | ||