Commit 355509b
chore(web): Remove org domain from routes (#1076)
* wip
* refactor(web): add authenticatedPage HOC, remove SINGLE_TENANT_ORG_ID from settings pages
Introduces `authenticatedPage` HOC in `middleware/authenticatedPage.tsx`
for server component pages. It resolves the auth context (user, org,
role, prisma) and optionally gates by role, replacing the manual
org-lookup-and-role-check boilerplate in settings pages.
Migrates all settings pages to use authenticatedPage, removing direct
references to SINGLE_TENANT_ORG_ID from within the (app) route group.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* rename prisma to __unsafePrisma
* wip
* add proxy middleware
* fix build failure
* improve redemption flow
* fix: export __unsafePrisma from prisma mock for tests
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* changelog
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b7656c3 commit 355509b
File tree
200 files changed
+792
-1047
lines changed- packages
- db/prisma
- migrations/20260402052154_remove_domain_from_org
- web/src
- __mocks__
- app
- (app)
- agents
- askgh
- [owner]/[repo]
- components
- browse
- [...path]
- components
- components
- hooks
- chat
- [id]
- components
- components
- components
- searchBar
- repos
- [id]
- components
- search
- components
- codePreviewPanel
- filterPanel
- searchResultsPanel
- settings
- access
- analytics
- apiKeys
- components
- connections
- [id]
- components
- license
- linked-accounts
- members
- components
- [domain]/settings
- access
- analytics
- apiKeys
- connections
- api
- (server)
- ee/oauth/register
- repo-status/[repoId]
- repos
- repos/[repoId]/image
- components
- invite
- login
- oauth/authorize
- onboard
- redeem
- components
- signup
- data
- ee/features
- analytics
- audit
- oauth
- sso
- emails
- features
- chat
- components
- chatBox
- chatThread
- tools
- git
- mcp
- search
- userManagement
- hooks
- lib
- middleware
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
200 files changed
+792
-1047
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments