stack/apps/dashboard/src/components
BilalG1 01b0c84a0d
Editor typing, esbuild bundling, template saving (#785)
https://www.loom.com/share/950f16dbbda0481ba1dea0cf593f347e?sid=51ed6cc3-5f48-4145-9a65-a6a80a45cab0
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Refactor email rendering and theme management using TypeScript and
esbuild, updating backend routes, frontend components, and tests.
> 
>   - **Backend Changes**:
> - Updated `render-email` route in `route.tsx` to handle
`theme_tsx_source` and `template_tsx_source`.
> - Modified `email-templates` and `email-themes` routes to use new
theme and template handling logic.
> - Updated `email-template-adapter.ts` to use
`renderEmailWithTemplate`.
> - Enhanced `renderEmailWithTemplate` in `email-themes.tsx` to use
esbuild for bundling.
>   - **Frontend Changes**:
> - Updated `page-client.tsx` in email templates and themes to use
`ThemePreview` with `tsxSource`.
> - Modified `CodeEditor` in `code-editor.tsx` to support TypeScript and
JSX with esbuild.
> - Added `use-debounce` to `package.json` for debouncing input changes.
>   - **Testing**:
> - Added tests in `email-themes.test.ts` and `render-email.test.ts` to
cover new email rendering logic.
> - Updated `unsubscribe-link.test.ts` to verify unsubscribe
functionality with new email rendering.
>   - **Miscellaneous**:
> - Updated `helpers/emails.ts` to export `LightEmailTheme` and
`DarkEmailTheme` as functions.
> - Adjusted `admin-interface.ts` and `admin-app-impl.ts` to support new
email theme and template operations.
> 
> <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 891ff8ebf7. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-07-24 09:47:00 -07:00
..
assistant-ui Email themes UI fixes (#768) 2025-07-18 10:25:54 -07:00
data-table Improve user profile page (#712) 2025-07-02 02:59:12 +02:00
pacifica Widget playground mobile mode 2025-07-14 20:04:43 -07:00
ui Improve metrics page chart sizing on Safari 2024-12-29 19:07:35 -08:00
vibe-coding Editor typing, esbuild bundling, template saving (#785) 2025-07-24 09:47:00 -07:00
code-block.tsx Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
confetti.tsx Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
dev-error-notifier.tsx Improve user profile page (#712) 2025-07-02 02:59:12 +02:00
env-keys.tsx Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
error-page.tsx UI restructured (#161) 2024-08-02 01:03:01 +02:00
feedback-dialog.tsx Disallow invalid emails 2024-11-20 00:12:20 +01:00
form-dialog.tsx Added custom SMTP email server testing on the dashboard (#376) 2024-12-20 19:04:05 +01:00
form-fields.tsx Port dashboard to Next.js 15 (#560) 2025-03-24 00:03:50 +01:00
inline-code.tsx Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
link.tsx Glassy dashboard style (#411) 2025-02-03 10:03:35 -08:00
logo.tsx Update logo 2025-03-31 13:20:35 -07:00
navbar.tsx Make dashboard look more like the landing page 2025-07-01 19:18:06 -07:00
permission-field.tsx Remove some console.error calls 2024-11-13 11:32:34 +01:00
project-card.tsx Source of Truth (#660) 2025-07-11 17:59:03 -07:00
project-switcher.tsx fixed overflows 2024-10-16 22:41:20 -07:00
router.tsx Fix trailing space lint errors 2024-07-14 10:37:34 -07:00
search-bar.tsx Make dashboard look more like the landing page 2025-07-01 19:18:06 -07:00
settings.tsx Option for merging/blocking account creations with same email but different oauth provider (#502) 2025-03-10 21:25:12 +00:00
site-loading-indicator.tsx Glassy dashboard style (#411) 2025-02-03 10:03:35 -08:00
smart-form.tsx Config DB migration step 2 (#629) 2025-04-29 14:52:45 -07:00
smart-image.tsx Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
style-link.tsx Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
theme-preview.tsx Editor typing, esbuild bundling, template saving (#785) 2025-07-24 09:47:00 -07:00
theme-provider.tsx Require newline at the end of each file 2024-10-13 13:06:38 -07:00
theme-toggle.tsx Local emulator (#422) 2025-02-13 18:57:02 +01:00
user-dialog.tsx No more instanceof KnownError 2025-05-15 12:13:19 -07:00
user-dialogs.tsx Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
version-alerter.tsx JS lib docs (#444) 2025-02-20 00:48:05 +01:00