stack/apps/e2e/tests/backend/endpoints/api/v1
Zai Shi 2b5eebcd22
Config override CRUD (#803)
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Add admin-only API endpoints and UI support for project configuration
overrides, with comprehensive tests and documentation updates.
> 
>   - **New Features**:
> - Added admin-only API endpoints for reading and updating project
configuration overrides in `config/crud.tsx` and
`config/override/crud.tsx`.
> - Admin app supports fetching, caching, and updating configuration
overrides with new React hooks in `admin-app-impl.ts`.
>   - **Bug Fixes**:
> - Validation and error handling for OAuth providers, duplicate IDs,
and invalid config fields in `oauth-providers/crud.tsx`.
>   - **Tests**:
> - Added end-to-end tests for configuration management and validation
errors in `config.test.ts` and `js/config.test.ts`.
>   - **Documentation**:
> - Updated API documentation for new config override endpoints in
`config.ts`.
> 
> <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 3d20abc092. 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 the ability for admins to view and update project configuration
overrides through new internal API endpoints.
* Extended the admin app to support fetching, updating, and caching
configuration overrides, including React hook support for real-time
config usage.
* Introduced new admin interface methods for retrieving and updating
configuration.

* **Bug Fixes**
* Improved validation and error handling for configuration updates,
including checks for duplicate or invalid OAuth provider entries and
non-existent configuration fields.

* **Tests**
* Added comprehensive end-to-end tests covering configuration retrieval,
updates, access control, OAuth provider management, and domain
management.

* **Documentation**
* Enhanced API documentation for configuration management endpoints and
operations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-08-01 18:28:27 +02:00
..
__snapshots__ Anonymous users (#566) 2025-03-20 18:24:19 -07:00
auth Remove legacy tenancy config (#802) 2025-07-31 20:06:33 +02:00
contact-channels sending new templates (#794) 2025-07-28 17:26:03 -07:00
integrations Fix tests 2025-07-31 15:25:26 -07:00
internal Config override CRUD (#803) 2025-08-01 18:28:27 +02:00
api-keys.test.ts Config DB migration step 2 (#629) 2025-04-29 14:52:45 -07:00
auth-flows.test.ts Fix tests 2025-07-16 11:42:25 -07:00
check-feature-support.test.ts More backend endpoint implementations (#126) 2024-07-13 22:04:53 -07:00
connected-accounts.test.ts E2E tests for OAuth token refresh (#774) 2025-07-17 20:30:13 +02:00
email-themes.test.ts default new email templates (#788) 2025-07-25 10:54:34 -07:00
index.test.ts Api Keys (#590) 2025-04-04 13:03:10 -07:00
internal-metrics.test.ts Api Keys (#590) 2025-04-04 13:03:10 -07:00
notification-preferences.test.ts Send email route and notification settings page (#717) 2025-07-01 19:17:53 -07:00
oauth-providers.test.ts OAuth provider crud (#759) 2025-07-19 02:50:05 +02:00
project-permission-definitions.test.ts Config DB migration step 2 (#629) 2025-04-29 14:52:45 -07:00
project-permissions.test.ts Vibe coding themes (#755) 2025-07-15 12:06:50 -07:00
projects.test.ts Deleted projects now no longer throw a 500 ISE 2025-07-28 23:40:24 -07:00
render-email.test.ts sending new templates (#794) 2025-07-28 17:26:03 -07:00
send-email.test.ts Email themes (#743) 2025-07-08 17:39:17 -07:00
team-invitations.test.ts Config DB migration step 2 (#629) 2025-04-29 14:52:45 -07:00
team-member-profiles.test.ts Config DB migration step 2 (#629) 2025-04-29 14:52:45 -07:00
team-memberships.test.ts fix tests 2025-07-22 14:46:05 -07:00
team-permission-definitions.test.ts Config DB migration step 2 (#629) 2025-04-29 14:52:45 -07:00
team-permissions.test.ts Vibe coding themes (#755) 2025-07-15 12:06:50 -07:00
teams.test.ts Endpoints branching (#659) 2025-04-30 15:39:47 -07:00
unsubscribe-link.test.ts default new email templates (#788) 2025-07-25 10:54:34 -07:00
users.test.ts Next.js 15.4 2025-07-16 12:05:08 -07:00