Commit Graph
5244 Commits
Author SHA1 Message Date
Riccardo Busetti 0670509381 feat(pipelines): Improve lag UI for Pipelines (#51863) 2026-10-20 08:48:24 +00:00
Pamela Chia 76f0585e80 fix(studio): limit project exit surveys (#51946)
I limited project deletion exit surveys to Pro and Team organizations.
Other plans use the compact deletion dialog, with the permanent-deletion
message consolidated into its warning and typed project-name
confirmation retained.

## To test

Tested on the updated Studio PR preview:

- [x] Open project deletion for a Free org, expect the
permanent-deletion text and documentation link together inside the
warning, no separate deletion paragraph, and no survey fields.
- [x] Open project deletion for a Pro org, expect the existing warning,
reason selector, and feedback field.
- [x] In Free and Pro dialogs, enter an incorrect project name and press
Enter, expect “Value entered does not match”. Enter the exact name,
expect the error to clear, then close without submitting.

Not exercised:

- [ ] Open project deletion for a Team org, expect the survey fields.
- [ ] Open project deletion for Enterprise and Platform orgs, expect
compact confirmation without survey fields. These plans are unavailable
in the staging account.

## Linear

- fixes FE-4634
2026-10-20 08:33:45 +00:00
Joshen Lim 1ddb9ac787 Refactor organization audit logs to use filter bar (#51921)
## Context

Related to this PR
[here](https://github.com/supabase/supabase/pull/51790), gonna refactor
the Organization audit logs UI to also use the FilterBar component to
match a consistent UX across log surfaces, instead of the individual
filter popovers.

<img width="1450" height="684" alt="image"
src="https://github.com/user-attachments/assets/c1a4aab3-59d0-46a5-b7c7-1e7a5ad86b0d"
/>


### For design

Adding a small update to the `FilterBar` component here with a
`topLevelOnly` parameter if the component is being used with
`supportsOperators` (nested groups)
- In the case of AuditLogs as least, figured that the date range filter
option only makes sense as a top level filter
- Hence this prevents the date range filter from being selectable while
managing filters within a group

<img width="366" height="186" alt="image"
src="https://github.com/user-attachments/assets/e34ea0c8-5f03-4115-9fb1-554612f148dd"
/>
2026-10-20 14:52:40 +08:00
Joshen Lim 0ca1774997 Fix not showing phone based users in auth page for legacy search (#51942)
## Context

Resolves https://github.com/supabase/supabase/issues/51761

For projects that aren't using the improved search in the Auth → Users
page, the UI shows "No users in your project" when no user has an email
(phone-only, anonymous, etc.), even though users exist.

With the default "Email address" filter and an empty search box, the
legacy query runs `where lower(email) >= ''`. That evaluates to NULL for
users without an email, so they're excluded and the page looks empty.

## Changes involved

- Only apply the column-based search when there are keywords. With an
empty search box, the legacy path falls back to the plain listing query
(no email/phone condition). So users will be correctly displayed
- Same gating for improved search. Its SQL already ignored the column
without keywords, but `column` is part of the query key, so changing the
filter dropdown with an empty search box refetched an identical query.

## To test

- Project with only phone/anonymous users (e.g. create one via `POST
/auth/v1/admin/users` with `phone` + `phone_confirm`), improved search
off (ref below's curl snippet)
- Open Auth → Users with the default "Email address" filter → users are
listed
- Type a keyword → still prefix-searches the selected column
- Improved search on: switching filter column with an empty search box
makes no additional request

```

curl -X POST 'https://[ref].supabase.red/auth/v1/admin/users' \
  -H 'apikey: <SECREY_KEY>' \
  -H 'Authorization: Bearer <SECREY_KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"phone":"+15551234572","password":"asdasd","phone_confirm":true}'

```
2026-10-20 11:44:57 +08:00
Danny White 279434fb70 feat(studio): add copied data deletion to Warehouse disable dialog (#51906)
## Problem

Disabling Warehouse leaves copied data in storage. Users need an
explicit option to remove it without deleting files manually.

Closes [PIPE-1128](https://linear.app/supabase/issue/PIPE-1128), using
the deletion support from
[PIPE-1098](https://linear.app/supabase/issue/PIPE-1098).

## Solution

Adds “Also delete copied Warehouse data” to the disable dialog. It stays
unchecked by default. Source tables are preserved.

| Before | After |
| --- | --- |
| <img width="826" height="504" alt="CleanShot 2026-10-19 at 16 17
12@2x"
src="https://github.com/user-attachments/assets/defc99b9-4ec0-4188-bfa6-53f489ef2be5"
/> | <img width="830" height="614" alt="CleanShot 2026-10-19 at 16 36
40@2x"
src="https://github.com/user-attachments/assets/80299728-a790-4d80-a2d9-16750977a679"
/> |

Handles errors differently depending on what it relates to:

| General Errors | Data Deletion Only |
| --- | --- |
| <img width="840" height="864" alt="CleanShot 2026-10-20 at 13 22
05@2x"
src="https://github.com/user-attachments/assets/7b2b37c3-ace6-4fe0-a1b7-106a97eaab0a"
/> | <img width="854" height="876" alt="CleanShot 2026-10-20 at 13 19
13@2x"
src="https://github.com/user-attachments/assets/81459525-bb9f-4d2c-891d-b7f8f646098a"
/> |
| _Above the fold_ | _Below the fold, within the relevant section_ |

## Review instructions

1. Open **Integrations → Warehouse → Overview** in a project with
Warehouse enabled, then click **Disable Warehouse**.
2. Check that **Also delete copied Warehouse data** is unchecked and has
a permanent deletion warning. Select it, cancel, and reopen. It should
be unchecked again.
3. On a disposable project, confirm with the option unchecked. Copied
data should remain. With the option checked, the managed DuckLake
catalogue and Storage bucket should be removed. Source tables should
remain in both cases.
4. Confirm Studio shows cleanup progress, then returns to setup. Failed
requests should keep the dialog open; failed background cleanup should
offer **Retry**.
2026-10-20 14:40:05 +11:00
Danny White 827e79c5bc feat(studio): open the pipeline wizard from Add pipeline (#51903)
## Problem

**Add pipeline** still opens the sheet when the wizard preview is
enabled. This is slice 14 of #49243, stacked on #51901 (which follows
#51900).

## Solution

- Route both **Add pipeline** buttons and **Shift+N** to
`/database/pipelines/new` when the preview is enabled. Wait for preview
preferences and rollout flags before choosing the flow.
- Keep enablement before creation, preview-off creation in the sheet,
and editing in the sheet.
- Return direct wizard visits to Pipelines when enablement is missing or
its lookup fails, so existing enablement and Retry remain available.

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-wizard-entry-supabase.vercel.app/dashboard/project/_/database/pipelines)
and select a test project. Enable **Pipeline creation wizard** in
Feature Previews.
2. Click **Add pipeline** or press **Shift+N**. Check the full-page
wizard opens. Complete Connection and Data, then start a test pipeline
from Review.
3. On a project without Pipelines enabled, click **Add pipeline**.
Enablement must complete before the wizard opens. Opening
`/database/pipelines/new` directly on that project should return to
Pipelines.
4. Turn the preview off: **Add pipeline** should open the existing
sheet. Editing an existing pipeline should still use the sheet with
either preview setting.
2026-10-20 11:04:06 +11:00
Danny White 306cd88a2b feat(studio): edit pipeline setup sections from review (#51901)
## Problem

Review only offers Back, so users must traverse earlier steps to change
a specific section. This follows #51900 in the pipeline wizard slices
from #49243.

## Solution

- Add **Edit** beside Destination, Connection and Data on Review.
- Reuse step navigation and preserve entered values. Existing validation
still controls access to later steps.
- Keep the sheet unchanged.

| After |
| --- |
| <img width="1462" height="968" alt="CleanShot 2026-10-19 at 11 51
16@2x"
src="https://github.com/user-attachments/assets/ac76788c-d64c-49ef-9365-ee7bcb81887a"
/> |
| _Edit button is new in this PR_ |


## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-review-ed-a84254-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-review-ed-a84254-supabase.vercel.app/dashboard/project/_/database/pipelines/new)
for that project, complete Connection and Data, then reach Review.
2. Click each section’s **Edit** action. Check it opens the matching
step and preserves your values.
3. Change connection or data settings, then continue through validation
to Review. Check the updated values appear. Edit Destination and confirm
connection values remain when you return.
2026-10-20 11:04:06 +11:00
Danny White e7b1f68956 feat(studio): create pipelines from wizard review (#51900)
## Problem

The pipeline wizard can validate and review settings, but cannot create
a pipeline. This is slice 13 of #49243, following #51823.

## Solution

- Enable **Start pipeline** on Review using the sheet’s existing
validation, creation and start requests.
- Recheck publication settings, block critical failures and show
warnings inline before **Start pipeline anyway**.
- Preserve values after validation or create failures. Once creation
succeeds, finish the start attempt and return to Pipelines, including
when starting fails.

| After |
| --- |
| <img width="1234" height="2470" alt="CleanShot 2026-10-19 at 11 22
44@2x"
src="https://github.com/user-attachments/assets/23882092-26e2-4d23-b2a1-00d1d2dcba90"
/> |

**Add pipeline** still opens the sheet. Wizard entry remains behind
**Pipeline creation wizard** at `/database/pipelines/new`; routing is
the next slice.

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-review-creation-supabase.vercel.app/dashboard/project/_/database/pipelines),
choose a test project and enable **Pipeline creation wizard** in Feature
Previews. Open the [wizard
preview](https://studio-staging-git-dnywh-featpipeline-review-creation-supabase.vercel.app/dashboard/project/_/database/pipelines/new)
for that project.
2. Choose a destination, enter valid test credentials and select a
publication. Continue to Review and check the settings, masked secrets
and costs. Back and Continue should preserve your values.
3. Click **Start pipeline**. Controls should lock while submitting, then
return to Pipelines with one new pipeline and no discard prompt. If
warnings appear, review them before clicking **Start pipeline anyway**;
critical failures must block creation.
4. Turn the preview off and open the wizard URL again: creation should
use the existing sheet. Editing existing pipelines should also keep the
sheet.

Automated tests cover final validation, changed warnings, create
retries, duplicate-click protection, removed publications and start
failure recovery.
2026-10-20 11:04:05 +11:00
f2876c7787 chore(studio): upgrade the TanStack dependency set (#51067)
TanStack Start 1.169 is the stable release. This moves the shared
catalog to Start 1.169.2 and Router 1.170.44, the newest matching pair
that clears the 72-hour release-age gate, and updates Studio React Query
and its devtools to 5.104.3. The ui-library TanStack auth blocks switch
to `.validator()` because Start 1.169 removes `.inputValidator()`.

**Changed:**

- `pnpm-workspace.yaml` – `@tanstack/react-router` `^1.170.44` and
`@tanstack/react-start` `^1.169.2`, so Router, Start, router-core, and
the Start plugin install as one set
- `pnpm-lock.yaml` – react-router 1.170.44, react-start 1.169.2,
router-core 1.171.37, router-plugin 1.168.46, start-plugin-core
1.171.53, history 1.162.5, and Studio React Query 5.104.3
- `apps/studio/package.json` – `@tanstack/react-query` and
`@tanstack/react-query-devtools` `~5.104.3`,
`@tanstack/react-router-devtools` `^1.167.2`
-
`apps/ui-library/registry/default/blocks/password-based-auth-tanstack/routes/auth/confirm.ts`
– `createServerFn` uses `.validator()`
-
`apps/ui-library/registry/default/blocks/social-auth-tanstack/routes/auth/oauth.ts`
– `createServerFn` uses `.validator()`
- `apps/ui-library/tests/sign-up-redirect.test.tsx` – the
server-function mock follows the `validator` chain
- `apps/ui-library/public/r/password-based-auth-tanstack.json` –
registry JSON regenerated from the block
- `apps/ui-library/public/r/social-auth-tanstack.json` – registry JSON
regenerated from the block
- `apps/ui-library/content/docs/tanstack/password-based-auth.mdx` – note
that the block requires `@tanstack/react-start` 1.168.25 or later, since
`.validator()` is missing from earlier Start versions
- `apps/ui-library/content/docs/tanstack/social-auth.mdx` – note that
the block requires `@tanstack/react-start` 1.168.25 or later, since
`.validator()` is missing from earlier Start versions
- `apps/studio/server.ts` – correct the header comment:
`wrapFetchWithSentry` only adds a span, trace meta tags, and a flush,
and request errors are captured by the Sentry middleware in `start.ts`

**Removed:**

- `minimumReleaseAgeExclude` pins for:
  - `@tanstack/react-router@1.170.41`
  - `@tanstack/react-start-client@1.168.39`
  - `@tanstack/react-start-rsc@0.1.59`
  - `@tanstack/react-start-server@1.167.46`
  - `@tanstack/react-start@1.168.60`
  - `@tanstack/react-store@0.11.2`
  - `@tanstack/router-core@1.171.34`
  - `@tanstack/router-generator@1.167.40`
  - `@tanstack/router-plugin@1.168.42`
  - `@tanstack/start-client-core@1.170.34`
  - `@tanstack/start-plugin-core@1.171.49`
  - `@tanstack/start-server-core@1.169.39`
  - `@tanstack/start-storage-context@1.167.36`
  - `@tanstack/store@0.11.2`

## To test

- TanStack Studio, open a project home – the shell loads with no router
error
- TanStack Studio, open a table, switch schema, then Back and Forward –
the table id follows history, and Forward returns to the later table
- TanStack Studio, run a query in the SQL Editor – results render
- TanStack Studio, open Project Settings – the general settings page
renders
- Next Studio, repeat home, Table Editor, SQL Editor, and Settings – the
same pages render
- ui-library TanStack password and social auth blocks, follow a sign-up
confirm and OAuth confirm link – the server function accepts the search
params through `.validator()` and redirects

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-19 21:00:40 +02:00
b328ca6d5a fix(studio): sync table editor filters from the URL on back/forward (#51437)
Back/Forward between two history entries of the same table changed the
URL but left the old filters in the filter bar and grid, because filters
were only read from the URL on mount. Happens on both Next and TanStack;
follow-up from #51391.

**Changed:**
- `useSyncFiltersToUrl` now also syncs URL → filter state for the
current table (ignoring our own debounced push, and another table's URL
while a TanStack navigation is pending).
- State → URL skips pushes the URL already reflects, which also removes
the no-op push on every grid mount.
- `useTableEditorFiltersSort` returns `path` (same lines as #51391, so
they merge cleanly).

**Behavior choice:** if a filter is applied and Back/Forward happens
before its 500ms debounce fires, the navigation wins and the unpushed
filter is discarded, rather than pushing a stale filter over the entry
the user navigated to. Back/Forward (`popstate`) cancels the pending
push even when the `filter` param is unchanged; other URL changes such
as a sort keep it. Documented on the hook.

**Added:**
- Real-TanStack-router navigation test and a router-agnostic unit test
for the sync (master's hook fails 4 of 6).

## To test

- Table A → add a filter → open table B → Back (A with filter) → Back
(A, filter bar empty, all rows) → Forward (filter back)
- Apply a filter and hit Back immediately – you land on the previous
entry and the filter isn't re-pushed
- Add/remove a sort, Back/Forward – sorts and filters stay in sync with
the URL
- Reload a filtered + sorted URL – both restored

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-19 20:05:06 +02:00
Drew McLellan af98094c8c feat(studio): show created at column in JWT signing keys table (#51845)
## What kind of change does this PR introduce?

Feature

## What is the current behavior?

The JWT signing keys table only shows when a key was last rotated.
There's no way to see when a key was created, and the key ID can't be
copied without selecting it by hand.

Resolves FE-3061

<img width="1133" height="193" alt="Screenshot 2026-10-16 at 13 53 43"
src="https://github.com/user-attachments/assets/e50e5a59-f0c4-4f8a-aa14-f200e5c469bd"
/>


## What is the new behavior?

- Adds a **Created at** column (hidden below `xl`) with the same
relative label and timestamp tooltip as **Last rotated at**.
- Combines the **Status** and **Key ID** columns into a single **Key**
column, with the status on top and the key ID beneath in muted
monospace. This follows the pattern used in the Access Tokens table.
- Makes the key ID copyable: hovering it shows a copy icon and a "Copy
key" tooltip, and clicking copies the ID to the clipboard. This follows
the project ref copy pattern in the project list.

<img width="1151" height="436" alt="Screenshot 2026-10-16 at 15 37 23"
src="https://github.com/user-attachments/assets/46c86f85-bff6-4ee6-8d65-0c7a8c23a19e"
/>


## Additional context

No data or API changes (`created_at` was already returned).
2026-10-19 14:54:26 +01:00
Gildas Garcia 3f8bbd5a00 (fix): Storage preview file names from search results (#51914)
## Problem
deeply nested files from bucket root search results dislay their path
instead of their basename:
<img width="816" height="432" alt="image"
src="https://github.com/user-attachments/assets/3af89584-a96f-4dcb-b8fd-e02d26eb7640"
/>

## Solution

Use the file base name instead:
<img width="820" height="434" alt="image"
src="https://github.com/user-attachments/assets/590a39aa-d8d4-459b-9b56-8516b3f34571"
/>
2026-10-19 15:49:46 +02:00
Gildas Garcia 0774de6982 (fix): DatePicker popover placement (#51911)
## Problem

The DatePicker popover is not positioned correctly on some screens:

_Observability > API Gateway_
<img width="1162" height="1002" alt="image"
src="https://github.com/user-attachments/assets/eb3b4a03-f607-4a88-ad1e-df87d616a347"
/>

_Observability > Edge functions_
<img width="615" height="638" alt="image"
src="https://github.com/user-attachments/assets/5c493628-90dc-4c28-951a-6327fdc93994"
/>

## Solution

Position it correctly:

_Observability > API Gateway_
<img width="903" height="548" alt="image"
src="https://github.com/user-attachments/assets/b6018804-416c-498f-9abc-74b57ad4826b"
/>

_Observability > Edge functions_
<img width="784" height="521" alt="image"
src="https://github.com/user-attachments/assets/c1b0e297-f0ef-4a95-a47e-4e9f3d37394a"
/>
2026-10-19 15:49:11 +02:00
Coenen Benjamin c752bf0125 fix(studio): use supabase.co for production Warehouse connections (#51934)
Use `<project_ref>.warehouse.supabase.co` in production Flight SQL
connection details while preserving `.supabase.red` for staging and
local development.
2026-10-19 15:25:32 +02:00
Jordi Enric ef759800a5 feat(reports): experiment with line charts FDBKIN-43258 (#51926)
## Problem

Product reports often default to bars, making time-series trends harder
to read. We want to evaluate line charts before deciding whether to
remove chart-type controls permanently.

## Fix

Use the boolean ConfigCat flag `defaultToLineCharts` to render lines
across current and legacy product reports and hide line/bar toggles.
Turning it off restores existing product-report behavior. Custom reports
and their chart controls are unchanged.

## How to test

- Enable `defaultToLineCharts` and open database, API, Auth, Realtime,
Edge Functions, and Storage product reports. Expect lines and no
line/bar toggle.
- Disable the flag. Expect existing product-report styles and controls
to return.
- Verify custom reports retain their existing chart styles and toggles
with either flag value.
- No tests added for this presentation-only experiment. Formatting,
whitespace checks, and independent code review passed. Updated-head CI
is pending.

Closes FDBKIN-43258
2026-10-19 14:30:57 +02:00
Alaister YoungandCursor Agent 73081ea7b8 test(studio): stop PipelineCreationFlow tests timing out on slow runners (#51924)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
`PipelineCreationFlow.test.tsx` started timing out on `master`
([run](https://github.com/supabase/supabase/actions/runs/39227187528),
[run](https://github.com/supabase/supabase/actions/runs/39231750598)) –
neither commit touched it. The heavier tests drive the full wizard
through several steps and already took 2.5–3.7s on a fast runner, so a
slow runner pushes them past vitest's 5s default. Most of the time went
to unscoped `getByRole` lookups: a worker profile put about half the
samples under role queries, and the self time was jsdom
`getComputedStyle` (style and color resolution) on that large tree.
Failing `waitFor` / `findBy` polls only start dumping the whole tree
once a query misses, which is the path that tipped these tests over.
`infrastructure.test.tsx`'s disk/autoscaling test timed out once for the
same family of cost – per-keystroke `userEvent` typing on the full page.

Retries don't help here – a timed-out attempt keeps running while the
retry starts, which is where the "Continue not found" / empty `<body>`
errors in those logs come from.

**Changed:**

- `PipelineCreationFlow.test.tsx` – step waits go through a
`waitForStep` helper and other waits poll with `queryBy*`, so failing
polls no longer build role/DOM dumps
- `PipelineCreationFlow.test.tsx` – `fillConnection` uses label queries
and step-specific queries are scoped with `within`
- `PipelineCreationFlow.test.tsx` – split `preserves connection and data
values…` into `preserves connection values across destination changes`
and `preserves data values across steps and reaches Review`, with the
same assertions
- `infrastructure.test.tsx` – `submits disk and autoscaling changes…`
types with `userEvent.setup({ delay: null })` so keystrokes are not
separated by a macrotask

No assertions were removed and no test timeouts were raised.

| test | before (median / 1-core worst) | after (median / 1-core worst)
|
| --- | --- | --- |
| requires connection fields and reveals invalid advanced settings |
1092 / 1554 | 1121 / 1522 |
| recovers from request and critical failures and reviews warnings
before continuing | 1812 / 2056 | 1263 / 1497 |
| invalidates connection verification after edits and ignores stale
responses | 1045 / 1109 | 509 / 563 |
| uses browser Back and Forward to revisit steps without losing values |
1199 / 1368 | 582 / 703 |
| starts a fresh session at Destination (×4) | 55–87 / 54–113 | 51–84 /
77–108 |
| preserves connection and data values across steps and destination
changes | 2270 / 2391 | split |
| preserves connection values across destination changes | – | 929 /
1081 |
| preserves data values across steps and reaches Review | – | 1058 /
1141 |
| blocks incomplete data, retries metadata failures, and reveals invalid
advanced settings | 1934 / 2097 | 1514 / 1621 |
| blocks browser Forward to Review after data changes | 1151 / 1268 |
799 / 874 |
| confirms destination-only changes and treats a reverted selection as
pristine | 385 / 410 | 381 / 386 |
| confirms dirty dismissal and allows keeping the form | 843 / 908 | 707
/ 736 |
| closes a pristine form and blocks progression without destinations |
46 / 46 | 43 / 48 |
| submits disk and autoscaling changes to both infrastructure APIs |
1355 / 1805 | 1219 / 1684 |

Median of 5 unconstrained runs, worst of 3 runs pinned to one core
(`taskset -c 0`). Vitest 5.0.0.

This touches the same file as #51900 – the helper changes carry over to
its new tests once it merges.

## To test

- [x] `pnpm --filter studio exec vitest run
components/interfaces/Database/Replication/CreatePipeline` – all pass
- [x] `pnpm --filter studio exec vitest run
"tests/pages/project/[ref]/settings/infrastructure.test.tsx"` – all pass
- [x] Same files pinned to one CPU core (`taskset -c 0`) – no test near
the 5s timeout
- [x] `test (1)` on this PR – green

<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-b1f88499-15f7-5aff-b190-841d7371ba48?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-b1f88499-15f7-5aff-b190-841d7371ba48&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-19 13:35:33 +02:00
Jordi Enric 090e5bceff feat(studio): filter organization usage by branch FE-4153 (#49257)
## Summary

Customers could see a branch-driven egress overage in their organization
total but could not select the branch on the Usage page. This adds a
branch filter next to the parent project selector and uses the selected
branch's project ref for usage requests.

- Validate bookmarked branch refs before displaying usage. Show loading
and API errors explicitly, and disclose when an unavailable branch falls
back to its parent.
- Keep the filter, notice, and usage requests on the same project ref.
Allow returning to the parent even when the branches response omits its
main row.
- Find the selected branch's disk usage beyond the first page of
organization projects and explain that deleted branches still contribute
to organization totals.
- Correct the branching and egress documentation to explain separate
branch usage.

## Scope

This is the branch-selector improvement proposed in FE-4153's
discussion. It does not provide the original ticket's reconciled
per-project egress table or historical rows for deleted branches. The
current daily-usage API contract supports a single project filter, but
does not return project-grouped usage. Keep the full reconciliation work
open.

## Validation

All 47 focused Vitest tests pass across six files, including nine MSW
page tests covering usage request refs, direct branch links,
pending/failed lookups, deleted-branch fallback, invalid-project
recovery, and denied subscription permissions. Disk tests cover
selection beyond the first 96 projects and pagination failures.
Deterministic shuffled runs with seeds `4153` and `49257` pass with
retries disabled (`--retry=0`). Four focused production mutants were
killed by behavioral assertions; original source bytes were restored and
verified after every probe.

Studio TypeScript, Prettier on all PR paths, and focused lint checks
pass; inherited `any` warnings remain.

Browser QA on the matching `be17d77` Vercel preview passed parent usage
(0.213 GB), searching for `dev-test`, branch selection, return to main,
invalid-project recovery, stale-branch fallback, and returning to
organization totals. The selected branch showed 0 GB, so nonzero branch
overage was not verified. Browser network traffic was not captured;
request-ref coverage comes from MSW.

Three existing auth/router/platform module-mock scaffolds remain as a
test-harness limitation; strict no-module-mock compliance is not
claimed.

All Studio unit-test and E2E shards passed on be17d77801; CI report jobs
are finishing.

Related: FE-4153


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Filter organization usage by project branch with searchable branch
selection. Usage details reflect the selected branch where available,
including branches found on later project-list pages.
* See whether usage is scoped to a branch, the main branch, or a
project, and switch to organization-wide totals. Billing and quota
totals include all branches, including deleted branches that are no
longer selectable.
* **Documentation**
* Clarified how non-compute usage is recorded per branch, included in
organization totals, and viewed; it isn’t itemized by branch on
invoices.
* Clarified that Preview branch Egress counts toward organization
totals, not the parent project’s usage, and how to view it.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-19 11:30:37 +00:00
Joshen Lim 7a9565530c Fix handle truncation for multi dim array for table-row-query (#51834)
## Context

If you create a table with a `jsonb` **array** column, then try to
insert a new row with `[["` as the `jsonb` column value, the dashboard
currently incorrectly flags it as a large value and blocks the user from
editing it

<img width="583" height="133" alt="image"
src="https://github.com/user-attachments/assets/28b89648-12b6-4b49-a862-b4ec0db03e24"
/>

It's happening due to a small issue in `table-row-query` regarding its
truncation logic, a stop gap to prevent fetching large column values
which will cause browser performance issues. Multi dimension arrays are
being handled differently in which there's no `...` appended at the end.
And hence the naive check in `isValueTruncated` caused this issue to
happen.

Opting to adjust the SQL in `table-row-query` to align the truncation
behaviour for multi dim array, such that it will end with `...` if the
value being fetched is too large.

## To test

We mainly need to ensure that the original problem no longer happens +
truncation of large values is still working as expected. The following
SQL here sets up some sample rows to test the truncation logic in the
UI.

```
create table trunc_test (
  id int primary key,
  label text,
  big_text text,
  big_json jsonb,
  big_text_1d text[],
  big_grid text[][],
  big_docs jsonb[][],
  small_grid text[][],
  small_docs jsonb[]
);

insert into trunc_test values
  -- row 1: everything large
  (1, 'large', repeat('a', 20000),
   jsonb_build_object('k', repeat('b', 20000)),
   (select array_agg(repeat('c', 300)) from generate_series(1, 120)),
   (select array_agg(array[repeat('d', 300), 'x']) from generate_series(1, 120)),
   (select array_agg(array['{"k":1}'::jsonb, to_jsonb(repeat('e', 300))]) from generate_series(1, 120)),
   array[array['a','b'], array['c','d']],
   array['["x"]'::jsonb]),
  -- row 2: everything small
  (2, 'small', 'hi', '{"k":1}', array['a'], array[array['a','b'], array['c','d']],
   array[array['{"k":1}'::jsonb]], array[array['a','b'], array['c','d']], array['["x"]'::jsonb]);
```
2026-10-19 17:03:11 +08:00
Drew McLellan b859ca0659 fix(studio): send exit survey before deleting a project (#51844)
## Problem

Deleting a paid project could show a "Failed to submit exit survey"
toast with a permissions error. The survey was sent after the delete
succeeded. Deleting a project removes its permissions, so the survey
endpoint's project-level access check rejected the request with a 403.

<img width="510" height="196" alt="Screenshot 2026-10-16 at 15 27 40"
src="https://github.com/user-attachments/assets/f01cb89f-597e-492d-bfc4-37f7260c25d3"
/>

## Solution

- Send the exit survey before the delete, while the project still has
its permissions.
- Never block the delete on the survey: a failed survey is ignored.
- Pass a no-op `onError` so the survey failure toast no longer shows.
The old `catch` swallowed the exception but not the hook's default
toast.

## Known trade-off

If the survey succeeds and the delete then fails, a survey is recorded
for a project that still exists. A separate backend change to authorize
deletes against the organization would let the survey move back after
the delete.

## How to test

- Delete a project on a paid plan with a survey reason selected: no
error toast, the survey is recorded, and the project is deleted.
- `pnpm --filter studio exec vitest run
components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectModal.test.tsx`
2026-10-19 09:50:04 +01:00
Danny White 69f46a4ab5 fix(studio): guard unsaved pipeline creation navigation (#51823)
## Problem

Browser Back and router navigation can leave the pipeline wizard without
confirming unsaved changes. This is a slice of #49243, builds on merged
#51821.

## Solution

- Protect unsaved changes in both runtimes: Close and header links use
the discard dialog; document exits and refresh use the browser warning.
- Add TanStack confirmation for client-side navigation, preserving
Back/Forward history. Step changes do not prompt.

Next.js client-side router exits remain outside this slice. **Start
pipeline** stays disabled.

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-navigation-guard-supabase.vercel.app/dashboard/project/_/database/pipelines),
choose a test project and enable **Pipeline creation wizard**. Open the
[wizard
preview](https://studio-staging-git-dnywh-featpipeline-navigation-guard-supabase.vercel.app/dashboard/project/_/database/pipelines/new).
2. Continue to Connection and enter a pipeline name. Try a header link
and **Close**: **Keep editing** preserves values, while **Discard
changes** leaves without a second prompt.
3. Use browser Back to return to Destination without a prompt, then Back
again to leave. Cancel the prompt and check the URL and values remain;
Forward should still reach Connection. Document exits show the native
browser warning in both runtimes; TanStack client-side exits show **Keep
editing / Discard changes**.
4. With changes, refresh and cancel the browser warning. Check values
remain. A fresh wizard with no changes should close without
confirmation.
2026-10-19 10:43:42 +11:00
Danny White 25ede7243e feat(studio): validate pipeline wizard data settings (#51821)
## Problem

The pipeline wizard lets users reach Review without a valid publication
or initial-sync selection. This is a slice of #49243, following the
merged #51818.

## Solution

- Refresh publication metadata on **Continue** and reject unavailable
publications or removed initial-sync tables.
- Validate initial-sync and advanced data settings, reveal invalid
fields and preserve values for retry.
- Block browser-history shortcuts to Review after data settings change.

| Normal State | Error State (Expanded) |
| --- | --- |
| <img width="1486" height="1010" alt="CleanShot 2026-10-16 at 13 18
25@2x"
src="https://github.com/user-attachments/assets/74ec0785-3bd4-407a-aa3c-7fe69c338488"
/> | <img width="1506" height="2516" alt="CleanShot 2026-10-16 at 13 21
27@2x"
src="https://github.com/user-attachments/assets/6193d8c4-ab9d-47ca-9d9d-1a31198145d1"
/> |

Pipeline creation and navigation-out guards remain for later slices.
**Start pipeline** stays disabled.

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-data-validation-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-data-validation-supabase.vercel.app/dashboard/project/_/database/pipelines/new),
choose a destination, then enter credentials and test the connection to
reach Data.
2. Click **Continue** without a publication. Check the field error.
Select a publication, choose a selective initial-sync mode and leave its
table selection empty. Check Continue requires at least one table.
Select a table and confirm you can reach Review.
3. Return to Data. Enter a negative **Batch wait time** under **Advanced
settings**, collapse it and click Continue. Check it reopens with the
error. Correct it and continue, then use browser Back, change a data
setting and try browser Forward. Check you stay on Data until you click
Continue again.
4. For a stale-selection check, select an initial-sync table, remove it
from the publication in another tab, then click Continue. Check the
selection is rejected and your other values remain. A failed metadata
request should also keep values and allow retry with Continue.
2026-10-19 10:32:09 +11:00
Danny White 8047d93e3c feat(studio): validate pipeline wizard connections (#51818)
## Problem

The pipeline wizard from #51776 allows users to continue without valid
destination credentials. This is the next slice of #49243.

## Solution

- Validate connection fields for all four destinations using the
existing schemas and helpers.
- Validate the destination on **Continue** and advance to Data on
success. Show field errors and connection failures inline; pause for
warnings before continuing.
- Require a new check after connection settings change and block
browser-history shortcuts past an unverified connection.

| Errored Test | Success Test |
| --- | --- |
| <img width="1532" height="2062" alt="CleanShot 2026-10-16 at 12 19
51@2x"
src="https://github.com/user-attachments/assets/a40a6c01-ee89-4601-b5d7-6ffc85071dc7"
/> | <img width="1500" height="1950" alt="CleanShot 2026-10-16 at 12 18
33@2x"
src="https://github.com/user-attachments/assets/c50c1ad4-256b-44b5-bd06-ec0685aae759"
/> |
 
The screenshots show earlier test states; successful checks now advance
directly to Data.

Data validation and pipeline creation remain for later slices. **Start
pipeline** stays disabled.

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-connectio-eb9566-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-connectio-eb9566-supabase.vercel.app/dashboard/project/_/database/pipelines/new)
for that project.
2. Choose a destination and click **Continue** with empty or invalid
fields. Check the errors, then enter valid credentials and retry. A
failed check keeps your values. A failed result stays visible while
editing, until retry or destination change. Changed settings still
require a fresh check. A successful check opens Data automatically;
warnings remain for review before continuing.
3. Continue to Data, return to Connection and change a credential or
advanced connection setting. Check that browser **Forward** cannot skip
the new check, then click **Continue** to validate again.
2026-10-19 10:15:08 +11:00
Charis 27e6259a39 chore(studio): remove legacy status banner and incidentIoStatusPage flag (#51852)
## Summary

The incident.io status page is now the only status banner for everyone,
so the legacy status banner path is removed:

- Removed the `incidentIoStatusPage` ConfigCat flag. The incident.io
path is unconditional.
- Deleted the legacy status banner code (`StatusPageBanner` and its
utils/visibility hook) and its tests.
- Deleted the legacy API endpoints `/api/incident-banner`,
`/api/incident-status`, and `/api/status-override` (pages, app, and
routes variants), along with their data hooks, query keys, and lib
helpers.
- Removed `STATUSPAGE_*` env vars from the Turbo config and the
`INCIDENT_BANNER_DISMISSED_IDS` local storage key from
`packages/common`.
- Updated the AI tools and SQL generation endpoint that read the flag.

`NEXT_PUBLIC_ONGOING_INCIDENT` / the `ongoingIncident` override is kept.

The `incident_status_cache` table and its migration are intentionally
untouched. Studio no longer reads it, and dropping it is a separate
cleanup.

## Testing

- Studio typecheck passes.
- Related vitest suites pass (414 tests).
2026-10-16 14:18:32 -04:00
Jordi Enric 4e1c6b5907 fix(logs): preserve pagination cursor precision DEBUG-229 (#51597)
## Problem

Rhe dashboard used only the last log's time to decide where to continue,
and shortened that time to milliseconds. This could skip logs with the
same recorded time, or times less than a millisecond apart, between one
page and the next. This could happen even with Live turned off.

## Fix

Use both the last log's full recorded time and its unique ID to decide
where the next page starts. This lets the dashboard continue from the
right log, even when several logs have the same time. The fix works with
both supported log services.

This PR fixes missing logs when loading older results. It does not
change how Live fetches new logs; that improvement is handled separately
in [#51599](https://github.com/supabase/supabase/pull/51599).

Part 1/9 of the replacement stack for #51090, tracked by
[DEBUG-229](https://linear.app/supabase/issue/DEBUG-229/make-live-mode-incremental).
Targets master; review and merge the stack in order. This diff contains
389 changed lines, including tests.

Stack: [#51597](https://github.com/supabase/supabase/pull/51597) →
[#51598](https://github.com/supabase/supabase/pull/51598) →
[#51599](https://github.com/supabase/supabase/pull/51599) →
[#51600](https://github.com/supabase/supabase/pull/51600) →
[#51601](https://github.com/supabase/supabase/pull/51601) →
[#51602](https://github.com/supabase/supabase/pull/51602) →
[#51603](https://github.com/supabase/supabase/pull/51603) →
[#51604](https://github.com/supabase/supabase/pull/51604) →
[#51605](https://github.com/supabase/supabase/pull/51605).

## How to test

- `pnpm --filter studio exec vitest run
data/logs/unified-logs-pagination.test.ts
data/logs/unified-logs.utils.test.ts`
- Check both log services: logs with the same recorded time, or times
less than a millisecond apart, should appear once when loading older
results.
- Validation: focused tests, full Studio typecheck, changed-file lint,
and formatting pass.
2026-10-16 16:22:13 +02:00
Jordi Enric 5b8f504ce3 fix(studio): preserve restore times across date edits FE-4129 (#51613)
## Problem

Changing the restore date resets the entered time, and the repeated hour
at the end of daylight saving time can resolve to the wrong occurrence.
Both can change the submitted recovery timestamp.

## Fix

Store the recovery point as a Unix timestamp and preserve its occurrence
when editing an ambiguous local time. Calendar edits carry the entered
hours, minutes, and seconds onto the selected day, applying that day's
timezone offset and retaining the existing backup-range clamping.

This focuses on date edits and repeated-hour handling from #48903. It
changes only the PITR form, its utilities, and regression tests. Related
to
[FE-4129](https://linear.app/supabase/issue/FE-4129/r2np-datetime-widget).

## How to test

- In PITR or restore-to-new-project, enter a time and select another
available calendar day. Expected result: the entered hours, minutes, and
seconds remain selected, and the submitted timestamp matches the new
date.
- Run the PITRForm and PITR.utils Vitest suites. Their fixtures cover
both occurrences of the repeated Madrid/New York hour, edits across DST,
spring-forward normalization, fractional offsets, and backup boundaries.
- Twelve focused regression cases passed under a Madrid browser
timezone. Those cases plus the existing selector component test passed
under Hong Kong, thirteen tests total. All CI checks passed, including
Studio tests, all four Next.js/TanStack E2E shards, typecheck, lint
ratchet, formatting, spelling, unused-code checks, and Docker build.
2026-10-16 16:20:25 +02:00
Ivan VasilovandClaude Sonnet 5.5 cb17091d2d feat(studio): default staging project creation to v3 (50%) (#51808)
## Problem

New projects created on staging default to v2 (`cloud_provider: 'AWS'`).
We want staging to start exercising v3 (`AWS_K8S`). Resolves FE-4640.

## Solution

In `ProjectCreationForm`, the initial cloud provider is now rolled once
per mount: on staging (`NEXT_PUBLIC_ENVIRONMENT === 'staging'`) it is
`AWS_K8S` with 50% probability, otherwise the existing default. v3 is
only rolled if the `infra:cloud_providers` custom content allows
`AWS_K8S`. Prod and local are unchanged, and the internal-only "Cloud
provider" selector still lets admins override the default.

## Review instructions

1. Run Studio with `NEXT_PUBLIC_ENVIRONMENT=staging` and the
`newProjectInternalOnlyConfiguration` flag on.
2. Reload the new-project page several times and check that the "Cloud
provider" select defaults to AWS and AWS (Revamped) about equally often.
3. Change the select manually and confirm the choice is kept and the
project is created with it.
4. With `NEXT_PUBLIC_ENVIRONMENT=prod` or `local`, confirm the default
is always AWS.

## Checklist

- [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)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 07:37:58 -06:00
Lukas Bernert a37e434aa4 chore(studio): track docs link clicks in the region selector footer (#51841)
Adds `free_tier_general_region_docs_link_clicked` event, fired when the
regions docs link in the selector footer is clicked
2026-10-16 15:03:36 +02:00
Drew McLellan f5288eb1e2 feat(studio): remember project home chart interval per project (#51833)
## Problem

The time-range dropdown above the request charts on the project home
page resets on every visit, so users who prefer a different range have
to re-select it each time.

Resolves FE-2828.

<img width="819" height="353" alt="Screenshot 2026-10-16 at 10 42 05"
src="https://github.com/user-attachments/assets/cb8d467b-e709-43b0-9ae4-b02ebccf5faf"
/>


## Solution

Persist the selection in localStorage, keyed per project
(`home-chart-interval-${ref}`), in both usage section variants
(`ProjectUsageSection` and `ProjectUsageSectionDeltas`, chosen by the
`newHomepageUsageDeltas` flag).

- New `resolveChartInterval` helper validates the stored value against
the known keys and the plan's log retention, falling back to the plan
default for corrupt values or after a plan downgrade. Unit tested.
- Removed the `useEffect` in `ProjectUsageSection` that reset the
interval on retention change, since it would overwrite the saved value.
- Moved `getDaysRequired` into `logs.utils.ts` so the dropdown and the
helper share the retention check.

Manually verified with the flag on and off: reload keeps the selection,
and each project keeps its own.
2026-10-16 13:52:23 +01:00
Lukas Klingsbo 8963a05479 chore(studio): drop anon key wording from connect snippet placeholders (#51793)
## Problem

Several snippets in the dashboard Connect sheet still mention anon keys
in placeholder text, even though publishable keys are now the
recommended client key:

- Swift, Kotlin, Expo, Ionic React and Ionic Angular show `<prefer
publishable key instead of anon key ...>` when the project has no
publishable key.
- Astro, Nuxt, Refine, TanStack, Flask and the three .NET snippets fall
back to `your-anon-key` when the project has neither key.
- Ionic React stores the key in a variable called `supabaseAnonKey`.

## Solution

- Both placeholders become `your-publishable-key`.
- The Ionic React variable becomes `supabaseKey`, matching the other
snippets.

Snippets that switch to `*_ANON_KEY` environment variables for projects
with only legacy keys (Next.js, Vite, SvelteKit and others) are
unchanged. There, `your-anon-key` still matches the variable name.

The Flutter snippet is handled separately in #51792.

## Review instructions

1. Open the Connect sheet for a project without a publishable key.
2. Go through the frameworks listed above and check that the
placeholders say `your-publishable-key`.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-10-16 13:30:08 +02:00
Gildas Garcia 09a4374b14 Fix: ensure the scoped oauth apps new UI doesn't show if mocks are enabled (#51829)
## Problem

The feature flag enabling the new scoped oauth apps UI was enabled by
mistake in production but this UI currently only work with mocks. We
added an environment check in some places but not all so users did see
the new UI

## Solution

Add the environment check wherever needed
2026-10-16 11:55:02 +02:00
Joshen Lim 17f21bf6a8 Joshenlim/fe 4510 auditlogs filterbar for account logs (#51790)
## Context

Replaces the individual filters on the Account audit logs page with the
filter bar to match a consistent UX across log surfaces
<img width="1206" height="360" alt="image"
src="https://github.com/user-attachments/assets/c5bdfd7e-3277-4695-b9fc-1791df8720c7"
/>

Also uses the `supportOperators` param for the `FilterBar` to support
"OR" based operations when filtering for projects
<img width="1219" height="97" alt="image"
src="https://github.com/user-attachments/assets/d4748e6c-d1f3-4f23-b767-e0f4bb1c0a1c"
/>

The main changes for the `FilterBar` component made in this PR (which
would be more relevant for the design team) are:
- Added a divider between the options and "New group" 
  - Originally didn't have a divider
- So there's a clearer distinction that the "New group" isn't a option
to set as the value for
- Add a new `defaultGroupOperator` prop
  - Originally defaults to `AND`
- However, in the context of Audit Logs when filtering for projects,
you'd expect `OR` to be the default to filter across several projects
(`AND` wouldn't make sense here)
2026-10-16 13:30:19 +08:00
Drew McLellan b74d799c3d fix(studio): sort edge function files by name and select the entrypoint by default (#51796)
## Problem

The file list in an Edge Function's code view is shown in the order the
Management API returns it (roughly `created_at` order), not sorted by
name. Users expect name order, as in VS Code.

Resolves FE-2799

## Solution

- `formatFunctionBodyToFiles` now sorts files by their displayed name
before assigning ids, using a case-insensitive numeric comparison
(`file2` before `file10`). The list is flat, so there is no folder
grouping.
- Sorting would have changed which file opens first, so the code page
now selects the function's entrypoint file by default.
`getDefaultSelectedFileId` matches the entrypoint's basename, then falls
back to `index.ts`, then to the first file. The entrypoint isn't always
`index.ts`: the docs allow any `.ts`, `.js`, `.tsx`, `.jsx` or `.mjs`
file.
- The shared `FileExplorerAndEditor` and the new-function page are
unchanged. The code page passes the selection through the explorer's
existing `selectedFileId` / `setSelectedFileId` props.
- Files added or renamed in the editor keep their position until the
next load.

Before:
<img width="259" height="370" alt="Screenshot 2026-10-15 at 16 44 50"
src="https://github.com/user-attachments/assets/611fe2b9-5676-496a-85a9-e50032708c7a"
/>

After:
<img width="259" height="371" alt="Screenshot 2026-10-15 at 16 35 19"
src="https://github.com/user-attachments/assets/7f433661-ef34-4e3f-9143-afc67be1b30a"
/>


## Review instructions

1. Open an Edge Function's Code tab for a function with several files,
for example `utils.ts`, `index.ts`, `deno.json`.
2. Confirm the files are listed alphabetically and that `index.ts` is
selected on load.
3. For a function with a custom entrypoint (for example `main.ts`),
confirm that file is selected on load.
4. Run `pnpm test:studio -- components/interfaces/EdgeFunctions`.
2026-10-16 13:28:59 +08:00
Danny White 4593b3ffc0 feat(studio): compose pipeline creation step navigation (#51776)
## 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.
2026-10-16 11:09:21 +11:00
Danny White 3960e6ac41 chore(deps): bump lucide-react to v1 (#51770)
## Problem

Lucide React v1 improves screen reader behaviour (icons are hidden from
assistive tech by default). It also removes brand icons such as GitHub.
We were still on Lucide 0.x across the monorepo.

## Solution

- Move every workspace onto one shared Lucide React v1 version via the
pnpm catalog.
- But Lucide React v1 [deprecated brand
icons](https://github.com/lucide-icons/lucide/blob/main/BRAND_LOGOS_STATEMENT.md)
- Meaning we need to handle any _old_ brand icons we used from Lucide
0.x.
- Luckily, that was just `GitHubIcon`. So...
- Add a `GithubIcon` in `packages/ui` that matches Lucide’s previous
GitHub icon, and use it wherever we imported GitHub from Lucide.
  - No other Lucide brand icons were in use.
- Studio “Continue with GitHub” sign-in still uses the existing SVG
asset (`github-icon.svg`), not this component.
- Keep the `Icon` suffix import style [recently
introduced](https://github.com/supabase/supabase/pull/51659)
- Monorepo apps now use `catalog` Lucide React v1.

## Review instructions

1. Open [Studio
preview](https://studio-staging-git-dnywh-bump-lucide-react-v1-supabase.vercel.app/dashboard/org)
on a project that is connected to GitHub:
   - Project home → Activity stats “GitHub” row
   - Org project list → GitHub badge on a connected project card/row
- Branches → GitHub link on a branch row, or “Sync with a GitHub branch”
   - Project Settings → Integrations → GitHub integration panel
2. Open
[/kb/guides/sample-guide](https://supabase.com/kb/guides/sample-guide) →
confirm “Go to the GitHub discussion” shows the icon.
3. Open
[/docs/reference/javascript](https://supabase.com/docs/reference/javascript)
→ confirm the header GitHub control still shows the icon. Or
[/docs/guides/troubleshooting/rls-simplified-BJTcS8](https://supabase.com/docs/guides/troubleshooting/rls-simplified-BJTcS8)
→ “View discussion on GitHub”.
2026-10-15 23:00:55 +00:00
kemal.earthandCharis Lam 991653aa36 chore(studio): allow project creation region flags to resolve independently (#51787)
## Problem

Updating our region experiment flags to be able to handle latest
experiment.

## Solution

Make flags resolve independently. cc @charislam 

## Review instructions

tbc

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2026-10-15 14:22:28 -04:00
Monica Khoury d0cf8dbc50 fix: align webhook FE with updated API changes (#51800)
## What
Aligns the webhooks FE with backend changes confirmed by Pawel
(FE-4621):

1. `custom_headers` is optional but never null, matches the updated
contract.
2. Removed the client-only `name` field (never persisted by the API).
Display name is now the endpoint's URL plus its subscribed event types.
3. The deliveries list endpoint now returns the full `event` object, so
`eventType`/`eventPayload` are always populated. Added an Event column
to the deliveries table.

Also regenerates `packages/api-types` from production to pick up these
changes.

While testing, found and fixed two more related issues:

4. A delivery can briefly exist before the backend finishes attaching
its event data, regardless of what triggered it (test, retry, or real
traffic). The deliveries list now polls every 5s while open, so new or
still-settling deliveries fill in automatically instead of requiring a
manual refresh.
5. "Send test event" always defaulted to an unrelated sample event type.
The test endpoint actually accepts a specific `event_type`, so this now
sends the endpoint's own subscribed type automatically, or shows a
picker when there's more than one to choose from.

## Testing
All webhooks component/unit tests pass (30/30), typecheck and lint
clean. Manually verified on localhost against a live backend.

## Note
This may clash with #51614 (`custom_headers: null` in a test fixture, no
longer a valid value once this merges). Will follow up there after this
lands.
2026-10-15 20:17:56 +03:00
Lukas Klingsbo dfd1f58838 fix(studio): use publishableKey in the Flutter connect snippet (#51792)
## Problem

The Flutter snippet in the dashboard Connect sheet calls
`Supabase.initialize` with `anonKey`. The current stable
`supabase_flutter` (2.18.3) deprecates `anonKey` in favor of
`publishableKey`, so the copied code shows a deprecation warning right
away.

## Solution

Pass the key as `publishableKey` and change the fallback placeholder to
`your-publishable-key`. The old placeholder told users to prefer the
publishable key over the anon key, which no longer makes sense once the
parameter itself is named `publishableKey`.

## Review instructions

1. Open a project in the dashboard and click Connect.
2. Choose Framework, then Flutter.
3. Check that `lib/main.dart` calls `Supabase.initialize(url: ...,
publishableKey: ...)`.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-10-15 14:23:59 +00:00
Monica Khoury 97bd456842 fix: consolidate SMTP minimum interval into Rate Limits page (#51784)
## What
Moves the "Minimum interval per user" (SMTP_MAX_FREQUENCY) setting from
the Custom SMTP page to the Rate Limits page. The field is always
visible there now, disabled with a tooltip when Custom SMTP isn't
configured, linking to the SMTP settings page.

## Why
This setting can cause `over_email_send_rate_limit` errors even when all
settings on the Rate Limits page allow more traffic, because it lived
only on the SMTP page. Consolidating it onto Rate Limits makes the
actual rate-limiting behavior visible in one place.

Fixes FE-4627

## Testing
- Verified field is disabled with explanatory tooltip when Custom SMTP
is off
- Verified field becomes editable and saves correctly once Custom SMTP
is configured
- Confirmed field no longer appears on the SMTP settings page
- Ran typecheck, lint, and SmtpForm unit tests locally
2026-10-15 17:03:10 +03:00
Ivan VasilovandJoshen Lim 7e3d8dfe35 fix(studio): load all org projects in UpdateRolesPanel (#51780)
## Summary

Fixes FE-4635: `UpdateRolesPanel` only loaded the first page (96) of org
projects. Instead of fetching every page, the team settings no longer
need the full project list.

```diff
 <UpdateRolesPanel>
   useOrgProjectsInfiniteQuery({ slug })  // only pagination.count is used
-  orgProjects = all loaded projects
-  noAccessProjects = orgProjects - projectsRoleConfiguration
-  toggle off "Apply to all projects" -> select every org project
+  toggle off "Apply to all projects" -> start with no projects selected
-  <Collapsible> listing every project without access
+  <Admonition> "access to N projects out of M total projects"
```

```diff
 MemberRow
-  orgProjects from TeamSettingsDataContext
-  projectNameByRef = Map(orgProjects)
-  projectsApplied = role.projects.map(lookup name).filter(has name)
+  projectsApplied = role.projects  // roles API already returns { name, ref }
   <HoverCardContent>
+    appliesToAllProjects
+      ? "<role> role applies to M projects"   // no project list
+      : "<role> role applies to N projects" + list of projects
```

```diff
 MembersView / TeamSettingsDataContext
-  useOrgProjectsInfiniteQuery
-  orgProjects
```

## Evidence

- **Before:** orgs with more than 96 projects: toggling off "Apply roles
to all projects" assigned only the first 96, and the "no access" list
was capped at 96. API logs showed only `offset=0` requests from the team
page.
**After:** no code path depends on the loaded project list, so the 96
cap no longer applies. The screenshots below show the new UI. No
automated test covers orgs with more than one page of projects.

## Merge Danger

**Door:** two-way

**Blast Radius:** Team settings

- Toggling off "Apply roles to all projects" now starts with nothing
selected instead of every project.
- The member row hover card for org-wide roles shows only the project
count, not the project list.
- The "no access" project list in the panel is replaced by a count.

New UI:

<img width="602" height="381" alt="Screenshot 2026-10-15 at 14 11 17"
src="https://github.com/user-attachments/assets/39d5ef62-5beb-4e14-9c6f-740bd7f113a1"
/>
<img width="593" height="334" alt="Screenshot 2026-10-15 at 14 11 23"
src="https://github.com/user-attachments/assets/ec06bbc4-b2af-458f-b664-894e9567ff23"
/>
<img width="637" height="248" alt="Screenshot 2026-10-15 at 14 11 38"
src="https://github.com/user-attachments/assets/e4ef9774-58eb-415d-aab8-f0497e3fef2a"
/>
<img width="496" height="431" alt="Screenshot 2026-10-15 at 14 11 46"
src="https://github.com/user-attachments/assets/d1618ce3-a03d-41ec-985d-ca5936c754a7"
/>

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-10-15 15:49:21 +02:00
Drew McLellan 1d9808ab8b fix(studio): name the organization in the overdue invoices banner (#51747)
## Problem

The "Outstanding invoices in other organization" banner asks users to
pay invoices to avoid service disruption, but never says which
organization has them. Users with several organizations have to guess
where to go.

The banner also looked at only the first overdue organization. Its link
pointed at that organization's billing page without naming it, and if
the lookup failed, it fell back to the current organization's billing
page.

Linear: FE-4587

## Solution

- `useOrganizationRestrictions` now collects every other organization
with overdue invoices from the organizations list. It dedupes them,
excludes the current one, and orders them by name, which the list
already is. It no longer falls back to the current organization's slug.
- The banner names only the first organization, linked to its billing
page: "Pay invoices for **Acme** to avoid service disruption". When more
organizations are affected it adds a count: "…for **Acme** and 2
others…". Paying the first often clears the rest, and the next one
appears once it's resolved.
- If no affected organization can be resolved, for example the user lost
access, the banner shows "Pay outstanding invoices to avoid service
disruption", linking to `/organizations`.
- The title is now plural: "Outstanding invoices in other
organizations".
- The dev toolbar's "overdue invoices from other org" override now
injects overdue invoices for every real other organization. It
previously used a made-up ID, so the banner could never show a name. I
also replaced a nested ternary there, per Studio's style rules.


For one org:
<img width="1022" height="42" alt="Screenshot 2026-10-14 at 12 01 32"
src="https://github.com/user-attachments/assets/8f34c2ff-d47f-45fc-80a4-c7cdc3df558b"
/>

For multiple orgs:
<img width="1057" height="42" alt="Screenshot 2026-10-14 at 13 39 42"
src="https://github.com/user-attachments/assets/2100b0b5-65a3-4d7c-8521-48d8e71b62ef"
/>

Note: Overdue invoice counts are not shown by design, only that one or
more overdue invoices exist for an org.

## Review instructions

1. Run Studio in platform mode with at least three organizations, and
open a project page.
2. Enable the dev toolbar from the account menu ("Local tools" > "Dev
toolbar").
3. In the Warnings tab when on a Project page, choose "Overdue invoices
from other org".
4. Check that the banner names the first other organization
alphabetically, shows "and N others" when there's more than one, and
that the name links to that organization's billing page.
5. Use "Reset to real data" to clear the override.

Tests: `pnpm --filter studio exec vitest run
components/interfaces/Organization/restriction.constants.test.tsx
hooks/misc/useOrganizationRestrictions.test.tsx`

### Mocking in QA

Mock `/platform/stripe/invoices/overdue` for overdue invoice counts in
different organizations.
Note: The endpoint will not return an org in the result if the overdue
invoice count is zero.

## Checklist

Check all before review:

- [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, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
(not applicable)
2026-10-15 12:45:30 +01:00
Gildas GarciaandJoshen Lim c829b26bd5 (feat) Allow to filter organization users by role (#51653)
## Problem

It can be hard to verify users roles in organizations with many members

## Solution

Add a filter on the team pages for organization roles.
<img width="1174" height="310" alt="image"
src="https://github.com/user-attachments/assets/dfc2ccdc-b83e-45c5-9a6c-d50417a3ff3e"
/>

## Review instructions

- Open the organization team page
- Select a role and verify only members who have this role are displayed
- Ensure other filters still work

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-10-15 11:31:46 +02:00
barcofourieandGildas Garcia c8c12a87b4 feat(studio): add support satisfaction survey page (#51648)
## Problem

After a support ticket is resolved, customers receive an email with a
link to a satisfaction survey. That survey page is currently served from
a standalone function outside this repo. We are consolidating it into
the dashboard so it is deployed, monitored and tested with everything
else.

Linear:
[TOOLING-1425](https://linear.app/supabase/issue/TOOLING-1425/build-csat-in-supase-studio)

## Solution

Adds a public page at `/support/csat` that collects the survey answer
and posts it to a new Platform endpoint, `POST /platform/support/csat`,
which records the answer on the support conversation.

Key choices:

- **Pre-auth page**, modelled on `/verify-email`. Customers arrive from
an email and may not have a dashboard session. Hosted platform only;
self-hosted routes to 404.
- **URL shape** `?conversation_id=cnv_…&helpful=yes|no` matches the
links already sent in survey emails, so the email template only needs
its host changed. `helpful` preselects the answer, defaulting to Yes.
- **Copy and behaviour match the existing survey page**: same title,
question, labels, button text, and result messages.
- **Form** uses react-hook-form + zod; Yes/No are toggle buttons, the
comment is optional.
- **States**: missing or malformed ticket reference, already submitted
(409), ticket mismatch (404), and a generic error that keeps the form so
the customer can retry.
- The mutation uses `fetchHandler` directly, like the email-verification
mutation, because the endpoint is not in the generated API types yet.

Screenshot:

<img width="977" height="801" alt="image"
src="https://github.com/user-attachments/assets/2331861e-e8e9-43e1-84fc-3bf5786c145e"
/>


Depends on the Platform endpoint
https://github.com/supabase/platform/pull/40027. Until it is deployed,
submissions fail with the generic error state.

## Review instructions

1. Run Studio against a Platform stack that has the `POST
/platform/support/csat` endpoint.
2. Open `/support/csat?conversation_id=<a support conversation
id>&helpful=yes` while logged out. The page renders without redirecting
to sign in, with Yes preselected.
3. Pick an answer, optionally add a comment, and submit. The success
message appears and the answer is recorded on the conversation.
4. Submit again for the same conversation: the page reports that the
survey has already been submitted.
5. Open the page with no `conversation_id`: the page reports an invalid
ticket.
6. `pnpm --filter studio exec vitest --run
components/interfaces/Support/CsatSurvey` passes (18 tests).

## Checklist

Check all before review:

- [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, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
2026-10-15 10:03:47 +02:00
Joshen Lim ad37074869 Clean up JWT keys page (#51745)
## Context

Initial feedback was mainly that the "Previously used keys" table was
scrollable while the top table wasn't which was a bit inconsistent UX,
so this PR addresses that but also makes a couple of UI adjustments to
the JWT keys page to tidy things up

### Before
<img width="1142" height="912" alt="image"
src="https://github.com/user-attachments/assets/ca5f8bc6-8b73-4d96-9055-24a39544fc06"
/>

### After
- Removed color indicators + badges on the key's status and ID - reckon
these are unnecessary signals and plain texts work fine. Opted for
`text-foreground-lighter` for keys which status isn't `in_use`, mainly
to highlight the current key which is the most important imo
- Removed icons for status and type, also reckon unnecessary as they
don't really communicate the context much quicker than their texts
- Removed "Legacy" prefix on the type column (e.g for HS256) - reckon
unnecessary, we don't label this as legacy either in the create standby
key dialog, doesn't really communicate any implications
- Standardized widths of status, key id, type, and last used columns -
these values are fixed and won't deviate, so fixing the widths will
allow a more uniform layout across the 3 tables
- Prioritise order of "current" key above "standby" key
- Use ButtonTooltip + default variant for the "More actions" CTA, also
removed the "Actions" header text
- "Last rotated at" column only shows up on `xl` viewport breakpoint
rather than `lg`
- Remove a number of unnecessary class names that were applied on the
`Table` components

<img width="1145" height="909" alt="image"
src="https://github.com/user-attachments/assets/af596931-a126-4883-999b-829a9c9359fc"
/>
2026-10-15 10:44:50 +08:00
Joshen Lim dccad31a39 Virtualize AuditLogsTable component (#51748)
## Context

The audit logs endpoint isn't paginated, so we could be fetching a lot
of rows at once
e.g on the Supabase Dev org, the orgs audit logs were pulling 4k rows
from the endpoint which i noticed a bit of browser slow down - so this
should alleviate the browser performance impact

There shouldn't be any visual difference from the changes here 🙏
2026-10-15 10:02:15 +08:00
Danny White 4215b6ca32 feat(studio): add cost estimates and validation feedback to pipeline review (#51641)
## Problem

The pipeline wizard in #49243 needs estimated costs and validation
feedback in review before creation.

## Solution

Add the megabranch’s inline cost estimate and validation feedback to
preview-enabled creation. Initial-sync costs follow the selected tables;
ongoing pipeline and streaming rates remain visible. Missing estimates
do not block creation. Validation feedback distinguishes critical issues
from warnings.

Preview off and editing keep the existing layout. The Start action,
warning confirmation and final cost dialog stay unchanged; no wizard
routing is added. Stacked on #51635.

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-review-costs-supabase.vercel.app/dashboard/project/_/database/pipelines),
select a test project with Pipelines enabled, enable **Pipeline creation
wizard** in Feature Previews and click **Add pipeline**. Select a
publication and confirm **Estimated costs** follows Data review.
2. Compare **All tables**, **No tables** and selected-table initial
sync. Confirm initial-sync totals follow the selection, while hourly
pipeline and streaming rates stay visible. With **No tables**, initial
sync should cost zero. Check desktop and phone widths.
3. Enter valid-format but incorrect destination credentials and click
**Start pipeline**. Confirm critical validation issues appear inline and
creation stops. Correct the credentials and retry. If warnings are
returned, confirm the review explains they may affect replication and
the existing **Start pipeline anyway** confirmation still applies.
Cancel before final creation.
4. Turn the preview off and reopen **Add pipeline**. Confirm there is no
inline cost review. With the preview on, edit an existing pipeline and
confirm its original layout remains.
2026-10-15 11:31:13 +11:00
Danny White f20277377b feat(studio): add pipeline data and custom settings review (#51635)
## Problem

The pipeline wizard in #49243 needs publication, initial sync and custom
settings reviewed before creation.

## Solution

Extend the preview-enabled review from #51633 with Data, custom
connection settings and configured BigQuery table layouts. Values update
as fields change. Unchanged advanced defaults and unconfigured table
layouts are omitted; an explicit maximum staleness of zero is shown.

Preview off and editing keep their existing layout. Validation and
creation behaviour stay the same; no wizard routing is added. Stacked on
#51633.

| This PR: Simple Case | This PR: Extreme Case | Reference: Final Wizard
|
| --- | --- | --- |
| <img width="1244" height="1994" alt="CleanShot 2026-10-14 at 11 22
16@2x"
src="https://github.com/user-attachments/assets/5c2c9ea4-7b2b-4f0b-8ebe-0cfc2ac27059"
/> | <img width="1226" height="3568" alt="CleanShot 2026-10-14 at 12 02
16@2x"
src="https://github.com/user-attachments/assets/dc556d4a-5130-4b6c-80b5-8644603d9a55"
/> | <img width="1486" height="2364" alt="CleanShot 2026-10-14 at 10 50
30@2x"
src="https://github.com/user-attachments/assets/982b7d23-9449-4841-b002-9e30fbbabfe9"
/> |

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-data-review-supabase.vercel.app/dashboard/project/_/database/pipelines),
select a test project with Pipelines enabled, enable **Pipeline creation
wizard** in Feature Previews and click **Add pipeline**. Confirm
**Data** review follows the destination review.
2. Select a publication. Confirm its name, table count and initial-sync
choice appear as read-only fields. Choose selected tables to include or
exclude and confirm their schema-qualified names appear. Change
publication and confirm old tables are not shown.
3. Under Data’s **Advanced settings**, change batch wait time, table
sync workers or initial sync connections. Confirm only custom values
appear in review. Restore defaults and confirm those rows disappear. For
BigQuery, configure partitioning or clustering and confirm the table
name and wrapping layout summary appear in the main column under **Table
layout**; unconfigured layouts should be omitted.
4. Change BigQuery connection pool size or maximum staleness and confirm
they appear within **Connection**. If available, check DuckLake pool
size and Snowflake role too. Check desktop and phone widths, then cancel
and discard changes; no credentials or creation are needed.
5. Turn the preview off and reopen **Add pipeline**: confirm no review.
With the preview on, edit an existing pipeline and confirm no review
there either.
2026-10-15 11:17:34 +11:00
Danny White 17a7d2a00f feat(studio): add destination review for preview pipeline creation (#51633)
## Problem

The pipeline wizard in #49243 needs a review of destination details
before creation.

## Solution

Add `PipelineDestinationReview` after Data in preview-enabled creation.
It uses the megabranch’s Destination and Connection sections,
destination logo, read-only fields and field descriptions. Values update
as fields change. Credentials are omitted. Custom DuckLake catalog URLs
and ClickHouse endpoints are masked as whole fields, with an eye toggle;
changing a URL masks it again.

Preview off and editing keep the existing layout. Validation and
creation behaviour stay the same; no wizard routing is added.
Publication, advanced settings and cost review will follow in later
slices.

| This PR | Reference: Final Wizard |
| --- | --- |
| <img width="1254" height="1308" alt="CleanShot 2026-10-14 at 11 01
05@2x"
src="https://github.com/user-attachments/assets/e792ed7f-d4f4-4557-b338-8a120c8663b5"
/> | <img width="1486" height="2364" alt="CleanShot 2026-10-14 at 10 50
30@2x"
src="https://github.com/user-attachments/assets/982b7d23-9449-4841-b002-9e30fbbabfe9"
/> |

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-destinati-25606b-supabase.vercel.app/dashboard/project/_/database/pipelines),
select a test project with Pipelines enabled and go to **Database →
Pipelines**. Enable **Pipeline creation wizard** in Feature Previews,
then click **Add pipeline**. Confirm the review follows **Data**, with
**Destination** and **Connection** sections.
2. With BigQuery selected, enter a pipeline name, project ID and dataset
ID. Confirm the review updates with those values in read-only fields,
includes field descriptions and the destination logo/region, and omits
the service-account key. Check desktop and phone widths.
3. If available, select DuckLake with a custom catalog. Enter a catalog
URL and data path. Confirm the whole URL is hidden in review, use the
eye toggle to reveal/hide it, then change the URL and confirm it is
hidden again. For Supabase DuckLake, confirm the bucket is shown
instead. Snowflake shows account/database/schema without its private
key; ClickHouse shows database/engine and a masked endpoint without its
password.
4. Cancel and discard changes; no pipeline creation is needed. Turn the
preview off and reopen **Add pipeline**: confirm there is no review
section. With the preview on, edit an existing pipeline and confirm
there is no review section there either.
2026-10-15 10:44:23 +11:00
Charis cfdc81e1fe test(studio): raise timeout for NewScopedTokenSheet tests (#51755)
## Summary

- The `NewScopedTokenSheet` tests were flaky on master. The 5s default
timeout was hit intermittently, most visibly in the "falls back to
Custom when a row diverges from the preset" test, plus some sibling
tests.
- Observed in unit-test runs on master. Reproduced locally by running
the file under heavy CPU load, where tests took 4.5-5s versus ~1s on an
idle machine.
- Fix: file-level `vi.setConfig({ testTimeout: 15_000 })`. This only
affects this file because vitest isolates test files.

## Testing

- Ran the file 5 times under the same CPU load. All 21 tests passed each
time.
2026-10-14 14:30:41 -04:00
Ikki Nishihara cba8bc0b30 fix(studio): clarify system role grouping and deletion actions (#51526)
## Problem

The Database Roles page groups `postgres` and the reserved
`supabase_privileged_role` alongside custom roles, while labeling the
other section as "Roles managed by Supabase." The `postgres` actions
menu also offers an enabled Delete action.

Fixes #51525.

## Solution

- Rename the sections to "Supabase service roles" and "Project database
roles," and explain that the latter includes the `postgres`
administrator and custom roles.
- Include `supabase_privileged_role` among the protected service roles.
- Disable Delete for the existing `SYSTEM_ROLES` list, using
`DropdownMenuItemTooltip` to explain the restriction. Keep the
`postgres` permission editor available.
- Add component regressions for grouping, system-role menus, permission
editing, and custom-role deletion confirmation.

## Validation

- Studio unit suite: 732 files passed; 8,343 tests passed and one
expected failure.
- `pnpm --filter studio typecheck` passed.
- `SKIP_ASSET_UPLOAD=1 pnpm build --filter=studio` passed.
- ESLint for changed files, the Studio lint ratchet, monorepo Prettier,
and Studio knip passed.
- Playwright smoke verification of the production Studio build with
synthetic API responses: grouping, disabled Delete and tooltip, keyboard
interaction, permission editing/cancellation, read-only service roles,
search, and custom-role deletion confirmation/cancellation.

## Review instructions

1. Open Database → Roles. Check the two section names and the
administrator description. If present, `supabase_privileged_role`
belongs to the protected service section.
2. Open the `postgres` actions menu. Delete is disabled, and hovering it
explains why.
3. Expand `postgres`. Its existing editable permission switches remain
enabled for a user who can edit roles.
4. Open a custom role's actions menu. Delete still opens the
confirmation dialog; cancel the dialog.
5. Run `pnpm --filter studio exec vitest run
tests/components/Database/Roles.test.tsx`.

## Checklist

- [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)
— not applicable; this changes Studio UI and tests.
2026-10-14 13:57:01 -04:00
claude[bot]andClaude 4c7014745c feat(studio): add custom OIDC option to third-party auth providers (#51612)
<!-- claude-slack-attribution -->
_Requested by **Stojan Dimitrovski** · [Slack
thread](https://supabase.slack.com/archives/C022071RB2L/p1791475016175969?thread_ts=1791475016.175969&cid=C022071RB2L)_

## Problem

The Management API accepts any OIDC issuer for third-party auth (`POST
/v1/projects/{ref}/config/auth/third-party-auth` with
`oidc_issuer_url`), but the Dashboard only offers Firebase, Clerk,
WorkOS, Auth0 and Amazon Cognito. Users with another OIDC provider have
no way to register it from the Dashboard.

Studio also hides any issuer it does not recognize: `IntegrationCard`
returns `null` for the `custom` type, so an issuer added through the API
never shows up in the list and cannot be deleted from the Dashboard.

## Solution

- Add a "Custom OIDC" item to the Add provider menu on the Third-Party
Auth page.
- New `CreateCustomOidcDialog` with a single required Issuer URL field.
It reuses `useCreateThirdPartyAuthIntegrationMutation`, so query
invalidation and the error toast behave like the other providers. The
URL is sent as typed after trimming whitespace.
- New `isValidOidcIssuerUrl` helper in `ThirdPartyAuthForm.utils.ts`:
the value must be an `https://` URL with a host, no query string, no
fragment, and no embedded credentials.
- The dialog copy is kept short: a one-line description and a single
helper line noting that signing keys are found at the issuer's
`/.well-known/openid-configuration`.
- `IntegrationCard` now renders custom issuers (badge-check icon,
"Custom OIDC" label, Issuer URL, Delete integration) instead of hiding
them. Delete uses the existing flow and permission check.
- The `custom` label changes from "Custom" to "Custom OIDC".
- New docs page
`apps/docs/content/guides/auth/third-party/custom-oidc.mdx` (served at
`/docs/guides/auth/third-party/custom-oidc`). It covers the Dashboard
flow, the Management API alternative, the `role` claim, client setup,
and RLS. It is linked from the third-party auth overview and added to
the docs sidebar. This supersedes the draft docs PR #51611.

Not included: UI for `jwks_url` and `custom_jwks`. The page and menu
keep the same feature gate (`authentication:third_party_auth`) and the
same permission checks as the other providers.

Before: the Add provider menu lists five providers. An issuer that is
not one of them is registered only through the API and does not appear
in the Dashboard.

After: the menu has a sixth item, Custom OIDC. It opens a dialog that
takes an issuer URL, rejects non-HTTPS values with an inline message,
and registers the issuer. The new provider appears in the list and can
be deleted from there.

## Review instructions

1. Open a project's Authentication > Third-Party Auth page and open Add
provider. Check for the new Custom OIDC item.
2. Enter `http://example.com` and submit. The field shows an inline
error and no request is sent.
3. Enter a valid HTTPS issuer URL that serves an OIDC discovery document
and submit. A success toast appears and the provider shows in the list
as Custom OIDC with its Issuer URL.
4. Enter an issuer the API rejects. The API error shows in the existing
error toast and the dialog stays open.
5. Delete the provider with Delete integration and confirm it disappears
from the list.
6. Read the new docs page and check that its Dashboard steps match the
UI.

Local checks:

- `vitest --run components/interfaces/Auth/ThirdPartyAuthForm`: 20 tests
pass (validation helper unit tests plus dialog component tests with
MSW).
- `tsc --noEmit` in `apps/studio`: no new errors.
- ESLint on the directory: no warnings in the new or changed code.
- Prettier is clean on the changed files, including the docs page. The
typos check is clean on the docs page and overview.

I did not run the dialog in a browser against a real project, so there
are no screenshots. The docs app was not built or rendered locally.

## 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, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

🤖 Generated with [Claude
Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe)

https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe


---
_Generated by [Claude
Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 19:01:08 +02:00