## Context
Just reviving this [PR
here](https://github.com/supabase/supabase/pull/48794?from=linear) which
deprecates the Query Insights UI - there's a lot of conflicts on that
one so just making a new one instead.
No visible changes from a user's POV on the dashboard
> [!WARNING]
> This PR relies on #54282 being merged first.
## Problem
Database password and token access appear as separate sections in
Database Settings, although both control connections to Postgres.
## Solution
Group the existing controls under **Database access**, with **Password
access** first and the switch beside **Token access**. Nest **Members**
inside the Token access card and label its action **Add member**.
Preserve the existing feature gates, permissions, toggle behaviour,
dialogs and section anchors. Use shared card headings for Members,
centre the token switch beside its description, and darken the Members
table header. Update the matching token-access and password-reset docs
instructions.
```text
Database access
├── Password access
└── Token access [switch]
└── Members [Add member]
```
| After |
| --- |
| <img width="735" height="818" alt="CleanShot 2026-12-01 at 15 56 50"
src="https://github.com/user-attachments/assets/f1207a2f-80d5-480a-9529-e110b960f427"
/> |
| _App [token] access coming separately in
https://github.com/supabase/supabase/pull/53917._ |
## Review instructions
1. Open a project's **Database → Settings** page. Check that **Database
access** contains **Password access** first, with the existing **Reset
database password** button.
2. With the database token access preview enabled, check that **Token
access** has its switch on the same row and **Members** appears inside
the same card when enabled. Check that **Add member** opens the existing
access rule sheet.
3. Check the existing enable confirmation and password reset dialog.
Projects requiring SSL enforcement or a Postgres upgrade should keep
their existing notices and actions.
## Problem
We're going to release versioning in Public Alpha instead of Private, so
we need to be more clear and loud about the new feature being
introduced.
## Solution
This PR makes a few changes mostly around communications and messaging:
- Update `Private Alpha` badges to `Public Alpha`
- Add admonitions in the feature preview modal
- Prompt confirmation before enabling versioning on a bucket
- Dedicated announcement banner in Storage layout
- shown only to users with `storage.capabilities.object_versioning`
enabled
- Popover card when hovering over the Public Alpha badge
See
[update](https://linear.app/supabase/project/storage-object-versioning-and-lifecycle-policies-b5e5809a718e/activity#project-update-e9a50e15)
for more context.
## Review instructions
Functionality changes are minor so mostly check the above mentioned
messaging and ui changes.
## Problem
Observability date labels ignore the timezone set in the profile. They
always show the browser timezone or UTC. The header range label (for
example "Nov 27, 12:40pm → 12:50pm") uses bare `dayjs()`. The Data API
charts (Total Requests, Error Counts, Response Speed, Network Traffic)
pass `displayDateInUtc`, so the first and last timestamps under each
chart always show UTC.
## Solution
- Format the header range label with `useFormatDateTime()` on the
Database, Auth, Storage, Realtime, PostgREST and Edge Functions
observability pages.
- Remove `displayDateInUtc` from the four Data API charts in
`ApiRenderers.tsx`.
- Use `text-xs` for the date labels in `BarChart`, so they match
`ComposedChart` and `StackedBarChart`. This is a separate commit.
## Review instructions
1. Open Observability, Database, and set a timezone in your profile that
differs from your browser.
2. Check that the range label next to the date picker and the tooltip
show the same timezone.
3. Open Observability, Data API. Check that the labels under each chart
follow the profile timezone and use the same font size as the Database
charts.
<details>
<summary>Screenshots</summary>
<img width="1124" height="844" alt="CleanShot 2026-11-27 at 13 37 14@2x"
src="https://github.com/user-attachments/assets/e3d29c77-317a-4489-aa4c-1fbf4783cb57"
/>
font in Data API
<img width="318" height="72" alt="CleanShot 2026-11-27 at 13 40 19@2x"
src="https://github.com/user-attachments/assets/06e4d12f-245f-4d4e-9dc9-b7f2f7879e52"
/>
font in Database
<img width="342" height="66" alt="CleanShot 2026-11-27 at 13 41 08@2x"
src="https://github.com/user-attachments/assets/de200eb2-4351-471d-a220-bacea142b0d9"
/>
</details>
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill (not applicable, no docs
changes)
with PITR enabled scheduled backups copy states incorrect information
that might (and already have) confuse the customers
The backups are still taken and the WAL is archived.
There's just no point exposing regular backups when the customer is
paying for a pretty expensive add-on, might as well point them at it
## 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 🙏
## Problem
Now that Studio runs on TanStack Start, `apps/studio` still routes 13
`next/dynamic` imports through a local compatibility shim
(`apps/studio/compat/next/dynamic.tsx` aliased in
`apps/studio/vite.config.ts`). Keeping the shim adds unnecessary
indirection during the Next.js teardown (FE-5113).
## Solution
Replaces every `next/dynamic` import in `apps/studio` with `React.lazy`
+ `Suspense` (or static imports where already inside a lazy chunk), then
deletes `compat/next/dynamic.tsx` and its Vite alias.
None of the previously `ssr: false` call sites need `ClientOnly`: Studio
runs TanStack Start with `spa: { enabled: true }` and only prerenders
the signed-out auth routes (`/sign-in`, `/sign-up`, `/sign-in-sso`,
`/forgot-password`), `__root.tsx` gates `<Outlet />` behind
`canRenderPage`, and `StudioCommandMenu` is already gated by
`useCommandMenuInitiated()` (which starts `false` per render).
**Removed:**
- `apps/studio/compat/next/dynamic.tsx` and the `'next/dynamic'` entry
in `nextShims` in `apps/studio/vite.config.ts`
**Changed:**
- Migrated all `next/dynamic` call sites to `React.lazy` + `Suspense`:
- `StudioCommandMenu`, `ContextSearchResults`,
`Marketplace/OverviewTab`, `QueryDetail` (`SqlMonacoBlock`),
`SQLEditorEditorPanel` (`MonacoEditor`, `DiffEditor`),
`SupportAssistantSuccessCard`, `LayoutSidebarProvider`,
`MessageMarkdown` (`Streamdown`), and
`SupportAssistantSuccessCardContent` (`Streamdown`)
- `ConnectStepsSection`: hoisted the lazy component cache out of
`useMemo` to module scope (also clears its
`react/no-unstable-nested-components` warning)
- `Integrations.constants.tsx` and `useAvailableIntegrations.tsx`:
hoisted all lazy integration tab/page definitions (including
`GraphiQLTab`) to module scope so `navigate()` returns stable component
references, added `Suspense` boundaries with `<Loading />` at both
render points (`MarketplaceDetail` and the integration child route), and
keyed integration tab/creation sheet instances (`integration.id` in
`MarketplaceDetail` and `wrapperMeta.name` in `WrappersTab`) so state
cannot leak when switching between wrappers or OAuth integrations;
preserves `umdAmdShortCircuit`, `ssrStubGraphiql`, and
`graphiqlViteWorkers` in `vite.config.ts`
- Replaced `dynamic()` calls for `AiIconAnimation`, `Badge`, and 4
`icons` in `CreateCommands.tsx` with static imports (already inside the
lazy `CommandMenu` chunk)
- Removed the stale `next/dynamic` mention from the
`lib/chunk-load-error.ts` doc comment (`React.lazy` chunk failures
continue bubbling to the root `ErrorBoundary` reload handler)
**Added:**
- Reference-stability tests for `INTEGRATIONS.navigate` in
`Integrations.constants.test.ts` (running in Vitest's Node environment)
## Review instructions
1. Open the SQL Editor and Query Performance query detail panel, and
confirm the Monaco editor and diff view load cleanly.
2. Open the GraphQL integration's GraphiQL tab, and confirm the loading
skeleton displays while the chunk loads and GraphiQL mounts with working
autocomplete/workers.
3. Open a Wrapper integration's Wrappers tab, open the create sheet,
then navigate via history to a different wrapper's create sheet and
confirm the form resets to the new wrapper's defaults.
4. Open the Command Menu (`Cmd+K`), navigate to context search (for
example, Search Database Tables) and Create commands, and confirm icons,
badges, and search results load without flicker.
5. Open the Connect sheet and switch between frameworks/steps,
confirming step content loads with the skeleton fallback.
6. Toggle sidebars (AI Assistant, Inline SQL Editor, Advisor, Help) and
verify markdown streaming in AI Assistant.
7. Confirm CI passes `pnpm --filter studio run build` (including
prerendering and chunk-cycle checks), typecheck, lint ratchet, and
Studio tests.
---------
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
A custom date range in a Storage report URL could show one window in the
header and another in the charts. Refresh also left Database Size and
several Auth charts showing cached results.
## Fix
Use the selected window for all Storage report requests, run the
Database Size query on refresh, and refresh Auth Usage, Errors and
Latency alongside the shared API charts.
## How to test
- Open Storage with a custom start and end time in the URL. Inspect the
chart requests on load and after Refresh. Both sets should use those
exact timestamps.
- Refresh the Database report and check that the large objects query
runs again.
- Open Auth with a fixed range and press Shift+R. The Usage, Errors,
Latency and API charts should request fresh data for the same range.
Fixes [FE-5122](https://linear.app/supabase/issue/FE-5122).
## Context
Final piece to the housekeeping for removing the deprecated `PageLayout`
component.
Moves off the organization and project home routes to the new layout
components and deletes the `PageLayout` component within studio
## Context
Just some housekeeping to move off old layout components - this PR
targets the branching pages, specifically
Branching
Branching -> Merge requests
Branching -> Merge
Just need to make sure that these pages still render fine
## Context
Just some housekeeping to move off old layout components - this PR
targets the database + advisor pages, specifically
Advisor -> Settings (Rules), this is behind a feature preview
Database -> Tables
Database -> Publications
Just need to make sure that these pages still render fine
## Context
Just creating a separate PR cause I messed up the [previous
one](https://github.com/supabase/supabase/pull/53453) with a bad merge 🫠
Also changed the implementation to no longer use `@deno/eszip`.
For edge functions, functions which exceed 5MB cannot be fetched and
displayed in the dashboard editor (API will return a 507). The CTA we
give to users is to download the function via the CLI, but this PR
explores allowing users to download their edge functions via the browser
still, by calling `/v1/functions/slug/body` without the
`multi-part/data` header. This returns the function in a raw eszip
stream which we're then parsing using a custom reader
We'll do this via the "Download as ZIP" CTA here - but this way of
downloading only kicks in if the GET Edge Function body endpoint returns
a 507. Otherwise it'll just be status quo where we bundle the files that
were already fetched to render in the browser into a ZIP file.
<img width="343" height="186" alt="image"
src="https://github.com/user-attachments/assets/4ffc9fee-7e6d-46a6-bdbe-294610abc802"
/>
Also updated the warning for 507s:
- To use a normal admonition instead of `AlertError` since its
technically not an issue
- To avoid rendering the API error message in this case specifically as
the API message contains "Use multipart instead" which isn't relevant to
the dashboard from a user's POV
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/8242a875-f142-419d-81f0-0dbc30807f87"
/>
## To test
- [ ] Upload an edge function of size larger than 5MB to a staging
project via the CLI
- [ ] Verify that there's an Admonition for the large function instead
of an error
- [ ] Verify that you can still download the edge function via the
Download button (Which triggers a POST /body request without multipart)
## 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
## Context
Just some housekeeping to move off old layout components - this PR
targets Auth and Settings pages, specifically
- Auth -> Emails
- Auth -> Providers
- Settings -> API Keys
- Settings -> JWT Keys
- Settings -> Log Drains
- Settings -> Read Replica/id
The only visual change is just that navigation tabs take the full width
of the viewport now
Just need to make sure that these pages still render fine
## Context
We previously introduced context menus to the table editor
[here](https://github.com/supabase/supabase/pull/53506), but prevented
edit, delete, and duplicate actions as those actions were coupled to the
router. Hence this PR decouples that by making those actions target a
table by a provided ID
"More options" action now also shows on every row, just visibly shown
only if its active or the user hovers over the row
<img width="335" height="183" alt="image"
src="https://github.com/user-attachments/assets/9897945d-37f4-4658-9420-29b948173208"
/>
## To test
Can test edit / delete / duplicate table on a table that you're not
currently actively on, via both context menu and dropdown menu
## Problem
The auth logs route rendered the full-page `NoPermission` state whenever
`useAsyncCheckPermissionsV2` returned `can: false`. The hook returns
`can: false` until the permissions query succeeds. Users who can read
logs therefore saw a short "No permission" flash before the logs loaded.
## Solution
`apps/studio/routes/project/$ref/logs/auth-logs.tsx` now reads
`isSuccess` from `useAsyncCheckPermissionsV2`:
- While permissions load, the route renders nothing.
- Once they load, a user without `ANALYTICS_LOGS_READ` gets the
full-page `NoPermission` state.
- Otherwise the route renders `LogsPreviewer` as before.
This is the same `isSuccess && !can` gating that other routes use, such
as `database/extensions.tsx`. No other route under
`routes/project/$ref/logs/` uses this pattern.
## How to verify
- As a user with log access, open `/project/<ref>/logs/auth-logs`.
Hard-reload the page. The "No permission" state never appears, and the
auth logs view loads.
- As a user without analytics log read access, open
`/project/<ref>/logs/auth-logs`. The page shows the full-page "No
permission" state for authentication logs.
## Checks run
- `pnpm turbo run typecheck --filter='...[origin/master]'`: pass
- `pnpm turbo run lint --filter='[origin/master]'`: pass, no errors. It
ran out of memory once at the default heap and passed with
`NODE_OPTIONS=--max-old-space-size=8192`.
- Prettier check on the changed file: pass
- No unit tests cover this route.
[FE-5121](https://linear.app/supabase/issue/FE-5121/auth-logs-page-flashes-no-permission-while-permissions-load)
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
## Problem
On the Query Performance page, the calls filter only applied to rows
already loaded in the grid. The page loads 20 rows at a time, so a
filter like `calls >= 200` showed "No queries detected" whenever none of
the loaded rows matched, even if matching queries existed further down.
The filter bar writes a `callsFilter` URL param, but the page only
passed a separate `minCalls` param to the SQL, which nothing set.
The total time filter had a related gap: only `>` and `>=` reached the
SQL, and the other operators were ignored.
Fixes part of FE-5092. The lazy-load fix is in #53457.
## Solution
- `generateQueryPerformanceSql` takes `callsFilter` and
`totalTimeFilter` and builds the `WHERE` clause for all six comparison
operators. The operator comes from a fixed lookup and the value goes
through `literal()`. Filters with a non-finite value or an unknown
operator are dropped.
- The page passes both filters to the query, and the unused `minCalls`
param is removed.
- The grid no longer filters search, roles or calls in memory, since the
SQL already does.
- The query search is now a literal, case-insensitive substring match.
It was a regex (`~*`), so characters like `[` or `(` produced a SQL
error while typing. This matches what the grid's old in-memory search
did.
Behavior changes to be aware of:
- Regex search no longer works. Searching for `a.*b` now looks for that
exact text.
- Old `?minCalls=` links no longer have any effect. The UI never
produced them.
## Review instructions
1. Open Observability → Query Performance on a project with more than 20
statements.
2. Add a Calls filter of `>= 200` (or a value higher than anything in
the first 20 rows). Confirm matching queries appear.
3. Try the other operators on Calls and on Total time, including `!=`.
4. Search for `[` and `pg_sleep(` and confirm the grid shows matches (or
an empty state) instead of a SQL error.
5. Clear the filters and confirm the full list returns.
## 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)
## Problem
`/project/[ref]/settings/billing/usage` only redirects: to
infrastructure settings for the `#cpu`, `#ram` and `#disk_io` hashes,
and to the org usage page otherwise. The redirect runs on the client
because it reads the URL hash. It used `navigate` with the default push
behaviour, so the redirect page stayed in history. Pressing Back landed
on the redirect page, which sent the user forward again, and the user
could not go back.
## Solution
Pass `replace: true` to both `navigate` calls in
`apps/studio/routes/project/$ref/settings/billing/usage.tsx`, so the
redirect replaces its own history entry.
## How to verify
1. From any project page, open
`/project/<ref>/settings/billing/usage#cpu`. You land on
`/project/<ref>/settings/infrastructure#cpu`. Pressing Back returns to
the project page you came from, not to the infrastructure page again.
2. From any project page, open `/project/<ref>/settings/billing/usage`
with no hash. You land on `/org/<slug>/usage?projectRef=<ref>`. Pressing
Back returns to the project page you came from.
## Checks
- `pnpm turbo run typecheck --filter='...[origin/master]'`: passed.
- `eslint` on the changed file: passed. Prettier `--check`: passed.
- `pnpm turbo run lint --filter='[origin/master]'` ran out of memory
twice in the sandbox (`studio#lint:type-checks`).
[FE-5120](https://linear.app/supabase/issue/FE-5120/project-billing-usage-redirect-breaks-the-back-button)
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Retires the migration guardrails now that `pages/**` is gone (FE-3106).
Last part (15) of the stack.
**Depends on:** #53223
**Changed:**
- `apps/studio/AGENTS.md` – replaces the "TanStack Start migration"
rules (never delete a page, mirror page edits) with a short routing
section
- `apps/studio/README.md`, `routes/project/$ref/editor.tsx` – stale Next
references
**Removed:**
- `apps/studio/TANSTACK_MIGRATION.md`
- the `apps/studio/pages/**` `path_instructions` rule in
`.coderabbit.yaml`
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- Docs-only; nothing to exercise beyond reading `apps/studio/AGENTS.md`
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Moves the SQL editor, table editor, explorer and project integrations
page bodies into their route files and deletes the pages (FE-3106). Part
11 of the stack.
**Depends on:** #53219
**Changed:**
- `routes/project/$ref/{sql,editor,explorer,integrations}/**` – 15 page
bodies inlined. Every `router.push/replace` became the equivalent
`navigate` with the same path, `search` and `replace`; the
last-opened-table redirect splits `buildTableEditorUrl`'s absolute URL
with `splitInternalUrl` so it stays a client-side navigation
- `components/interfaces/SQLEditor/SnippetNotFound.tsx` – the
invalid-snippet state moves out of the route because
`tabs.handleTabClose` still takes a Next-shaped router
- `tests/routes/project/$ref/explorer/index.test.tsx` – moved and
rendered with `renderRoute`
**Removed:**
- 15 page files
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- SQL editor: open `/sql` (redirects to the last snippet or `new`),
open/close snippets and tabs, an invalid snippet id shows "Unable to
find snippet"
- Table editor: open `/editor` (redirects to the last table), create a
table – lands on it with `?schema=`
- Explorer and Integrations pages – same layout; integration sub-pages
redirect as before
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Moves the `/settings/*`, `/advisors/*` and `/issues/*` page bodies into
their route files and deletes the pages (FE-3106). Part 10 of the stack.
**Depends on:** #53218
**Changed:**
- `routes/project/$ref/settings/**` – 16 page bodies inlined.
`settings/api` redirects with `<Navigate>`; billing usage, dashboard and
replica pages use typed `navigate`/`Link`
- `routes/project/$ref/{advisors,issues}/**` – 7 page bodies inlined
- Settings tests moved from `tests/pages/**` to `tests/routes/**` and
rendered with `renderRoute`
-
`routes/project/$ref/advisors{.tsx,/rules.tsx,/security.tsx,/performance.tsx,/health.tsx}`
– carry master's #52993 (Advisors → Issues behind `issuesInbox`:
`IssuesCategoryRedirect`, `LegacyAdvisorsLayout`, `parseLinterLevel`,
named `LinterFilters`/`LintPageTabs`), ported from the deleted pages and
checked against master's pages + route adapters;
`LegacyAdvisorsPages.platform.test.tsx` now renders the routes
(`tests/routes/project/$ref/advisors/legacy-advisors.platform.test.tsx`)
**Removed:**
- 23 page files, and `AdvisorRulesLayout` (only the deleted rules pages
used it; `routes/project/$ref/advisors/rules.tsx` already inlines it)
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- Project Settings (General, Compute, Infrastructure, Add-ons, API keys,
JWT, Log drains, Webhooks, Integrations) – same layout and sidebar
- `/project/<ref>/settings/api` – redirects as before
- Advisors (Security, Performance, Rules) and Issues – same layout
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Moves the `/logs/*` and `/observability/*` page bodies into their route
files and deletes the pages (FE-3106). Part 9 of the stack.
**Depends on:** #53217
**Changed:**
- `routes/project/$ref/logs/**` – 20 page bodies inlined. `logs/index`
keeps its `withAuth` wrapper; `replication-logs` redirects with
`<Navigate search hash>`; the Logs Explorer save navigates with `search:
{ queryId }` (never a query inside `to`)
- `routes/project/$ref/observability/**` – 12 page bodies inlined; chart
highlight actions navigate with `search` params
- `components/interfaces/Observability/DatabaseReport.hooks.ts` – the
database report's URL hooks move out of the page (with their test)
- `components/ui/Charts/ComposedChartHandler.tsx` – imports
`UpdateDateRange` from `ChartHighlightActions` instead of a page
**Removed:**
- 32 page files
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- Logs Explorer: run a multi-line query, save it – the URL keeps
newlines and the saved query reopens
- Each log source (Postgres, Auth, Edge, Storage, Realtime, …) – same
layout and title
- Observability reports – charts render; highlighting a range links to
the right logs page
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Moves the `/storage`, `/realtime`, `/compute`, `/functions` and
`/branches` page bodies into their route files and deletes the pages
(FE-3106). Part 8 of the stack.
**Depends on:** #53216
**Changed:**
- `routes/project/$ref/{storage,realtime,compute,functions,branches}/**`
– 26 page bodies inlined. Wrappers the routes imported from pages
(`BranchesPageWrapper`, `MergeRequestsPageWrapper`, …) are now private
to their route files. Bucket redirects, function create/deploy
navigation and merge-request links use typed `navigate`/`Link`; function
logs/invocations use `useLocation().href`
- Edge function overview, logs-navigation, vectors, compute and branches
tests render the routes with `renderRoute`
- `routes/project/$ref/storage/files/buckets/$bucketId.tsx` – also
carries master's #52777 (Purge CDN cache action and single `action`
query param for the bucket modals), ported from the deleted page so it
isn't reverted
**Removed:**
- 26 page files
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- Storage: open a bucket, its policies link and S3 settings – same
layout; deleting a bucket returns to the list
- Edge Functions: create a function, open
Overview/Code/Logs/Invocations/Details – same layout
- Branches and merge requests – lists and "Review" links work
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Moves all `/project/$ref/auth/*` page bodies into their route files and
deletes `pages/project/[ref]/auth/**` (FE-3106). Part 7 of the stack.
**Depends on:** #53215
**Changed:**
- `routes/project/$ref/auth/**` – 18 page bodies inlined. `overview`
redirects with a typed `navigate` when the flag is off and now also
re-runs once flags finish loading (before, a late flag load could skip
the redirect); `templates/$templateId` reads params from
`Route.useParams()` and uses `Link`. `authLayoutTitle` and the
`skipAuthLayout` leaves match the old `getLayout`s
**Removed:**
- 18 page files
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- Click through Authentication (Users, Providers, Sessions, Rate Limits,
Emails, SMTP, URL Configuration, Hooks, MFA, Attack Protection,
Third-party, OAuth) – same layout and titles
- Open an email template and use "Back" – returns to the templates list
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Moves the project home, `/merge`, `/api` and all `/database/*` page
bodies into their route files and deletes the pages (FE-3106). Part 6 of
the stack.
**Depends on:** #53214
**Changed:**
- `routes/project/$ref/{index,merge,api/index}.tsx`,
`routes/project/$ref/database/**` – 26 page bodies inlined; redirects
use `<Navigate>`/`useNavigate` with typed params and `search`;
`next/link` → `Link`
- `database/pipelines/new` – same-origin header links navigate
client-side via `splitInternalUrl`, external ones via `href`, matching
the old shim
- `PipelineCreationPage.test.tsx` – renders the route with `renderRoute`
**Removed:**
- 26 page files, and `DatabaseTriggersLayout`/`PipelinesLayout`, which
only the deleted pages' `getLayout` used (the route shells already
inline them)
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- Click through Database (Tables, Functions, Triggers, Indexes, Roles,
Policies, Backups, Pipelines, Publications) – same layout, titles and
sidebar
- `/project/<ref>/database/triggers` – redirects to `triggers/data`
- `/project/<ref>/api` – redirects to the Data API docs, keeping the
query
- Create a pipeline and leave the wizard – unsaved-changes guard and
navigation behave as before
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
## Context
Update database triggers to use the new page components + add
deprecation notices to legacy components
There's no visual change here
---------
Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
Resolves FE-4744. Part of the grants rollout; builds on the read/write
SQL variants from #53185.
## What
- **Data layer:** the database functions, triggers, database webhooks,
and event triggers queries now take a `read` grant (exposed as
`queryOptions` factories). All 8 create/update/delete mutations take a
`write` grant and mark their SQL with `asWriteSql`.
- **Guards:** the hand-written FGA checks in the functions, triggers,
event triggers, and database webhooks lists, the functions page, the
triggers layout/route, and the webhooks integration tab now derive from
grants, with denied and error states.
- **Other consumers** updated to pass grants: `CreateFunction`,
`TriggerSheet`, `EditHookPanel`, `DeleteHookModal`,
`ChooseFunctionForm`, `FunctionSelector`, `AutoEnableRLSNotice`, and SQL
editor definition/autocomplete hooks.
## Behavior changes
- **Webhooks integration tab:** was gated on
`database_webhooks_config_read`; now gated on `database_read`, which is
what the backend checks for the pg-meta query it uses. Both permissions
are granted to the same built-in roles, so there is no change for
built-in roles. A permissions-load failure now shows an error alert
instead of the content.
- **`AutoEnableRLSNotice`:** hidden unless the user has read access,
since it can't tell whether the trigger already exists without it.
## Out of scope
- User-authored SQL execution in `QueryEditor` / `useSqlEditorExecution`
stays `unguarded.migrating` (FE-4750).
## Testing
- New tests: query factories and write mutations
(`data/database-sql-grants.test.ts`), webhooks tab granted/denied/error,
functions list read/write granted/denied/error.
- Typecheck, Prettier, lint ratchet, and Studio vitest suites for
affected areas pass.
Part 5 of 6: #52989 → #52990 → #52991 → #52992 → #52993 → #53138
Switches Studio navigation between Advisors and Issues with
`issuesInbox`. With the flag off, the existing Advisors sidebar, pages,
command menu entries, shortcuts, header panel, and contextual finding
links remain available. With it on, these entry points show Issues and
legacy Advisor URLs forward to the matching Issues category while
preserving finding context. Direct Issues routes remain accessible in
either state. The homepage section remains hidden when the flag is off.
Telemetry event names are unchanged.
## How to test
1. Turn `issuesInbox` off: desktop and mobile navigation show Advisors,
the header opens Advisor Center, and Security, Performance, and enabled
Health Advisor pages remain usable.
2. Turn it on: navigation and the header show Issues. Legacy Advisor
category URLs forward to matching Issues lists.
3. `G` then `V` opens the active variant. `V` then `S`, `P`, or `H`
follows the active category links; shortcut reference labels match.
4. Table Editor finding links open the legacy finding when off and its
issue when on.
5. Direct Issues routes remain usable with the flag off; the homepage
section stays hidden.
## Validation
- Broad navigation/layout/redirect/shortcut regression suite: 456 tests
passed, retries disabled.
- Focused suite: 181 tests passed with shuffle seed 52993, retries
disabled.
- Full Studio TypeScript, scoped ESLint, and changed-file Prettier pass.
- Behavioral mutation probes detect broken flag guards, finding links,
and redirect destinations; source restored afterward.
[DEBUG-255](https://linear.app/supabase/issue/DEBUG-255/replace-advisor-terminology-with-issues-throughout-studio)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
## Context
Makes the one-click integrations feature preview the new default +
cleans up all the old integrations code that's no longer used with this
change
## To test
- [ ] Verify that the project integrations page is using the new UI
## Problem
Rotating a project's Storage URL signing key currently needs a support
ticket, so customers can't rotate on their own timeline or keep a
standby key until their signed URLs have migrated.
Linear:
[FE-4433](https://linear.app/supabase/issue/FE-4433/allow-users-to-rotate-storage-url-signing-keys-via-ui)
## Solution
Adds a URL signing keys page at `/project/{ref}/storage/signing-keys`,
linked from the Storage menu. It builds on the design prototype from
`feat/storage-rotate-signing-keys` and follows the current JWT Keys page
styling.
- Active key, standby key, and revoked keys are shown in separate
tables, so there is only ever one active key. The UI allows one standby
key at a time.
- Create a standby key (ES256 by default, HS512 optional), rotate the
standby key to active, revoke a standby key, or move a revoked key back
to standby.
- The key list reports JWK types (`EC`, `oct`), which are mapped to
ES256 and HS512 labels. Unrecognized types fall back to the raw value.
- Telemetry: `storage_url_signing_key_created` and
`storage_url_signing_key_updated` (with a `change` property), fired when
the action succeeds.
- A "Created at" column is not included yet because the keys endpoint
doesn't return it. It will follow in a later PR.
<img width="1272" height="846" alt="Screenshot 2026-10-23 at 11 43 45"
src="https://github.com/user-attachments/assets/980742ed-6c4e-43d1-b170-847e550fde4c"
/>
## Review instructions
1. Open the preview and go to Storage > URL signing keys on a project.
2. Create a standby key, then rotate it to active. The previous active
key should move to standby.
3. Revoke the standby key (type its ID to confirm), then move it back to
standby from the revoked table.
4. Compare the table styling with Project Settings > JWT Keys.
5. Check that creating a standby key and moving a revoked key to standby
are disabled while a standby key exists.
## 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)
---------
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
## Problem
Migrating Studio's permission checks from the old RLS json logic to
openfga backed permissions.
### New hooks and helpers
- `usePermissionsQueryV2` fetches the new profile openfga permisisons
- `useAsyncCheckPermissionsV2` the replacement for the old check hook;
takes an FGA permission string (or a list)
- `FGA_PERMISSIONS` permission constants derived from
`@supabase/shared-types`. At the moment, the hook also accepts plain
strings for permissions not yet published in the package
- `useAsyncCheckUserContentPermissions` new hook for permission checks
on user content (SQL snippets, reports, log snippets). This wraps
``useAsyncCheckPermissionsV2` and adds existing content level rules on
top of the fga permission check
### Notes
- ~~Need api to support new permissions: project_operations_write,
billing_read/write, audit_logs_read~~ [DONE]
- ~~Still need to support: organization_config_read/write, auth hooks
and users permissions~~ [DONE]
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
## Problem
The pipeline wizard in #49243 needs its merged components composed into
a full-page flow, with values preserved when moving backwards and
forwards.
## Solution
- Compose four full-page SteppedFlow steps behind **Pipeline creation
wizard**.
- Preserve values through step navigation and browser Back/Forward.
Refresh starts at Destination.
- Reuse Studio’s header controls and confirm before discarding changes.
- Defer step validation and creation; **Start pipeline** is disabled.
**Add pipeline** and preview-off visits keep the sheet.
| After |
| --- |
| <img width="1024" height="759" alt="New Pipeline Supabase"
src="https://github.com/user-attachments/assets/7c3c4511-9a00-4e64-a86a-d6d9489f7d75"
/> |
| _Only available by navigating to `database/pipelines/new` with the
feature preview on._ |
## Review instructions
1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-stepped-n-ce5307-supabase.vercel.app/dashboard/project/_/database/pipelines),
select a test project and enable **Pipeline creation wizard**. Open the
[wizard
preview](https://studio-staging-git-dnywh-featpipeline-stepped-n-ce5307-supabase.vercel.app/dashboard/project/_/database/pipelines/new)
for that project. Check the full-page layout and header at desktop and
phone widths.
2. Enter connection details, select a publication and change
initial-sync and advanced settings. Use **Back/Continue**, browser
**Back/Forward**, and switch destinations to confirm values remain.
3. Check Review shows your settings, masks secrets and disables **Start
pipeline**. Refresh and confirm it restarts at Destination. Incomplete
steps are allowed in this navigation-only slice.
4. With changes, try header navigation or **Close**. Check **Keep
editing** preserves values and **Discard changes** leaves the flow. Turn
the preview off and confirm the wizard URL opens the sheet.
## What kind of change does this PR introduce?
Feature and docs update.
## What is the current behavior?
The Dashboard lists Pipelines destinations under Database > Replication.
Read replicas have moved to Infrastructure, but the temporary notices
remain on the destinations page and new destination sheet.
Closes PIPE-1021.
## What is the new behavior?
The canonical Dashboard routes are Database > Pipelines, while legacy
Replication list and detail URLs permanently redirect to the equivalent
Pipelines routes. Navigation, command palette, shortcuts, pipeline
links, docs, and current marketing copy use Pipelines. Read-replica
notices and their obsolete dismissal state are removed.
| Before | After |
| --- | --- |
| <img width="1024" height="759" alt="Replication Database Agua Basket
Supabase"
src="https://github.com/user-attachments/assets/53f9f565-1ed1-43e9-a7d9-b66b2a47e948"
/> | <img width="1024" height="759" alt="2540"
src="https://github.com/user-attachments/assets/14ab2d61-d01c-483f-9d4f-0ac286dae159"
/> |
The Management API, pipeline behaviour, replication logs, and Postgres
replication terminology remain unchanged.
## To test
- Open `/project/<ref>/database/pipelines` and confirm the Database
navigation, page header, and pipeline breadcrumb say Pipelines.
- Open
`/project/<ref>/database/replication?source=bookmark#destinations` and a
legacy pipeline detail URL. Confirm each redirects to the matching
Pipelines URL while preserving parameters and fragments.
- From the Pipelines page, open Add destination. Confirm no read-replica
migration notice appears.
- Open the Pipelines guide and confirm its Dashboard steps lead to
Database > Pipelines.
## Before merge
- [ ] Get changelog entry reviewed
https://github.com/supabase/changelog/pull/262 and prepare to merge
simultaneously
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added dedicated **Database > Pipelines** pages for pipeline lists and
details.
- Added permanent redirects from legacy Replication URLs to their
corresponding Pipelines pages.
- Read replica management links now open **Settings > Infrastructure**.
- **Documentation**
- Updated Pipelines setup, monitoring, troubleshooting, and usage
guidance to reference the current dashboard locations.
- Updated Realtime guidance to use **Database > Publications**.
- **Updates**
- Renamed dashboard navigation, breadcrumbs, commands, and keyboard
shortcuts from **Replication** to **Pipelines**.
- Removed the “Read replicas have moved” notification.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
## Summary
Make pipeline actions and status feedback reliable while requests are
running or fail. Let the backend coordinate table resets and restarts,
keep stopped pipelines stopped after resets or settings changes, and
refresh the UI from confirmed backend state.
## Pipeline actions and recovery
- Reset one table, all errored tables, or all tables through the
rollback endpoint without separate frontend stop/start requests. Explain
which destination data is deleted, which rows are copied again, initial
sync charges, and the skip-initial-sync setting.
- Keep pending feedback until the action and a fresh status read finish,
including across navigation and polling errors. Prevent overlapping
actions and disable start/stop controls when status is unavailable or
transitioning.
- Close the creation form once the pipeline is created. If its initial
start fails, users can retry Start on the existing pipeline without
creating a duplicate.
- Wait for confirmed shutdown before deletion; a shutdown error or
timeout leaves deletion retryable. Keep failed version updates open and
avoid reporting success.
- Clarify recovery guidance and pending labels, suppress duplicate error
toasts, and hide stale table errors during transitions.
## Status updates and shared UI
- Poll pipeline status and table metrics one second after each response,
share in-flight reads, pause dashboard polling in background tabs, and
respect rate-limit backoff. The shutdown waiter continues in the
background.
- Refresh metadata after mutations even when an older read is in flight,
while preserving shared polling requests. Refresh affected data after
failures that may follow a committed reset or settings change.
- Move pending request state into the shared, project-keyed
`DatabaseLayout` so the list, detail page, and diagram stay consistent.
The surrounding database-page changes update named imports in both
Next.js and TanStack routes.
- Simplify action, status, and form rendering; announce status changes
to assistive technology; and sort table statuses without mutating cached
data.
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
workers -> compute
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added the Compute experience for deploying, viewing, managing, and
monitoring compute instances.
- Added Compute navigation, instance detail pages, secrets, logs,
deployment dialogs, generated snippets, and CLI commands.
- Added filtering, status, availability, and data-loading support for
compute instances.
- **Updates**
- Updated labels, icons, links, feature controls, unified logs, and
secret-deletion messaging to use Compute terminology.
- Compute routes now replace the previous Workers routes and pages.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Feature
## Summary
- Add a Health Advisor page at `/project/[ref]/advisors/health`
- Put Health Advisor first in the Advisors left nav (above Security),
platform-only
- Register `V` then `H` and a command-menu entry
Stacked on #49662. Top of the stack.
## To test
1. Open any project in Studio.
2. Click **Advisors** in the main nav (or go to
`/project/<ref>/advisors/security`).
3. In the left nav, confirm the order is **Health Advisor**, then
Security Advisor, then Performance Advisor, then Query Performance.
4. Click **Health Advisor**. You should land on a page titled “Health
Advisor” with Errors / Warnings / Info tabs, same layout as Security
Advisor.
5. If the project is healthy, Errors should say no errors were detected.
If it is not, the failing checks should list here (database down,
connection limit, and so on).
6. Click **Refresh** (or Shift+R) and confirm the list reloads.
7. Click a row and confirm the detail panel opens with a link through to
logs, connections, or infrastructure.
8. While still in Advisors, press **V** then **H**. You should jump back
to Health Advisor.
9. Open the command menu and search **Health Advisor**. Choosing it
should navigate to this page.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added a Health Advisor page for reviewing project health findings by
severity and category.
- Added Health Advisor navigation in the advisor menu and a keyboard
shortcut (`V`, then `H`) on supported platforms.
- Added refresh, filtering, selection, and lint detail navigation for
health findings.
- **Bug Fixes**
- Added validation for linter severity values, safely handling
unsupported or missing inputs.
- **Documentation**
- Updated migration and shortcut documentation to include the Health
Advisor.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
## Problem
Workers Secrets was merged in #49589 into the stacked
jordi/workers-detail branch. The parent Workers PR reached master
without that child merge, leaving the page absent from staging.
## Fix
Cherry-pick the missing Workers Secrets route, menu item, shared-secret
copy, and generated route tree onto current master. The page uses the
existing workers flag and permission gates.
## How to test
- Enable the workers flag for a project with Workers access.
- Open Workers, then select Secrets.
- Expected result: the shared project secrets page renders at
/project/:ref/workers/secrets and is not treated as a worker named
secrets.
- Add, edit, or delete a secret, then confirm the same value appears
under Edge Functions, Secrets.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a **Secrets** page to the Workers section.
* Added navigation to Worker secrets from the Workers menu.
* Displayed default secrets and deployment-specific guidance where
applicable.
* Clarified that platform secrets are shared between Edge Functions and
Workers.
* Updated deletion warnings to reflect shared secret usage.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What
The worker detail page at `/project/[ref]/workers/[name]`, reading `GET
/v2/projects/{ref}/workers/{name}`. Base: #49194.
## How to test
Only on the **Mockamaster** project in staging — it is the one project
in the alpha allow-list.
1. Staging dashboard → Mockamaster → **Workers** → click
`dashboard-test`
2. Overview: instances read 1 declared / 1 live / 1 ready / 0 stale, no
error alerts
3. Settings: Deno 2, `denoland/deno:latest`, 2 GB · 1 vCPU, private, US
West (locked)
4. **How to call** in the header → the snippets name the real worker URL
No write actions. Delete (FE-4190) is deliberately out.
Closes FE-4189
Closes FE-4197
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added worker detail pages with overview, requests, logs, builds, and
settings tabs.
* Added worker metadata, runtime details, invocation examples, and local
development commands.
* Added worker log streams with refresh, row selection, loading, empty,
and error states.
* Added worker-specific log formatting and clearer instance status
information.
* **Documentation**
* Updated migration tracking to mark the worker route as complete.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## New Features
- Initial work for showing configuration drift in Studio
- This only works for Github-connected projects and it'll show a banner
if the project state differs from the git-tracked `config.toml`
- Currently behind a feature-flag `ConfigDrift`, enabled on local and
staging.
- There might be drift shown without changing any setting, this is
work-in-progress.
<img width="1217" height="1195" alt="Screenshot 2026-08-19 at 23 12 10"
src="https://github.com/user-attachments/assets/fb0b18d8-1a93-4595-85cc-e8b8a3462847"
/>
## How to test
1. Connect a project to a Github repo
2. Resync the branch on `/dashboard/project/_/branches`. This will
trigger deployment of the `config.toml` on your project
3. Change some settings (I recommend
`dashboard/project/_/auth/providers`
4. A banner should appear on all project pages with a link
## Tests
- Added coverage for configuration conversion, normalization, matching,
drift detection, and unmanaged settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What kind of change does this PR introduce?
Feature. Stack 3 of 5 for
[PIPE-1007](https://linear.app/supabase/issue/PIPE-1007/move-read-replicas-out-of-replication-into-infrastructure).
## What is the current behavior?
Replica detail lives at `/database/replication/replica/:id`.
## What is the new behavior?
Detail moves to `/settings/infrastructure/replica/:id`. Old URLs
redirect. List and diagram View/Manage replica links follow.
## Additional context
Stacked on [#49044](https://github.com/supabase/supabase/pull/49044).
Please review, but do not merge. Merge 2→5 in succession once they are
all reviewed, so users never sit on a split create/list vs detail path.
Replication still lists and creates replicas until
[#49046](https://github.com/supabase/supabase/pull/49046).
## To test
`infrastructure:read_replicas` is an enabled-feature, on by default.
There is no Feature Preview or ConfigCat switch. You should already see
the Infrastructure Read replicas section. If you do not, your profile
lists `infrastructure:read_replicas` in `disabled_features`.
From
[Infrastructure](https://studio-staging-git-danny-pipe-1007-03-detail-redirects-supabase.vercel.app/dashboard/project/_/settings/infrastructure),
open View replica on a row. Confirm you land on
`/settings/infrastructure/replica/:id`. If you have an old bookmark,
`/database/replication/replica/:id` should redirect there.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added read replica management to Infrastructure settings, including
replica creation, status monitoring, details, restart, and removal
actions.
* Added eligibility guidance and estimated pricing details during
replica setup.
* Added support for topology and replica information within
infrastructure configuration.
* **Improvements**
* Legacy database replication links now permanently redirect to the
corresponding Infrastructure pages.
* Added clearer empty, loading, error, and transition states for read
replica management.
* **Tests**
* Expanded coverage for replica navigation, redirects, eligibility
warnings, and empty states.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->