Commit Graph
22196 Commits
Author SHA1 Message Date
39b359a70e chore: keep db partner roles out of picker (#54019)
## Problem

Newly added trusted partner roles appear as user selectable /
manageable. Resolves DEPR-735.

## Solution

Trusted partner roles should not be selectable in temporary access. And
should not appear as modifiable in the database roles tab.

| Before | After |
| --- | --- |
| <img width="553" height="398" alt="CleanShot 2026-11-27 at 12 24 43"
src="https://github.com/user-attachments/assets/14affc16-2f00-496f-a124-d918acd93bf0"
/> | <img width="553" height="363" alt="CleanShot 2026-11-27 at 12 25
00"
src="https://github.com/user-attachments/assets/de06002f-d063-453e-a9da-00eee8e0616d"
/> |
| _This partner role `this_is_a_test` shouldn’t be here._ | _Partner
role `this_is_a_test` is no longer in the list of options._ |
| <img width="940" height="305" alt="CleanShot 2026-11-30 at 10 34 52"
src="https://github.com/user-attachments/assets/bdface9f-b3f4-4620-b567-cba8d829205e"
/> | <img width="935" height="299" alt="CleanShot 2026-11-30 at 10 37
40"
src="https://github.com/user-attachments/assets/da1abaa3-5a98-4837-9e8f-35be84b6be4c"
/> |
| _Previous definition._ | _Broadened definition to better encompass
roles we generally manage
([context](https://github.com/supabase/supabase/pull/54019#discussion_r4716757425))._
|

## How to test

1. Open the [Studio staging
preview](https://studio-staging-git-chore-depr-735-supabase.vercel.app)
and select a staging test project. If **Temporary access** is off in
**Feature previews**, enable it there. Then go to **Database → Settings
→ Temporary access** and make sure it is enabled for the test project.
2. Go to **Database → Roles**. Open Chrome DevTools, select **Network**,
and reload. Filter for `key=database-roles`. Right-click the matching
request and select **Override content**.
3. Append this test role to the roles array. Save the override and
reload.

```json
{
  "id": 99999,
  "name": "this_is_a_test",
  "isSuperuser": false,
  "canCreateDb": false,
  "canCreateRole": false,
  "inheritRole": true,
  "canLogin": true,
  "isReplicationRole": false,
  "canBypassRls": false,
  "activeConnections": 0,
  "connectionLimit": 90,
  "validUntil": null,
  "comment": "{\"_supabase\":{\"oauth_app_id\":\"app\"}}",
  "config": {}
}
```

4. In **Database → Roles**, make sure that `this_is_a_test` appears
under **Supabase managed roles** without edit or delete controls.
5. Go to **Database → Settings → Temporary access**, select **Add
rule**, and open the role picker. The test role should be absent.
6. Set the test role's `comment` to `null` in the override and reload.
Open **Add rule** again and make sure that the role is now selectable.
Close the form without saving and remove the override.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
2026-11-30 15:35:30 +01:00
Pamela Chia c1a71cb1d7 docs(cli): clarify telemetry data and opt-out value (#54172)
The CLI telemetry section said only that the CLI collects "general
usage" data, and it named the opt-out variables without saying the value
must be exactly `1`. I tightened it to one sentence on what the data is
and what it is linked to, the exact-`1` rule, and the switch for the
release check.

**Changed:**
- **What is collected**: I replaced "general usage" with a short
summary: usage data such as the commands you run, linked to a device ID
and, when you authenticate the CLI, to your Supabase account.
Authenticating covers both `supabase login` and an access token in CI.
- **Opt-out value**: I added that `SUPABASE_TELEMETRY_DISABLED` and
`DO_NOT_TRACK` must be exactly `1`. Other values, such as `true`, leave
telemetry on.
- **Release check**: the check for a newer CLI release is separate from
telemetry and its switch, `SUPABASE_NO_UPDATE_NOTIFIER=1`, had no docs.
I added two sentences.

**Note:** every statement on the page holds for the current stable CLI,
so this does not wait on supabase/cli#7811 reaching a stable release. I
left out a link to the CLI repository's analytics reference because that
file tracks the development branch and already describes behavior the
stable CLI does not have. The `Telemetry` and `How to opt out` headings
are unchanged, so existing links to those anchors keep working.

## To test

Tested on the PR preview:
- [x] Open
`/docs/guides/local-development/cli/getting-started#telemetry`, expect
the page to scroll to Telemetry and the first paragraph to mention a
device ID and your Supabase account. Observed: the Telemetry heading is
in view (the section sits near the end of the page, so it lands
mid-viewport) and the paragraph reads as written in the diff.
- [x] Open
`/docs/guides/local-development/cli/getting-started#how-to-opt-out`,
expect the opt-out steps, then "The value must be exactly `1`.", then a
paragraph naming `SUPABASE_NO_UPDATE_NOTIFIER=1`. Observed: the heading
lands at the top of the viewport and the three paragraphs follow the
steps in that order, with the variables rendered as inline code.

## Linear
- fixes GROWTH-1573
2026-11-30 22:21:25 +08:00
supabase-vercel-tedd[bot]andAli Waseem 08753bf24f docs: remove 90-day restore window screenshots from pausing guides (#54302)
## Problem

The docs state that a paused Free plan project can be restored for 1
year. Screenshots on the Upgrading guide and the local backup restore
guide still showed the old 90-day restore window, which contradicts the
text.

## Solution

The Upgrading guide drops the paused-project screenshot that showed a
90-day countdown. The download-backups screenshots on the Upgrading
guide and the "Restoring a downloaded backup locally" guide are cropped
to the Download backups menu, so they keep the useful part (where to
download the backup and find its Postgres version) without the outdated
90-day banner. Both images get alt text that describes what they show.
The `#90-day-window-to-restore` anchor on the Project Pausing page stays
as it is, so existing links keep working.

## How to verify

1. Open
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/platform/upgrading#time-limits
and
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/local-development/restoring-downloaded-backup#downloading-your-backup.
2. The Time limits section shows no "90 Days Remaining" screenshot, and
its one remaining backup screenshot shows only the Download backups
menu.
3. The Downloading your backup section shows the Download backups menu
with the Postgres version highlighted, and no "90 days" text.
4.
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/platform/free-project-pausing#90-day-window-to-restore
still jumps to the Restore window section.

## Checks

Ran `pnpm exec oxfmt --check` on both changed MDX files. Searched
`apps/docs/content` for remaining 90-day restore references and the repo
for references to the removed image. Checked the 1-year window against
the Studio paused-project screens (`PauseDisabledState.tsx`,
`formatRestoreWindow`). No TypeScript changed, so typecheck and lint
were not affected; `build:guides-markdown` was not run in this
environment.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] I have checked that the change works in the preview deployment

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-11-30 14:07:11 +00:00
Kody Jackson dbbfac7be1 chore(kb) - add breadcrumbs to faqs json ld structured data (#53947)
## Problem

Missing Breadcrumb schema from FAQ entries

## Preview links


https://kb-git-kody-devrel-752-faq-breadcrumb-structured-data-supabase.vercel.app/kb/faqs/auth/amazon-cognito-third-party-auth


[validation](https://validator.schema.org/#url=https%3A%2F%2Fkb-git-kody-devrel-752-faq-breadcrumb-structured-data-supabase.vercel.app%2Fkb%2Ffaqs%2Fauth%2Famazon-cognito-third-party-auth)

<img width="1528" height="904" alt="image"
src="https://github.com/user-attachments/assets/f67f9a19-e6b2-47c1-8fa6-ba2dd14b17ad"
/>
2026-11-30 08:05:23 -06:00
Kody JacksonandClaude Sonnet 5.5 f96a6daba2 chore(kb): redirect /kb/sitemap.xml to /kb/sitemap-index.xml (#53099)
## What

Adds a permanent redirect in `apps/kb/vercel.json` from
`/kb/sitemap.xml` to `/kb/sitemap-index.xml`.

## Why

Astro's sitemap integration emits `sitemap-index.xml`, but crawlers and
tools commonly look for `sitemap.xml` at a predictable location, which
currently 404s.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 08:05:08 -06:00
Saxon Fletcher a39014264b feat(studio): make add-ons findable from the command menu (#54286)
Stacked on #54186, which should merge first. It adds the section anchors the new results link to.

## What's added

Search results in the command menu (⌘K) for every add-on on the add-ons
page that didn't have one:

| Result | Goes to |
| --- | --- |
| Infrastructure | Settings → Infrastructure |
| Compute size | Infrastructure, `#compute` |
| Read replicas | Infrastructure, `#read-replicas` (read replicas
feature only) |
| Advanced disk | Infrastructure, `#advanced` (AWS projects only) |
| Dedicated IPv4 address | Add-ons, IPv4 panel open (IPv4 feature only)
|
| Point in time recovery | Database → Backups → PITR |
| SMS multi-factor authentication | Auth → MFA, `#sms-mfa` |

Also adds search keywords to the existing Custom domains, Log drains,
Pipelines and MFA results, and fixes a typo in the MFA result's search
value.

## How to test

1. Open a project and press ⌘K.
2. Search for each result above and check it lands on the right page and
section, for example `read replica`, `iops`, `static ip`, `pitr`, `sms
mfa`, `cpu`.
3. Try a keyword for an existing result, for example `cname` finds
Custom domains and `etl` finds Pipelines.
4. On a non-AWS project, `advanced disk` shouldn't appear.
2026-11-30 22:02:06 +08:00
K-Dog (Kevin) 27c4433a3e feat: revised project add-ons page (#54186)
The current add-ons page only lists a subset of available add-ons, which
often causes confusion with things like Advanced MFA Auth (customers
cant find where to configure it).

The revised add-on page covers all potentially configured project
add-ons including replicas and advanced disk. This should help the
customer locate configured add-ons and at the same time discover
potentially interesting add-ons. This can be enhanced further in the
future with "smart" suggestions based on usage.
2026-11-30 21:54:44 +08:00
supabase-vercel-tedd[bot] d86bc8fb9d fix(studio): keep the new MFA factor when clicking outside the verify dialog (#54223)
## Problem

On the account Security page, when you set up an authenticator app, a
click outside the "Verify authenticator app" dialog counts as a cancel
and unenrolls the factor that was just created. The dialog stays open
while that request runs, so you can still type a code and click Confirm,
and verification then fails with an unexpected server error. A page
element that stays clickable above the dialog, such as a consent banner,
triggers this easily.

## Solution

`ConfirmationModal` gets an optional `dismissOnInteractOutside` prop
(default `true`, so no other dialog changes). The authenticator verify
step turns it off. Only Cancel, the close button, or Escape cancel setup
and remove the unverified factor. The verify step also stays in its
loading state while an unenroll is in flight, so Confirm can't run
against a factor that is being deleted.

## How to verify

1. Open Account → Security and click Set up MFA. Enter a name and click
Generate QR code.
2. Click anywhere outside the "Verify authenticator app" dialog. The
dialog stays open, and the QR code and secret do not change.
3. Enter a valid code from the authenticator app and click Confirm. The
method is added ("MFA method added").
4. Repeat steps 1–2, enter a wrong code, and click Confirm. The toast
reports an invalid TOTP code, not an unexpected failure.
5. Repeat step 1, then click Cancel. The dialog closes and no unverified
authenticator remains in the list.
6. Open any other confirmation dialog in Studio and click outside it. It
still closes as before.

## Checks

Ran `pnpm turbo run typecheck --filter=studio --filter=ui-patterns`,
`eslint` (default and type-checks configs) on the changed Studio files,
`oxfmt --check` on the changed files, and `vitest run
components/interfaces/Account/TOTPFactors/AddNewFactorModal.test.tsx`.
The new test checks that an outside pointer or focus event does not
unenroll the factor and that Confirm then verifies it. It fails without
the fix.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] I have checked that the change works in the preview deployment
- [x] I have added or updated tests where applicable

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[FE-5246](https://linear.app/supabase/issue/FE-5246/clicking-outside-the-mfa-setup-dialog-deletes-the-new-factor-so).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-30 13:39:16 +00:00
Jordi Enric dbe2237ad3 fix(studio): let Back leave a deleted project FE-5235 (#54293)
## Problem

If a project was deleted while its Observability page was open, Studio
redirected to the project list. Pressing Back reopened the deleted
project and triggered the redirect again.

[FE-5235](https://linear.app/supabase/issue/FE-5235)

## Fix

Replace the inaccessible project’s browser history entry when
redirecting to the dashboard. Back can then reach the page visited
before the project.

## How to test

1. Open an account page and then navigate to a project’s Observability
page.
2. Simulate a 404 for the project details request and refocus the tab so
Studio revalidates the project.
3. After Studio redirects to the project list, press Back once. The
account page should open.

## QA

On the signed-in Studio staging preview for `ab907b13c0`, I opened a
nonexistent project’s Observability URL from a healthy project. Studio
redirected to the organization’s project list. One browser Back press
restored the healthy project, and Forward reopened the project list.
2026-11-30 13:13:52 +01:00
Tyler HilleryandClaude d7ad2cdb32 fix(studio): order object versions by archived_at (#54104)
## Problem

Object versions are sorted by `created_at`, but a version's `created_at`
doesn't always reflect when it was written. When a bucket is suspended,
an upload replaces the null version in place and keeps that row's
original `created_at`, so the current version can show up below older
ones in the versions panel.

## Solution

Sort by `archived_at`. The current version has no `archived_at`, so it
comes first, followed by the most recently archived.

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 12:55:14 +01:00
Gildas Garcia ce6c5e71fa feat(studio): OAuth app consent screen support for partial grants (#54213)
## Problem

Supabase admins can enable support for partial grants on some apps but
the consent screen doesn't support this scenario

## Solution

Detect partial grant support and warn users when they lack some
permissions, allowing them to confirm they want to authorize the app
anyway

<img width="846" height="2150" alt="image"
src="https://github.com/user-attachments/assets/37c48da9-395b-4425-b33d-7acdc8f3dcc1"
/>
2026-11-30 10:13:26 +01:00
Alaister YoungandAlaister Young c59821fde6 [FE-5109] (part 2) refactor(studio): migrate shared UI components off next/router (#54054)
Part 2 of a 6-PR stack migrating all `next/router` and
`next/compat/router` imports in `apps/studio` onto TanStack Router hooks
and removing the router shims.

| Part | PR | Scope |
| --- | --- | --- |
| 1 | #54053 | Core navigation helpers, `hooks/**`, `lib/**`,
`data/prefetchers/**` |
| **2** | **#54054 ← this PR** | **`components/ui/**`** |
| 3 | #54055 | `components/layouts/**` and `state/tabs.tsx` |
| 4 | #54056 | Database, Branching, Compute, Edge Functions, Explorer,
SQL Editor, Storage, Table Editor |
| 5 | #54057 | Remaining `components/interfaces/**` and
`QueryInsightsTable` router events |
| 6 | #54058 | Remove `next/router` & `next/compat/router` shims,
`_router-events.ts`, Vite aliases, and test mocks |

Migrates all 15 `apps/studio/components/ui/**` files off `next/router`.

**Changed:**

- Replaced `useRouter` across `AIAssistantPanel` (`AIAssistant`,
`ModelSelector`), `Charts/ComposedChartHandler`, `EditorPanel`,
`ErrorBoundary` (`ClientSideExceptionHandler`,
`GlobalErrorBoundaryState`, `InsertBeforeRemoveChildErrorHandler`),
`GlobalShortcuts/ShortcutsReferenceSheet`, `HelpPanel`
(`HelpOptionsList`, `HelpPanel`), `ProductMenu/ProductMenuShortcuts`,
`QueryBlock/EditQueryButton`, and `ResourceExhaustionWarningBanner` with
TanStack's `useNavigate`, `useLocation`, `useRoutePattern`, and
`useParams` from `common`
- Updated `AIAssistant.test.tsx`, `HelpOptionsList.test.tsx`, and
`ProductMenuShortcuts.test.tsx` to use TanStack Router instead of
`next/router` mocks

**Simplified:**

- `EditQueryButton` and `ShortcutsReferenceSheet` match against
`useRoutePattern()` instead of the real pathname, as `router.pathname`
did before. A ref or slug containing `sql` or `advisors` no longer
misfires.
- Removed the unused `restrictToRoutes` field from
`ResourceExhaustionWarningBanner` (no warning sets it)
- `AIAssistant` clears the handoff param with `navigate({ to: '.' })`,
dropping a pathname subscription and an `AnyRouter` cast
- `ProductMenuShortcuts` inlines its handler (`useShortcut` always calls
the latest callback)
- Moved the `AdvisorsNavigationShortcuts.test.tsx` fix into this PR so
it passes on its own
- Tests use the shared `createTestRouter` and `customRender` router

Addresses
[FE-5109](https://linear.app/supabase/issue/FE-5109/replace-the-nextrouter-shims-with-tanstack-router-hooks)

## To test

- [ ] AI Assistant panel links, model selector navigation, and "Edit in
SQL Editor" (`EditQueryButton`) navigate cleanly
- [ ] Keyboard shortcuts in `ProductMenuShortcuts` and the shortcuts
reference sheet (`?`) match the active section and navigate as expected
- [ ] Error boundary recovery ("Reload page" / navigation actions) and
Help panel links still work
- [ ] Resource exhaustion warning banner matches project routes as
before

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-30 14:49:15 +08:00
Joshen Lim 15e95ab013 Joshenlim/fe 5242 jit db access show assigned role (#54214)
## Context

Building on top of https://github.com/supabase/supabase/pull/54192,
there was a missing piece to the JIT DB access UI which was showing the
assigned access to the user if any (On staging it just shows an error,
on the previous PR we show a "Contact your project admin" CTA).

So this PR addresses that - there's a couple of cases to consider and
I'd love for design to feedback / adjust as well as I'm not convinced
this is the best way to do things. Am deliberately leaving out the
"copyable connection strings" part for now as Danny's investigating into
that one

### If you're a non-owner

If not assigned a role:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/111d7c4f-0083-4bd5-88d5-ec45974ccf4d"
/>

If assigned a single role:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/1b4b1f3c-9a20-4010-bff8-7bf68a455e26"
/>

If assigned multiple roles:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/42cc66f6-4604-42eb-ab30-f58b1396ca6b"
/>
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/0914e1a3-9c7d-463e-851d-65f6b9793bb7"
/>

If (all) access expired:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/bda0fc65-e22a-49d9-b444-fc5d58a4745a"
/>

### If you're an owner

If not assigned a role: Status quo
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/435abe70-ae88-49bb-86b9-7a03963b5b66"
/>

If yourself is assigned a role:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/9fafc74a-1a33-489e-a7da-70f57356a034"
/>

If yourself is assigned multiple roles:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/f4af901b-a24e-4272-b573-9ccb474bb7e2"
/>

If (all) access expired: Same as not assigned a role, just refer back to
the table
2026-11-30 12:57:24 +07:00
Danny White daef6f6e8d fix(studio): align scoped token permission controls (#54164)
## Problem

The scoped token editor uses different access labels from OAuth. Its
permission descriptions are smaller, and the accordion headers can cut
across the rounded corners.

## Solution

Use **No access**, **Read only**, and **Read and write** in the scoped
token editor. Each permission keeps its existing access levels. Make
descriptions easier to read, keep space around badges, and align
selectors in a column on wider screens. Use the same colour for borders
and dividers, and round the outside edges of the permission list and
capability cards.

Use sentence case for permission names in the picker and matching
documentation.

| Before | After |
| --- | --- |
| <img width="767" height="536" alt="CleanShot 2026-11-27 at 11 53 58"
src="https://github.com/user-attachments/assets/f2c36703-9383-49cb-89f0-86f3da0de10c"
/> | <img width="765" height="549" alt="CleanShot 2026-11-27 at 11 53
18"
src="https://github.com/user-attachments/assets/c5abe728-47c9-4594-9787-aff2bc54efec"
/> |

## Review instructions

1. With scoped tokens enabled, open **Account → Access Tokens** and
click **Generate new token**.
2. Choose a resource and expand a permission group. Check the available
access levels, the spacing around badges, and the selector alignment at
desktop and narrow widths.
3. Expand and collapse the first and last permission groups. Open a
scoped token’s details and check the capability card corners.
2026-11-30 16:18:31 +11:00
Joshen Lim bef044891b Improve UI for JIT DB access for non owners + use proper perms check (#54192)
## Context

For the Temporary database access feature preview, non project
owners/admins are unable to view or manage the JIT db access section,
but we currently don't guard properly against that. So this PR addresses
this by showing an Admonition instead + guard the relevant react queries
against the perms check to prevent unnecessary calls. We were also using
`FGA_PERMISSIONS.PROJECT.ADMIN_WRITE` incorrectly as there's
`FGA_PERMISSIONS.PROJECT.DATABASE_JIT_WRITE` that we can use

### Before
<img width="788" height="602" alt="image"
src="https://github.com/user-attachments/assets/90458c5a-5994-4812-abe1-17f0d3782f70"
/>

### After
<img width="836" height="284" alt="image"
src="https://github.com/user-attachments/assets/ba08aa55-6b2a-49e5-8fc0-709c7b41cd72"
/>
2026-11-30 12:15:55 +07:00
Timothy LimandClaude Sonnet 5.5 2135b29416 docs(storage): add upload FAQ (#53737)
## Problem

Recent tickets asking for some upload details and nuances of the storage
system

## Solution

Add a Upload FAQ page

## Review instructions

Just content changes but added new sidebar item so would need to check
to ensure that works as expected

## 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 `/review-the-docs`
- [ ] 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: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 07:00:58 +08:00
AnaandAna a2e41ea71b feat(www): add .NET client library to features page (#51919)
## 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?

- Adds a `Client Library - .NET` entry to `apps/www/data/features.tsx`,
next to the JavaScript, Flutter, Swift, and Python entries
- Adds a `CsharpIcon` to `apps/www/components/svg-icons.tsx`, reusing
the C# icon from the docs navigation

## What is the current behavior?

The features page has no entry for the .NET SDK, and
`/features/client-library-dotnet` returns 404.

## What is the new behavior?

- `/features/client-library-dotnet` describes the officially supported
.NET SDK: key benefits, when to use it, and how to get started
- The entry is marked General Availability and available on self-hosted,
and links to the C# reference docs

## Additional context

N/A

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-11-29 18:48:28 +00:00
anthony lio fa9594b213 feat(kb): use the ui scroll area in the guide sidebar (#54026)
## Problem

- kb article sidebar scrolls as a native `overflow-y-auto` box and shows
the os scroll bar
- kb sidebar shows a wide os bar while the docs sidebar shows the thin
`ui` scroll bar

## Solution

- replaces the native sidebar scroll with the `ui` scroll area, as in
the docs sidebar
- changes the article sidebar to fill the viewport height under the
header

| before | after |
| -------|------|
| <img width="530" height="423" alt="image"
src="https://github.com/user-attachments/assets/93a1ee19-f0d3-4a35-a290-10a133eabe48"
/> |<img width="530" height="423" alt="image"
src="https://github.com/user-attachments/assets/54210c58-5c19-4e1b-840e-21461bc475b8"
/> |

<!--
## 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.

-->

1. open the preview
[/kb/guides/migrate-from-auth0](https://kb-git-antlio-kb-guide-sidebar-scroll-area-supabase.vercel.app/kb/guides/migrate-from-auth0)
in safari with a mouse
2. make sure that the sidebar shows the thin scroll bar

## 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-28 13:25:55 +02:00
anthony lio f05fe34966 feat(ui): scroll area (#54023)
## Problem

- on `/kb/guides/migrate-from-auth0` in safari 27 on macos, the mouse
wheel does not scroll the page and a trackpad does
- radix scroll area bar in the table of contents adds a non-passive
`wheel` listener on `document`
- webkit stops mouse-wheel page scroll when that listener meets
`overscroll-behavior-y: none` on `html`, which kb sets

## Solution

- replaces radix with base ui in the `ui` scroll area parts because base
ui binds its wheel listener to the scrollbar element
- replaces the radix `display: table` workarounds in the studio token
sheets and the connect sheet with a reset of the base ui content
`min-width`
- changes the docs ask ai scroll area to use the `ui` scroll area
- adds an inset focus ring to the scroll area viewport because base ui
makes an overflowing viewport focusable
- adds a `getAnimations` stub to the jsdom test setups because the base
ui viewport calls it
- adds `@base-ui/react` to the pnpm catalog + points the design system
scroll area page at the base ui docs

<!--
## 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. open the preview
[/kb/guides/migrate-from-auth0](https://kb-git-antlio-ui-scroll-area-supabase.vercel.app/kb/guides/migrate-from-auth0)
in safari on macos with a mouse
2. turn the mouse wheel and make sure that the page scrolls and the
table of contents marks the active heading
3. open the preview
[/design-system/docs/components/scroll-area](https://design-system-git-antlio-ui-scroll-area-supabase.vercel.app/design-system/docs/components/scroll-area)
and make sure that each demo shows its bar on hover and scrolls with the
wheel
4. make sure that the horizontal demo scrolls sideways
5. press `tab` until a demo takes focus and make sure that it shows an
inset focus ring
6. open a project in the [studio
preview](https://studio-staging-git-antlio-ui-scroll-area-supabase.vercel.app/dashboard),
click `Connect` and make sure that a long code line scrolls inside its
code block and the sheet body does not scroll sideways
7. open the [docs
preview](https://docs-git-antlio-ui-scroll-area-supabase.vercel.app/docs),
press `cmd+k`, search for `auth` and make sure that the results list
scrolls

## 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-28 13:25:55 +02:00
K-Dog (Kevin) 4e589266af chore(billing): revised card errors (#54179)
- Improved error messaging around card errors and toast position to be
closer to the actual action (customers often miss it in the top right)
- For card errors when setting up payment methods with a direct error
via the Stripe API, map to an appropriate actionable error message
2026-11-28 12:57:32 +08:00
claude[bot] 5760d8981a chore(www): bump MCP server card to 0.21.0 (#54227) 2026-11-28 10:49:29 +08:00
anthony lio 5b31e21ddb feat(docs): guide video preview (#53981)
## Problem

* video card in the docs guide sidebar blurs the thumbnail making it
hard to preview
* users cannot see which video the card opens before they click it

## Solution

* adds a `GlassLens` filter wrapper to `ui-patterns` with lens curvature
and color fringe settings
* replaces the video card in both docs sidebars with a sharp thumbnail
* changes the video dialog in docs and www to fade the backdrop + skip
the zoom when reduced motion is on
* fixes the white iframe in dark mode + a one-frame backdrop flash at
the end of the close animation
* adds autoplay on open + the card thumbnail behind the iframe while the
video loads
* adds a hidden dialog title for screen readers

<!-- linear:table-colwidths:801 -->
<table>
<thead>
<tr>
<th>preview</th>
</tr>
</thead>
<tbody>
<tr>
<td>


https://github.com/user-attachments/assets/b41b3b8a-4d3e-47b3-92ea-3b2cd7629494

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

## Review instructions

1. open
[/docs/guides/database/overview](<https://docs-git-antlio-docs-video-preview-supabase.vercel.app/docs/guides/database/overview>)
in dark mode
2. make sure that the video card shows a thumbnail
3. make sure it feels better :)

## 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-27 21:44:17 +02:00
Tina HaandClaude Sonnet 5.5 653104a8bf docs: clarify disk IOPS and throughput are provisioned separately from compute capacity (#54073)
## Problem

The Compute size section of the Compute and Disk guide says the table
values are minimums that "every project of a given compute size gets".
Readers could easily take the table as the IOPS and throughput their
project gets. The page already says elsewhere that effective IOPS and
throughput are the lower of the instance limit and the provisioned disk
values (gp3 defaults to 3,000 IOPS and 125 MB/s), but that rule sits far
from the table, so the two read as contradicting each other. The same
confusion has come up several times in slack threads.

## Changes

- Compute size intro: describe the table as what the compute instance
can deliver, say it does not set the disk's IOPS or throughput, and link
to the provisioned disk section. The 8XL example now says "supports"
instead of "has".
- New note under the table: effective IOPS and throughput are the lower
of the instance limits and the provisioned disk values, with the gp3
defaults, and a pointer to Disk types for pricing.
- 4XL and above paragraph: the "configure" link pointed at a billing
page. It now points to Infrastructure settings, with the IOPS and
throughput usage pages linked for pricing.
- Corrects "From 8XL, baseline and maximum are the same" to "On larger
sizes like 4XL and above", which matches the compute table.

## Notes

- Docs prose only. No change to the table or shared data.
- The new statements restate text already on this page. The 4XL example
follows from the gp3 default and the effective-is-the-lower rule.

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

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 14:40:17 -05:00
46727fa89b docs: add guide for managing remote config as code (#50353)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Docs. A new guide for `supabase config diff`, `config pull`, and `config
push`, written for CLI v3. Relates to MARKET-1590.

## What is the current behavior?

The CLI reference lists the three commands, but no guide explains the
workflow. The Select 2026 recap blog tells users to run `config pull`
with nothing to link to.

## What is the new behavior?

- New guide at `/docs/guides/local-development/config-as-code`, in the
nav after "Managing config and secrets".
- Covers diff (labels, `--exit-code` for CI), pull (preview, git check,
where values go), push (one consent question, `--yes` for CI and agents,
the `init` defaults risk), and what push can and cannot write.
- Links to `local-and-hosted-projects` and `migrating-to-v3` for the
shared v3 target and consent rules.

## Additional context

All behavior claims are checked against `supabase/cli` `v3.4.0`.

**Related:** #50594 by @Sweta0519 adds a `config push` section to
`managing-config.mdx`. This guide includes its `[group-write]` and
`init` defaults points, with credit. It might be good to ask if we can
shrink #50594 to a short pointer to this guide, so the two do not repeat
each other.

**Needs review:** one inline `NEEDS REVIEW` comment. "The Dashboard
stays editable" is product intent from the PRFAQ, not confirmed in
platform code.

**Verified:** MDX compiles, internal links and anchors resolve, and the
preview page returns 200 and shows in the nav.

| Before (net-new page) | [After (PR
preview)](https://docs-git-nikrichers-market-1590-launch-config-d-a8be81-supabase.vercel.app/docs/guides/local-development/config-as-code)
|
| ------------------------------ | --- |
| _No production URL, new page._ |
![config-as-code-after](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr50353/config-as-code-after-v3-865d0b89.png)
|

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

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:01:58 -06:00
Maksym Ionutsa 028d329417 Fix/studio observability timezone labels (#54198)
## Problem

Observability date labels ignore the timezone set in the profile. They
always show the browser timezone or UTC. The header range label (for
example "Nov 27, 12:40pm → 12:50pm") uses bare `dayjs()`. The Data API
charts (Total Requests, Error Counts, Response Speed, Network Traffic)
pass `displayDateInUtc`, so the first and last timestamps under each
chart always show UTC.

## Solution

- Format the header range label with `useFormatDateTime()` on the
Database, Auth, Storage, Realtime, PostgREST and Edge Functions
observability pages.
- Remove `displayDateInUtc` from the four Data API charts in
`ApiRenderers.tsx`.
- Use `text-xs` for the date labels in `BarChart`, so they match
`ComposedChart` and `StackedBarChart`. This is a separate commit.

## Review instructions

1. Open Observability, Database, and set a timezone in your profile that
differs from your browser.
2. Check that the range label next to the date picker and the tooltip
show the same timezone.
3. Open Observability, Data API. Check that the labels under each chart
follow the profile timezone and use the same font size as the Database
charts.

<details>
<summary>Screenshots</summary>

<img width="1124" height="844" alt="CleanShot 2026-11-27 at 13 37 14@2x"
src="https://github.com/user-attachments/assets/e3d29c77-317a-4489-aa4c-1fbf4783cb57"
/>


font in Data API
<img width="318" height="72" alt="CleanShot 2026-11-27 at 13 40 19@2x"
src="https://github.com/user-attachments/assets/06e4d12f-245f-4d4e-9dc9-b7f2f7879e52"
/>
font in Database
<img width="342" height="66" alt="CleanShot 2026-11-27 at 13 41 08@2x"
src="https://github.com/user-attachments/assets/de200eb2-4351-471d-a220-bacea142b0d9"
/>


</details>


## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill (not applicable, no docs
changes)
2026-11-27 16:39:47 +01:00
Maksym Ionutsa cddcdf5b41 Feat/studio observability chart grids (#54202)
## Problem

Observability chart grids use a window breakpoint (`md:`), so with a
side panel open the charts stay in two narrow columns. Several pages
also stack every chart in one long column.

## Solution

- Auth and Realtime: switch the chart grid from `md:` to a container
query (`@4xl:`), so it follows the width of the content area.
- Edge Functions, Storage and the shared API report (Data API, API
Gateway sections): use the same two-column grid at `@4xl:`.
- Database: two columns at `@6xl:`, because some charts are hard to read
at half of 56rem.

<details>
<summary>Before</summary>

<img width="3262" height="2168" alt="CleanShot 2026-11-27 at 15 05
58@2x"
src="https://github.com/user-attachments/assets/8b7eb4da-f8c8-477d-861a-ecc5717867fb"
/>
<img width="3206" height="2544" alt="CleanShot 2026-11-27 at 15 06
23@2x"
src="https://github.com/user-attachments/assets/de09dcdd-574a-433e-8bcd-a84e66352bfe"
/>
<img width="1146" height="1766" alt="CleanShot 2026-11-27 at 15 07
03@2x"
src="https://github.com/user-attachments/assets/93a3a5e4-90cf-4876-847a-fa9cb96e88d5"
/>

</details>

<details>
<summary>After</summary>

<img width="3146" height="2134" alt="CleanShot 2026-11-27 at 15 08
13@2x"
src="https://github.com/user-attachments/assets/ef46c6b1-f9de-4256-b7ad-6d20e1d3e030"
/>
<img width="3168" height="2212" alt="CleanShot 2026-11-27 at 15 08
26@2x"
src="https://github.com/user-attachments/assets/b83b0d8a-77f6-4ae4-a908-b29b55450e21"
/>
<img width="1084" height="2138" alt="CleanShot 2026-11-27 at 15 09
58@2x"
src="https://github.com/user-attachments/assets/9d3b6e48-f2ef-42d2-91cf-e076136c8bcb"
/>

</details>

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-11-27 16:24:33 +01:00
Maksym Ionutsa d1c9d05335 fix(studio): correct PITR scheduled backups copy (#50861)
with PITR enabled scheduled backups copy states incorrect information
that might (and already have) confuse the customers

The backups are still taken and the WAL is archived. 

There's just no point exposing regular backups when the customer is
paying for a pretty expensive add-on, might as well point them at it
2026-11-27 16:07:04 +01:00
Dion Zeneli b6270f4a31 fix(www): redirect /buildersday to /builderday (#54200) 2026-11-27 22:17:27 +08:00
Charis fb118a978c fix(studio): link maintenance banner titles to their status page (#54195)
## What

The incident banner links to the status page, but the in-progress and
upcoming maintenance banners had no link.

The maintenance banner titles ("Scheduled maintenance in progress",
"Upcoming scheduled maintenance") now link to that maintenance's own
status page entry (`item.url`).

To support this, `HeaderBanner`'s `title` prop now accepts `ReactNode`
instead of only `string`.
2026-11-27 08:31:48 -05:00
Barry Roodt 90a0bcdcfe feat(studio): bump @supabase/mcp-server-supabase to 0.20.0 and pass schemas to type generation (#54139)
## Problem

Self-hosted Studio still uses `@supabase/mcp-server-supabase` 0.17.0,
two releases behind even before
[0.20.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.20.0).

## Solution

Bump `^0.17.0` to `^0.20.0` in `apps/studio/package.json` and update the
lockfile, which takes `@supabase/mcp-utils` from 0.10.0 to 0.11.1. The
platform interface only gained optional arguments, so the bump itself
compiles without changes.

- The debugging group gains `get_issues`, which covers security and
performance checks on self-hosted. It reports the health check as
unavailable because self-hosted has no health advisors.
- `generate_typescript_types` now accepts an optional `schemas`
parameter. Without this fix, self-hosted would silently ignore it and
could return types for different schemas than the caller requested.
`lib/api/self-hosted/mcp.ts` now passes `schemas` to
`generateTypescriptTypes` in `lib/api/self-hosted/generate-types.ts`,
which sends it to pg-meta as `included_schemas`. When the caller omits
`schemas`, self-hosted still uses the schemas PostgREST exposes. Tests
in `generate-types.test.ts` and `mcp.test.ts` cover both cases.

The MCP Apps support from 0.18.0 and 0.19.0 stays off because Studio
doesn’t opt in.

## Review instructions

1. Confirm CI passes.
2. With self-hosted Studio running, connect an MCP client to `/api/mcp`
and confirm `tools/list` includes `get_issues`.
3. Call `generate_typescript_types` with `schemas: ["auth"]` (or another
schema PostgREST doesn’t expose) and confirm it returns types only for
the requested schema.

Closes [AI-1582](https://linear.app/supabase/issue/AI-1582)
2026-11-27 15:09:38 +02:00
Julian Domke d85e9b8616 feat(billing): use new upcoming invoice data (#53342)
Makes use of the new data returned from the upcoming invoice endpoint
and wraps it in an accordion-based layout.

The current implementation is fairly bare-bones, so discussed with
@kevcodez that we roll out this version first (which should already be
an improvement), then talk to a designer on the team to get it polished.

Ran `pnpm api:codegen:prod` from the root of the repo.

The $10.01 in Compute Credits are an upstream data issue on Orb 😢 

## Testing

If you'd like to test this in the browser, these are the steps:

1. checkout commit, launch local stack, create org + project; upgrade to
paid
2. reach out to me so I can set up some usage and credits for your
project/org
3. click around the upcoming invoice


https://github.com/user-attachments/assets/6a814560-5d05-479a-a3f8-d658532b91c1

<img width="1180" height="235" alt="Screenshot 2026-11-13 at 10 03 01"
src="https://github.com/user-attachments/assets/682083b7-77ea-4da8-a599-36f5063e922b"
/>
<img width="910" height="235" alt="Screenshot 2026-11-13 at 10 02 59"
src="https://github.com/user-attachments/assets/59903f2a-2af4-4e18-8d97-35baee7401e0"
/>

<img width="815" height="140" alt="Screenshot 2026-11-13 at 12 03 17"
src="https://github.com/user-attachments/assets/4370d10a-dc5a-4010-b03e-dcf0b23140d1"
/>
<img width="507" height="143" alt="Screenshot 2026-11-13 at 12 03 21"
src="https://github.com/user-attachments/assets/3243855e-b02a-4e93-8139-5a7dfaad3230"
/>
2026-11-27 13:24:54 +01:00
Jordi Enric 832d238af3 fix(logs): apply pathname exclusions when leaving the value FE-5233 (#54127) 2026-11-27 11:02:53 +00:00
Coenen Benjamin 23424bec35 fix(studio): use Databow for Warehouse connections (#54147) 2026-11-27 10:50:10 +01:00
Pamela Chia 01c6966c9b chore(telemetry): add skill rules and rename three events (#54188)
The telemetry skill had no rules for mistakes I keep flagging in
telemetry PR reviews, two of its sections repeated the rest of the file,
and its approved verb list held verbs that no event uses or that another
verb already covers. I added the rules, collapsed the repetition, cut
four verbs, and renamed the three events whose verb is outside the list.

**Changed:**
- **New tracking rules**: I added rules for dismiss and abandonment
events (a property must be able to differ at the call site), values
captured at submit time, `track()` on conditionally rendered elements,
debounced sends, events sent just before leaving the page, experiment
exposure, and org-level events. I also added a rule for actions that
change nothing: a bulk or menu action that changed nothing sends no
result event, and a count property reports only the items that changed.
The verify step now checks that case too.
- **Shorter skill**: I changed "Review Rules" and "Implementing New
Tracking" to link to the section that states each rule. I removed the
verification checklist because each item duplicated a rule stated above
it.
- **Approved verbs**: I removed `intended` and `converted` (no event
uses them) and `sent` and `moved` (one event each, both covered by
another verb), and defined `created` against `added`. The skill now says
the list is the authority. It used to say the list was derived from
`telemetry-constants.ts`, which still holds older events with other
verbs. I also stated when each verb fires: `clicked` and `submitted` in
the handler, the rest once the result has happened. I updated the verb
list in `.coderabbit.yaml` to match.
- **Event renames**: `www_subprocessor_updates_subscribed` is now
`www_subprocessor_updates_form_completed` (still sent after the
successful response, so it keeps counting completed subscriptions),
`realtime_inspector_broadcast_sent` is now
`realtime_inspector_broadcast_submitted`, and `home_section_rows_moved`
is now `home_section_rows_updated`. Nothing else in this repo references
the old names.

**Note:** after each app deploys, the renamed event is a new series, so
a chart that spans the change needs both names.

## To test

Tested on the PR preview:
- [ ] On www, open `/legal/customer-resources/subprocessor-list`, submit
the updates form with a test email, expect one `telemetry/event` request
whose `action` is `www_subprocessor_updates_form_completed`, and no
event after a failed submit.
- [x] In Studio, open a project's Realtime Inspector, join a channel,
send a broadcast message, expect one `telemetry/event` request whose
`action` is `realtime_inspector_broadcast_submitted`. Observed: one
request with that action and a 201 response, and no event after
canceling the modal.
- [x] In Studio, on the project home page, drag a section to a new
position, expect one `telemetry/event` request whose `action` is
`home_section_rows_updated` with `section_moved`, `old_position` and
`new_position`. Observed: one request per drag, with `section_moved:
"usage"`, `old_position: 1`, `new_position: 2`.

I checked the staging analytics project: both new Studio event names
showed up with matching counts, and neither old name did.

## Linear
- fixes GROWTH-1584
2026-11-27 17:43:25 +08:00
Alaister YoungandAlaister Young d98f706b7c [FE-5109] (part 1) refactor(studio): migrate core hooks, lib, and prefetchers off next/router (#54053)
Part 1 of a 6-PR stack migrating all `next/router` and
`next/compat/router` imports in `apps/studio` onto TanStack Router hooks
and removing the router shims.

| Part | PR | Scope |
| --- | --- | --- |
| **1** | **#54053 ← this PR** | **Core navigation helpers, `hooks/**`,
`lib/**`, `data/prefetchers/**`** |
| 2 | #54054 | `components/ui/**` |
| 3 | #54055 | `components/layouts/**` and `state/tabs.tsx` |
| 4 | #54056 | Database, Branching, Compute, Edge Functions, Explorer,
SQL Editor, Storage, Table Editor |
| 5 | #54057 | Remaining `components/interfaces/**` and
`QueryInsightsTable` router events |
| 6 | #54058 | Remove `next/router` & `next/compat/router` shims,
`_router-events.ts`, Vite aliases, and test mocks |

Introduces the shared TanStack navigation helpers needed across the
stack and migrates `hooks/**`, `lib/**`, and `data/prefetchers/**` off
`next/router`.

**Added:**

- `navigateToUrl` in `apps/studio/lib/navigation.ts` (plus unit tests in
`lib/navigation.test.ts`): shared helper for navigating to internal
string URLs via TanStack's `useNavigate` (splitting pathname, search
params, and hash via `splitInternalUrl`, and handling
external/protocol-relative URLs)
- `useRoutePattern` in `apps/studio/hooks/misc/useRoutePattern.ts` (plus
`useRoutePattern.test.tsx`): returns the active matched TanStack route
template (e.g. `/project/$ref/editor/$id`) as the replacement for Next's
`router.pathname`

**Changed:**

- Migrated `hooks/misc/*` (`useHydratedQuery`,
`useStudioCommandMenuTelemetry`, `useTableEditorFiltersSort`,
`withAuth`) and `hooks/use-check-latest-deploy.tsx` to TanStack's
`useLocation`, `useNavigate`, `useRoutePattern`, and `useParams` from
`common`
- Migrated `lib/profile.tsx` and `lib/telemetry/track.ts` off
`next/router`
- Migrated `data/prefetchers/project.$ref.tsx`,
`project.$ref.editor.tsx`, and `project.$ref.editor.$id.tsx` to
`useRouter().preloadRoute`
- Wrapped `ReactQueryTestConfig` in `apps/studio/tests/helpers.tsx` with
`RouterContextProvider` and updated hook/navigation tests
(`useTableEditorFiltersSort*.test.*`,
`useFilterLifeCycle.navigation.test.tsx`,
`useTableFilter.navigation.test.tsx`, `useInboundBranding.test.ts`,
`state/tabs.test.ts`)

**Simplified:**

- `navigateToUrl` passes `replace` straight through and documents that
`url` must be an app-relative path or an external URL.
`StudioFrameworkProvider`'s `push` now reuses it.
- `useRoutePattern` reads matches and location in a single
`useRouterState` subscription
- `useTrack` and `useStudioCommandMenuTelemetry` take the pathname from
`useFramework()`, the same source as pageviews, so custom events and
pageviews always send the same pattern (e.g. `/project/[ref]/sql/[id]`).
New tests pin the strings sent, and `toRoutePattern` now has its own
unit tests.
- Removed `useCurrentPath` (a one-line wrapper with one consumer):
`OrganizationSettingsLayout` calls `useLocation` directly
- Dropped the no-op `.catch(() => {})` on `preloadRoute` in the
prefetchers (`preloadRoute` never rejects)
- `useTableEditorFiltersSort` builds the next search with a spread
instead of a delete loop
- Added `createTestRouter()` to `tests/lib/custom-render.tsx`, and
`customRender`/`customRenderHook` now return the `router`. The rest of
the stack uses these instead of hand-copied `createRouter` setups.

Addresses
[FE-5109](https://linear.app/supabase/issue/FE-5109/replace-the-nextrouter-shims-with-tanstack-router-hooks)

## To test

- [ ] Auth redirect flow (`withAuth`) still preserves `returnTo` query
parameters when redirecting unauthenticated users to `/sign-in`
- [ ] Table Editor sort and filter URL sync
(`useTableEditorFiltersSort`) persists and clears `?sort=` / `?filter=`
across table switches
- [ ] Hovering project and table editor links still triggers route/data
prefetching without console errors
- [ ] Page view and command menu telemetry still records route patterns
and paths accurately

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-27 09:37:49 +00:00
Coenen Benjamin aebdd909ce fix(studio): allow Warehouse table selection for empty publications (#54185) 2026-11-27 10:33:07 +01:00
Francesco Sansalvadore cbcdf4c84c fix(studio): storage lifecycle policy execution (#54138)
## Problem

Non-current versions in storage weren't showing the correct expiration
value based on the lifecycle policies settings.

## Solution

Fix client logic and improve communication around expiration.

Adding "Archived at" info make the version history crowded, so some
information has been moved into the dropdown menu of each noncurrent
version.

<img width="445" height="314" alt="Screenshot 2026-11-26 at 16 58 23"
src="https://github.com/user-attachments/assets/efb345f7-9a1c-4a53-b5e2-8b05505f9856"
/>

Note: when the "Newest noncurrent versions to keep" threshold is met,
older versions that exceed such thresholds will expire no earlier than
in 1d.

## Review instructions

- Enable object versioning and set lifecycle policies on a File Storage
bucket
- add new versions to reach and exceed policy threasholds
- check that expiration rules apply as intended
2026-11-27 10:25:51 +01:00
K-Dog (Kevin) ab73372c10 chore: stripe elements appearance (#54174)
- height is no longer supported
- Slightly smaller spacing unit

This gets rid of a warning in browser console as well.
2026-11-27 14:52:43 +08:00
Pamela Chia d336555617 fix(telemetry): redact url params and page titles (#54044)
The frontend apps send the current URL and page title with every
analytics event. The redaction added in #53500 and extended in #53955
only covers the `keywords` and `schema` params, so Table Editor filters,
search text, invite tokens, OAuth codes and the auth redirect hash still
go out in URL properties, and Studio's title carries the table, project
and org names.

**Changed:**
- **Query values are redacted by default**: every `name=value` in a URL
property now goes out as `name=redacted`, unless the name is one that
attribution reads downstream (`utm_*`, the click ids the first-referrer
cookie already collects, `dub_id`, `campaign_id`, `cid`, `promo_code`).
Param names and the `?` stay, so reports that match on a param being
present keep working. Fixed-vocabulary params such as `tab` are not on
the list: nothing reads them today, and several of those names carry
customer data on other pages.
- **A change to a redacted value no longer sends a pageview**: picking a
new filter value on the same page used to send a pageview, which would
now be identical to the previous one. The dedupe check compares the
redacted URL, so it is skipped. This lowers Studio pageview counts: on
current traffic, at most about 9% of dashboard pageviews repeat the
previous path with a query string.
- **Events from both transports are covered, and the hash is dropped**:
`identify` and `group` let the SDK stamp its own `$current_url` with the
hash, and `$set_once` pinned that on the person. `before_send` now
strips it, and the SDK no longer captures hashes itself. Custom events
skip `before_send`, so the same redaction also runs on their `pathname`
field, where www was appending the raw query string. The SDK's copy of a
search-engine referrer's query (`ph_keyword`) is dropped too.
- **Studio sends a route-level title**: `Tables | Database | Supabase`
in place of `users | Tables | Database | <project> | <org> | Supabase`.
The tab title users see is unchanged, and so are titles in the other
apps, which are public content.
- **Dead clicks, heatmaps and web vitals are pinned off**: each one puts
page text or the page URL in a nested payload the redaction does not
walk, and each can be switched on from project settings without a
deploy. All three are off today.

**Note:** One path is only partly covered. Feature-flag requests carry
the first URL and referrer the SDK stored for the browser, and they
never pass through `before_send`. The hash is now gone from them; query
values in that first URL (for example an invite link opened in a fresh
browser) still go out on those requests.

## To test

Signed in on the Studio preview, with analytics consent accepted. Check
events in the staging analytics project, filtered to the preview host.

Tested on the PR preview:
- [x] Open the Table Editor, add a filter with the value
`leaktest@example.com` and a sort, type `leaktest` in the Tables search
and in a logs search, then click through a few pages. Expect no event
containing `leaktest`, and `filter=redacted`, `sort=redacted`,
`search=redacted` and `s=redacted` in `$current_url`. Observed: zero
events from the preview host contained `leaktest`; custom events,
`$pageview`, `$pageleave` and `$set` all carried the `=redacted` forms.
The filter and sort were applied by loading the Table Editor URL with
them, which is how the app restores them
- [x] Same session: expect `page_title` and `title` on every event to
hold only page names (for example `Tables | Database | Supabase`), with
no project, org or table name. Observed: `Table Editor | Supabase`,
`Tables | Database | Supabase`, `Postgres Logs | Logs | Supabase`, `Team
| Supabase` and similar; no event carried the project, org or table
name. `explorer_*` events keep their existing fixed title `Explorer`
- [x] Load
`/dashboard/project/<ref>?token=leaktest1&projectName=leaktest2#access_token=leaktest3`,
then open `/join?token=leaktest4&slug=x`. Expect zero events containing
`leaktest`, including `$set`, `$identify` and `$groupidentify`.
Observed: zero, with `token=redacted&projectName=redacted` and no hash
on any stored URL. `$set` and `$groupidentify` fired and were clean; no
`$identify` fired in this session (the user was already identified), so
that event was not observed
- [x] Load any page with `?utm_source=readable5` appended. Expect
`utm_source=readable5` readable in `$current_url`. Observed on Database
> Tables with `?utm_source=readable5&gclid=readable6&tab=readable7`:
both attribution params readable, `tab=redacted`. The Table Editor route
rewrites its own query string and drops unknown params before any event
fires, so use another page
- [x] Open a table in the Table Editor. Expect the browser tab title to
still lead with the table name and include the project and org names.
Observed: `<table> | Table Editor | <project> | <org> | Supabase`
- [x] On the Table Editor with a filter applied, change the filter value
twice, then add a sort. Expect no new `$pageview` for the two value
changes and one for the added sort (a new param name). Observed, all
through the UI with no reload: adding the filter sent one pageview, the
two value changes sent none, adding the sort sent one, and a sidebar
navigation sent one; the staging analytics project shows the same four
pageviews

## Linear
- fixes GROWTH-1572
2026-11-27 03:41:51 +00:00
Sudhi Gupta 6b39a00d33 docs(self-hosted): drop the test OTP expiration from the phone guide (#54061) 2026-11-26 19:19:36 +00:00
Drew McLellan f8cd1ee63e feat(studio): track docs button clicks (#54119)
## Problem

We don't track clicks on the shared `DocsButton`, so we can't tell which
pages send people to the docs most or where the UI needs more
explanation. Closes FE-5020.

## Solution

Add a `docs_button_clicked` event, fired once per click from the click
handler in the shared `DocsButton`. One call covers every page that
renders it.

- Properties: optional `topic` (a fixed label passed by the caller,
omitted when unset). `pathname` is already attached to every event by
`useTrack`.
- Groups are `Partial<TelemetryGroups>` because the button renders on
project, organization, and account pages.
- Click still stops propagation, as before.

## Review instructions

1. Run `pnpm dev:studio` and open a page with a docs button (e.g. a
project's Auth or Database page).
2. Click it and check the `docs_button_clicked` event is sent once, with
`topic` when the button has one.
3. Run `pnpm --filter studio exec vitest run
components/ui/DocsButton.test.tsx`.

Still to do after merge: verify the event in PostHog on staging.
2026-11-26 16:28:37 +00:00
Andrey A. 3ac85eb3c6 docs(storage): update the self-hosting imgproxy example to v4 (#54145) 2026-11-26 17:17:48 +01:00
Andrey A. 4a34715279 docs(storage): update image transformation limits (#54146) 2026-11-26 17:17:42 +01:00
Drew McLellan ed1a436a4b chore(studio): remove unused data-attr from API keys pages (#54137)
## Summary

Follow-up to #54070. Removes the `data-attr` attributes added there, as
raised in review: PostHog autocapture is off (`autocapture: false` in
`packages/common/posthog-client.ts`), so they send nothing. Copy,
reveal, create and remove are all tracked with explicit `track()` calls.

Removes `data-attr` from the API key copy and reveal buttons, the delete
menu item, both create dialogs, and the initial-setup "Create keys"
action.

The two docs links and the `DocsButton` `data-attr` prop are removed in
#54119 instead, since that PR also edits `DocsButton`. The two PRs touch
different files and can merge in either order.

No behavior or tracking change.

## Testing

- `tsc`, the lint ratchet and the Studio unit tests pass.
2026-11-26 15:36:29 +00:00
Pamela Chia 0755ba6556 feat(studio): use the onboarding survey in the AWS Marketplace org form (#53938) 2026-11-26 23:27:19 +08:00
Pamela Chia 68b2b5eb1d feat(studio): ask new Vercel Marketplace org owners the onboarding survey (#53941) 2026-11-26 23:26:45 +08:00
Andrey A. 160f233b4e chore(self-hosted): remove env vars Storage no longer reads (#54132) 2026-11-26 16:40:05 +02:00
Joshen Lim 434c00cb14 Joshenlim/fe 5196 move off scaffold components for remaining (#53911)
## Context

Final clean up of deprecated Scaffold components, just touches
- Account audit logs
- Project home page
- Database -> Column privileges
- Storage -> Analytics bucket details
- Storage -> Vector bucket details
- Settings -> Infrastructure -> Disk management
- Settings -> Infrastructure -> Read replica details
- Integrations -> Wrappers overview (Only for non supported integration
UI)
- Edge functions -> Empty state
- Auth -> Performance

Also replaces usage of `ScaffoldDivider` with just the `Separator`
component
And also adjusts the page container sizes of database pages from large
to default - these only have visual differences on viewport widths
larger than a laptop

Testing just needs a quick sweep of all these surfaces to make sure
nothing looks weird - will do so on my end too once the builds go
through!

For @supabase/security's review - review requirement was triggered as
`Documents.tsx` was updated in the organization settings page. But it
was just to change the Divider component 🙏
2026-11-26 21:28:17 +07:00
49bda396bb docs(rbac): enable RLS on the RBAC tables (#48394)
## What kind of change does this PR introduce?

Documentation fix (security footgun).

## What is the current behavior?

Closes #36816.

The RBAC guide's schema block creates `public.user_roles` and
`public.role_permissions` but never enables Row Level Security on
either.

Because both tables are created in the `public` schema, they inherit the
default privileges granted to `anon` and `authenticated`. A reader who
follows the guide as written ends up with the two tables that decide
their entire authorization model readable *and writable* by any
signed-in user — a user can insert `(their_uid, 'admin')` into
`user_roles`, or add a permission to `role_permissions`, and the auth
hook will happily mint them the claim on next token issue.

It also leaves the guide internally inconsistent: the auth hook section
creates

```sql
create policy "Allow auth admin to read user roles" ON public.user_roles ...
```

which has no effect at all while RLS is disabled on that table.

The [Slack Clone
migration](https://github.com/supabase/supabase/blob/master/examples/slack-clone/nextjs-slack-clone/supabase/migrations/20240214102356_init.sql#L74-L79)
that this guide is explicitly based on does have both statements — they
just didn't make it into the doc.

## What is the new behavior?

Adds the two missing statements to the schema block, matching the
example app:

```sql
-- Secure the tables
alter table public.user_roles enable row level security;
alter table public.role_permissions enable row level security;
```

Plus a `caution` admonition explaining why this matters and why neither
table gets an `anon`/`authenticated` policy — `authorize()` is `security
definer`, so it reads `role_permissions` on the caller's behalf without
the caller needing access.

## Additional context

Docs-only change. The `security definer` `authorize()` function and the
`supabase_auth_admin` policy later in the guide continue to work; the
latter in fact only starts working once RLS is enabled.

---------

Co-authored-by: Jeremias Menichelli <jmenichelli@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 13:30:47 +00:00
claude[bot]andClaude 530ae14dab docs(auth): remove claims of automatic cleanup of expired sessions (#54123)
Removes section from the doc stating the sessions are automatically
deleted after 24 hours of expiry.

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 13:53:49 +01:00