Commit Graph
22209 Commits
Author SHA1 Message Date
Alaister YoungandAlaister Young d31c7d1603 [FE-5104] fix(studio): validate site url and redirect urls (#53492)
The Auth URL Configuration page saved Site URLs and redirect URLs
containing spaces or backslashes. `SiteUrl` only checked that the value
was non-empty. `urlRegex()` in `Auth.constants.ts` wasn't anchored, so
any valid prefix passed (`https://foo bar.com`,
`http://localhost:3000\`). This isn't a TanStack regression: both gaps
go back to before the migration (#44803, #30138), and the Next and
TanStack routes render the same `SiteUrl`/`AddNewURLModal` components.

**Changed:**
- `urlRegex()` is anchored and rejects whitespace and backslashes. This
also tightens its other callers (provider forms, SMTP host), which now
reject trailing junk after a valid prefix. The localhost branch also
accepts `?`/`#` right after the host, so scheme-less values such as
`localhost:3000?x=1` that pass today still pass.
- New `getUrlCharacterError` and `getSiteUrlError` helpers give specific
inline errors ("can't contain spaces/backslashes/wildcards", "Please
provide a valid URL, such as https://example.com").
- `SiteUrl` still trims, then rejects interior whitespace, backslashes,
wildcards and non-absolute URLs. `getSiteUrlError` also rejects the
`javascript:`, `data:`, `file:` and `vbscript:` protocols and requires
`scheme://`. Without that, a scheme-less `localhost:3000` would parse
with `localhost:` as its scheme. Custom app schemes such as
`myapp://callback` still work. `onSubmitSiteUrl` is now typed instead of
`any`.
- The Azure, GitLab, Keycloak, WorkOS and SAML URL fields in
`AuthProvidersFormValidation.tsx` now `.trim()` before checking
`urlRegex()`, so a trailing space no longer fails the now-anchored
regex.
- `AddNewURLModal` shows the specific character error before falling
back to "Please provide a valid URL".

**Added:**
- Unit tests for `urlRegex()`, `getUrlCharacterError` and
`getSiteUrlError`, including unsafe protocols and scheme-less
`host:port`.
- `AuthProvidersFormValidation.test.ts`: each provider URL field trims
surrounding whitespace and rejects interior spaces.
- Component tests for `SiteUrl` and `AddNewURLModal` covering spaces,
backslashes, wildcards and invalid URLs, plus saving every supported
redirect URL form. The new rejection tests fail without the fix.
- `AddNewURLModal.test.tsx` now uses MSW (`customRender` + `addAPIMock`)
instead of `vi.mock('@/data/...')`.

Addresses
[FE-5104](https://linear.app/supabase/issue/FE-5104/dashboard-allows-spaces-in-the-site-url).

## To test
- [ ] Auth > URL Configuration, set Site URL to `https://my
app.example.com` and save – "Site URL can't contain spaces", nothing
saved
- [ ] Site URL `http://localhost:3000\` – "Site URL can't contain
backslashes"
- [ ] Site URL `https://*.example.com` – "Site URL can't contain
wildcards"
- [ ] Site URL `example.com` or `localhost:3000` – "Please provide a
valid URL, such as https://example.com"
- [ ] Site URL `javascript:alert(1)` – "Site URL can't use the
javascript: protocol"
- [ ] Site URL `myapp://callback` – saves
- [ ] Site URL ` http://localhost:3000 ` – saves as
`http://localhost:3000`
- [ ] Add URL, enter `https://my app.example.com` – "URL can't contain
spaces"; `myapp://callback\` – "URL can't contain backslashes"
- [ ] Sign In / Providers > Keycloak, enter a Realm URL with a trailing
space and save – no "Must be a valid URL" error; saved without the space
- [ ] Add URL, paste `https://*.example.com/** http://localhost:3000/*
com.example.app://callback chrome-extension://abcdefghijklmnop` – splits
into 4 rows and saves all 4

Ran typecheck, lint ratchet, knip, Prettier, and the Auth vitest suites.

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-17 16:31:59 +09:00
Pamela Chia c6a3a23dfb feat(studio): track free project limit blocks on downgrade and transfer (#53460)
Studio blocks a downgrade to the Free Plan and a project transfer when a
member would exceed their free project limit, and neither block is
tracked. This adds one event for each so we can count how often people
hit them. No UI change.

**Changed:**
- **Downgrade blocked**: `studio_billing_downgrade_blocked_modal_opened`
fires when confirming a downgrade opens the "members have exceeded their
free project limits" modal. It sits in `CancellationFlow`, so it covers
both the Cancel subscription button and the plan side panel.
- **Transfer blocked**: `project_transfer_preview_failed` fires when the
transfer preview for the selected target organization comes back with
members over the limit, once per preview. A refetch that returns the
same data does not fire it again.

**Note:** the transfer event fires from an effect on the preview data.
The notice appears when that data arrives, so there is no click handler
to attach it to.

## To test
Needs an organization on a paid plan with a running project, where an
owner or admin already has the maximum number of free projects in other
organizations.

Tested on the PR preview:
- [ ] Go to the org billing page, click "Cancel subscription" and
confirm the downgrade, expect the members-exceed-limit modal and one
telemetry request with action
`studio_billing_downgrade_blocked_modal_opened` carrying `currentPlan`
and `membersExceedingLimitCount`
- [ ] Open the plan side panel, pick the Free Plan and confirm, expect
the same modal and one more
`studio_billing_downgrade_blocked_modal_opened` request
- [ ] In project settings > General, click "Transfer project" and select
a Free Plan target organization, expect the "Project cannot be
transferred" notice listing members and one telemetry request with
action `project_transfer_preview_failed` carrying `sourcePlan`,
`targetPlan` and `membersExceedingLimitCount`
- [ ] Edge case: with the notice showing, switch to another browser tab
and back, expect no additional `project_transfer_preview_failed` request

## Linear
- fixes GROWTH-1510
2026-11-17 16:25:49 +09:00
Alaister YoungandAlaister Young 96e4543ea9 [FE-3106] (part 9) – refactor(studio): move logs and observability page bodies (#53218)
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>
2026-11-17 16:24:24 +09:00
Alaister YoungandAlaister Young 2695cf117a [FE-3106] (part 8) – refactor(studio): move storage, functions and branches pages (#53217)
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>
2026-11-17 16:13:36 +09:00
Alaister YoungandAlaister Young 5f282681ef [FE-3106] (part 7) – refactor(studio): move project auth page bodies into routes (#53216)
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>
2026-11-17 16:00:07 +09:00
Alaister YoungandAlaister Young 7418124337 [FE-3106] (part 6) – refactor(studio): move project home and database page bodies (#53215)
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>
2026-11-17 15:28:45 +09:00
Alaister YoungandAlaister Young af613c0217 [FE-3106] (part 5) – refactor(studio): move org page bodies into route files (#53214)
Moves the org page bodies (`/org` and everything under `/org/$slug/*`)
into their route files and deletes `pages/org/**` apart from the
catch-all, which part 12 handles (FE-3106). Part 5 of the stack.

**Depends on:** #53213

**Changed:**
- `routes/_app/org/index.tsx` – redirect to the last visited org or
`/organizations` uses `useNavigate`
- `routes/_app/org/$slug/**` – 16 page bodies inlined;
`webhooks/$endpointId` reads the id from `Route.useParams()`;
`next/link` → `Link`. Every `orgLayoutTitle` matches the old `getLayout`
title

**Removed:**
- 16 files under `pages/org/**`

Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).

## To test

- Visit each org settings tab (General, Team, Integrations, Billing,
Usage, SSO, Security, Audit, Webhooks, Apps) – same layout, title and
sidebar highlight
- `/org` – redirects to the last visited org
- Open a webhook endpoint – details load; switching endpoints resets the
page

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-17 15:14:12 +09:00
Alaister YoungandAlaister Young 33ae2caa0d [FE-3106] (part 4) – refactor(studio): move sign-in and standalone page bodies (#53213)
Moves the sign-in and standalone page bodies (`/sign-in`, `/sign-up`,
`/sign-in-sso`, `/sign-in-partner`, `/sign-in-mfa`,
`/sign-in-recovery-code`, `/forgot-password`, `/forgot-password-mfa`,
`/reset-password`, `/cli/login`, `/partners/stripe/projects/login`,
`/authorize`, `/redeem`, `/logout`, `/maintenance`, `/verify-email`,
`/support/csat`, `/mcp/secrets`) into their route files and deletes the
pages (FE-3106). Part 4 of the stack.

**Depends on:** #53212

**Changed:**
- `routes/_auth/**` and the standalone routes – page bodies inlined;
`next/router`/`next/link`/`next/head` → native TanStack (`navigate({ to,
search })`, `search: true` to carry the query, `href` for runtime return
URLs) and inline `<title>`. Layout chains match the old `getLayout`s
- `components/interfaces/CliLogin/CliLoginScreen.tsx` – the CLI login
screen moves out of the page so its test can import it without the route
file exporting it
- `tests/routes/{authorize,_auth/**}.test.tsx` – moved from
`tests/pages/**` and rendered with `renderRoute`

**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

- Sign out, open `/sign-in` and `/sign-up` – same layout and title;
switching between them keeps `returnTo`
- Sign in with MFA – `/sign-in-mfa` returns to the original page
- `/cli/login?session_id=…` and `/authorize?…` – flows complete as
before
- `/logout` – redirects to `/sign-in`

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-17 14:57:50 +09:00
Alaister YoungandAlaister Young d2eb58a0e7 [FE-3106] (part 3) – refactor(studio): move account and top-level page bodies (#53212)
Moves the account and top-level app page bodies (`/account/*`,
`/organizations`, `/new`, `/new/$slug`, `/join`, `/claim-project`,
`/aws-marketplace-onboarding`, `/stripe-atlas-application`,
`/support/new`, `/support/link`, `/integrations/github|vercel/*`) from
`pages/**` into their TanStack route files and deletes the pages. Part
of the final pass of the TanStack migration (FE-3106). Part 3 of the
stack, and the first page-move PR.

**Depends on:** #53202

**Changed:**
- `routes/_app/account/**`,
`routes/_app/{organizations,new/index,support/*}.tsx`,
`routes/{new/$slug,join,claim-project,aws-marketplace-onboarding,stripe-atlas-application}.tsx`,
`routes/integrations/**` – page bodies inlined.
`next/router`/`next/link`/`next/head` → `useNavigate`, `Link`,
`<Navigate>` and inline `<title>`. `getLayout` dropped; every old
`getLayout` was checked against the route tree and matches
- `routes/aws-marketplace-onboarding.tsx` – reads `buyer_id` through
`validateSearch` + `Route.useSearch()`
- `tests/lib/route-render.tsx` – new `renderRoute(Route, { routeId, url
})` helper that mounts a file route in a memory router (with the app's
search serializers) so route components can be tested; used by the moved
tests
- `tests/lib/route-mock.ts` – the `next/router` mock now derives its
dynamic-route patterns from `routes/**` instead of globbing `pages/**`,
so tests keep parsing params as pages disappear
- `tests/routes/**` – page tests moved from `tests/pages/**` and
rendered through the route
- `.github/CODEOWNERS` – `pages/new/index.tsx` owner moved to
`routes/_app/new/index.tsx`

**Removed:**
- 19 files under `pages/account/**`, `pages/new/**`,
`pages/support/{new,link}.tsx`, `pages/integrations/**` and the
top-level pages listed above

Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).

## To test

- Open `/account/me`, `/account/security`, `/account/tokens`,
`/account/audit` – same Account layout, header title and sidebar as
before
- Open an old email-change link (`/account/me#message=...`) – lands on
`/account/security` with the hash
- `/account/tokens/scoped` – redirects to `/account/tokens`
- `/organizations` and `/new/<org>` – render with the same layout; "New
organization" links work
- Vercel install/marketplace flows – navigation keeps `?…` params

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-17 14:46:37 +09:00
Sean Oliver 6baa343815 chore(www): bump MCP server card to 0.17.0 (#53491)
## Problem

The Checkly check "Supabase MCP server card" is failing.
`mcp-server-supabase` v0.17.0 was released Nov 13, but the card at
`/.well-known/mcp/server-card.json` still says 0.16.1. The check fails
once the card is 2 or more days behind a release.

Tracked in GROWTH-1515.

## Solution

- Set `version` in `apps/www/public/.well-known/mcp/server-card.json` to
`0.17.0`.

## Review instructions

1. Open the [preview
card](https://zone-www-dot-com-git-sean-growth-1515-mcp-serve-c8ef1a-supabase.vercel.app/.well-known/mcp/server-card.json)
and confirm `"version": "0.17.0"` (checked: it serves 0.17.0; prod
serves 0.16.1).

## 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 (N/A, no docs change)
2026-11-17 14:27:06 +09:00
K-Dog (Kevin) 412df7746e feat: revamped free plan limit modals / downgrade improvements (#53257)
Whenever customers run into their 2 Free Plan project limit, we were
previously just listed the affected members:

<img width="1044" height="566" alt="image"
src="https://github.com/user-attachments/assets/d1c1327d-2532-4d8e-8af2-425da9ce1ee5"
/>

While this lists the affected members, it is pretty unclear which
organizations are affected or which projects contribute to this and what
the best course of action is.

This PR revamps all components that are displayed in this situation (new
project launch, downgrade to Free, project unpause) to show the affected
organizations + projects primarily and give more actionable tips:

<img width="1014" height="638" alt="Screenshot 2026-11-11 at 3 57 45 PM
(1)"
src="https://github.com/user-attachments/assets/ae38f71d-bbde-4181-a623-24bef778afee"
/>

<img width="768" height="152" alt="image"
src="https://github.com/user-attachments/assets/b3b0efd7-678b-4ac0-9602-4cc5d735a9aa"
/>


---

Additionally, this contains small improvements to the downgrade flow:
- Rename button to "Downgrade Now" as opposed to "Confirm" to make it
more clear that this is immediate
- Explicitly mention downgrades are immediate and there is still another
invoice for unbilled usage
- Larger modal width for improved readability
2026-11-17 12:25:05 +08:00
hasithasandun a0a17e17e8 fix(design-system): improve responsiveness of copywriting components (#46034)
## 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?

Bug fix

## What is the current behavior?

On mobile devices, the component previews in the Design System
documentation site (`/apps/design-system`) overflow horizontally and
clip off the screen. This is caused by rigid `p-10` padding on the
preview container and hardcoded widths (`w-[400px]`, `w-[300px]`) and
inflexible flex layouts (`flex-row gap-16`) within the example
components.

## What is the new behavior?

The component previews are now fully responsive and render correctly on
mobile viewports:
- Updated the main preview container padding to be responsive (`p-4
sm:p-10`) in `component-preview.tsx` to maximize available space on
mobile.
- Replaced fixed widths with fluid max-widths (`w-full max-w-[400px]`)
in various copywriting component examples.
- Updated flex layouts that previously forced single rows to wrap
(`flex-wrap`) and scale down gaps on smaller screens (`gap-8
sm:gap-16`).
- Added `shrink-0` to icons in alerts to prevent them from squishing
when text wraps on narrow screens.

Affected components:
- `component-preview.tsx`
- `copy-button-verbs.tsx`
- `copy-confirmations.tsx`
- `copy-error-messages.tsx`
- `copy-form-labels.tsx`
- `copy-loading-states.tsx`
- `copy-success-messages.tsx`
- `copy-tooltips.tsx`

## Screenshots
### Mobile (Layout Bug - Before)
<!-- Add your broken mobile layout screenshot here -->
<img width="383" height="673" alt="Image"
src="https://github.com/user-attachments/assets/faeba844-c137-4ab2-aa2c-2299e5ae5bf0"
/>

<img width="377" height="667" alt="Image"
src="https://github.com/user-attachments/assets/e995289c-8c4c-4ba2-8fac-f36bfe869cd7"
/>

<img width="376" height="671" alt="Image"
src="https://github.com/user-attachments/assets/b08afcfc-cc03-4087-9bdc-6082ed4a0c0a"
/>

### Mobile (Responsive - After)
<!-- Add your fixed mobile layout screenshot here -->
<img width="375" height="672" alt="Image"
src="https://github.com/user-attachments/assets/54f68165-1e42-4f96-b9b8-cc6928909cbf"
/>

<img width="378" height="673" alt="Image"
src="https://github.com/user-attachments/assets/816e7103-3184-4593-9847-896e3e4736ff"
/>

<img width="372" height="665" alt="Image"
src="https://github.com/user-attachments/assets/97ba8f70-5340-4d15-92ee-1a032ee7d935"
/>

## Additional context

This addresses the layout bugs on the Design System Copywriting
documentation page.

Fixes #46033


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

* **Style**
* Improved responsiveness across the design system with updated layout
and spacing utilities.
* Replaced several fixed-width examples with flexible full-width
containers constrained by max-widths for consistent sizing.
* Adjusted preview padding to use responsive values for better mobile
presentation.
  * Enabled flex wrapping and refined gap sizes for multi-row layouts.
* Prevented icons from shrinking in flex rows to preserve alignment and
visual consistency.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46034?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-17 11:49:55 +11:00
hallidayo 4fb5d19d35 fix(design-system): color palette overflow fix (#53473)
## Problem

Currently on a mobile device the color palette overflows and the layout
of the site overflows as well:

<img width="520" height="733" alt="Screenshot 2026-11-16 at 19 53 44"
src="https://github.com/user-attachments/assets/1eb10beb-adb2-44a3-b320-8c47a0fa6759"
/>

## Fix

The palette now scrolls with the names being fixed:


https://github.com/user-attachments/assets/bc8faeee-fffc-41bc-ac76-bf9b51d21808
2026-11-17 11:49:40 +11:00
Saxon FletcherandClaude Opus 5.5 07574deea7 chore(studio): refine log detail panel (#52750)
<img width="823" height="614" alt="image"
src="https://github.com/user-attachments/assets/1c1ac47f-07e2-4bbe-a91e-5690e849e519"
/>

## Problem

The log detail panel felt cramped. The header split across two lines,
contrast between the header, tabs and properties was weak, and long
values overflowed their column. Edge function logs also had no path in
the unified logs query, so their title fell back to the raw event
message, which repeated the status and cut off the function name.

The panel also moved under the user. Clicking a Timeline step jumped to
Overview, so stepping through a request meant switching back each time,
and an "Enriching log..." row pushed the details down while they loaded.

## Solution

- **Header:** one line with the type icon, status badge, method and
path. The log type name moves to the icon's tooltip. Long paths clip
from the start so the most specific segment stays visible.
- **Type and spacing:** 15px title, 12px property labels and values,
40px section and "Logged" rows, and more room around the tabs. The panel
uses the card background.
- **Long values:** wrap inside their column instead of overlapping the
label.
- **Edge function paths:** the ClickHouse query now reads
`request.pathname` for `function_edge_logs`, matching the BigQuery
query.
- **Timeline:** clicking a step keeps the Timeline tab open, while the
header, actions and other tabs follow the clicked log. A single hidden
step is shown instead of "+1 more", and the first step shows its
absolute time in place of the "Request started" row.
- **Loading:** the header's type icon becomes a spinner of the same size
while the log's details load, replacing the "Enriching log..." row.
- **User tab:** the "No signed-in user" state uses the same centered
empty state as the Timeline tab.

Side effects to check:

- Edge function rows now fill the Path column, so function-scoped tables
can show that column. Path filters and facets include these rows, and
Timeline steps show method and path.
- Audit Logs and the Auth Users panel share these components. Audit Logs
picks up the taller section rows, and Auth Users fields drop to 12px.

## How to test

On `/project/<ref>/logs`:

1. Select an API Gateway log. The header is one line: icon, status
badge, `METHOD /path`. The icon spins while details load, and nothing
below it shifts when it stops.
2. Open **Timeline** and click a few steps. The tab stays on Timeline
while the header and highlight follow each click, and Overview then
shows the clicked log. The first step shows a time instead of `+0 ms`.
3. Select an edge function log. The title shows `METHOD
/functions/v1/<name>` and the Path column is filled. Filtering by part
of that path matches these rows.
4. Select a Postgres log. The title shows the message, and its **User**
tab shows a centered empty state like Timeline's "No related logs".
5. Select a log with a long URL in a narrow panel. Values wrap inside
their column and the title clips from the start. This has only been
checked in Chromium.
6. Open an entry in Audit Logs and a user in Auth > Users, and check the
spacing and type.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:14:44 +10:00
kemal.earth d17e66f202 fix(studio): unified logs sidebar styling (#53470)
## Problem

Unified Logs sidebar title and a few other bits fell out of sync after a
recent change.

## Solution

The Unified Logs filter sidebar hand-rolled its own header instead of
using the shared `ProductMenuBar` header, so it drifted from every other
section. This brings it back in line.

- **Title**: `<p className="text-lg">` → `<h4 className="text-sm">`,
matching `ProductMenuBar`.
- **Header**: `px-4` → `px-6`, `gap-3` → `gap-2`, and `h-[48px]` →
`min-h-(--header-height)`.
- **Filter area**: `p-2` → `px-4 py-1.5`, so filter labels share the
same left edge as the title.
- **"Capture your logs" card**: dropped `mx-2` so it spans the container
gutter.
- **Reset button**: `variant="text"`, tooltip moved to `side="bottom"`.
- **Card surfaces**: removed the ad-hoc `bg-muted/10 border-border/50`
override so cards use the default border and inherit the sidebar
surface.

Note: `FeaturePreviewSidebarPanel` is shared, so the Advisors sidebar
card loses the same tint — intentional, it brings all usages in line.

| Before | After |
|--------|--------|
| <img width="293" height="745" alt="Screenshot 2026-11-16 at 19 11 05"
src="https://github.com/user-attachments/assets/dc1ec664-382a-4e3b-a85b-40d37a8b479f"
/> | <img width="265" height="739" alt="Screenshot 2026-11-16 at 19 10
43"
src="https://github.com/user-attachments/assets/315fece5-3b45-4826-8e5c-5f6f9a1c258b"
/> |

## Review instructions

1. Open Unified Logs (`/project/_/logs`) with the unified logs preview
enabled.
2. Compare the sidebar header ("Logs" + Beta badge) against another
section's sidebar header, e.g. Observability
(`/project/_/advisors/rules` → Observability menu). The title size,
weight and left padding should now match.
3. Confirm the filter labels ("Time Range", etc.) line up with the
"Logs" title on the same left edge, and that the "Capture your logs"
card spans the same width as the filter rows above it.
4. Apply a filter so the Reset button appears. It should render as a
text button (no raised/filled background) and its tooltip should open
below it.
5. Check the "Capture your logs" and "Go back to old logs" cards have no
tinted background — just a border against the sidebar surface.
6. Check the Advisors sidebar (`/project/_/advisors`) card picks up the
same treatment.
2026-11-16 19:33:41 +00:00
Riccardo Busetti 2a9b02a99a feat(docs): Improve Pipelines docs and UI (#53450) 2026-11-16 16:25:00 +00:00
Kody JacksonandClaude Sonnet 5.5 39cf54f3c4 docs: add cross-links to related guides and references (#53384)
## What

Adds internal cross-links where a page mentions a product, feature, or
concept that has its own canonical page. This PR covers docs guides
under `apps/docs/content/guides`, excluding the shared partials
(separate PR).

## How links were chosen

- One canonical target per keyword, preferring docs guides over
marketing or blog pages for docs content.
- Only plain prose mentions: nothing inside headings, code, frontmatter,
existing links, or UI labels.
- One link per sentence, and no second link to the same target on a
page.

## Testing

- Prettier passes on all changed files.
- Not yet run: docs build and internal link test, KB build. Draft until
those are checked.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 09:59:49 -06:00
Kody JacksonandClaude Sonnet 5.5 80a8b3a7d2 docs: add cross-links in shared partials + fix broken links flagged by e2e (#53383)
## What

Adds internal cross-links where a page mentions a product, feature, or
concept that has its own canonical page. This PR covers the two shared
docs partials, so each link appears once in source and propagates to
every page that includes the partial (the social-login setup pages and
the quickstarts).

## How links were chosen

- One canonical target per keyword, preferring docs guides over
marketing or blog pages for docs content.
- Only plain prose mentions: nothing inside headings, code, frontmatter,
existing links, or UI labels.
- One link per sentence, and no second link to the same target on a
page.

## Testing

- Prettier passes on all changed files.
- Not yet run: docs build and internal link test, KB build. Draft until
those are checked.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 09:42:28 -06:00
Andrey A. 04a7b1ac64 fix(studio): reject cross-origin writes on self-hosted (#53452) 2026-11-16 16:11:11 +01:00
Jeremias Menichelli 158df40e67 chore: Improve KB README (#53458)
## Problem

KB README file still holds basic template content form Astro starter.

## Solution

Update README with information on the project.

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. Checkout the README
2. Make sure it makes no reference to Astro starter project, and
describes the basic on kb structure.

_Preview README here:
https://github.com/supabase/supabase/blob/da9f9080e7b7ba4bcda45f743c0d78f4d65b6a6c/apps/kb/README.md_

## 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)
2026-11-16 14:42:31 +00:00
Kody JacksonandClaude Sonnet 5.5 81a9673b8f docs(kb): add cross-links to related docs guides (#53386)
## What

Adds internal cross-links where a page mentions a product, feature, or
concept that has its own canonical page. This PR covers knowledge base
articles in `apps/kb`. Links are root-relative, matching the docs
convention.

## How links were chosen

- One canonical target per keyword, preferring docs guides over
marketing or blog pages for docs content.
- Only plain prose mentions: nothing inside headings, code, frontmatter,
existing links, or UI labels.
- One link per sentence, and no second link to the same target on a
page.

## Testing

- Prettier passes on all changed files.
- Not yet run: docs build and internal link test, KB build. Draft until
those are checked.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 08:21:19 -06:00
Kody JacksonandClaude Sonnet 5.5 5168b7ffb9 docs(www): add cross-links in blog, customer, and event content (#53385)
## What

Adds internal cross-links where a page mentions a product, feature, or
concept that has its own canonical page. This PR covers marketing
content in `apps/www`: blog posts, customer stories, events, and one
module page.

## How links were chosen

- One canonical target per keyword, preferring docs guides over
marketing or blog pages for docs content.
- Only plain prose mentions: nothing inside headings, code, frontmatter,
existing links, or UI labels.
- One link per sentence, and no second link to the same target on a
page.

## Testing

- Prettier passes on all changed files.
- Not yet run: docs build and internal link test, KB build. Draft until
those are checked.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 08:21:14 -06:00
supabase-vercel-tedd[bot] 756d782304 docs(kb): explain why troubleshooting articles don't accept pull requests (#53455)
## Problem

The kb README says troubleshooting content is fetched from a private
repository, but it doesn't say why, or what a contributor can do instead
of opening a pull request against those articles.

## Solution

Adds a "Contributing to troubleshooting articles" subsection under
"Federated troubleshooting content" in `apps/kb/README.md`. It explains:

- troubleshooting articles can't be changed with a pull request to this
repository
- the source is private because unpublished guides are often drafted
from support cases and can contain customer data before review
- how to suggest a fix: comment on the article's GitHub Discussion (the
"Go to the GitHub discussion" link on each article) or open an issue
that links the article
- pull requests for other `/kb` content, such as `src/content/guides/`,
are welcome

No code changes.

## Review instructions

1. Open `apps/kb/README.md` in the PR's "Files changed" view.
2. Check that the new "Contributing to troubleshooting articles"
subsection explains the restriction, the reason (customer data in
unpublished guides), and the two ways to suggest a fix.
3. Check that the "open an issue" link points to
`https://github.com/supabase/supabase/issues/new/choose`.

Checked with: `prettier --check apps/kb/README.md` and `pnpm turbo run
typecheck lint --filter='[origin/master]'`. Both pass, and lint reports
only existing warnings.

## 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: README only.)


[DOCS-1673](https://linear.app/supabase/issue/DOCS-1673/clarify-troubleshooting-article-contribution-restrictions-in-the-kb)

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-16 13:58:27 +00:00
Drew McLellan f7f27aac78 fix(studio): escape json and jsonb values in SQL copy and export (#53372)
## What

Fixes invalid or corrupted SQL from "Copy rows as SQL" and "Export table
as SQL" for json/jsonb columns (FE-4860, closes #49196).

## Why

The SQL formatter built json literals by rewriting `JSON.stringify`
output with regexes. That corrupted values containing double quotes or
backslashes, and produced invalid SQL for jsonb columns holding plain
strings or other non-object values.

## How

- `formatTableRowsToSQL` now serializes the parsed value and only
escapes single quotes.
- Grid rows carry json columns as text (the grid query casts them to
`::text`), so a new `parseGridJsonColumns` helper parses untruncated
json cells before formatting. It is used by "Copy rows as SQL" and the
selected-rows export. Truncated cells are left alone so they are still
fetched in full.
- The SQL export keeps json columns unstringified
(`preserveJsonValues`), so a jsonb string like `"hello"` stays
distinguishable from JSON text. CSV and JSON exports are unchanged.

No `::text` cast was added to the export query: the API already returns
json values parsed.

## Testing

- Unit tests for values with `"`, `\`, `'`, plain-string jsonb, arrays,
numbers, booleans and null, plus `parseGridJsonColumns`.
- Ran the formatter output against a local Postgres: both the parsed
(fetch-all) and grid-text (copy / selected rows) shapes loaded and
round-tripped identically for jsonb and json columns. The old
formatter's output failed with `invalid input syntax for type json` on
the same data.
- Not exercised end to end in the Studio UI, and the truncated-cell path
is covered by unit tests only.

## Not in scope

The JSON export still stringifies objects before `JSON.stringify`, so
json columns come out as nested strings. That is separate pre-existing
behavior.
2026-11-16 13:52:05 +00:00
311e2c721c fix(studio): suggest cli download when function code exceeds max size limit (#53421)
<!-- claude-slack-attribution -->
_Requested by **Kalleby Santos** · [Slack
thread](https://supabase.slack.com/archives/C02KMRX22NR/p1794750855761849?thread_ts=1794750855.761849&cid=C02KMRX22NR)_

## Problem

**Before:** When an Edge Function's source is too large to load in
Studio, the function's Code tab shows "Failed to load function code"
with the same steps as any other load failure: update the CLI, then
redeploy with `supabase functions deploy` or use the Management API.
Redeploying does not help here, because the problem is the size of the
code, not a bad deployment.

**After:** When the function body request fails because the code exceeds
the maximum size (HTTP 507), the same error screen tells the reader to
update the CLI and then download the function with `supabase functions
download <function-slug>`. All other load errors keep the existing
redeploy and Management API steps.

## Solution

Adds `isFunctionBodyMaxSizeError` (true when the error code is 507) next
to the function body query, and the Code page uses it to pick which step
2 to show. Studio already preserves the HTTP status as `error.code`, so
no changes to error classification are needed.

This ports Kalleby's fork commit
[498a1b1](https://github.com/kallebysantos/supabase/commit/498a1b1b386accea4fa57a85a3a2328b79a3b34c)
onto current master. Differences from the original: it types the helper
against Studio's current error shape instead of `ResponseError`, fixes
the "Donwload" typo, and adds a small unit test for the helper.

Co-authored-by: Kalleby Santos <kalleby_santos@hotmail.com>

## Review instructions

1. Open a function's Code tab where the function body request returns
507 (for example by mocking the response) and confirm step 2 reads
"Download your function using: `supabase functions download <slug>`"
with no Management API step.
2. Trigger any other body load error and confirm the redeploy and
Management API steps are unchanged.

## 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 (not applicable, no docs
changes)

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

---------

Co-authored-by: Kalleby Santos <kalleby_santos@hotmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-16 12:08:27 +00:00
anthony lio a66aa7417a fix(studio): sidebar collapsible (#53425)
## Problem

- in "Expanded" mode the nav icons sit 2px right of the logo center
- on page reload the sidebar starts collapsed and then plays the open
animation when previously opened

## Solution

- removes the extra padding kept for "Expanded" mode so the icons stay
on the logo center
- changes the sidebar to read the stored mode on the first render, so it
opens with no animation or layout jump
- fixes a sidebar that stays open after the user picks "Expand on hover"
in the account preferences

| before | after |
|
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
| <video
src="https://github.com/user-attachments/assets/36100073-6265-41b0-ab9a-1189d298b3bc"
/> | <video
src="https://github.com/user-attachments/assets/0d0a1f5f-fbd7-4bca-baae-3ac511f028c5"
/> |

## Preview links

| Site | Live | Preview | Search for |
| ------ |
------------------------------------------------------------------ |
--------------------------------------------------------------------------------------------------------------------
| ---------------- |
| Studio |
[/dashboard/project/\_](https://supabase.com/dashboard/project/_) |
[/dashboard/project/\_](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/project/_)
| Expand on hover |
| Studio |
[/dashboard/account/me](https://supabase.com/dashboard/account/me) |
[/dashboard/account/me](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/account/me)
| Sidebar behavior |

## Review instructions

1. open
[/dashboard/project/\_](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/project/_)
and select a project
2. open the sidebar control at the bottom of the sidebar and select
"Collapsed"
3. select "Expanded" in the sidebar control, and make sure that the
icons do not move to the side
4. reload the page, and make sure that the sidebar shows open at once
with no animation

## 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)
2026-11-16 13:11:51 +02:00
Joshen Lim 4ed3627d72 Joshenlim/fe 3891 improve handling of partition tables in (#53268)
## Context

The Table Editor doesn't really handle partitioned tables well given the
following issues:
- Partitioned tables are rendered as a flat list in the Table Editor
side menu, so the menu could get very long and noisy - this was the
primary motivation for this PR
- Child partitioned tables are not indicated with a proper icon, they're
treated as regular tables in the Table Editor which is incorrect

## Changes involved
- Table Editor side menu now only lists parent partitioned tables, omits
all child partitioned tables
- Child partitioned tables can be viewed by clicking on the button
tooltip here or drilling down via "View partitions"
<img width="300" alt="image"
src="https://github.com/user-attachments/assets/e3cfbe4b-21ff-47df-8fcd-81d0c9f68d94"
/><br />
<img width="400" alt="image"
src="https://github.com/user-attachments/assets/5d0747cb-fb52-4301-ad9e-c7be504f43c9"
/>

  - Selecting that will then render a nested nav as such
<img width="291" height="323" alt="image"
src="https://github.com/user-attachments/assets/bff0a42b-4265-4317-8299-537d82544388"
/>

- Sub partitioned tables can be drilled into the same way, and the back
CTA steps up one level
<img width="485" height="306" alt="image"
src="https://github.com/user-attachments/assets/66f6f6cb-8b7d-46c5-8ea3-4ee4fd57aa84"
/>

- Parent partition tables have the following actions (Previously was
only copy name and schema)
<img width="465" height="257" alt="image"
src="https://github.com/user-attachments/assets/2aa90995-7c30-4bcf-a446-d01ab52c1ede"
/>

- Deleting a parent partition table will also delete the child partition
table, and that's highlighted in the confirmation modal
<img width="418" height="316" alt="image"
src="https://github.com/user-attachments/assets/0d61984b-f85e-4c93-84d0-549d300838c9"
/>

- Child partition tables have the following actions (Edit + duplicate
removed since they aren't supported via the UI)
<img width="482" height="229" alt="image"
src="https://github.com/user-attachments/assets/e028b13d-2e92-4491-b05c-7a6cb0a129d6"
/>


## To test
In general, just verify the viewing UX of partitioned tables to see if
it all feels alright, can use the following SQL to quickly set up
partitioned tables
```sql
   create schema if not exists tint;
   create table public.nest_demo (id int, hue int not null, primary key (id, hue))
     partition by range (hue);
   create table public.nest_demo_blue partition of public.nest_demo
     for values from (200) to (300) partition by range (hue);
   create table public.nest_demo_blue_light partition of public.nest_demo_blue
     for values from (200) to (250);
   create table tint.nest_demo_blue_deep partition of public.nest_demo_blue
     for values from (250) to (300);
   create table public.nest_demo_other partition of public.nest_demo
     for values from (0) to (200);
   ```
2026-11-16 17:23:59 +07:00
Francesco Sansalvadore ac31093799 chore(studio): update issues icon (#53444)
## Problem

`issues` icon looked too generic.

## Solution

Add custom icon.
- with exclamation mark if issues > 0
- empty inbox icon if issues === 0
2026-11-16 10:16:51 +01:00
Danny White 1ddfdfc7bb fix(studio): prevent Warehouse connection status extending page height (#53442)
## Problem

The Warehouse overview can acquire extra document height, allowing the
header and sidebars to move when scrolling past the content. The
connection card’s absolutely positioned screen-reader status has no
local containing block in the default card layout.

| Before |
| --- |
| <img width="1187" height="1034" alt="Integrations
warehouse-cuf-browser-20261028 ETL Staging Supabase"
src="https://github.com/user-attachments/assets/6bf0279d-c644-4834-9a6d-f6b634037b72"
/> |
| _Note the entire bottom area has shifted up, including sidebar
contents._ |

## Solution

Position the connection card relatively in both layouts, keeping the
live status announcement inside its card. This fixes the source without
changing root layouts or scroll containment.

## Review instructions

1. Open **Integrations > Warehouse > Overview** on a configured project
such as [this
one](https://supabase.green/dashboard/project/yirnfrgkxmnqgexikhfc/integrations/warehouse/overview).
2. Scroll past the bottom. Only the content pane should scroll; the
header and sidebars should stay in place.
3. Check connection details still work in the Connect sheet.
2026-11-16 18:58:36 +11:00
Saxon FletcherandClaude Opus 5.5 7ee828f3f6 chore(studio): center Explorer query result states (#53437)
## What

The Explorer results area showed its idle and no-rows states as a small
line in the top-left corner, which was easy to miss, and showed nothing
while a query ran. These states now sit in the center of the results
area, with an icon above the label:

- **Before a run:** "Run the query to see results"
- **While running:** "Running query…" (new). When a re-run has previous
rows, they stay on screen, dimmed, under the running state, so notebook
cells don't collapse and grow back.
- **No rows:** "Success. No rows returned"

Assistant query cells also show the running state after you approve a
query, since that run happens outside the editor.

## Testing

Enable the `explorer` flag and open Explorer.

1. Open a new query tab and check that "Run the query to see results" is
centered.
2. Run `select pg_sleep(2)`. "Running query…" shows while it runs, then
the result appears.
3. Run `select 1 where false` and check that "Success. No rows returned"
is centered.
4. Run `select * from pg_tables`, then re-run it. The rows stay visible,
dimmed, under the running state.
5. In a notebook with several cells, click **Run notebook**. Cells keep
their height while they run.
6. Ask the Assistant to run a query and approve it. The cell shows
"Running query…" until the result arrives.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:54:25 +10:00
Tyler e7093263eb kb: add sentry to the kb search (#53126)
## Problem

The search in KB currently does not have Sentry

## Solution

This PR adds Sentry to the KB search

## Review instructions

- I tried to match the style in the docs while keeping everything
simple, but does it look alright?
- I haven't added the env variables into Vercel yet. I wanted to get
this PR in front of eyes of others first.

## 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)
2026-11-16 07:46:13 +00:00
5b6443862b feat(go): white background on aws-reinvent schedule page (#53438)
## What

Adds an optional `theme: 'light'` setting for go pages. When set, the
page switches the root theme to light (`data-theme="light"` on `<html>`,
restored on unmount) and renders on a white background, so the white
HubSpot meetings embed no longer contrasts with a dark page. Pages that
don't set it are unchanged.

The root element has to be switched because the semantic color tokens
are derived at `:root`, so a wrapper class alone leaves text
light-on-white.

Turns it on for `/go/aws-reinvent/schedule`. Also loads HubSpot's embed
script as a plain `<script>` tag right after the container (as in
HubSpot's snippet) instead of `next/script`, which loads after page
load.

Files changed:
- `packages/marketing/src/go/schemas.ts`: optional `theme` field on the
page schema
- `apps/www/components/Go/ForceLightTheme.tsx`: sets the light theme on
`<html>` while mounted
- `apps/www/components/Go/GoPageRenderer.tsx`: uses it when `theme` is
`'light'`
- `apps/www/_go/events/aws-reinvent-2026/schedule.tsx`: sets `theme:
'light'`, plain embed script tag

## Review instructions

Open `/go/aws-reinvent/schedule`: the page should be white with readable
text, and the HubSpot calendar should load below the Growth Leads cards.
Open another go page and confirm it is unchanged.

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

---------

Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 15:45:02 +11:00
Joshen LimandDanny White 51bd16d9ca Joshenlim/fe 5064 update database triggers to use new nav (#53356)
## 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>
2026-11-16 10:51:14 +07:00
Joshen Lim f4d8252427 Improve postgres upgrade warning for pipelines (#53359)
## Context

For upgrading a project's Postgres version, the eligibility check
returns blockers if a project has active pipelines running. However, the
notices are currently confusing and not actionable from a user's POV for
these reasons:
- The warnings mention the slot name in the title, but as a user i've no
idea what slot names these are referring to
- There's no CTA as a user to action on to unblock myself
- There's multiple warnings due to each replication slot that the
pipelines take up, although they all point to the same reason that
pipelines just needs to be stopped before upgrading
- Example here if i have 3 active pipelines: I get 10 warnings here
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/c4d99cd4-df3b-4e8e-90cd-896c0f2fa52b"
/>

Am opting to consolidate all Pipelines related upgrade warnings into
just one row as such, by grouping them if the upgrade eligibility error
type is `active_replication_slot` and the slot name begins with
`supabase_etl_`. Added a "Manage" CTA as well that brings users to the
Pipelines page
<img width="799" height="234" alt="image"
src="https://github.com/user-attachments/assets/50a0c64a-6afe-44e2-9bf8-a21e8ecfc47a"
/>

Also small nit but this PR fixes the weird list decorator in the rows
too
<img width="165" height="81" alt="image"
src="https://github.com/user-attachments/assets/8c0a0ff6-225f-48d1-a25f-8ffa9e65533c"
/>
2026-11-16 10:50:47 +07:00
8e2fd7c578 feat(go): use HubSpot embed and add Growth Leads section on aws-reinvent schedule (#53431)
## What

Two changes to `/go/aws-reinvent/schedule`:

1. Replaces the custom scheduler with HubSpot's native meetings embed
for `wendie-cheung/aws-reinvent-2026`, so the calendar shows exactly
what HubSpot shows for the link.
2. Adds a "Meet our Growth Leads" section above the scheduler: cards
with headshots for Nate Asp (VP of Sales), Brad Gyger (VP of Success),
and Kris Talajic (Growth Lead). The headshots already exist under
`/images/blog/avatars/`.

One file changed: `apps/www/_go/events/aws-reinvent-2026/schedule.tsx`.

## Review instructions

Open `/go/aws-reinvent/schedule` and confirm the Growth Leads section
shows all three headshots above the scheduler, and the HubSpot calendar
loads below it.

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

---------

Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 14:16:02 +11:00
Danny White 000320e914 fix(studio): keep form text consistent across breakpoints (#53429)
## Problem

Small and medium form controls and related text grow from 14px to 16px
below a viewport breakpoint, making them larger than surrounding
dashboard text.

## Solution

Keep these sizes at 14px across breakpoints in shared controls and form
layouts, plus Studio search fields and assistant textareas. Explicit
large and extra-large variants keep their existing sizes. The shared
sizing change also applies to buttons.

```diff
- text-base md:text-sm
+ text-sm
```

This accepts iOS Safari’s automatic zoom when focusing smaller editable
fields. User zoom remains available.

Validation: Prettier, scoped Studio ESLint, and whitespace checks pass.
Browser checks and a full build have not been run.

## Review instructions

1. Open a project’s **Settings > General**. Resize across 768px and
check that field text, labels, helper text, and buttons keep the same
font size.
2. Open the organisation/project selector and resize across 640px. Its
search text should stay at 14px.
3. Open the assistant and check that its textarea text stays the same
size across 768px.
4. On an iPhone, focus an editable field and check that the accepted
focus zoom behaviour remains usable.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-11-16 09:56:27 +11:00
Monica Khoury ad69889569 feat(studio): show Google client IDs one per line when read-only (#53321)
## Problem

In the Google sign-in provider settings, the Client IDs field is a
single-line input. When several comma-separated IDs are configured, the
value overflows the input, so it is hard to tell whether an ID is
already present.

Linear: FE-4476

## Solution

Show the IDs one per line when the field is not being edited, and the
original comma-separated string while it is focused.

- Not focused: the field is read-only and shows one ID per line, in the
stored order.
- Focused: the field is editable and shows the exact stored string.
- The stored value, the validation, and the API payload are unchanged.
Typing does no conversion.
- If the field is read-only or disabled, it stays in the one-per-line
view.

It adds a small `CommaSeparatedListInput` component and a new
`comma-separated-list` field type, used only for the Google Client IDs
field.

## Review instructions

1. Open a project and go to Authentication > Sign In / Providers >
Google.
2. Enable Google sign-in and enter several client IDs separated by
commas, then save.
3. Reload the page and reopen Google. Check that the IDs show one per
line, in the order you saved.
4. Click into the field and check that it shows the original
comma-separated string.
5. With Google enabled, add a trailing comma or a space and click Save.
Check that the validation error appears and no request is sent.
2026-11-15 10:52:49 +02:00
Miranda Limonczenkoandcoderabbitai[bot] 33c8ab1dbf feat(docs): keep a forced Option 1 for the browser session (#53381)
Part of DOCS-1474

## Problem

Someone dogfooding the new navigation opens `?docs-ia-mvp-v1=option-1`,
clicks a link, and sees today's navigation again.

The override lives only in the URL. Links do not carry the query string,
so the first click drops it. Everyone who uses the override link is
affected, including people outside the PostHog rollout.

## Solution

- **Save the override:** a forced variant is saved in `sessionStorage`
and read on later pages. Closing the tab clears it.
- **Read it before paint:** the head script reads the saved override, so
a full reload does not flash today's navigation.
- **Keep exposure clean:** a saved override records no PostHog exposure,
the same as a URL override.
- **Switch back:** `?docs-ia-mvp-v1=control` replaces the saved value.

**Priority:** the URL wins over the saved override. The saved override
wins over the PostHog value.

**Not changed:** the `/docs/ia/option-1/…` rewrite that the evals use,
and how PostHog assigns visitors.

**Tests:** `vitest run features/IaNav` passes, 7 files and 32 tests.
Three of the four new tests failed before the change. The fourth, a URL
`control` over a saved `option-1`, passed before and guards the
priority.

**Unverified:** typecheck, ESLint, and the steps below. `tsc` reports no
errors in `IaNav`, but this worktree has no generated GraphQL types.
ESLint did not run.

## Manual testing

1. Open the deploy preview at `/docs?docs-ia-mvp-v1=option-1`. The top
nav shows "Run and manage".
2. Click any guide link. The nav still shows "Run and manage".
3. Reload the page. The nav shows "Run and manage" with no flash of
today's navigation.
4. Open `/docs?docs-ia-mvp-v1=control`, then click any guide link. The
nav shows today's navigation and keeps it.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-11-13 12:12:07 -08:00
Stojan DimitrovskiandClaude Sonnet 5.5 acde41a2e2 feat(studio): add magic link and email OTP toggle to email provider settings (#53308)
## What changed

Adds an "Enable magic links and email OTP" toggle to the Email provider
settings in Auth. It maps to the new
`EXTERNAL_EMAIL_MAGIC_LINK_DISABLED` auth config field, inverted in the
UI the same way `SMS_AUTOCONFIRM` is (via `doubleNegativeKeys`).

## Notes

- `packages/api-types` does not include the new field yet; the form
reads config values untyped, so this works before the types are
regenerated.
- Typecheck shows no errors under `Auth/`. Not yet verified in the UI
against a backend that returns the field; no tests added.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 19:35:37 +01:00
kemal.earth df03d7349f feat(studio): saved views follow up (#53375)
## Problem

The saved views feature in Unified Logs had a few rough edges:
- The "no saved views" state in the dropdown was a plain disabled menu
item with no context on how to get started.
- The "save as view" suggestion banner title had an exclamation mark
that didn't match the rest of the app's tone.
- The Save View dialog's filter/options summary was a flat list of
grouped text rows, which didn't visually connect to the pill-style
filters users had just built on the filter bar.

## Solution

- Added a proper empty state to the saved views dropdown (icon, title,
description) using the shared `EmptyStatePresentational` pattern, sized
down to fit the compact dropdown.
- Dropped the exclamation mark from the "You've configured N filters"
suggestion banner title.
- Reworked the Save View dialog's filter and options summary to render
as pills matching the filter bar's visual style, instead of grouped text
rows — one pill per filter condition, plus matching pills for view
options, with slightly larger spacing between the two sections.

## Review instructions

1. Open Unified Logs, apply 3+ filters, and open the saved views
dropdown with no views saved — confirm the new empty state.
2. Configure filters until the save suggestion banner appears — confirm
the title has no exclamation mark.
3. Click "Save view" and confirm filters/options render as pills
matching the filter bar's style.

_You need to enable the flag `logsSavedViews` locally_.
2026-11-13 17:48:20 +00:00
anthony lio d7308d776c ci(kb): run the shadcn lint ratchet on kb (#51584)
## Problem

kb has no eslint config and no `lint` script, so the shadcn tailwind
rules that already check www, docs, design-system, ui-library and learn
never run on it

## Solution

- moved the `supabase/shadcn` block out of
`eslint-config-supabase/next.js` into its own
`eslint-config-supabase/shadcn.js` + `next.js` imports it, so the rules
and settings stay in one file
- added `apps/kb/eslint.config.cjs` + `lint` and `lint:ratchet` scripts
- `.astro` files get linted too, not just `.ts`/`.tsx`
- added kb to `lint-ratchet.yml` and `lint-ratchet-decrease.yml`

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. run `pnpm --filter ./apps/kb run lint` and check for 5 warnings, all
in `.astro` files
2. run `pnpm --filter ./apps/kb run lint:ratchet` and check it prints
`Stable: No regressions for selected rules.`
3. add `className="p-[13px] bg-[#fff] foo-bar"` to any kb `.tsx`
component and rerun step 3. it should fail with 3 new warnings

## 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)
2026-11-13 19:26:38 +02:00
Musa Jundi 03e2726f32 docs: add Musa Jundi to humans.txt (#53240)
## Problem

Add Musa Jundi to the Supabase team list.

## Solution

Insert name into sorted list in `apps/docs/public/humans.txt`.

## Review instructions

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. Check that my full name, Musa Jundi, is added in alphabetical order
in `humans.txt`.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-11-13 16:34:51 +00:00
Matt Rossman ddabeac30c feat(studio): enable EU Assistant tracing (#53332)
Enables Braintrust tracing and feedback for Assistant chats on EU-region
projects. This was the final holdout that makes it so that tracing is
applied consistently across all projects.

Adds `projectRegion` metadata to root traces so the project’s region is
recorded with each chat (consistent with the existing
[isHighComplianceProject
metadata](https://github.com/supabase/supabase/blob/917dcb388939b8c54ea13c1e31b3c7285fb2ca65/apps/studio/lib/ai/generate-assistant-response.ts#L188)).

Verified in staging with a [successful Assistant trace recording
`projectRegion:
eu-central-1`](https://www.braintrust.dev/app/supabase.io/p/Assistant/logs?r=1b4a05d7a6c1414e62f532094aa39dc1&sid=4fdc76b08a4c5a43).

<img width="2656" height="1560" alt="CleanShot 2026-11-12 at 1 12 30
PM@2x"
src="https://github.com/user-attachments/assets/4e81033a-c754-46db-845d-586d1d71e035"
/>

Closes AI-1197
2026-11-13 11:02:46 -05:00
anthony lio 22ea45a3ba feat: getting started v2 (#52511)
## Problem

* the getting started page is a stack of content listings: an overview,
use cases, framework quickstarts and tutorials
* a new reader must find a path in that list, and the page gives no
commands or agent prompt for their setup

## Solution

* adds a stepper to the getting started page, so a reader gets the steps
and an agent prompt for their setup
* adds the `docs-getting-started-v2` posthog flag, so the stepper and
the current page can run as an a/b test
* adds events for stepper choices, link clicks and prompt copies, so the
test can compare the two pages
* adds a markdown export of the stepper, so the `.md` page lists every
path for agents
* moves the iso shapes from kb into `ui-patterns`, so the docs feature
cards use the same shapes as the kb heroes
* changes the edge functions shape to a flat puzzle piece, because the
old shape had too many parts

<!-- linear:table-colwidths:397,397 -->
<table>
<thead>
<tr>
<th>state</th>
<th>preview</th>
</tr>
</thead>
<tbody>
<tr>
<td>after</td>
<td>


https://github.com/user-attachments/assets/7127d817-4240-4d08-a1c9-6ada1b1b2563

</td>
</tr>
</tbody>
</table>

## Review instructions

1. open
[/docs/guides/getting-started?docs-getting-started-v2=stepper](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper>)
and make sure that the stepper shows with agent selected
2. select next.js and the auth card, then make sure that the setup
prompt names next.js and has a step for auth
3. open
[/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs>)
and make sure that connect your app shows the install command and the
quickstart button

## 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>)
2026-11-13 17:46:38 +02:00
supabase-vercel-tedd[bot]andIvan Vasilov c8748c7c26 chore: pin Node.js to v24 across the repository (#53287)
## Problem

`engines.node` used open-ended ranges (`>=22.23.4` at the root,
`>=22.12.0` in `apps/kb`). Vercel resolves an open-ended range to the
newest Node.js major, so it overrides the project's configured version
and warns that future majors will be picked automatically. The other
apps declared no engine at all, and `.nvmrc` (used by local dev and CI)
still pointed at Node 22.

## Solution

Pin Node.js 24 everywhere the repo declares a Node version:

- `.nvmrc`: `22.23.4` -> `24.22.3` (latest v24 LTS). CI workflows read
`node-version-file: .nvmrc`, so they follow.
- Root `package.json` and `apps/kb/package.json`: `engines.node` ->
`24.x`.
- Every other app (`design-system`, `docs`, `learn`, `lite-studio`,
`studio`, `ui-library`, `www`): add `engines.node: "24.x"`. Vercel reads
the Node.js version from `engines.node` in the project's `package.json`;
`vercel.json` has no setting for it, so this is how each Vercel project
gets an explicit version.
- `.agents/skills/test-the-docs/sandbox/Dockerfile`:
`node:22-bookworm-slim` -> `node:24-bookworm-slim`.
- `AGENTS.md`: update the stated Node requirement.

Notes:

- `engineStrict: true` is set in `pnpm-workspace.yaml`, so `pnpm
install` now requires Node 24 locally.
- `.github/workflows/self-host-tests-smoke.yml` hardcodes `node-version:
'22'` and is not changed here.
- No builds or tests were run for this change. Checked that all changed
`package.json` files parse and that Prettier passes on the changed
files.

## Review instructions

1. Open the Vercel build logs for this PR's deployments (studio, docs,
www, kb, and so on).
2. Confirm each build uses Node.js 24.x.
3. Confirm the logs no longer show the warning that the `engines` field
overrides the project's Node.js version, or the warning about automatic
upgrades to new major versions.
4. Confirm CI jobs that use `.nvmrc` set up Node 24.22.3.

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


[FE-5004](https://linear.app/supabase/issue/FE-5004/bump-the-nodejs-version-across-the-repository)

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-11-13 15:30:34 +01:00
Kody Jackson 59faa5042d content(kb) - auth providers listicle (#53184)
## Context

general auth providers listicle (more broad than `auth providers with
supabase` or `passwordless auth providers`)

## Preview link


https://kb-git-kody-devrel-809-auth-providers-listicle-supabase.vercel.app/kb/guides/best-authentication-providers
2026-11-13 08:23:48 -06:00
Pamela Chia 4998b77ab2 feat(studio): ask whether org creators know how to code (#53317)
I added the "Do you know how to code?" question (Yes / No, optional) to
the onboarding survey on the new organization form and in the follow-up
dialog. The answer is sent as `can_code` in the same survey request as
the other answers. I removed an earlier version of this question before
the survey shipped because the platform didn't store it; the platform
now accepts `can_code`.

**Changed:**
- **New question, always visible**: it shows on both surfaces without
waiting on another answer, so it can be answered on its own. Only the
`org_form` arm of the experiment shows the survey.
- **Follow-up dialog shows every question at once**: "What are you
building?" used to appear only after "Who is this org for?" was
answered. "How many people?" still appears only for the Company org
type.
- **Follow-up card above other banners**: I raised its priority in the
banner stack so it sits in front of the project-page cards for its
five-minute window.
- **Telemetry**: I added a `hasCanCode` boolean to
`onboarding_survey_submit_button_clicked` and
`onboarding_survey_submit_failed`.

**Note:** Merge only after the platform change that accepts `can_code`
is in production: before that, the API drops the key and still returns
204, so answers are lost with no error. The change is live once
`can_code` is listed under `OnboardingSurveyBody` in the production
platform OpenAPI spec. I widened `OnboardingSurveyBody` locally because
`packages/api-types` can only be regenerated once the production spec
has the field.

## To test
Setup: sign in and set the `onboardingSurveyPlacement` flag to
`org_form` with the dev toolbar.

Tested on the PR preview:
- [x] Open `/new`: expect "Do you know how to code?" below "What are you
building?" with Yes then No, before any other question is answered.
Answer both and create the org: expect one `POST
/platform/organizations/onboarding-survey` whose body has `building` and
`can_code`. Observed: both questions on the untouched form, options Yes
then No; one request, 204, body has `"can_code":"yes"`.
- [x] Create an org with only "Do you know how to code?" answered:
expect one request whose body has `can_code` and no `building` key.
Observed: one request, 204, `"can_code":"no"`, no `building` key, and no
follow-up card on the new org's page.
- [x] Create an org with the org type changed to Company, a size picked
and "Do you know how to code?" answered, leaving "What are you
building?" blank: expect one request with `kind`, `size` and `can_code`,
and no follow-up card on the new org's page. Observed: one request, 204,
`"kind":"COMPANY","size":"50","can_code":"yes"`; no follow-up card.
- [x] Create an org with "What are you building?" answered and the new
question left blank: expect the request body to have no `can_code` key,
and the org to be created. Observed: one request, 204, no `can_code`
key.
- [x] Create an org without touching the survey, then open the new org's
page: expect the "Help improve Supabase" card. Click Answer: expect all
three questions in the dialog right away. Answer all three questions and
send: expect one request with `kind`, `building` and `can_code`.
Observed: no survey request at creation; the card shows on the org page;
the dialog opens with all three questions blank; one request, 204, body
has `"can_code":"yes"`.
- [x] Set the flag to `control` and open `/new`: expect no survey
questions. Observed: none of the survey questions render.
- [x] Added check: `onboarding_survey_submit_button_clicked` carries
`hasCanCode`. Observed: `true` when answered on both surfaces, `false`
when left blank.

## Linear
- fixes GROWTH-1487
2026-11-13 23:14:29 +09:00
kemal.earth f1d9d3a96a feat(studio): add saved views in unified logs (#53286)
Persist saved views through project-scoped content endpoints. Restore custom attribute filters and saved options, and validate content with focused Zod schemas.
2026-11-13 14:55:26 +01:00
Charis b046f12571 chore(api-types): update generated API types from production (#53364)
Regenerates the API types with `pnpm api:codegen:prod` and fixes the
Studio type errors the new types caused.

## Changes from the API

- **Branch merge now requires production write permission.** `POST
/v1/branches/{branch_id_or_ref}/merge` changed from accepting either
`branching_development_write` or `branching_production_write` to
requiring `branching_production_write`. Studio's FGA refinement for
merge no longer matched and failed typecheck.
  - Removed the merge entry from `lib/fga-refinements.ts`.
- `merge.tsx` checks merge permission with `useGrant` instead of
`useBranchGrant`.
  - `BranchMergeGrant` uses `GrantFor` instead of `GrantForVariants`.
- Removed merge from the "requires a variant" test in
`guarded-fetch.test.ts`.
- Users with only development branching permissions can no longer merge
in Studio. This matches what the API now enforces.
- **Replication pipelines have a required `cluster_id`.** Added it to
the pipeline fixtures in six test files.
- **`MemberWithFreeProjectLimit` has a required
`free_plan_organizations`.** Added it to the mock in
`tests/pages/new/[slug].test.tsx`. No app code reads it yet.

## Testing

- `pnpm typecheck` passes.
- Vitest passes for the affected Studio tests.
2026-11-13 08:02:50 -05:00
Barry Roodt 64fad1a785 chore(studio): bump @supabase/mcp-server-supabase to 0.17.0 (#53360)
## Problem

Self-hosted Studio is on `@supabase/mcp-server-supabase` 0.16.0, and
[0.17.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.17.0)
is out.

## Solution

Bump the package from `^0.16.0` to `^0.17.0`. No code changes are
needed: the breaking change in 0.17.0 is in the `elicitation` options,
which self-hosted Studio doesn't set.

This also picks up 0.16.1, which enables the notebook tools by default.
The self-hosted platform is still typed without `notebooks`, so those
tools stay out, and the existing test in
`tests/routes/api/mcp/index.test.ts` covers that.

## Review instructions

1. Check that CI passes.
2. Run self-hosted Studio, connect an MCP client to `/api/mcp`, and see
that `tools/list` returns the tools with no notebook tools.

Closes [AI-1487](https://linear.app/supabase/issue/AI-1487)
2026-11-13 13:10:35 +02:00