Commit Graph

2107 Commits

Author SHA1 Message Date
Zai Shi
dee426f9fc remove word 2025-07-31 16:33:15 -07:00
Zai Shi
8e581f69ec remove logging 2025-07-31 16:31:33 -07:00
Zai Shi
eb5a1731a3
Merge branch 'dev' into project-config-to-json 2025-08-01 01:24:20 +02:00
Konstantin Wohlwend
5f4d35e083 Add tracing to ESBuild 2025-07-31 16:22:55 -07:00
Zai Shi
48bb8757d8 add tests 2025-07-31 16:22:14 -07:00
Zai Shi
db50e41726 fix 2025-07-31 16:18:17 -07:00
Zai Shi
44eecf6bbc
Merge branch 'dev' into project-config-to-json 2025-08-01 01:05:11 +02:00
Zai Shi
677de8aa73 fix 2025-07-31 16:04:41 -07:00
Konstantin Wohlwend
f5bf1f3dee Increase version alerter zIndex
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-31 16:00:26 -07:00
Zai Shi
1d5291007e fix 2025-07-31 15:59:05 -07:00
Konstantin Wohlwend
c09a17b9e0 Fix project cards when there are many projects 2025-07-31 15:58:50 -07:00
Zai Shi
5d451709b6
Merge branch 'dev' into project-config-to-json 2025-08-01 00:56:34 +02:00
Zai Shi
b3b581c56f fix tests 2025-07-31 15:54:35 -07:00
Konstantin Wohlwend
7c14504098 Do-not-delete warning on external projects 2025-07-31 15:50:57 -07:00
Konstantin Wohlwend
9399b84f97 Use retryTransaction instead of $transaction 2025-07-31 15:43:48 -07:00
Zai Shi
ee330cb919 Refactor config CRUD handlers to standardize naming conventions for config strings and enhance validation in update operations. 2025-07-31 15:40:34 -07:00
Konstantin Wohlwend
7fe0dbf742 Fix tests 2025-07-31 15:25:26 -07:00
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
Shridhar Deshmukh
8f55c1e710
fix: update super-admin-key name for neon auth (#809)
Deleting super-secrete-admin-key breaks the integration with Neon Auth.
This Pull request adds warning to key name to not delete it.
2025-07-31 13:15:57 -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