## Problem
The steps to build a Supabase integration are spread across five pages:
the Partner Catalog page, creating an OAuth app, OAuth scopes, the
partner install flow, and the Management API reference. A partner has no
single page that says where to start or what to do next. Linear:
DOCS-1720.
## Solution
Add one guide, **Build a Supabase integration**, as the first item under
**Build Your Own** in the integrations sidebar. It does not repeat the
detail on the other pages. It links to them.
- **The path at a glance:** two short paths. Partner Catalog: apply,
build a landing page, publish. Integration: apply, build the OAuth flow,
build the integration, publish.
- **Apply to the Partners program**, then **Choose: Partner Catalog or
Integration**, a comparison table with wireframe images (SVG, light and
dark).
- **Partner Catalog: Build your landing page** and **Integration**
(build the OAuth flow, build the integration), each with "Build it"
cards that link to the top of the existing page.
- **Publish:** ask the partner manager to list the partner on the
Partner Catalog or the Integrations page.
- Removes the redirect from
`/docs/guides/integrations/build-a-supabase-integration` to the OAuth
guide, so the new page is reachable at that URL. The old `/oauth-scopes`
redirect stays.
- The progression and card data is in
`apps/docs/data/content-listings/build-a-supabase-integration.data.ts`.
Not in this PR: edits to the existing pages. The cards link to page
tops, so nothing here depends on those edits.
## Please check
- The five progression icons are placeholders from the built-in set. New
icons are coming.
- The table images sit inside table cells with a fixed width. I checked
them in the dev server only.
- I rendered the page with `pnpm dev` and ran `oxfmt --check` on the
changed files. I did not run the docs tests or `build:guides-markdown`.
- Two details are unverified: how partners hand their public key to
Supabase for a signed redirect, and partner status callbacks. The guide
does not describe either.
- The Dashboard Integrations tab wireframe is a drawing, not a
screenshot.
## Preview links
| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| Docs |
[/docs/guides/integrations/build-a-supabase-integration](https://supabase.com/docs/guides/integrations/build-a-supabase-integration)
(redirects to the OAuth guide until this merges) | Vercel bot comment |
`The path at a glance` |
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: John Stokvis <345546350+stokvis-at-supabase@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: John Stokvis <johnstokvis@Johns-MacBook-Pro.local>
## Problem
When an authorization fails because of permission issues, we currently
display _Unavailable_ next to the problematic projects in the project
selector list. This is confusing as those projects are available, just
not selectable for this authorization
## Solution
Display _permission issues_ instead
<img width="417" height="601" alt="image"
src="https://github.com/user-attachments/assets/331073ac-71e0-45b0-a607-dcbd47268d91"
/>
## Problem
Users who don't have the required permissions to publish an oauth app
may see two tooltips when hovering the _Publish OAuth app_ button.
<img width="620" height="208" alt="image"
src="https://github.com/user-attachments/assets/fedf7150-35e6-4429-b0c0-2fbc4cd2aa5e"
/>
## Solution
Hide the shortcut tooltip when users don't have the required permissions
to publish an oauth app
Part 5 of a 6-PR stack migrating all `next/router` and
`next/compat/router` imports in `apps/studio` onto TanStack Router hooks
and removing the router shims.
| Part | PR | Scope |
| --- | --- | --- |
| 1 | #54053 | Core navigation helpers, `hooks/**`, `lib/**`,
`data/prefetchers/**` |
| 2 | #54054 | `components/ui/**` |
| 3 | #54055 | `components/layouts/**` and `state/tabs.tsx` |
| 4 | #54056 | Database, Branching, Compute, Edge Functions, Explorer,
SQL Editor, Storage, Table Editor |
| **5** | **#54057 ← this PR** | **Remaining `components/interfaces/**`
and `QueryInsightsTable` router events** |
| 6 | #54058 | Remove `next/router` & `next/compat/router` shims,
`_router-events.ts`, Vite aliases, and test mocks |
Migrates all remaining `apps/studio/components/interfaces/**`
directories off `next/router`, including the last production
`router.events` consumer (`QueryInsightsTable`) and the only default
`next/router` import (`DiscordCTACard`). After this PR, zero files under
`apps/studio/components/**` import `next/router` or
`next/compat/router`.
**Added:**
-
`apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.test.tsx`:
verifies that pathname changes clear selected query state without
mutating destination or history search params, while same-pathname
search updates preserve selection
**Changed:**
- Replaced the sole production `router.events.on('routeChangeStart',
...)` consumer in `QueryInsightsTable.tsx` with a `pathname` effect that
clears `onCurrentSelectQuery` on pathname changes, and derived
`searchQuery` directly from `nuqs` (`urlSearch`) instead of mirroring it
in local state. Drops the legacy `setQueryStates({ search: null })` call
on leave, which ran after `history.push` on TanStack Router (targeting
the destination URL rather than the previous history entry, while
browser Back is expected to restore previous search params).
- Removed the `router: NextRouter` prop from `ReportWidgetRendererProps`
in `Reports/ReportWidget.tsx` and updated its callers (`ChartBlock`,
`ReportHeader`, `CreateReportModal`)
- Updated `LOG_ROUTES_WITH_REPLICA_SUPPORT` in
`Settings/Logs/Logs.constants.ts` from `[ref]` to `$ref` for TanStack
route patterns
- Replaced the default `import router from 'next/router'` in
`Support/DiscordCTACard.tsx` with `useNavigate`
- Replaced `useRouter` across `Account`, `Advisors`, `App`, `Auth`,
`ErrorHandling`, `Home`, `HomePageActions`, `Integrations`, `Linter`,
`LocalDropdown`, `Observability`, `Organization`, `OrganizationInvite`,
`Platform/Webhooks`, `Project`, `ProjectCreation`, `ProjectHome`,
`QueryPerformance`, `RedeemCredits`, `Settings`, `Sidebar`, `SignIn`,
`Support`, `UnifiedLogs`, and `UserDropdown`
- Updated affected tests (`Auth/Users/UserPanel`, `Home/ProjectList`,
`LocalDropdown`, `Organization/*`, `OrganizationInvite`,
`RedeemCredits`, `Settings/General/*`, `SignIn/SignInRecoveryCodeForm`,
`UnifiedLogs/*`)
**Simplified:**
- `LocalDropdown`, `UserDropdown` and `RedeemCredits` build the current
route from `location.href`, so the hash keeps its leading `#`
- `NewOrgForm` navigates to the `returnTo` path instead of an absolute
URL, which was being treated as external. It also uses a typed
`/new/$slug` navigate.
- Read search params from `useParams()` instead of `location.search`
casts (`CronJobPage`, `QueuePage`, `LogsPreviewer`,
`LinkSupportTicketPage`, `MarketplaceSidebar`, `PlanCards`,
`SignUpForm`)
- Dropped the dead `isReady`/`isRouterReady` constants and the
`navigate<AnyRouter, string>` casts where typed routes work
(`ForgotPasswordWizard`, `SignInPartner`, `ReportWidget`,
`ProjectUpgradeAlert`)
- Linter, `ReportHeader` and `LogsPreviewer` use `to: '.'` instead of a
separate pathname subscription. `CreateReportModal` builds the preserved
query params in `onSuccess` instead of a `useMemo`.
- Tests use the shared `createTestRouter` and `customRender` router.
`LocalDropdown` now tests that the hash is kept.
Addresses
[FE-5109](https://linear.app/supabase/issue/FE-5109/replace-the-nextrouter-shims-with-tanstack-router-hooks)
## To test
- [x] Query Insights: select a query and confirm search/filter updates
keep selection while switching projects/routes clears it; navigating to
Logs keeps Logs' query params intact and pressing Back restores Query
Insights' `?search=` param cleanly
- [x] Auth / Sign-in flows: sign in, sign up, MFA, recovery code,
forgot/reset password, and partner sign-in preserve `returnTo` and
redirect as expected
- [x] Organization & Project flows: creating an org/project, accepting
an org invite, claiming a project, redeeming credits, and
deleting/pausing/restarting a project or branch navigate cleanly
- [ ] Logs & Reports: replica selector appears on supported log routes
(`LOG_ROUTES_WITH_REPLICA_SUPPORT`), saved log queries open, and custom
reports create/navigate properly
- [ ] Sidebar, LocalDropdown, UserDropdown, Integrations
(Cron/Queues/Marketplace), Advisors/Linter, and Unified Logs navigate
cleanly
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
## Problem
The OAuth app editor has separate Read and Write checkboxes. The menu
closes after each click, so choosing both scopes takes two trips through
the menu.
## Solution
Use Studio’s single-select control to set the full access level in one
step. The current scopes determine the label on the trigger. The choices
are **No access**, **Read only**, **Write**, and **Read and write**.
Each choice updates the scopes for that row and preserves other rows.
This is the base for #54006. The scoped personal access token editor has
a companion update in #54164.
| Before | After |
| --- | --- |
| <img width="651" height="297" alt="CleanShot 2026-11-26 at 15 33 36"
src="https://github.com/user-attachments/assets/dd74666a-9a5a-42fa-97f3-d866e5394d93"
/> | <img width="649" height="307" alt="CleanShot 2026-11-27 at 11 30
25"
src="https://github.com/user-attachments/assets/48395dd5-032e-49eb-9663-709eeac40fc3"
/> |
## Review instructions
1. Open the [OAuth Apps
preview](https://studio-staging-git-dnywh-oauth-permission-acces-6a3679-supabase.vercel.app/dashboard/org/_/apps)
and select **Publish OAuth app**.
2. Under **Application permissions**, try each access level on a row.
Check that one selection closes the menu and updates the trigger.
3. Select **No access** and check that both scopes are cleared for that
row. Check that another row’s selection stays in place.
## Problem
The grants dialog makes project coverage and each member’s permissions
hard to inspect.
## Solution
- Replace the dialog with a grant-details sheet.
- Separate organisation and member access, with project references and
permissions grouped by access level.
- Move app IDs into Details and add a revoke action for authorised
admins.
- Build on #54285 using the existing grants API.
| Before | After |
| --- | --- |
| <img width="1280" height="1323" alt="OAuth Apps Organization Settings
Basket Supabase"
src="https://github.com/user-attachments/assets/b6bb0082-9cee-48b4-adb4-058f14f10f9f"
/> | <img width="1280" height="1323" alt="OAuth Apps Organization
Settings Basket Supabase"
src="https://github.com/user-attachments/assets/b32a7723-9fa0-452d-95f5-1762fd364163"
/> |
| <img width="1280" height="1185" alt="OAuth Apps Organization Settings
Basket Supabase"
src="https://github.com/user-attachments/assets/9a7982ba-aebe-42f4-9ac6-9308136150f7"
/> | <img width="1280" height="1221" alt="OAuth Apps Organization
Settings Basket Supabase"
src="https://github.com/user-attachments/assets/1965f7e4-8554-4fa9-86ef-7e53af1d0038"
/> |
## Review instructions
1. Sign in to staging and use an authorised app, or [authorise the test
app](https://api.supabase.green/v1/oauth/authorize?client_id=75e64165-b74e-432f-bb70-80d6ae432f06&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A54321%2Fcallback&state=grant-sheet-review).
The localhost callback may fail after the grant is saved.
2. Open the
[preview](https://studio-staging-git-dnywh-oauth-grant-details-supabase.vercel.app/dashboard/org/_/apps#authorized-apps),
select the same organisation and choose **Manage app → View access**.
3. Check the grant sections, project references and permission groups.
Test narrow widths, closing the sheet and cancelling **Revoke access**.
### Mixed-grant overrides
In **DevTools → Network**, override only the GET ending in
`/oauth/approvals/<app-id>/grants` with this response. Save, reload and
reopen the sheet. Remove any parent `/approvals` override to avoid
Chrome’s file/folder clash.
<details>
<summary>grants.json</summary>
```json
{
"data": [
{
"id": "22222222-2222-4222-8222-000000000001",
"type": "oauth_grant",
"attributes": {
"approved_at": "2026-11-30T00:00:00Z",
"approved_scopes": [
"database:read",
"database:write",
"projects:read"
],
"kind": "organization_bound",
"projects": null,
"user": null
}
},
{
"id": "22222222-2222-4222-8222-000000000002",
"type": "oauth_grant",
"attributes": {
"approved_at": "2026-11-30T00:00:00Z",
"approved_scopes": [
"projects:read"
],
"kind": "member_bound",
"projects": [
{
"name": "Example storefront",
"ref": "example-storefront"
}
],
"user": {
"username": "alex",
"email": "alex@example.com",
"gotrue_id": "33333333-3333-4333-8333-000000000001"
}
}
},
{
"id": "22222222-2222-4222-8222-000000000003",
"type": "oauth_grant",
"attributes": {
"approved_at": "2026-11-30T00:00:00Z",
"approved_scopes": [],
"kind": "member_bound",
"projects": [],
"user": {
"username": "sam",
"email": "sam@example.com",
"gotrue_id": "33333333-3333-4333-8333-000000000002"
}
}
}
],
"links": {
"next": null,
"prev": null
}
}
```
</details>
Check that organisation access covers all projects, Alex has only read
access to Example storefront, and Sam has no projects or permissions.
Disable overrides when finished.
Requires `enableScopedOAuthManage` for the organisation.
## Problem
Authorized Apps hides access details behind a menu and uses a lengthy
revoke confirmation. Opening and closing these views should work
consistently with a mouse and keyboard.
## Solution
- Open access details from the app row, app name or **View access** menu
action.
- Remove the menu tooltip, use consistent labels and hide
unavailable-action separators.
- Use a compact **Revoke access** confirmation with focus returned to
the initiating control.
- Keep the existing grants dialog and table IDs; the sheet follows in
#54284.
| Before | After |
| --- | --- |
| <img width="1274" height="687" alt="CleanShot 2026-11-30 at 17 40 25"
src="https://github.com/user-attachments/assets/e7eb9411-cc2e-4bf2-8599-979f06069791"
/> | <img width="1273" height="679" alt="CleanShot 2026-11-30 at 17 40
05"
src="https://github.com/user-attachments/assets/d6b38690-7ba2-4c8c-adfc-0e0e356f7687"
/> |
| <img width="576" height="284" alt="CleanShot 2026-11-30 at 17 44 18"
src="https://github.com/user-attachments/assets/e2b7f015-c214-4034-b6ab-a4afc050510d"
/> | <img width="424" height="207" alt="CleanShot 2026-11-30 at 17 44
36"
src="https://github.com/user-attachments/assets/77df776d-bc93-4cdb-b333-2c6c54ed6554"
/> |
## Review instructions
1. Use a staging test organisation with an authorised app. If needed,
[authorise the existing test
app](https://api.supabase.green/v1/oauth/authorize?client_id=75e64165-b74e-432f-bb70-80d6ae432f06&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A54321%2Fcallback&state=grant-sheet-review).
The localhost callback may fail to load after the grant is saved.
2. In the [Studio staging
preview](https://studio-staging-git-dnywh-oauth-access-list-polish-supabase.vercel.app/dashboard/org/_/apps#authorized-apps),
open **OAuth Apps → Authorized Apps** at
`/dashboard/org/_/apps#authorized-apps`. Click an app row or name, then
use **Manage app → View access**. Each opens the existing grant-details
dialog.
3. Focus the app name and press Enter or Space. Close the dialog and
check focus returns to the app name. Opening from the row or menu should
return focus to **Manage app**.
4. As an admin, select **Manage app → Revoke access**. Check the compact
confirmation names the app and explains the organisation and member
impact. Cancel it and check that grant details do not open accidentally
and focus returns to the app menu. Revoke only a disposable test grant
when checking submission.
5. As a user without revoke permission, check the menu has no revoke
action or stray separator. Repeat the controls and confirmation at a
narrow width.
---------
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
## Problem
On the OAuth apps page in Studio, the table showed only the Client ID,
and the edit panel showed the app ID as unlabeled `ID: ...` text under
the app name. It was hard to tell the two IDs apart, or to copy the
right one. That contributed to the wrong ID type being handed to the
team that manages the Stripe pipeline allowlist (incident, Nov 20–23).
## Solution
- **Table:** add an **App ID** column next to **Client ID**. Both are
shown shortened (`65****9a71`) with a copy button. Hover an ID to show
the whole value. The copy button always copies the whole value.
- **Edit panel:** show **Client ID** and **App ID** as separate labeled,
copiable fields (full value, not shortened), each with one line of
helper text:
- Client ID: "Used to identify your app when it makes OAuth requests to
Supabase."
- App ID: "Used to manage your app on Supabase, such as updating or
deleting it."
- Remove the old `ID: ...` description under the app name.
- Add one small shared component, `OAuthAppId`, used by the table and
the edit panel.
The helper text follows the discussion in Slack: `client_id` is what the
deployed app sends in OAuth requests to the Management API, and `app_id`
is the primary key the app's author uses in platform APIs (for example
to update or delete the app).
Not in this PR: the Authorized apps table already shows its App ID with
a copy button, so it is unchanged. No API or data changes.
## Please check
- **Helper text wording.** Is it accurate for both IDs?
- **Shortened IDs.** The first 2 and last 4 characters, with `****`
between, only for IDs longer than 20 characters.
## Review instructions
1. Open **Organization → OAuth Apps** (`/org/<slug>/apps`) and create an
app if there is none.
2. In **Publishable apps**, check that **Client ID** and **App ID** both
show as shortened values, and that each copy button copies the full
value.
3. Hover a shortened ID. It should show a tooltip with the full value.
4. Open the app's edit panel. Check that Client ID and App ID are
labeled, show the full value, and copy correctly, and that the old `ID:
...` text under the app name is gone.
Checked locally against the full platform stack (format, lint,
type-check, and by eye). No tests added: the change is layout and
display only.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: John Stokvis <345546350+stokvis-at-supabase@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: kemal <hello@kemal.earth>
## Problem
When users try to authorize all current and future projects with
unsufficient permissions for an app that allows partial grants, the
consent screen does not display the correct message and block them from
authorizing the app.
## Solution
Fix the conditions to display the proper message about missing features
and allow authorization with partial grants.
## Review instructions
- Configure an app that allows partial grants (must be member bound)
- Configure a user without enough permissions (Read-only for instance)
- Use the oauth example app to authorize the app with this user
- Check that you are warned about missing features but that you can
still authorize the app
## Problem
Supabase admins can enable support for partial grants on some apps but
the consent screen doesn't support this scenario
## Solution
Detect partial grant support and warn users when they lack some
permissions, allowing them to confirm they want to authorize the app
anyway
<img width="846" height="2150" alt="image"
src="https://github.com/user-attachments/assets/37c48da9-395b-4425-b33d-7acdc8f3dcc1"
/>
- Improved error messaging around card errors and toast position to be
closer to the actual action (customers often miss it in the top right)
- For card errors when setting up payment methods with a direct error
via the Stripe API, map to an appropriate actionable error message
## What
The incident banner links to the status page, but the in-progress and
upcoming maintenance banners had no link.
The maintenance banner titles ("Scheduled maintenance in progress",
"Upcoming scheduled maintenance") now link to that maintenance's own
status page entry (`item.url`).
To support this, `HeaderBanner`'s `title` prop now accepts `ReactNode`
instead of only `string`.
## Context
Final clean up of deprecated Scaffold components, just touches
- Account audit logs
- Project home page
- Database -> Column privileges
- Storage -> Analytics bucket details
- Storage -> Vector bucket details
- Settings -> Infrastructure -> Disk management
- Settings -> Infrastructure -> Read replica details
- Integrations -> Wrappers overview (Only for non supported integration
UI)
- Edge functions -> Empty state
- Auth -> Performance
Also replaces usage of `ScaffoldDivider` with just the `Separator`
component
And also adjusts the page container sizes of database pages from large
to default - these only have visual differences on viewport widths
larger than a laptop
Testing just needs a quick sweep of all these surfaces to make sure
nothing looks weird - will do so on my end too once the builds go
through!
For @supabase/security's review - review requirement was triggered as
`Documents.tsx` was updated in the organization settings page. But it
was just to change the Divider component 🙏
Moves the remaining `next/navigation` imports in Studio onto TanStack
Router hooks (and `useParams` from `common`), finishes migrating the
remaining `next/link` and `next/router` usages in the touched
components, and removes the `compat/next/navigation.ts` shim and its
Vite alias. Shared packages (`packages/**`) no longer import
`next/navigation`, so the alias can be dropped now.
**Removed:**
- `apps/studio/compat/next/navigation.ts` and the `'next/navigation'`
entry in `apps/studio/vite.config.ts`
- Global `next/navigation` mock in `apps/studio/tests/vitestSetup.ts`
and the obsolete `apps/studio/tests/lib/route-mock.test.tsx`
**Changed:**
- Replaced `usePathname` (12 files) and `useSearchParams` (3 files) with
`useLocation({ select })` from `@tanstack/react-router`
- Replaced `useRouter` in Storage bucket tables, SQL Editor commands,
and `SignInMfaForm` with `useNavigate` from `@tanstack/react-router`,
and updated `createNavigationHandler` in `lib/navigation.ts` to accept
either `NextRouter` or TanStack's `useNavigate`
- Replaced remaining `next/link` imports in touched components
(`SignInMfaForm`, `Restriction`, `DownloadLogsButton`,
`DownloadResultsButton`, `AuthEmailsLayout`, `AuthProvidersLayout`,
`JWTKeysLayout`, `StorageBucketsLayout`) with TanStack Router's `Link`
- Replaced `useParams` in `CreatePublishableAPIKeyDialog` with
`useParams` from `common` (matching `CreateSecretAPIKeyDialog`)
- Wrapped `CustomWrapper` (`tests/lib/custom-render.tsx`) in a default
TanStack `RouterContextProvider` (with optional `router` / `initialUrl`
overrides) and updated affected component tests to drop their
`next/navigation` mocks
Addresses
[FE-5110](https://linear.app/supabase/issue/FE-5110/replace-the-nextnavigation-shim-with-tanstack-router-hooks)
## To test
1. Check active tab highlighting and navigation across Auth Emails, Auth
Providers, JWT Keys, Storage Buckets, and Editor layouts
2. Verify clicking, Cmd/Ctrl-clicking, middle-clicking, and pressing
Enter on Storage bucket rows (Files, Analytics, Vector) navigates as
before
3. Run "Query a table..." and open SQL snippets from the Command Menu
and confirm `/project/$ref/sql/$id` opens with multi-line SQL preserved
in `?content=`
4. In the MFA sign-in flow, verify the recovery code link and
`forgot-password` completion preserve query params (`returnTo`,
`context=forgot-password`), and Cancel signs out and replaces history
with `/sign-in`
5. Confirm Table Editor sort/filter URL sync persists filters per table
without leaking across table switches
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Customers often misunderstand compute pricing. In an effort to make this
a little more obvious without a huge revamp of the project creation,
this PR:
- Adds the compute billing animation that we use on plan upgrades to
project creation
- Expands the footer on project creation to be a bit more prominent
Replaces all remaining `next/image` and `next/legacy/image` imports in
`apps/studio` with plain `<img>` elements and deletes both compat shims
and their Vite aliases (following #53906, which removed the last
`next/image` import from `packages/ui-patterns`).
**Changed:**
- Replaced 26 `next/image` and 3 `next/legacy/image` call sites across
`apps/studio` with plain `<img>` elements (every local `src` already
prepends `BASE_PATH` / `router.basePath`, and none used `loader`,
`priority`, `placeholder`, `quality`, or `onLoadingComplete`)
- Converted `fill` / `layout="fill"` usages in `IntegrationCard`,
`MarketplaceFeaturedHeroGrid`, `Integrations.constants`,
`useAvailableIntegrations`, and `IntegrationPanels` to Tailwind sizing
classes, and dropped no-op `layout="fixed"` props in `FormContents` and
`HookList`
- Replaced invalid `layout="fill" objectFit="cover"` props passed to
`next/image` in `HelpPanel` with `absolute inset-0 h-full w-full
object-cover`
- Cleaned up image accessibility across the touched call sites (accurate
alt text on feature preview screenshots and `HookList`, `alt=""` +
`aria-hidden="true"` on decorative icons/illustrations next to visible
labels)
**Removed:**
- `apps/studio/compat/next/image.tsx`
- `apps/studio/compat/next/legacy/image.tsx`
- `'next/image'` and `'next/legacy/image'` aliases from
`apps/studio/vite.config.ts`
## To test
- Confirm `git grep -E "next/(legacy/)?image" apps/studio/` has no
remaining imports
- Check images render as expected across the updated surfaces:
- **Integrations marketplace** (`/project/_/integrations`): featured
hero covers (`MarketplaceFeaturedHeroGrid`), integration icons in cards,
sidebar, and wrapper rows (`Integrations.constants`,
`useAvailableIntegrations`)
- **Help panel**: Discord card background illustration
- **Account & settings**: Account Connections GitHub icon, Add-ons cards
(IPv4 / PITR / Custom Domain), Spend Cap card & side panel, user profile
avatars (`ProfileImage`), and Feature Previews modal images
- **Database Webhooks** (`FormContents`, `HookList`) and Third-Party
Auth provider dropdown/cards
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
## Context
Another housekeeping - just deprecates the `to-be-cleaned` folder
- Removes `ListIcon -> Only `vercelIcon` was being used which I've
replaced to use the existing static SVG instead
- Removes `ProductEmptyState` -> replaced with
`EmptyStatePresentational`
## Problem
When users navigate back to the consent screen after a redirect error,
they have to reselect the org and projects despite the request having
been approved already
## Solution
When present, `approved_organization_slug` should set the organization
picker and override `organization_slug` from query parameters. Likewise,
`approved_project_refs` should take precedence over project refs from
query parameters or an existing grant in the preflight check.
Right now, when customers upgrade from free → paid or even pro → team,
we simply redirect to the org billing page with a quick banner that
vanishes after 3 seconds confirming the plan was changed. it’s quite
unsatisfying and feels like a missed opportunity to display what the
customer now unlocked and next steps. I want to especially highlight
projects that are now upgradeable from nano → micro, but we can later
expand and make the “next steps” smarter and do it context-based.
## Problem
The Authorization section of the OAuth app publish form was two toggles,
each with its own inline warning box and its own "I understand this is
permanent" checkbox, plus a static info box describing what users would
see. Two problems with that:
- The settings are a one-way door, so the permanence warning appeared
twice and was easy to click past.
- Nothing showed what the two settings combine into, or what the person
connecting the app actually ends up seeing.
## Solution
UI only — the saved fields (`grant_kind`, `project_scoping_mode`) and
the save logic are unchanged, and `allow_partial_grants` is untouched.
- **Two radio groups** in place of the toggles: "Who approves access?"
(an owner, once for the org / each member, for themselves) and "Which
projects can it reach?" (all projects / let them choose). Built on
`RadioGroupStacked`, grouped with `fieldset`/`legend`.
- **One-way door made visible**: the saved option carries a `Current`
badge, the stricter options carry `Permanent`, and once a stricter value
is saved the looser option is disabled and badged `Can't switch back`.
- **Live preview** replaces the info box: a dimmed, cropped view of the
real consent screen, reusing `ScopeGroupCard` and the interstitial's
width, so it reflects the app's actual scopes and updates as the radios
change. A footer row states the resulting grant, and what it is today
when there are unsaved changes.
- **One confirmation, at save time**: both inline warnings and their
checkboxes are gone. Saving a stricter value opens a `ConfirmationModal`
listing only what changed, with a single acknowledgement checkbox gating
"Save permanently".
Unit tests cover the badge/locking states and the preview; the dialog's
bullets and acknowledgement gate have their own tests.
## Review instructions
1. Enable the `enableScopedOAuthPublish` flag and open **Organization
settings → OAuth Apps**.
2. Publish a new app. Both questions should default to the looser option
with no `Current` badges, and the stricter options should show
`Permanent`.
3. Change each radio and watch the preview and the "Resulting grant"
line update — switching "Which projects can it reach?" should swap the
fixed projects row for the picker.
4. Save with a stricter value selected. Confirm the dialog lists only
the changes you made, and that "Save permanently" stays disabled until
the checkbox is ticked.
5. Reopen the app. The saved values should show `Current`, and the
looser options should be disabled and badged `Can't switch back`.
6. Edit an app without touching authorization and save — no dialog
should appear.
---------
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
## Problem
When a returning app changes its permissions, the consent screen mixes
old and new access levels in a list of parenthetical labels.
## Solution
Show added, removed and unchanged permissions in their access groups. A
level change appears in both the old and new groups. Green comes from
the success token so it stays green across accent settings.
| Before | After |
| --- | --- |
| <img width="868" height="2164" alt="CleanShot 2026-11-20 at 12 40
23@2x"
src="https://github.com/user-attachments/assets/74e8462c-60eb-44c5-be25-7e683083be8d"
/> | <img width="866" height="1986" alt="CleanShot 2026-11-20 at 12 38
47@2x"
src="https://github.com/user-attachments/assets/a739e619-8fc7-4a91-9a28-4b3c176b882b"
/> |
## Review instructions
1. **Before:** Open the [Scoped OAuth
tester](https://api.supabase.green/v1/oauth/authorize?response_type=code&client_id=a3999bfe-cfc7-4584-9c5a-ab6828d35aa3&redirect_uri=http%3A%2F%2Flocalhost%3A8765%2Foauth%2Fcallback)
and leave consent open.
2. **After:** Open the [deploy preview consent
screen](https://studio-staging-git-dnywh-oauth-permission-diff-supabase.vercel.app/dashboard/authorize?auth_id=606dbb8e-60ea-4155-bb36-70a7d31378dd).
**What to check**
1. Open Chrome DevTools → **Network** → **Fetch/XHR**, filter by the
`auth_id` in the consent URL, and reload. Right-click each of these two
**GET** requests and select **Override content**. Choose a local
Overrides folder if Chrome prompts you.
- `/api/platform/oauth/authorizations/<auth_id>` is the new request. Set
its top-level `scopes` to
`["database:read","database:write","projects:read","storage:read"]`.
-
`/api/platform/organizations/<org-slug>/oauth/authorizations/<auth_id>/preflight`
is the existing grant check. In that response, replace
`"existing_grant": null` with this field and leave the rest of the
response intact.
```json
"existing_grant": {
"grant_id": "00000000-0000-4000-8000-000000000001",
"approved_scopes": ["database:read", "projects:read", "secrets:read"],
"project_refs": null,
"approved_at": "2026-11-19T00:00:00.000Z"
},
```
2. Keep the other fields as returned. Save both overrides and reload
with DevTools open.
3. Check that Database management is removed from **Read only** and
added to **Read and write**, Projects is unchanged, Storage is added,
and Secrets is struck through. Clear the overrides when done.
## Problem
The OAuth consent screen appears before the preflight data has loaded,
briefly showing the default state.
## Solution
Keep the loading animation visible until that request completes so users
do not see the intermediate state
## Review instructions
- Throttle the network speed in the browser devtool
- Using the OAuth example app, reauthorize an app (preferably one that
targets projects as it's easier to see the preflight has loaded)
- Verify you only see the consent form with the existing grant settings
applied (the projects are pre-selected)
Studio sends no events between the plan CTA click and the backend's
subscription update, so we can't see where people stop in the plan
change flow. The redesigned plan change screen from #53670 is also gated
by a ConfigCat flag, and ConfigCat flag values are not attached to
events, so its rollout can't be compared against the legacy dialog. I
added the missing events and a property for the flag state.
**Changed:**
- **Which screen a user gets**: I added `planUpdateRedesignEnabled` and
`origin` (the `source` query param the panel was opened with) to
`studio_pricing_plan_cta_clicked`.
- **Confirm and completion**: the redesigned screen now sends
`studio_pricing_plan_change_confirm_clicked` on the confirm button and
`studio_pricing_plan_change_completed` once the change succeeds. A
payment confirmation that the API answers with 202 (payment taken, plan
still syncing) counts as completed too.
- **Compute explainer and docs links**: expanding "Billed every hour,
even when idle" sends `studio_pricing_compute_billing_explainer_opened`,
and the compute and project transfer docs links send
`studio_pricing_plan_change_docs_link_clicked`.
- **Stale origin**: closing the pricing panel now removes `source` from
the URL. Before, reopening the panel from the billing page reported the
previous entry point as the origin.
**Note:** the legacy dialog gets no new events, and
`planUpdateRedesignEnabled` should be removed together with it.
## To test
Needs the `billingPlanUpdateRedesign` flag on. Watch the
`telemetry/event` requests in the network tab.
Tested on the PR preview:
- [x] Open `/org/<slug>/billing?panel=subscriptionPlan&source=backups`
on a Free org and click "Upgrade to Pro", expect
`studio_pricing_plan_cta_clicked` with `planUpdateRedesignEnabled: true`
and `origin: "backups"`. Observed, and the redesigned screen opened.
- [x] On the same panel, click the Enterprise card's "Contact us",
expect exactly one `studio_pricing_plan_cta_clicked` with `selectedPlan:
"Enterprise"`, `planUpdateRedesignEnabled: true` and `origin:
"backups"`. Observed, one event.
- [x] Expand "Billed every hour, even when idle", expect one
`studio_pricing_compute_billing_explainer_opened`. Collapse it, expect
no event. Observed, and a second expand sent a second event.
- [x] Click "Learn about compute", expect
`studio_pricing_plan_change_docs_link_clicked` with `docsLink:
"compute"`. Observed, and the "Transfer" link sent `docsLink:
"project_transfer"`.
- [x] Go back and close the pricing panel, expect `source` to be gone
from the URL. Observed: the URL ended at `/billing` with no `panel` or
`source`.
- [x] With the flag overridden off and the page reloaded, click "Upgrade
to Pro", expect `planUpdateRedesignEnabled: false` and the legacy
dialog. Observed.
- [x] Confirm with a declining card, expect
`studio_pricing_plan_change_confirm_clicked` and no
`studio_pricing_plan_change_completed`. Observed: the subscription
update returned 402 and no completion was sent.
- [x] Confirm the upgrade with a test card, expect
`studio_pricing_plan_change_confirm_clicked` then one
`studio_pricing_plan_change_completed` with `currentPlan: "Free"`,
`selectedPlan: "Pro"`, `origin: "backups"` and no project group.
Observed, with `groups` holding only `organization`.
- [x] Upgrade again with a card that requires 3D Secure, expect one
`studio_pricing_plan_change_completed`, sent only after the challenge.
Observed on a Pro to Team change.
I also confirmed ingestion by querying the staging PostHog project: all
five events from this run arrived from the preview host with the
properties above. The run included the CTA click with both `true` and
`false` for `planUpdateRedesignEnabled`, `docsLink` values `compute` and
`project_transfer`, completions for Free to Pro and Pro to Team, and
only an organization group on every event.
## Linear
- fixes GROWTH-1565
`studio_pricing_side_panel_opened` fires as soon as the pricing panel is
visible. On a page load that lands on `?panel=subscriptionPlan`, that is
before the organization and subscription have loaded, so the event went
out without `currentPlan` (about 45% of these events) and sometimes
without the organization group. I now send it once the selected
organization has loaded, and read `currentPlan` from the organization.
The tracking lives in a small `useTrackPanelOpened` hook in the same
file.
**Note:** I read the plan from the organization instead of the
subscription because the subscription query waits on a billing
permission check and never runs for members without billing access.
`EnterpriseCard` already sources `currentPlan` the same way.
## To test
Watch the `telemetry/event` requests in the network tab.
Tested on the PR preview:
- [x] Load `/org/<slug>/billing?panel=subscriptionPlan&source=backups`
with a full page load, expect one `studio_pricing_side_panel_opened`
with `currentPlan` set, `origin: "backups"` and `groups.organization`
set. Observed on three consecutive full loads, one event each.
- [x] From the billing page, click "Change subscription plan", expect
one `studio_pricing_side_panel_opened` with `currentPlan` set. Observed,
with the organization group set.
- [x] Close the panel and open it again, expect one more event. Leave it
open, expect no further events. Observed.
I also confirmed ingestion by querying the staging PostHog project:
every event from this run arrived from the preview host with
`currentPlan` and the organization group set.
## Linear
- fixes GROWTH-1566
The onboarding survey experiment on the new-org form is finished and the
survey version is now the default. I removed the
`onboardingSurveyPlacement` flag from Studio: the form always shows the
survey, and I deleted the old form path.
**Changed:**
- **New-org form**: always renders the name field plus the optional
"Help improve Supabase" survey card. Org type and size are saved through
the survey endpoint only, as they already were for the survey variant.
- **Experiment plumbing removed**: I deleted the flag read, its exposure
event (`onboarding_survey_placement_experiment_exposed`) and the variant
constants, so the form no longer starts on the old layout while flags
load.
- **Tests**: the survey tests keep their assertions with the flag setup
removed. I deleted the test for the old form (org type sent at creation,
no survey) because that behavior no longer exists.
**Note:** I removed the `renderFieldWrapper` option from
`OrganizationDetailsFields`, which only the old form path used. The
cloud marketplace org form still uses the component unchanged.
## To test
Tested on the PR preview:
- [x] Sign in and open `/new`: expect a Name field with no Type field
above the plan picker, and a "Help improve Supabase" card with the org
type, "What are you building?" and "Do you know how to code?" questions.
Observed: Name, Plan, then the card with "Who is this org for?" (default
Personal) and both questions.
- [x] Create a free org with the survey untouched: expect the create
request body to carry no `kind` or `size`, no `onboarding-survey`
request, and the follow-up card on the new org's projects page.
Observed: create body `{"name":"…","tier":"tier_free"}` (201), no survey
request, and the follow-up card with Answer and Skip on the org page.
- [x] Create a free org with type Company, a company size and a "What
are you building?" answer: expect one `POST
/platform/organizations/onboarding-survey` with those answers returning
204, and no follow-up card. Observed: one request with `kind:
"COMPANY"`, `size: "50"`, `building: "b2b_saas"` (204), create body
again without `kind` or `size`, no follow-up card.
- [x] Watch telemetry requests while `/new` loads: expect no
`onboarding_survey_placement_experiment_exposed` event. Observed: none
across both org creations, while `onboarding_survey_dismissed` and
`onboarding_survey_submit_button_clicked` (both `surface: org_form`)
were sent.
- [x] Added: the survey card is in the first render of `/new` and the
Name input keeps focus, with no layout switch after flags load.
## Linear
- fixes GROWTH-1562
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
## Problem
- plan cards on the studio upgrade screen do not match recent plan cards
updates to the pricing page
- add-on illustrations on the pricing page sometimes show the light
image in dark mode
- spend cap bars on the pricing page flash when a user toggles the spend
cap
## Solution
- changes the upgrade screen plan cards to the pricing page design +
shows enterprise as a fourth column
- moves the lifted card style to the current plan of the organization +
gives it a neutral "current plan" badge
- moves the compare plans and pricing faq links below the plan cards +
removes the stagger animation on the cards
- changes the pricing page illustrations to pick the light or dark image
with css because the server render does not know the theme
- changes the spend cap animation to resize the bars instead of
remounting them
While we want to round up the price for compute, so it does not display
$9.87 or the likes, we do not want any type of rounding for taxes or
amount due.
A fully revamped plan change screen covering Free -> Paid Plan or Paid
Plan <> Paid Plan changes. Out of scope is the downgrade to Free Plan,
which is a separate modal and process. Besides a visual refresher of the
current modal, we are addressing common misconceptions about our pricing and being as transparent as possible.
The new modal is available behind the feature flag
`billingPlanUpdateRedesign`, which is enabled on local/staging and will
be rolled out gradually after further testing in production.
## Context
Housekeeping to deprecate more deprecated UI components, this one's
focusing on the `Scaffold` components.
The main visual differences are just the width within PageSections since
the new components where the right content takes up a bit more width
than the left content. (Ref org billing + usage)
Starting the refactor with the organization pages:
- Billing
- Team
- Usage
- Settings -> SSO
- Settings -> Security
- Settings -> Audit Logs
- Settings -> Documents
## Context
Just some housekeeping to move off old layout components - this PR
targets the Storage + Edge Function + Wildcard pages, specifically:
Project wildcard route (/project/_)
Organization wildcard route (/org/_)
Storage -> Analytics Buckets
Storage -> Vector Buckets
Edge Function -> New function
Just need to make sure that these pages still render fine
## Problem
The OAuth apps consent screen does not allow users to change the
selected org. If the calling app didn't provide the org slug, we select
the first available org from the users orgs.
## Solution
Add an organization selector:
<img width="436" height="570" alt="image"
src="https://github.com/user-attachments/assets/a5579f2c-ff54-4d02-9d4a-ac75ed245719"
/>
## Review instructions
Requirements:
- have multiple orgs
- have a published app that needs projects selection and at least one
authorization already granted
- have the oauth example app ready
Tests:
- authorizing the app again on the same org it was before should
preselect the projects
- you should be able to select another org and if you do, that should
clear the selected projects and you should see only this org projects in
the options
- reselecting the initially granted org should reselect the projects it
had in the existing grant
## Problem
The OAuth apps consent screen may show an empty _Already granted_
section in the permissions diff
<img width="802" height="474" alt="image"
src="https://github.com/user-attachments/assets/f49bca9e-20da-4554-83dd-98b93b752a0a"
/>
## Solution
Hide it when empty
## Review instructions
- Publish an oauth app with only the _Database Read_ permission
- Use the oauth example to authorize it
- Update the published app to add the _Database Write_ permission
- Use the oauth example to authorize it again
You shouldn't see an _Already granted_ button
<!-- claude-slack-attribution -->
_Requested by **Ivan Vasilov** · [Slack
thread](https://supabase.slack.com/archives/C0161K73J1J/p1795121287621619)_
## Problem
**Before:** The Studio org Documents page linked directly to
`https://supabase.com/downloads/docs/Supabase+TIA+250314.pdf`, and that
PDF was served publicly from `apps/www/public/downloads/docs/`.
Legal/Security wants people to get the latest TIA from the Trust Center
instead, and the old PDF taken off the public site.
**After:** The Studio TIA section links to https://trust.supabase.io,
and the PDF is deleted from `apps/www`. The old PDF URL permanently
redirects to the Trust Center, so existing links don't 404.
This removes the public TIA PDF and repoints the dashboard to the Trust
Center.
## Solution
- Deleted only `apps/www/public/downloads/docs/Supabase+TIA+250314.pdf`
(the other docs in that folder are untouched).
- `TIA.tsx` in Studio: the button now links to
`https://trust.supabase.io` (the same form already used in the legal
FAQ), reads "View TIA in Trust Center", uses the external-link icon, and
drops the `download` attribute. Description copy mentions the Trust
Center. The existing `document_view_button_clicked` telemetry is
unchanged.
- `apps/www/lib/redirects.js`: added a permanent redirect for
`/downloads/docs/Supabase\\+TIA\\+250314.pdf` to
`https://trust.supabase.io`, following the existing DPA PDF redirect.
This is easy to drop if you'd rather have a hard 404.
No other references to the PDF exist in the repo (checked www, studio,
docs, packages). The legal FAQ already links to the Trust Center.
## Important caveats
- Deleting the file does **not** remove the blob from git history.
`supabase/supabase` is public, so the PDF stays fetchable through the
repo's history. If it must be truly gone, that needs a separate decision
(history rewrite and/or contacting GitHub support).
- A CDN/Vercel cache may serve the PDF briefly after deploy (and the
redirect takes effect once deployed).
## Review instructions
1. In the Studio preview, open an org's Documents page and check the TIA
section: the button opens https://trust.supabase.io in a new tab.
2. On the www preview, request `/downloads/docs/Supabase+TIA+250314.pdf`
and confirm it redirects to the Trust Center.
## Testing
Typecheck, lint and tests were not run: `pnpm install` is partially
blocked in my environment (npm.jsr.io is egress-blocked) and prettier
couldn't load its plugins. I only confirmed `redirects.js` loads in Node
and the entry parses. I couldn't reach supabase.com, so the live URLs
are unverified.
---
_Generated by [Claude Code](https://claude.ai/code)_
Co-authored-by: Claude <noreply@anthropic.com>
## Description
Part of the work for OAuth apps with the scoped permissions. This PR
wires consent screen to the backend.
## Review instructions
### Setup
Copy the `examples/oauth-app-authorization-flow/.env.example` to
`examples/oauth-app-authorization-flow/.env`
> [!IMPORTANT]
> In next steps, make sure to copy the apps ids/secrets in the
`examples/oauth-app-authorization-flow/.env` with a way to differentiate
them:
> ```
> # org bound all projects
> SUPABASE_CLIENT_ID=xxx
> SUPABASE_CLIENT_SECRET=xxx
> ```
As an organization admin, go to the _Organization settings/OAuth Apps_
and create the following _Publishable apps_:
- `test_org_bound`:
- _Use the permissions of the person who connects_ unchecked
- _Ask for specific projects_ unchecked
- Select only _Database Read_ for the permissions
- `test_org_bound_projects`:
- _Use the permissions of the person who connects_ unchecked
- _Ask for specific projects_ checked
- Select only _Database Read_ for the permissions
- `test_member_bound`:
- _Use the permissions of the person who connects_ checked
- _Ask for specific projects_ unchecked
- Select only _Database Read/Write_ for the permissions
- `test_member_bound_projects`:
- _Use the permissions of the person who connects_ checked
- _Ask for specific projects_ checked
- Select only _Database Read/Write_ for the permissions
Make sure you have 3 projects in the org. Add a team member that have
Administration rights on the first project, read-only access to the 2nd
and no access to the third.
Install the `examples/oauth-app-authorization-flow` dependencies and
start the app.
- `test_org_bound`:
- connected on studio as the org admin
- click the `oauth-app-authorization-flow` button
- check that you don't have to select a project on the consent screen
- check that the permissions requested are correct and you can approve
the app
- update the published app to include the _Database Write_ permissions
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
- connected as a simple team member, check that you have a message
indicating you can't approve this app
- `test_org_bound_projects`:
- connected on studio as the org admin
- click the `oauth-app-authorization-flow` button
- check that you have to select projects on the consent screen
- check that the permissions requested are correct and you can approve
the app
- update the published app to include the _Database Write_ permissions
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
- connected as a simple team member, check that you have a message
indicating you can't approve this app
- `test_member_bound`:
- connected on studio as a member
- click the `oauth-app-authorization-flow` button
- check that you don't have to select a project on the consent screen
- check that the permissions requested are correct and you can approve
the app
- update the published app to add another permission
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
- `test_member_bound_projects`:
- connected on studio as the org admin
- click the `oauth-app-authorization-flow` button
- check that you have to select projects on the consent screen (you
should see only the two you have access to) and select them all one by
one
- check that the permissions requested are correct
- approve the app and check that you have an error related to the
project with read-only access
- unselect it and approve the app
- update the published app to include the _Database Write_ permissions
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
## Problem
On the organization usage page, the per-project breakdowns list project
names, but there's no way to jump to that project's usage. You have to
find it in the project dropdown instead. Resolves FE-5153.
## Solution
Project names in the usage breakdowns are now buttons that set the
`projectRef` filter and clear `branchRef`, so the page shows that
project's usage. The other query params, such as the date range, are
left alone.
- New `UsageProjectName` component. It renders plain text when that
project is already selected, and a button otherwise. It underlines on
hover only.
- Applied in the metric breakdown tooltip (`BillingMetric`), the compute
hover card (`ComputeMetric`) and the database size table
(`DatabaseSizeUsage`).
- `TotalUsage` passes the selected `projectRef` down to the metric
components.
- The `projectRef`/`branchRef` nuqs parsers are now shared as
`usageFilterParsers` in `Usage.utils.ts`, so `Usage` and
`UsageProjectName` use the same definition.
Tests cover the click updating the URL (and clearing `branchRef`), the
selected project rendering as text, and the `BillingMetric` breakdown in
both states.
<img width="410" height="296" alt="Screenshot 2026-11-19 at 13 36 17"
src="https://github.com/user-attachments/assets/1f032cc3-d0e2-4185-80f7-4ab3303fc6b6"
/>
## Review instructions
1. Open an organization's usage page (`/org/<slug>/usage`) for an org
with several projects.
2. Hover a metric that has a per-project breakdown, such as Egress, and
click a project name.
3. The project dropdown should switch to that project and the usage
should update. Any date range you had selected should survive the click.
4. Hover the same metric again. The selected project is now plain text
and the others are still clickable.
5. Do the same from the compute hover card and the database size table.
## Checklist
Check all before review:
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
## Description
Part of the work for OAuth apps with the scoped permissions. This PR:
- Update the mock data to the new format returned or expected by the
backend
- Remove unnecessary hooks that have their feature merged in another one
(`useOAuthOrgAppDetailsQuery` is now merged in
`useOAuthAppsPreflightValidationQuery`)
> [!NOTE]
> At this stage, the UI still only use mock data
## Review instructions
If all tests pass, we're good.
## Description
Part of the work for OAuth apps with the scoped permissions. This PR:
- Update `<MultiSelector>` to allow consumers to react to search terms
changes
- Refactor OAuth app consent screen to ensure we can load projects
asynchronously with an infinite list and server side filtering
> [!NOTE]
> At this stage, the UI still only use mock data
## Review instructions
If all tests pass, we're good.
## Description
Part of the work for OAuth apps with the scoped permissions. This PR:
- refactors the authorize OAuth app consent screen to make it more
consistant with how we handle load requests
- remove the copy constants in favor of direct JSX like we do everywhere
- ensure the data hooks have optional parameters with runtime check to
be usable even when all needed data isn't loaded yet
> [!NOTE]
> At this stage, the UI still only use mock data
## Review instructions
If all tests pass, we're good.
## Description
Part of the work for OAuth apps with the scoped permissions.
This PR updates the publishable apps UI to actually submit the new
options
> [!NOTE]
> The backend may reject the API call if your organization isn't
enrolled in scoped oauth apps. That does not prevent to check the
payload is correct
## Review instructions
- Open _Organizations settings/OAuth Apps_
- Click the _Publish OAuth app_ button
- Check that both options in the _Authorization_ section require a
confirmation with a checkbox
- Before submitting, open your devtool
- Submit the app
- Check that the API route
`https://api.supabase.green/platform/organizations/[org_slug]/oauth/apps`
was called with the options you selected:
- if _Use the permissions of the person who connects_ was checked:
`grant_kind: "member_bound"`, otherwise `grant_kind:
"organization_bound"`
- If _Ask for specific projects_ was checked: `project_scoping_mode:
true` otherwise `project_scoping_mode: false`
Gives the `/org/_/…` and `/project/_/…` catch-alls proper TanStack
routes and deletes `pages/org/_/[[...routeSlug]].tsx` and
`pages/project/_/[[...routeSlug]].tsx` (FE-3106). They show an org or
project picker whose links forward the trailing path and the query
string (and, for projects, the hash) to the real org or project. Part 12
of the stack.
**Depends on:** #53220
**Changed:**
- `components/interfaces/Organization/SelectOrganizationPage.tsx`,
`components/interfaces/Home/ProjectList/SelectProjectPage.tsx` – the
picker bodies. The trailing path and query string come from
`useLocation()` (repeated query keys survive): the splat routes nest
under the `/org/_` and `/project/_` routes, which render the picker with
no `<Outlet>`, so the picker can't rely on its own route's `_splat`
- `routes/{org,project}.[_].tsx`, `routes/{org,project}.[_].$.tsx` –
render the pickers
- `tests/routes/org.[_].$.test.tsx` – covers path and query forwarding
**Removed:**
- both catch-all pages, and `parseCatchAllRoute` from
`compat/next/router.ts`
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- `/project/_/database/tables?schema=auth#x` – pick a project, lands on
`/project/<ref>/database/tables?schema=auth#x`
- `/org/_/billing?panel=x` – pick an org, lands on
`/org/<slug>/billing?panel=x`
- `/org/_` and `/project/_` – pickers link to the org or project home
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>