Commit Graph

2081 Commits

Author SHA1 Message Date
Zai Shi
40a6c7a7dc Merge branch 'remove-old-config' into project-config-to-json 2025-07-31 11:44:07 -07:00
Zai Shi
ae04ae28be fix tests 2025-07-31 10:51:55 -07:00
Zai Shi
577eaf368e fix tests 2025-07-31 10:51:18 -07:00
Zai Shi
9fa42c703a Improve error handling for missing provider type in OAuth configuration 2025-07-31 09:52:45 -07:00
Zai Shi
079df58c1a fix types 2025-07-31 09:46:47 -07:00
Zai Shi
1904feb048
Merge branch 'dev' into remove-old-config 2025-07-31 18:39:32 +02:00
Zai Shi
405a63f795 Merge branch 'dev' into remove-old-config 2025-07-31 09:39:21 -07:00
Zai Shi
7f78755a53 fix types 2025-07-30 17:03:18 -07:00
Zai Shi
d2413f3de1 fix types 2025-07-30 17:02:57 -07:00
Zai Shi
617295265b fix 2025-07-30 16:45:59 -07:00
Konstantin Wohlwend
d573acd320 Better OAuth error message 2025-07-30 13:46:11 -07:00
Konstantin Wohlwend
d191b79197 Better 404 for docs 2025-07-30 13:37:05 -07:00
Konstantin Wohlwend
e24d47b80f Even more better error messages 2025-07-30 13:16:14 -07:00
Konstantin Wohlwend
b72353956b Better error messages 2025-07-30 12:57:45 -07:00
Konstantin Wohlwend
55db2cc7d4 Fix ESBuild initialization race condition 2025-07-30 12:33:43 -07:00
Konstantin Wohlwend
34d68b7817 More fixes 2025-07-30 12:25:03 -07:00
Konstantin Wohlwend
cecb520f52 Fixes 2025-07-30 12:22:09 -07:00
Konstantin Wohlwend
6c55e3da66 Update Featurebase redirect 2025-07-30 12:00:09 -07:00
Konstantin Wohlwend
78ba327f60 Fix typo 2025-07-30 11:30:41 -07:00
Madison
d601e99c6c
init deeplink redirects (#804)
<!--

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

-->


Fix for a lot of the deep links that are causing 404 errors from old
docs.

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Adds dynamic redirection for documentation routes in multiple
sections, redirecting to the correct page or an overview, with special
handling for REST API routes.
> 
>   - **Behavior**:
> - Adds dynamic redirection for documentation routes in `js`, `next`,
`python`, `react`, and `rest-api` sections.
> - Redirects to the correct documentation page or an overview if the
page doesn't exist.
>     - For `rest-api`, redirects to `/api` instead of `/docs`.
>   - **Files**:
> - `route.ts` in `js`, `next`, `python`, `react`, and `rest-api`
sections handle the redirection logic.
> - Uses `source.getPage()` or `apiSource.getPage()` to check page
existence.
> 
> <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 50c4b592a4. 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 dynamic redirection for documentation routes in JavaScript,
Next.js, Python, React, and REST API sections. Users are now
automatically redirected to the correct documentation page if it exists,
or receive a 404 not found response if the page is missing. This
improves navigation and error handling for documentation URLs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-07-30 13:18:17 -05:00
Konstantin Wohlwend
480dcba12e chore: update package versions 2025-07-30 10:50:54 -07:00
Konstantin Wohlwend
a11022524a Update CLAUDE.md 2025-07-30 10:50:19 -07:00
Zai Shi
e1c5018bd8 fix db:migration-gen 2025-07-30 09:46:27 -07:00
Konstantin Wohlwend
19142f40a9 Featurebase integration 2025-07-30 09:32:44 -07:00
Konstantin Wohlwend
7a0a26d6fd Freestyle mock 2025-07-29 13:52:44 -07:00
Konstantin Wohlwend
e2dd390925 Schema improvements 2025-07-29 12:13:29 -07:00
Konstantin Wohlwend
bfb2ba13d5 Update schema types 2025-07-29 11:27:26 -07:00
Konsti Wohlwend
7c0417d7d9
Several project config improvements (#811) 2025-07-29 04:13:46 -07:00
Konstantin Wohlwend
dd8783af09 Docstring for captureError 2025-07-29 01:37:26 -07:00
Konstantin Wohlwend
343ae8dcfd Don't capture email render errors 2025-07-29 01:34:05 -07:00
Konstantin Wohlwend
7fc5334cff Email preview improvements 2025-07-29 01:21:39 -07:00
Konstantin Wohlwend
a6a71d3c09 Deleted projects now no longer throw a 500 ISE 2025-07-28 23:40:24 -07:00
Konstantin Wohlwend
5ee342af7c Remove mcp-server
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-07-28 22:38:28 -07:00
Zai Shi
32afeb29ab more tests 2025-07-28 18:16:28 -07:00
Zai Shi
dabc619b27 tests 2025-07-28 17:37:06 -07:00
Konstantin Wohlwend
ddf1cfd01a Improve email deliverability checks
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-07-28 17:27:24 -07:00
BilalG1
b2cc6f2f58
sending new templates (#794) 2025-07-28 17:26:03 -07:00
Zai Shi
e2cb2ab2e8 tests 2025-07-28 16:49:27 -07:00
Zai Shi
41d8a4c807 tests 2025-07-28 16:46:23 -07:00
BilalG1
51b1104c20
fix variables conversion (#810) 2025-07-28 16:25:23 -07:00
Konstantin Wohlwend
82115700f2 Fix tests 2025-07-28 15:23:09 -07:00
Zai Shi
408e38773c added todos 2025-07-28 14:40:59 -07:00
Konstantin Wohlwend
e1c66cf8a8 chore: update package versions 2025-07-28 14:29:50 -07:00
Zai Shi
6458c54e08 add use config 2025-07-28 14:02:51 -07:00
BilalG1
2334884a79
creating templates and variableSchemas (#808)
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-07-25 18:49:14 -07:00
BilalG1
0a72170b63
migration fixes (#806)
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Improves email template migration by adding error handling, updating
default values, and adjusting styles across backend and dashboard
components.
> 
>   - **Behavior**:
> - In `route.tsx`, added check for non-existent projects, returning
zero templates converted.
> - Updated default values for email template rendering in `route.tsx`
and `page-client.tsx`.
>   - **Rendering**:
> - In `convert.tsx`, changed `textAlign` default from 'center' to
'left'.
>     - Set `padding` to '0' for `Container` elements in `convert.tsx`.
>   - **UI**:
> - In `page-client.tsx`, added progress tracking and error handling for
template conversion.
> - Updated UI components to reflect conversion progress and results in
`page-client.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 83df733aaf. 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 15:34:07 -07:00
Zai Shi
0387792f5c fix bugs 2025-07-25 10:56:46 -07:00
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
Zai Shi
d9a9ad65ec fix db migration script 2025-07-25 10:08:38 -07:00
Zai Shi
c18cae3199 Refactor updateConfigOverrides to handle legacy config structure and improve config management in StackAdminInterface 2025-07-25 10:02:01 -07:00