Commit Graph

2089 Commits

Author SHA1 Message Date
Zai Shi
7862a3ef65 Refactor config overrides CRUD handlers by simplifying paramsSchema and removing unused exports in route.tsx 2025-07-31 15:09:08 -07:00
Zai Shi
40db4e2ff0 Merge branch 'project-config-to-json' of github.com:stackframe-projects/stack into project-config-to-json 2025-07-31 15:01:44 -07:00
Zai Shi
c76d55fafc fix 2025-07-31 15:01:42 -07:00
Zai Shi
9e5a049f25
Update apps/e2e/tests/backend/endpoints/api/v1/internal/config-overrides.test.ts
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-07-31 22:00:31 +02:00
Zai Shi
5a05e017d7 fix 2025-07-31 12:35:39 -07:00
Zai Shi
60ced05237 Merge branch 'dev' into project-config-to-json 2025-07-31 11:45:36 -07:00
Zai Shi
40a6c7a7dc Merge branch 'remove-old-config' into project-config-to-json 2025-07-31 11:44:07 -07:00
Konstantin Wohlwend
a846432c61 Fix globe blur 2025-07-31 11:42:50 -07:00
Zai Shi
7226c40d0a
Remove legacy tenancy config (#802)
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Refactor tenancy configuration structure, affecting authentication,
email, domain, OAuth, and permissions settings, with updates to feature
flag checks, property access, and test assertions.
> 
>   - **Refactor**:
> - Updated configuration structure for authentication, email, domain,
OAuth, and permissions settings, affecting feature flag checks and
property access in `handlers.tsx`, `route.tsx`, and `crud.tsx`.
> - Improved handling of domain and OAuth provider configurations for
integrations and CRUD operations.
> - Adjusted redirect URL validation and origin checks to use updated
tenancy configuration.
> - Transformed project and tenancy configuration data returned by API
handlers for consistency.
> - Centralized email theme and template retrieval from updated
configuration paths.
>   - **Bug Fixes**:
> - Corrected error messages related to OTP sign-in feature
availability.
>   - **Tests**:
> - Updated test assertions to match new error messages for OTP sign-in.
>   - **Chores**:
> - Reorganized import statements and updated internal logic to align
with new configuration structure.
> 
> <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 ae04ae28be. 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

* **Refactor**
* Updated configuration structure for authentication, email, domain,
OAuth, and permissions settings, resulting in changes to feature flag
checks and property access throughout the backend.
* Improved handling of domain and OAuth provider configurations for
integrations and CRUD operations.
* Adjusted redirect URL validation and origin checks to use updated
tenancy configuration.
* Transformed project and tenancy configuration data returned by API
handlers for consistency.
* Centralized email theme and template retrieval from updated
configuration paths.
* Simplified redirect URL validation calls by passing tenancy objects
directly.
* Updated passkey, password, OTP, and OAuth feature flag checks to new
nested configuration properties.

* **Bug Fixes**
* Corrected error messages related to OTP sign-in feature availability.

* **Tests**
  * Updated test assertions to match new error messages for OTP sign-in.

* **Chores**
* Reorganized import statements and updated internal logic to align with
new configuration structure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-31 20:06:33 +02: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