Commit Graph
22209 Commits
Author SHA1 Message Date
Joshen Lim 64eafa5058 Replace valtio store with URL state for organization billing panels (#53353)
## Context

Realised that opening the organization billing subscription + spend cap
panels do not actually append the `?panel` URL param, but those panels
will be opened if you land on `/billing?panel=xxx` directly.

There's a discrepancy between how this state is being handled - we've
got a valtio store to handle the panel open state, and also URL handlers
as well that look out for the `panel` query param in a `useEffect` which
then updates the valtio store.

Opting to streamline these by replacing the valtio store with a simple
`useQueryState` instead.

## To test

- [ ] Verify that clicking "Change subscription plan" or "Change spend
cap" in org billing settings opens their respective panels with the
right URL param appended, and closing them removes the URL param
- [ ] Verify that landing directly on `/billing?panel=subscriptionPlan`
or `/billing?panel=costControl` opens the respective panels too
2026-11-13 17:50:39 +07:00
Joshen Lim 8f3f680d73 Use NoSearchResults for no search results in integrations (#53354)
## Context

Just swaps out to use `NoSearchResult` for empty search state in project
integrations for consistency

### Before
<img width="1146" height="422" alt="image"
src="https://github.com/user-attachments/assets/d66c1714-be55-4cbf-9de1-f5c8a2464649"
/>


### After
<img width="1145" height="333" alt="image"
src="https://github.com/user-attachments/assets/761624f4-f827-41d7-bd53-d6bcb11df4f8"
/>
2026-11-13 17:50:14 +07:00
Danny White d374842f03 fix(studio): hide email identity unlink until Auth clears password (#53352)
## Problem

Unlinking the email (password) identity from Account → Security removes
the email identity in the UI, but Auth leaves `encrypted_password` in
place. Users can still sign in with the old password, and **Add
password** fails with “Current password required when setting new
password.”

This is an Auth lifecycle bug. Until Auth clears the hash on email
unlink, Studio should not allow that unlink.

## Solution

Keep `enableAccountPassword` on so OAuth-only users can still add a
backup password (matches the changelog). Disable **Unlink** on the email
identity with tooltip “Temporarily unavailable”, and guard the confirm
handler. OAuth unlink is unchanged. Re-enable email unlink once Auth
clears the password hash.

No changelog change for now.

## Review instructions

1. Open the Studio preview → **Account → Security** → **Sign-in
methods**.
2. On an account with both GitHub and Email linked: hover the Email
unlink control and see **Temporarily unavailable**; GitHub unlink still
works; **Change password** still works.
3. On an OAuth-only account: **Add password** still appears when the
flag is on.

## 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 15:31:24 +11:00
Danny White 652c085dd0 chore(studio): remove legacy email confirmation redirect (#53250)
## Problem

Preferences still forwards email-change confirmation messages to
Security for links generated before CTRL-2060. The [platform change now
targets Security
directly](https://github.com/supabase/platform/pull/41579), so this
temporary compatibility path can be retired after rollout and link
expiry.

## Solution

Remove the legacy redirect and its two tests. Keep normal Preferences
anchor scrolling and the Security confirmation handler.

Merge after CTRL-2060 is deployed to all relevant environments and old
links have expired. The checked-in platform Auth configuration uses a
10-minute expiry; allow at least 24 hours after rollout.
2026-11-13 14:38:30 +11:00
Joshen Lim 42b6571e7d Chore/housekeeping org pages (#53303)
## Context

Some minor UI issues that I found while reviewing another PR

- Fix `NoProjectsOnPaidOrgInfo` prematurely showing while project
details is still loading
<img width="1249" height="376" alt="image"
src="https://github.com/user-attachments/assets/3f41f4a3-849f-4685-bcc4-6fed3b433042"
/>
- Fix padding alignment for Organization details form group
<img width="1115" height="282" alt="image"
src="https://github.com/user-attachments/assets/c0865614-208c-4335-87d3-176c4411b6a4"
/>
- Fix projects list on `/org/[slug]` showing stale projects while
switching orgs - just removed `keepPreviousData` so that the card
loaders shows up
- Fix organization settings in sidebar menu not showing active state
while on certain settings pages like audit-log-drains, webhooks, etc
2026-11-13 10:16:48 +07:00
Danny White e2425b7214 docs(design-system): clarify related split-button actions (#52349)
## Problem

The Button guidance explains split buttons but doesn't show how to group
a visible action with other actions for the same item or section.

## Solution

Document when to use each pattern:

- **Split button:** the main button runs the most common variation of an
action. The attached chevron opens alternatives, such as other export
formats.
- **Dropdown button:** the whole button opens a menu, such as a
time-range picker.
- **Button with more actions:** keep the main action visible and use a
separate ellipsis menu for distinct actions. The examples show both a
primary “Add pipeline” button and a default “Stop” button.

Align the Admonition split-button example with the same guidance.

## Review instructions

1. Open the [Button guidance
preview](https://design-system-git-dnywh-docs-related-split-buttons-supabase.vercel.app/design-system/docs/components/button#split-with-dropdown)
and compare the attached export chevron with the single time-range
dropdown.
2. Open each ellipsis in [Button with more
actions](https://design-system-git-dnywh-docs-related-split-buttons-supabase.vercel.app/design-system/docs/components/button#button-with-more-actions).
Check that the “Add pipeline” menu groups usage and settings separately
from “Disable Pipelines”, and that the “Stop” menu separates restart
from edit and delete.
2026-11-13 12:05:43 +11:00
Danny White c5e45baff7 fix(ui-patterns): keep admonition action surfaces opaque (#52348)
## Problem

Default buttons inside Admonition actions are translucent in the
following circumstances:
- Light mode: button hover
- Dark mode: static button

This means they show the alert surface (yellow, red, grey, etc)
unintentionally.

## Solution

Give each independent action its own FloatingPlate, with transparent
gaps between buttons. Explicit groups share one plate; fragments are
flattened. Full-width groups retain responsive sizing, while single
buttons stay snug.

| Before | After |
| --- | --- |
| <img width="1510" height="256" alt="CleanShot 2026-10-27 at 15 32
14@2x"
src="https://github.com/user-attachments/assets/2c1c285e-ffb3-4b26-a186-ce39a9b597b3"
/> | <img width="1508" height="248" alt="CleanShot 2026-10-27 at 15 32
30@2x"
src="https://github.com/user-attachments/assets/1cb86562-2227-4792-a60d-69dc1a06234d"
/> |

## Review instructions

1. Open [Admonition
examples](https://design-system-git-dnywh-fix-admonition-floating-plate-supabase.vercel.app/design-system/docs/fragments/admonition)
and find the examples with action buttons.
2. Light mode: hover the default action buttons.
3. Dark mode: just compare against the [production design
system](https://supabase.com/design-system/docs/fragments/admonition),
statically. Notice the buttons retain their standard fill.
2026-11-13 11:50:23 +11:00
Danny White 27602135da fix(docs): correct MFA recovery instructions (#53348)
## Problem

The MFA guide contains a stray quote, code fence, and editorial note.
Its replacement instructions also tell everyone to add an authenticator
first, but Studio hides **Add MFA method** when two authenticators are
registered.

## Solution

Remove the stray text and explain the replacement order for accounts
with one or two authenticators. Keep a working factor registered to
avoid disabling MFA and deleting recovery codes.

Validated with Prettier, Markdown generation, and inspection of the
generated guide.

## Review instructions

1. Open
`/docs/guides/platform/multi-factor-authentication#sign-in-with-a-recovery-code`
in the docs preview.
2. Check that the replacement instructions cover one and two registered
authenticators, with no stray quote, code fence, or editorial note.
3. Confirm the regeneration and disable-MFA sections remain separate
sections.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-13 11:19:17 +11:00
b6fdee5f54 Fix closing quote placement in case study pull quotes (#53314)
Fixes the closing quote mark showing up after the attribution (for
example after "co-founder of Loot Donkey") on six case studies.

The `prose` styles add the closing quote to the last `<p>` in a
blockquote. These pages put the attribution in its own paragraph, so the
mark landed after it.

- apps/www/_customers/loot-donkey.mdx and beeapro.mdx: wrap the
attribution in a `<div>` so the quote is the last paragraph
- apps/www/_customers/assignar.mdx, videogen.mdx, polymet.mdx, and
qa-tech.mdx: same fix, and move from markdown blockquotes to `<Quote>`
- assignar.mdx: drop the literal quote marks around the text, since the
styles already add them and they were doubled

Quote text and attributions are otherwise unchanged, including the
QA.tech link. Checked against a local build: every pull quote on all six
pages is now a single paragraph followed by the attribution.

🤖 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-13 11:10:24 +11:00
AnaandAna 6ed144283a blog: remove inaccurate failover plan claim from read replicas post (#53349)
## 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?

- Docs/content fix: removes three sentences from the Automatic Failover
section of the Introducing Read Replicas blog post (2023-12-15)

## What is the current behavior?

The post says automatic failover is available on the Enterprise Plan and
will extend to all paid plans, which was never accurate.

## What is the new behavior?

- Removes the Enterprise Plan availability claim
- Removes the plan to extend it to all paid plans
- Removes the follow-on sentence ("a step in that direction") that
depended on it

## Additional context

N/A

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-11-12 23:57:59 +00:00
Danny White b009175ab0 fix(studio): keep report toolbars clear of wrapped content (#53302)
## Problem

Funky layout. Observability report toolbars reserve a fixed height. When
controls wrap on narrow screens, they can overlap report content.
Refresh, date and Docs controls also have inconsistent alignment.

## Solution

Keep the sticky toolbar in normal document flow so its actual height
determines content spacing. Align refresh and date controls to the left
and Docs to the right across Auth, Database, Edge Functions, Data API,
Realtime and Storage reports.

<!-- linear:table-colwidths:550,137 -->
<table>
<thead>
<tr>
<th>Before</th>
<th>After</th>
</tr>
</thead>
<tbody>
<tr>
<td><img
src="https://github.com/user-attachments/assets/05c2d0cd-1893-4491-92e4-3b445ab47300
" alt="CleanShot 2026-11-12 at 17 44 20@2x" width="1652"
data-linear-height="878" /></td>
<td><img
src="https://github.com/user-attachments/assets/f8873c55-2c5d-45fa-9d40-643002ef7ff8
" alt="CleanShot 2026-11-12 at 17 44 43@2x" width="1658"
data-linear-height="850" /></td>
</tr>
<tr>
<td><img
src="https://github.com/user-attachments/assets/ac6467c0-9e08-4420-b55f-e1965bb25f3f
" alt="CleanShot 2026-11-12 at 17 45 01@2x" width="1650"
data-linear-height="252" /></td>
<td><img
src="https://github.com/user-attachments/assets/90e69f62-f811-4039-8c2b-64b3e1a3e679
" alt="CleanShot 2026-11-12 at 17 45 11@2x" width="1646"
data-linear-height="250" /></td>
</tr>
<tr>
<td><img
src="https://github.com/user-attachments/assets/657ce909-b057-4e0c-aa1a-2e9427ddb72d
" alt="CleanShot 2026-11-12 at 17 54 51@2x" width="1000"
data-linear-height="222" /></td>
<td><img
src="https://github.com/user-attachments/assets/b7763a8c-8cd2-486b-a99a-fa7c75539bf0
" alt="CleanShot 2026-11-12 at 17 53 10@2x" width="992"
data-linear-height="224" /></td>
</tr>
<tr>
<td>*Note the awkward shadow on the left and right.*</td>
<td></td>
</tr>
</tbody>
</table>

## Review instructions

1. Open **Observability > Database**, then Auth, Edge Functions, Data
API, Realtime and Storage.
2. Check refresh and date controls on the left and Docs on the right.
3. Narrow the viewport until controls wrap, then scroll. Check that the
toolbar stays sticky and report content remains below it.
2026-11-13 10:54:09 +11:00
7ef7d9f648 fix(studio): update Flask ConnectSheet env var to SUPABASE_PUBLISHABLE_KEY (#48826) (#48830)
## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

In the Connect Sheet modal for Flask
(`apps/studio/components/interfaces/ConnectSheet/content/flask/supabasepy/content.tsx`),
the example code snippet uses `SUPABASE_KEY` for `.env` and
`os.environ.get("SUPABASE_KEY")` in `app.py`. When users follow the
Flask Quickstart guide (which specifies `SUPABASE_PUBLISHABLE_KEY`),
running `app.py` raises `SupabaseException: supabase_key is required`.

## What is the new behavior?

Updated the `.env` code snippet to `SUPABASE_PUBLISHABLE_KEY` and
`app.py` to `os.environ.get("SUPABASE_PUBLISHABLE_KEY")` matching the
standard Quickstart convention.

## Additional context

Fixes #48826

Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-12 21:59:55 +00:00
Thomas GraingerandNik Richers af01ade151 Correct 'PyPi' to 'PyPI' in installation guide (#53263)
## Problem

There was a typo in PyPIs name. PyPi was used instead of PyPI

## Solution

PyPi was replaced with PyPI

<!--
## Preview links

https://supabase.com/docs/reference/python/introduction

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

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

1. Open the live and preview links side-by-side.
2. See that PyPI is correctly spelt

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-12 14:43:53 -07:00
Sean Oliver 15bee88898 feat(kb): send search query text on kb_search_submitted (#53336)
Adds the trimmed search term as a query property on kb_search_submitted, matching docs search. Goes through the existing consent-gated kb telemetry path. Refs DOCS-1588.
2026-11-12 12:58:25 -08:00
Gilles Lepretreandanthony lio 9d2455a86e docs: remove raw admonition tags from CLI config reference (#53339)
Fixes #53338

## Problem

The CLI config reference displays raw `<Admonition type="note">` and
`</Admonition>` tags in the description of `local_smtp.enabled`.

The page uses `ReactMarkdown`, which does not interpret MDX components.

## Solution

Remove the Admonition tags from `apps/docs/spec/cli_v1_config.yaml`,
keeping the explanatory text as a regular paragraph.

## Review instructions

1. Open `/docs/guides/local-development/cli/config#local_smtp.enabled`
in the preview.
2. Verify that no Admonition tags appear in the description.
3. Verify that the note about migrating from `[inbucket]` to
`[local_smtp]` is still present.

## Validation

- YAML parsing and Prettier checks passed.
- Verified the description renders without raw tags using ReactMarkdown.
- Full docs build could not run locally because workspace dependencies
  were not installed (`turbo` not found).

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: anthony lio <lionnet.ant@gmail.com>
2026-11-12 22:20:37 +02:00
Charis ed6d1b4c63 feat(studio): show error details in AlertError and attribute user faults in SQL errors (#53242)
## Problem

`AlertError` gives users and support no way to correlate a failure with
Sentry or platform logs. It also treats every failure the same: a bad
table editor filter or an offline browser gets "try refreshing, contact
support".

On the reporting side, SQL errors were attributed by who wrote the whole
statement. That made errors in the user's part of mixed SQL Studio's
fault: policy expressions, function bodies, cron schedules, table editor
filters and row edits. Marking them as user SQL instead would drop them
from Sentry entirely.

Part of FE-4772.

## Solution

**`AlertError`**
- Platform and Studio faults show the request ID, the Sentry event ID
(labeled "before sampling", since the event may be sampled out) and a
"Copy details" button.
- The copied text never includes `formattedError`, metadata, the cause
or SQL.
- SQL errors copy the SQLSTATE, position and query name instead of the
message.
- User faults (`isUserError`) show their message with "Please try again.
If the issue persists, try refreshing your browser." There is no support
link, no IDs and no copy button.
- Offline shows only "You may be temporarily offline. Check your
internet connection and try again."
- Defaults come from `getErrorPresentation`, and props the caller passes
still win. The table editor passes a filter-specific description when
filters are set.

**SQL error classification**
- `executeSql` takes an optional `isUserFaultSqlState` predicate for
Studio SQL. When it matches, the error is a `StudioSqlError` with reason
`user_input` and fault `user`, and is still redacted to SQLSTATE plus
query name.
- `isUserFaultForValues` (classes 22, 23 and P0, plus 42501 and 57014)
is for typed values: table editor filters and row edits, cron name and
schedule.
- `isUserFaultForSql` (any SQLSTATE except server classes 08, 53, 57
other than 57014, 58 and XX) is for embedded user SQL: policies,
functions, the custom access token hook.
- `isUserFaultForStatsStatement` is for `pg_stat_statements` text (Query
Insights `EXPLAIN`, index advisor). It treats 42P02 (`$1` placeholders)
as Studio's fault.
- `UserSqlError` is now only SQL the user wrote in full, and it is still
never sent.
- The policy, function and cron mutation hooks no longer take
`sqlOrigin`.

**Routing and types**
- `ERROR_ROUTING` is one table keyed by tag, then by fault. Its type
requires exactly the faults each class can produce.
- User faults get `SAMPLE_USER_FAULT` (default 0.01, set with
`NEXT_PUBLIC_SENTRY_SAMPLE_RATE_USER_FAULT`) to catch misclassification.
- The error class decides privacy (`isNeverReportedError`), separately
from the rate.
- Sentry events get a `reason` tag.
- Each class declares its `reasons`, so a mistyped reason fails
typecheck.

## Review instructions

1. Open the table editor, add a filter with a wrong-typed value (text on
an integer column). The alert shows the Postgres error, the filter hint,
and no support link, IDs or copy button.
2. Make a query fail with a platform error (e.g. block a `/platform/`
request in DevTools). The alert shows the request ID, the event ID and
"Copy details". Paste the copied text and check it has no SQL or
`formattedError`.
3. Go offline in DevTools and trigger a query. Only the offline message
shows.
4. Create a policy with an invalid `USING` expression. The toast shows
the Postgres error. In Sentry it is a `StudioSqlError` with reason
`user_input`, sampled at the user-fault rate.
5. Review `lib/errors/error-routing.ts` and
`data/error-classification.ts` for the routing table and the SQLSTATE
predicates.
2026-11-12 15:19:25 -05:00
Charis 115a2ffeef feat(studio): gate database functions, triggers, and webhooks on sql grants (#53269)
Resolves FE-4744. Part of the grants rollout; builds on the read/write
SQL variants from #53185.

## What

- **Data layer:** the database functions, triggers, database webhooks,
and event triggers queries now take a `read` grant (exposed as
`queryOptions` factories). All 8 create/update/delete mutations take a
`write` grant and mark their SQL with `asWriteSql`.
- **Guards:** the hand-written FGA checks in the functions, triggers,
event triggers, and database webhooks lists, the functions page, the
triggers layout/route, and the webhooks integration tab now derive from
grants, with denied and error states.
- **Other consumers** updated to pass grants: `CreateFunction`,
`TriggerSheet`, `EditHookPanel`, `DeleteHookModal`,
`ChooseFunctionForm`, `FunctionSelector`, `AutoEnableRLSNotice`, and SQL
editor definition/autocomplete hooks.

## Behavior changes

- **Webhooks integration tab:** was gated on
`database_webhooks_config_read`; now gated on `database_read`, which is
what the backend checks for the pg-meta query it uses. Both permissions
are granted to the same built-in roles, so there is no change for
built-in roles. A permissions-load failure now shows an error alert
instead of the content.
- **`AutoEnableRLSNotice`:** hidden unless the user has read access,
since it can't tell whether the trigger already exists without it.

## Out of scope

- User-authored SQL execution in `QueryEditor` / `useSqlEditorExecution`
stays `unguarded.migrating` (FE-4750).

## Testing

- New tests: query factories and write mutations
(`data/database-sql-grants.test.ts`), webhooks tab granted/denied/error,
functions list read/write granted/denied/error.
- Typecheck, Prettier, lint ratchet, and Studio vitest suites for
affected areas pass.
2026-11-12 14:58:01 -05:00
d11ae1a1ed docs(functions): update logging page for new logs viewer, clarify bodies are not logged (#53315)
<!-- claude-slack-attribution -->
_Requested by **Kalleby Santos** · [Slack
thread](https://supabase.slack.com/archives/C0BB4MAJW58/p1794485219774189?thread_ts=1794485219.774189&cid=C0BB4MAJW58)_

## Problem

**Before:** The Edge Functions logging page said the **Invocations**
view includes request and response "headers, body, status codes, and
execution duration". Customers asked where to find body values, but
bodies are not retained, and only some headers are kept. The page also
described separate **Invocations** and **Logs** views with an outdated
screenshot.

**After:** The page says plainly that request and response bodies are
not logged or retained, and that only a subset of headers is kept (with
the list from the `function_edge_logs` schema). It now describes the
current viewer: Edge Functions > a function > **Logs** tab, with one
list of invocations and console logs/events, the filter bar (time range,
log type, level, event message), **Live**, and the detail panel
(**Overview**, **Raw JSON**, **Timeline**, **User**). Existing content
(console methods, event types, limits, header logging tip) is unchanged.

## Solution

Updates `apps/docs/content/guides/functions/logging.mdx` to remove the
incorrect body claim and document the new logs viewer.

**How:** UI names and behavior were checked against the Studio source
(`apps/studio/components/interfaces/UnifiedLogs`, `Functions`, and the
`functions/[functionSlug]/logs` page). The header list comes from the
`function_edge_logs` schema in `packages/shared-data/log-constants.ts`.

**Skipped:** No new screenshots, since I had no demo project with a
deployed function to capture them from. I removed the outdated
`function-logs.png` from this page because the text no longer matches
it. The same image is still used in `error-handling.mdx` (Error
monitoring section) and is still outdated there. I left the file and
that page alone.

**Unverified / for review:**

- The request and response header lists are taken from the
`function_edge_logs` schema in the repo. Please confirm they match what
is actually retained on the logflare source.
- The retention statement for bodies comes from the request, not from a
code path in this repo.
- The new viewer is the "Updated Logs interface" feature preview, which
is on by default on the platform. I added a short note for users who
turned it off (legacy **Invocations** and **Logs** tabs). I did not
verify the legacy view in detail.
- The **Timeline** tab and **Attributes** sections only render when the
related logs backend and metadata features are enabled, so some users
may not see them.

## Review instructions

1. Open the preview of `/docs/guides/functions/logging`.
2. Check that no sentence claims invocation logs include a request or
response body.
3. Compare the "Explore logs in the Dashboard" section against a
function's **Logs** tab in the Dashboard.
4. Confirm the header lists under "What invocation logs contain" are
correct.

## 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 run; I followed the style guide manually. Prettier check passed
with equivalent standalone options.)

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

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com>
2026-11-12 19:33:39 +00:00
Steven EubankandClaude Sonnet 4.6 9290edd4ff docs(observability): SQL query examples for request correlation and user activity (#50748)
Adds SQL query conventions and examples to the logs querying guide.

**`advanced-log-filtering.mdx`**
- New section: correlating requests by `request_id` (from
`sb-request-id` header) and `trace_id` (from W3C `traceparent`).
Includes a note on cache hits — if `cf_cache_status` is `HIT`, no
downstream logs exist for that request.
- New section: following a user's activity across services via
`auth_logs` + `request_id` fan-out, and investigating Edge Function
invocations using `execution_id` to join `function_edge_logs` and
`function_logs`.

**`log-field-reference.mdx`**
- `traceparent` added to the captured request headers list.
- Capture limits note: `request_id`, `trace_id`, and `span_id` may
appear on any source but are not populated on every event.

## Review

Pages to check in preview:
- `/docs/guides/observability/advanced-log-filtering`
- `/docs/guides/observability/log-field-reference`

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which references
[WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md)
and the docs
[CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md)
guide

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-11-12 17:40:13 +00:00
Steve Abrams 41cdf716e8 docs:add Steve Abrams to humans.txt (#53275)
## Problem

Supabase onboarding has a task to add your name to the humans.txt file.

## Solution

This adds my name to the humans.txt file as a new Supabase team member.

## Preview links

N/A

## Review instructions

Check I spelled my name correctly and placed it in the correct
alphabetical spot.

## 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-12 12:32:05 -05:00
Kody JacksonandClaude Sonnet 5.5 5ca501cd24 chore(docs) - Remove inline Accordion component for machine readability -> details/summary instead (#53274)
## Problem

Accordion components -- as currently constructed -- aren't machine
readable b/c they require JS. Additionally, they aren't heavily used at
all.

## Solution

Removes accordion component from codebase + moves existing usage into
`<details>` / `<summary>` components. Adds some default styling for the
new HTML pattern so they look similar.

Could also refactor accordion to auto-template out details/summary too.
No strong pref here.

## Limits

The sidebar navigation accordions use radix-ui directly and are
unchanged.

## Preview links

### Before

[Creating a client
(before)](https://supabase.com/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/fd320358-7a35-46f8-b7b4-177b023e748e

### After

[Creating a client
(before)](https://docs-git-kody-devrel-850-remove-accordions-docs-mdx-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/22049184-9157-46d2-a3a6-64ca2c991e24

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:31:54 -06:00
kemal.earth 9ef93f1f19 feat(design-system): trace header and composition (#52169)
## Problem

We're adding tracing UI primitives to the design system as building
blocks for future trace waterfalls. This is PR 7, the last in a stack of
small, component-by-component PRs. The earlier PRs built the waterfall
itself. This one adds the header controls, a live demo and a docs page
that reads as one story. It also gives the zoom a way back, since
`resetWindow()` from PR 5 had no button until now.

Part of
[DEBUG-243](https://linear.app/supabase/issue/DEBUG-243/tracing-ui-primitives-stacked-prs)

## Solution

Adds the header parts, a live demo and a docs restructure.

**Header parts** (`Trace.Header`, `Trace.Title`, `Trace.Status`,
`Trace.CollapseAll`, `Trace.ResetZoom`)
- `Trace.Header` is a layout container for the controls above the
waterfall, and takes a `className`. The other parts take no props.
- `Trace.Title` shows the name of the first root span, falling back to
"Trace". There's no new field on the trace data.
- `Trace.Status` is a badge showing Live, Done or Failed. Failed means
the root span has an error status. It also renders a visually hidden
`role="status"` element with `aria-live="polite"` that announces the
same text, and has no footprint where it isn't rendered.
- `Trace.CollapseAll` toggles every span that has children, and its
label flips between "Collapse all" and "Expand all". It's disabled when
no span has children. It's cheap on large traces because it only walks
spans that have children. This uses `toggleAllCollapsed` and
`areAllCollapsed` in `utils.ts` and one bulk `toggleCollapseAll()` on
the view context.
- `Trace.ResetZoom` calls `resetWindow()`. It's disabled unless the view
is zoomed, and after a reset the window follows a growing live trace
again.

**Live demo**
- A new docs example with a ticking live trace. Spans appear and finish
as the clock advances, and it includes an error span and event markers.
- It starts paused at 0ms, with a Play/Pause button in the header. The
clock is an accumulated base value plus the start of the current play
session, so pausing freezes the elapsed time exactly and resuming
continues without a jump. It uses `minRangeMs` so the axis isn't
degenerate at the start. When it reaches the end, the badge flips from
Live to Done, and Play after that restarts from 0.
- Both demos now use Supabase request paths (such as `GET
/rest/v1/orders` and `POST /functions/v1/process-order`) as sample data.

**Docs**
- The main example is now a single composed waterfall: header, minimap,
ruler, rows, bars and inspector. The page runs from the intro to a
Composition section with that example and a snippet, then short sections
for Header, Waterfall and ruler, Rows and bars, Minimap and zoom,
Inspector, and Live traces. The static live example from PR 2 was
dropped from the composed example.

## Additional context

This is PR 7 of a stack, so it builds on
`kemal/debug-243-6-trace-inspector-popover`. The earlier exploration is
in the draft #51184, which can be closed once the stack lands.

Known and left as is:

- While a live trace grows unzoomed, finished bars and markers jump
while the ruler ticks slide. A shared `transition-[left,right,width]`
across the bar primitives would fix it, and it's a follow-up.
- The Failed state is only exercised in a test fixture, not in a docs
example. A root error in the live demo would mean Done never shows.

Out of scope: `Trace.Filter` and search, controlled `selectedId` props,
mouse-wheel or pinch zoom, zoom-to-span, row enter and exit motion,
kind-based tinting, responsive rows, and a per-span icon slot.

## Review instructions

1. Open the preview link and find the Tracing page under UI Patterns.
Check the page reads in order from intro to composition to the
individual sections.
2. In the composed example, check the title shows the root span's name
and the status badge shows Done.
3. Zoom in with the minimap. Check "Reset zoom" is disabled before you
zoom, enables after, and restores the full range when clicked.
4. Click "Collapse all". The tree should collapse to the root rows and
the label should change to "Expand all". Click again and everything
should expand.
5. Check the inspector, minimap and arrow-key navigation still work in
the composed example.
6. In the live demo:
   1. It starts paused at 0ms with a Live badge.
   2. Click Play and check time advances and bars grow.
3. Click Pause and check the elapsed time stays frozen. Wait a few
seconds, then resume and check it continues without a jump.
4. Zoom in and check the window stays fixed while the trace grows. Click
"Reset zoom" and check it follows growth again.
5. Let it run to completion and check the badge flips to Done. Play
after that should restart from 0.
7. With a screen reader or by inspecting the DOM, check the visually
hidden `role="status"` text matches the badge.
8. Switch between light and dark mode and check the header, controls and
demo are legible in both.
9. Read `Header.tsx`, the collapse helpers in `utils.ts` and the live
demo's clock logic. Run the Trace unit tests in `packages/ui-patterns`,
which now cover the collapse-all helpers, and run typecheck and
Prettier.
2026-11-12 17:16:20 +00:00
kemal.earth 42e3fb307d feat(design-system): trace inspector (#52167)
## Problem

We're adding tracing UI primitives to the design system as building
blocks for future trace waterfalls. This is PR 6 in a stack of small,
component-by-component PRs. PR 5 added the minimap and zoom, and this
one adds the inspector, which shows the details of the selected span.
Selection has been in place since PR 3 but had nothing reading it until
now.

Part of
[DEBUG-243](https://linear.app/supabase/issue/DEBUG-243/tracing-ui-primitives-stacked-prs)

## Solution

Adds `Trace.Inspector`, a non-modal popover anchored to the selected
span's bar.

- It renders nothing when no span is selected. When one is, it opens at
the bar's actual x-position, so it reserves no layout space when closed.
Place `<Trace.Inspector />` once inside `Trace.Root`.
- The content is compact and read-only: name, status badge, start
offset, duration (marked as running when the span has no end),
attributes and events.
- It's anchored with Radix Popper's virtual-element anchor. The virtual
rect re-queries the DOM within this root's tree on every position
update, and falls back from the bar (clamped to its lane) to the lane,
and then to an off-screen rect so the popover hides when nothing is
visible. `updatePositionStrategy="always"` keeps it in step with scroll,
zoom, pan and virtualization.
- `contextElement` is the tree element, so Floating UI attaches scroll
listeners to the Rows viewport and the popover follows the bar when it
scrolls.
- Lookups are scoped to this root's tree and never go through
`document`. The docs page renders several waterfalls that reuse the same
span ids, so a document-wide query would anchor to the wrong demo. The
view context gains a `treeRef` for this, with no wrapper element.
- Auto-focus on open and close is prevented, so the arrow-key navigation
from PR 3 keeps working while the popover is open.
- Radix also dismisses on focus outside, which would close the popover
on every arrow-key move. `onInteractOutside` ignores interactions inside
this root's waterfall for that reason.
- The popover is keyed per selected span, so changing the selection
re-anchors cleanly.
- `Trace.Rows` now scrolls the selected row into view when the selection
changes, reusing its existing `scrollToIndex`, so selecting a row that
isn't mounted still lands the popover in the right place.
- `formatAttributeValue` in `utils.ts` formats attribute values, with a
unit test.
- Docs: `<Trace.Inspector />` in both examples, two attributes added to
`auth.verify` so the section isn't empty, and a new "Inspector" section
on how it opens and closes.

## Additional context

This is PR 6 of a stack, so it builds on
`kemal/debug-243-5-trace-minimap` and PR 7 builds on this branch. The
earlier exploration is in the draft #51184, which stays open as
reference until the stack lands.

How it closes:

- Escape or an outside click closes it and clears the selection.
- Clicking another row switches the popover to that row without closing
it first.
- Dragging the minimap brush keeps it open.

Behaviours worth knowing before you review:

- **Zoom:** when the selected bar is fully outside the visible window,
the popover anchors under the row's lane. When it's partly visible, it
anchors to the visible part.
- **Virtualization:** when the selected row scrolls out of the Rows
viewport, the popover hides and the selection is kept. It reappears at
the row when you scroll back.
- **Viewport edge:** near the right edge the popover shifts left to stay
on screen, so its left edge may not line up with the bar.
- **Multiple roots on one page:** each root has its own non-modal
popover, so opening a popover in one demo closes the others. Escape also
only closes the most recently opened popover. Neither matters in an app
with one trace per page, so this PR doesn't add anything to prevent it.
- **Out of scope:** header controls, search, controlled `selectedId`
props, tabs or actions in the inspector, and a pinned-span mode.

## Review instructions

1. Open the preview link, find the Tracing page under UI Patterns, then
the "Inspector" section.
2. Click a bar's row and check the popover opens at the bar, just below
it, showing name, status, start, duration, attributes and events.
3. Press the arrow keys through at least three rows (Enter selects) with
the popover open. It should re-anchor each time, and keyboard focus
should stay on the rows.
4. Scroll the Rows viewport with the popover open. It should move with
the bar, and hide when the row scrolls out of view and come back when
you scroll back.
5. In the second example, select a span that has the same name as one in
the first example, and check the popover anchors to the bar in the
second one.
6. Zoom in with the minimap so the selected bar leaves the window, and
check the popover anchors under the row's lane and isn't stuck in the
wrong place. Drag the brush and check the popover stays open.
7. Check the closing behaviour: Escape closes it, an outside click
closes it, and clicking another row switches directly.
8. Switch between light and dark mode and check the popover is legible
in both. It fades in on open, so check it once it has settled.
9. Read `Inspector.tsx` and the changes to `Rows.tsx` and `Trace.tsx`.
Run the Trace unit tests in `packages/ui-patterns`, which now cover
`formatAttributeValue`, and run typecheck and Prettier.
2026-11-12 16:52:32 +00:00
Jeremias Menichelli 7051bdcdc5 fix: Make content in tab panels hidden discoverable in DOM (#53319)
## Problem

Content in non-active Tabs within Docs is not discoverable by crawlers
and LLMs scrapping the website html itself.

## Solution

Refactor our Tabs component, so now non-active tab panels stay in DOM
but hidden for the user.

<!--
## 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 a page in preview that contains tabs, for example [this
one](https://docs-git-jeremiasmenichelli-docs-1631-server-re-4f705d-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client)
2. Make sure tabs work as expected when switching their selection, this
should match production
3. Open the dev tools panel, and the HTML inspector within it
4. Make sure when you switch tabs, the content from other inactive tabs
is still present.

## 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-12 17:37:34 +01:00
kemal.earth 2895c78d0a feat(design-system): trace minimap (#52164)
## Problem

We're adding tracing UI primitives to the design system as building
blocks for future trace waterfalls. This is PR 5 in a stack of small,
component-by-component PRs. PR 4 added bars and markers, and this one
adds the minimap. It's also the first PR where the visible time window
can change, so the waterfall can now be zoomed and panned.

Part of
[DEBUG-243](https://linear.app/supabase/issue/DEBUG-243/tracing-ui-primitives-stacked-prs)

## Solution

Adds `Trace.Minimap` and the zoomable window it controls.

**Window state**
- `useView()` gains `window`, `isZoomed`, `setWindow(start, end)` and
`resetWindow()`. `resetWindow` has no button yet. The header controls
come in a later PR.
- Unzoomed, the window follows the trace bounds as a live trace grows.
Once zoomed, it stays fixed.
- `Trace.Waterfall` now builds its scale from the view window instead of
the trace bounds.
- `clampWindow` keeps the window inside the bounds with a minimum width
of 1% of the bounds, and `resizeWindow` handles edge drags. Both are
pure and tested.
- `createTimeScale` takes an `origin`, so tick labels stay offsets from
the trace start while zoomed and don't reset to 0. This was a known gap
from PR 2.
- `Trace.Bar`, `Trace.CollapsedChildren` and `Trace.Slowest` follow the
window. Spans outside it are clipped by the lane, out-of-window child
ticks are skipped, and the slowest badge hides when its bar is entirely
out of view or sits at the visible trailing edge.

**Minimap**
- A full-width strip above the ruler showing the whole trace compressed.
It draws one row per depth level, coloured by status (errors win where
spans overlap), and rows deeper than the limit fold into the last row.
Neighbouring columns are merged, so the DOM size doesn't depend on the
number of spans.
- A brush shows the visible window. Drag the body to pan, drag either
8px edge to resize, and click outside it to recentre.
- The brush is a focusable slider with an aria-label and aria-valuetext.
Arrow keys pan by 10% of the window, and Shift+arrows move the end edge.

**Transitions**
- The 300ms live-growth transitions (ruler ticks, the "now" line, the
running bar width) only apply while the view isn't zoomed, so nothing
lags behind the brush while you drag.

Docs: both example waterfalls include the minimap, and there's a new
"Minimap and zoom" section.

## Additional context

This is PR 5 of a stack, so it builds on
`kemal/debug-243-4-trace-bar-markers` and PR 6 builds on this branch.
The earlier exploration is in the draft #51184, which stays open as
reference until the stack lands.

Known and left as is:

- Once you zoom, dragging the brush back to the full range keeps the
window fixed. It stops following a growing live trace until
`resetWindow()` is called. The reset button arrives with the header
controls, so there's no reset in the docs example yet and a reload is
the way back.
- The minimap is full width and no longer lines up with the timeline
column. That's deliberate.
- Mouse-wheel or pinch zoom on the lanes, zoom-to-span and search are
out of scope.

## Review instructions

1. Open the preview link and find the Tracing page under UI Patterns,
then the "Minimap and zoom" section.
2. Check the strip above the ruler shows the trace as depth rows
coloured by status, with a brush covering the full range.
3. Drag the brush's end edge inward and check the ruler, bars, markers
and child ticks all update together with no lag, and that tick labels
still read as offsets from the trace start.
4. Drag the brush body to pan, and check bars outside the window are
clipped and don't leave stray artifacts.
5. Click on the strip outside the brush and check the window recentres
there. It stops at the bounds, so the brush won't always land under the
cursor.
6. Focus the brush and use the keyboard:
   1. Left and Right pan the window.
   2. Shift+Left and Shift+Right shrink and grow the end edge.
7. In the live example, check the minimap, ruler and bar still behave as
before while unzoomed.
8. Switch between light and dark mode and check the strip, brush and
rows are legible in both.
9. Read `Minimap.tsx`, the window state in `Trace.tsx` and the additions
to `utils.ts`. Run the Trace unit tests in `packages/ui-patterns`, which
now cover the window clamp and resize, the tick origin and the minimap
rects, and run typecheck and Prettier.
2026-11-12 16:28:48 +00:00
628557490e docs: fix grammar in RUM extension guide (#50291)
Tiny docs fix in the RUM extension guide:
- `The does` → `This does`
- `allows to order` → `allows ordering`

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

## Summary by CodeRabbit

- **Documentation**
- Corrected a grammatical typo in the `rum_anyarray_addon_ops`
description.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: mrchatam <mrchatam@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-12 15:13:30 +00:00
Anthony Lio 38f9bac61f fix(docs): express ssr client cookie (#53179)
## Problem

- the express server client in the ssr "creating a client" guide calls
`serializeCookieHeader(name, value)` without `options`
- the auth cookies then have no `path` and no `maxAge`, so the browser
limits them to the request path and drops them when the browser closes

## Solution

- adds the cookie `options` to `serializeCookieHeader` in the express
`setAll`, so the auth cookies keep the settings from `@supabase/ssr`
- changes the express sample to match the other server samples on the
page

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

- found that issue while i ran the docs agent feedback evals

## Review instructions

1. visit
[/docs/guides/auth/server-side/creating-a-client#express-create-clients](https://docs-git-antlio-fix-docs-express-cookie-options-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client#express-create-clients)
and select the express tab
2. make sure that the preview `setAll` in `lib/supabase.js` reads `({
name, value, options })` and passes `options` to `serializeCookieHeader`

## 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-12 14:59:30 +00:00
Anthony Lio 6205145edd feat(ui): heading links (#53094)
## Problem

- kb article headings have no link to their section, so a reader cannot
share a link to one part of a guide
- docs and www headings show a `#` link that only jumps to the heading,
and studio report headers use their own copy link button

## Solution

- adds `CopyHeadingLinkButton` to `ui`, with the studio look, so one
copy link button serves all surfaces
- replaces the `#` link in `Heading` with the button, so docs, www and
`ui-patterns` markdown headings copy a link on click
- adds the button to the h2 to h4 headings of kb guides, faqs and
troubleshooting articles
- changes the studio report section headers to use the shared button,
and removes their local copy logic

| before | after |
| -------|------|
| <img width="795" height="378" alt="image"
src="https://github.com/user-attachments/assets/68302dc8-829a-4af1-b1c3-5ec68d8c39e3"
/> | <img width="795" height="378" alt="image"
src="https://github.com/user-attachments/assets/b21d363e-3f27-43b0-aa0c-0efd92693d7e"
/> |

<!--
## 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
[/kb/guides/migrate-from-mysql](https://kb-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/kb/guides/migrate-from-mysql)
and hover the "Retrieve your MySQL database credentials" heading
3. click the icon and check that the clipboard holds the page url with
`#retrieve-your-mysql-database-credentials`
4. open
[/docs/guides/database/overview](https://docs-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/docs/guides/database/overview),
hover an h2 and do steps 2 and 3 again
5. repeat 3
6. open
[/blog/introducing-dbarena](https://zone-www-dot-com-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/blog/introducing-dbarena),
hover an h2 and do steps 2 and 3 again
7. open
[/dashboard/project/_/observability/auth](https://studio-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/dashboard/project/_/observability/auth),
select a project, change a filter, and copy the "Usage" section link
8. make sure that the copied url keeps the filter query string and ends
with `#usage`

## 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-12 16:19:54 +02:00
Kody Jacksonandanthony lio 2a2ef0483e feat(kb) - allow community contributions (#53100)
## Problem

We want to highlight community-contributed content in the `/kb`, while
at the same time differentiating it from Supabase authored resources.

## Solution

Adds the following:
- A new content collection for `communityGuides`, which pulls from an
associated JSON file
- That file is an array of objects `{ title, url, description, topics,
lastEdited }` pointing to external guides
- Those guides are then pulled a) into their own topic page
(`Community`) and b) into existing guides listings. In the existing
guides listings, they're marked with a `external domain ->` indicator.

## Screenshots

<img width="842" height="409" alt="Image"
src="https://github.com/user-attachments/assets/da979b11-f07b-4e3c-a00b-45fbb68d5fe5"
/>
<img width="1207" height="726" alt="Image"
src="https://github.com/user-attachments/assets/72d3d3a0-f2cb-437d-8194-9f3904b49bc7"
/>

## Preview links

- [Community
page](https://kb-git-kody-devrel-837-community-content-pattern-supabase.vercel.app/kb/topics/community)
- [Database
page](https://kb-git-kody-devrel-837-community-content-pattern-supabase.vercel.app/kb/topics/platform)

---------

Co-authored-by: anthony lio <lionnet.ant@gmail.com>
2026-11-12 08:11:23 -06:00
Kody JacksonandClaude Haiku 5.5 965ae70ff9 content(kb) - serverless functions listicle (#52719)
## Context

serverless functions listicle

## preview links


https://kb-git-kody-devrel-802-serverless-functions-listicle-supabase.vercel.app/kb/guides/best-serverless-functions

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-12 08:05:04 -06:00
Drew McLellan ce5c68198c fix(studio): sort Postgres versions newest first in the version selector (#53278)
## Problem

The internal-only Postgres version selector sorted versions by raw
string comparison, so `17.6.1.164` appeared above `17.11.0.002` and the
list looked randomly ordered. The sort also ran in place on the array
returned by React Query, which can be the cached data.

Resolves FE-4603.

## Solution

- Add `sortPostgresVersionsNewestFirst` in `ProjectCreation.utils.ts`.
It compares version segments numerically, returns a new array, and does
not mutate its input.
- Use it in `PostgresVersionSelector` in place of `.sort().reverse()`.
- OrioleDB versions are not grouped; they are ordered by version number
like the rest.
- Side effect: the default selection (the first GA version in the list)
is now the newest GA version.
- Unit tests cover numeric ordering and non-mutation.

Before:
<img width="447" height="184" alt="Screenshot 2026-11-11 at 16 00 45"
src="https://github.com/user-attachments/assets/219f26a1-1475-40ce-a0dc-49480005194f"
/>

After:
<img width="448" height="196" alt="Screenshot 2026-11-11 at 15 58 32"
src="https://github.com/user-attachments/assets/24a99b91-22ff-4667-bf96-0046a426d95b"
/>
2026-11-12 13:53:15 +00:00
Pamela Chia f2af7ea280 chore(studio): remove the terms of service update notice (#53323)
I removed the "We've updated our Terms of Service" notice from the
dashboard. It was added in #51302 and has been up since early October,
and it had no expiry of its own. I also removed its landing-path helper,
its tests and its dismissal key.

## To test
Tested on the PR preview, in a browser profile that never dismissed the
notice:
- [x] Open an organization's landing page (`/org/<slug>`): expect no
"We've updated our Terms of Service" card in the bottom right. Observed:
no card on the organizations list or on an org's landing page, with the
dismissal key unset on both.

## Linear
- fixes GROWTH-1494
2026-11-12 22:41:33 +09:00
Timothy LimandClaude Sonnet 5.5 68deb2f329 docs(storage): explain CDN caching for authenticated private files (#53160)
Add an "Authenticated URLs and CDN caching" section to the Smart CDN
page. Responses from the authenticated endpoint can be served from cache
after an RLS change or sign-out, until the user's JWT expires. Document
purging the CDN cache, lowering the access token expiry, and revocation
options (server check, S3 API).

## Problem

Questions related to authenticated endpoint caching

## Solution

Clarify caching behaviour

## 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` 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-12 21:34:04 +08:00
supabase-vercel-tedd[bot]andAli Waseem 0e29dfda1b fix(studio): return no edge functions when the self-hosted functions folder is missing (#53229)
## Problem

In self-hosted and local Studio, `FileSystemFunctionsArtifactStore`
reads the folder set by `EDGE_FUNCTIONS_MANAGEMENT_FOLDER` with
`readdir`. When that folder does not exist yet (for example, a fresh
project before any function is created), `readdir` throws `ENOENT`, the
`/api/v1/projects/[ref]/functions` route returns a 500, and the Edge
Functions page shows "Failed to retrieve edge functions" instead of its
empty state.

## Solution

- Add a private `readFunctionsFolder()` helper that returns an empty
list when the folder is missing (`ENOENT`) and rethrows every other
error.
- `getFunctions()` now returns `[]` and `getFunctionBySlug()` returns
`undefined` for a missing folder.
- Add `fileSystemStore.test.ts`, which uses real temp folders to cover
the missing folder, a non-ENOENT error (path is a file), and the normal
listing (skips `main` and folders without an `index` entrypoint).

No change to the hosted platform path.

## Review instructions

This only affects self-hosted Studio, so the Vercel preview cannot show
it. Check it with:

1. `cd apps/studio && pnpm exec vitest run
lib/api/self-hosted/functions/`: all tests pass.
2. Optional, locally: run self-hosted Studio with
`EDGE_FUNCTIONS_MANAGEMENT_FOLDER` pointing to a folder that does not
exist, open Edge Functions, and see the empty state instead of a 500.

Checks run: the Vitest command above, `pnpm turbo run typecheck
--filter='...[origin/master]'`, ESLint and Prettier on the changed
files.

## 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-4923](https://linear.app/supabase/issue/FE-4923/fix-studio-edge-functions-500-error-when-local-functions-folder-does)

---------

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-12 06:58:24 -06:00
Jagpreet Singh e0a8c7670b add Jagpreet Singh to humans.txt (#53312)
Adding myself to humans.txt as a new Product Security Engineer at
Supabase. 👋

## Problem

I recently joined Supabase as a Product Security Engineer and I'm not
yet listed in `humans.txt`.

## Solution

Added my name to `humans.txt`, following the existing format and
ordering. No other changes.

## Review instructions

1. Open `humans.txt` in the diff.
2. Confirm my name is added in the right position and format, with no
other lines changed.
3. Optionally, open the preview deployment at `/humans.txt` to see it
live.
2026-11-12 14:42:56 +02:00
41fe8c7434 Add Loot Donkey case study (#53296)
Adds the Loot Donkey customer story (two-person indie studio running the
multiplayer backend for Fool King, an asynchronous PvP auto-battler on
Steam, on Supabase).

- New file: apps/www/_customers/loot-donkey.mdx
- New logos: on-light and on-dark loot-donkey.png (horizontal layout,
wordmark on one line beside the donkey so it reads at the customer card
height)
- Fool King is linked to its Steam page in the intro; no `company_url`
- Preview:
https://zone-www-dot-com-git-case-study-loot-donkey-supabase.vercel.app/customers/loot-donkey

Before merge:
- Confirm the publish date in the frontmatter (currently 2026-11-12)

🤖 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-12 21:56:57 +11:00
73daead583 Add Assignar case study (#53297)
## Problem

Adds the Assignar customer story to the case studies on supabase.com.
Assignar builds software for subcontractors and the general contractors
who hire them, and rebuilt its product on Supabase.

Linear: https://linear.app/supabase/issue/MARKET-2504

## Solution

- New case study: `apps/www/_customers/assignar.mdx`
- New logos (full wordmark, transparent PNG):
`apps/www/public/images/customers/logos/on-light/assignar.png` and
`on-dark/assignar.png`
- `apps/www/public/customers-rss.xml` now includes Assignar. It also
picks up the BeeAPro and VideoGen entries, which were missing from the
committed copy. The file is regenerated on every build, so this only
brings the committed snapshot up to date.

Frontmatter notes: `company_size` is `enterprise`, `stats` is left empty
(key results are in the body), and the publish date is 2026-11-12.

## Preview links

| Site | Preview |
| ---- | ------- |
| WWW |
[/customers/assignar](https://zone-www-dot-com-git-case-study-assignar-supabase.vercel.app/customers/assignar)
|

## Review instructions

1. Open the preview link above and read the case study end to end.
2. Check the logo at the top of the left column in light and dark mode.
3. Open `/customers` in the preview and confirm the Assignar card shows
up with the logo.
4. Check that `/customers-rss.xml` includes the Assignar entry.

## Checklist

- [ ] 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 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-12 21:56:48 +11:00
bbe468ee0d docs: add recovery codes to the account MFA guide (#53159)
_Do not merge until the recovery codes feature flag is removed (or
opened to all users)._

## What

Adds a short **Recovery codes** section to the [account MFA
guide](https://supabase.com/docs/guides/platform/multi-factor-authentication)
and removes the note that Supabase doesn't provide recovery codes.

The new section covers:

- What recovery codes are: 10 single-use codes, shown once when you
enable MFA.
- How to sign in with a recovery code from the two-factor authentication
screen, including the temporary lock after 5 incorrect codes.
- How to generate codes for an existing MFA setup, and how to regenerate
them.
- That removing your only authenticator app disables MFA, and disabling
MFA deletes your recovery codes.

Fixes PROD-719

## Self-review

| Check | Result |
| --- | --- |
| Prettier | Pass |
| `pnpm build:guides-markdown` | Pass, page renders as expected in
`public/markdown/guides/platform/multi-factor-authentication.md` |
| Style guide critic pass | Resolved, except
`02-elements.md#pair-dashboard-steps-with-a-terminal-option`: account
recovery codes have no API or CLI path |
| `test-the-docs` | Not applicable, no runnable snippets |

## Needs review

- Draft until recovery codes are available to all accounts.
- UI labels (**Unable to sign in?**, **Authenticate using a recovery
code**, **Generate recovery codes**, **Regenerate**) match the current
Studio source.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
2026-11-12 11:23:29 +01:00
Bob Van Landuyt d370ecd717 docs: add Bob Van Landuyt to humans.txt (#53310)
## Problem

Bob Van Landuyt is not yet listed in the docs `humans.txt` file.

## Solution

Add Bob Van Landuyt to `apps/docs/public/humans.txt`, in alphabetical
order between "Beth Long" and "Bobbie Soedirgo".

## Review instructions

1. Open the diff for `apps/docs/public/humans.txt`.
2. Confirm the new line is a single addition and sits in alphabetical
order.

## 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-12 11:19:15 +01:00
Riccardo Busetti 79e7836a5a feat(pipelines): Add support for unknown destination (#53272) 2026-11-12 10:53:15 +01:00
kemal.earth 166e54309a feat(studio): improve logs attribute actions (#53271)
## Problem

Follow-up to #53170 (one-click filter/copy buttons on Unified Logs
Overview attribute rows). Review feedback: the value text disappeared on
hover to make room for the action buttons, which made it hard to read or
select, and hid what you were about to copy.

## Solution

Reworked the hover interaction on `LogFieldRow`:

- The value is never hidden. On hover-capable rows, a single small "more
actions" trigger appears at the row's edge, opening the same dropdown
menu (equals / not equals / copy) that touch devices already use —
desktop and mobile now share one interaction pattern.
- On hover, focus, or while the dropdown is open, the value slides left
by the trigger's width so it clears fully instead of sitting behind it.
- The row stays in its "active" state (background + slide) while the
dropdown is open, and resets once it closes.
- Below 768px, behavior is unchanged — the row dropdown is the only
affordance.

<!--
## 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 Unified Logs, select a request, go to the Overview tab.
2. Hover a row with a long attribute value — confirm the text stays
visible and slides left to clear the trigger button, in both light and
dark mode.
3. Click the trigger button, apply a filter and/or copy — confirm it
matches the existing touch/mobile dropdown behavior.
4. With the dropdown open, confirm the row stays in its "active" look,
and resets back to normal once it closes.
5. Resize below 768px — confirm the row-level dropdown (tap the row)
still works as before, unaffected.

## Checklist

Check all before review:

- [ ] 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-12 09:39:06 +00:00
Danny White 6fcdcdca9a fix(studio): preserve password reset after recovery-code verification (#53305)
## Problem

Using a recovery code during “Forgot password” sends the user to
organisations or their original destination before they can set a new
password. This path was introduced in #50569 and has been reproduced in
production.

## Solution

Preserve the password-recovery context through recovery-code
verification, then open the password-reset form with the original
destination intact. Match the authenticator flow by excluding password
recovery from sign-in tracking.

```diff
 Forgot password → email reset code → MFA recovery code
-  Original destination
+  New-password form → original destination
```

Adds regression tests for the recovery-code link and the
post-verification destination. Relevant tests, Studio typecheck,
production build and formatting pass.

## Review instructions

1. Open [Forgot password on the Studio
preview](https://studio-staging-git-dnywh-fix-recovery-code-pass-e363b9-supabase.vercel.app/dashboard/forgot-password)
and request a reset code for an account that has MFA and saved recovery
codes. Enter the emailed reset code.
2. Click “Authenticate using a recovery code” and submit an unused code.
This consumes the code.
3. Confirm the new-password form opens, save a new password, and confirm
navigation continues to the original destination.
4. Check that ordinary sign-in with a recovery code still opens the
original destination directly.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-11-12 16:15:45 +08:00
Anthony Lio 0ed90ae460 fix(ui): split button divider (#53258)
## Problem

- in dark mode split button shows a middle divider that is lighter and
heavier than the outer edge, and the design system
`button-split-dropdown` example has the same bug
- button edge is a translucent inset shadow over a translucent fill, so
the `-ml-px` overlap stacks two edges and two fills in one column
- light mode has the same defect on hover and with the menu open,
because the hover fill is translucent too

## Solution

- adds a `SplitButtonGroup` component to `ui`, so a split button has a
`role="group"` wrapper and one shared divider
- fixes the divider color in both themes, because only one button paints
the shared border column
- changes the shared column to follow the hovered button, so the divider
takes its edge color in a fixed place
- removes the press scale from buttons in the group, so no gap opens
between the two buttons
- changes the design system split button docs to `SplitButtonGroup`

| before | after |
| -------|------|
| <img width="428" height="219" alt="image"
src="https://github.com/user-attachments/assets/4cbc5dc9-3575-4eef-83b9-a6141796ccc8"
/> | <img width="428" height="219" alt="image"
src="https://github.com/user-attachments/assets/9c5b283d-e6bd-428a-bee1-7f59249aeb83"
/> |
| <img width="428" height="219" alt="image"
src="https://github.com/user-attachments/assets/046338f9-6dfd-4c32-8e33-30c1b0f84715"
/> | <img width="428" height="219" alt="image"
src="https://github.com/user-attachments/assets/c79e1c7a-e1ac-4682-a898-1a36c6b028fc"
/> |

<!--
## 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
[/design-system/docs/components/button](https://design-system-git-antlio-fix-split-button-divider-supabase.vercel.app/design-system/docs/components/button#split-with-dropdown)
preview in dark mode, and zoom in on the split example
2. make sure that the divider has the same color and weight as the outer
edge
3. hover the primary action, and make sure that the divider takes its
edge color and stays in the same place
4. hover the chevron and open the menu, and make sure that the divider
takes the chevron edge color
5. switch to light mode, and repeat steps 2 to 4
6. press and hold the primary action, and make sure that it does not
shrink
7. tab to the chevron, and make sure that the focus ring shows on all
four sides and that Enter opens the menu
8. open the
[/design-system/docs/fragments/admonition](https://design-system-git-antlio-fix-split-button-divider-supabase.vercel.app/design-system/docs/fragments/admonition#split-button-with-dropdown)
preview at a narrow width, and make sure that the split fills the row
with one divider
9. open the
[/dashboard/project/\_/settings/log-drains](https://studio-git-antlio-fix-split-button-divider-supabase.vercel.app/dashboard/project/_/settings/log-drains)
preview, and make sure that the `primary` split looks the same as on
master


## 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-12 09:17:27 +02:00
Danny White c9d8a17b75 fix(studio): align integration navigation and remove duplicate status (#53301)
## Problem

Integration pages repeat the Installed state in the breadcrumb and
action button. Their sidebar spacing also differs from other Studio
product menus below the extra-large breakpoint.

## Solution

Remove the breadcrumb badge and retain the action button. Match the
shared product menu spacing: 12 px inside items, with a 12 px outer
inset from the medium breakpoint upwards.

| Before | After |
| --- | --- |
| <img width="608" height="706" alt="CleanShot 2026-11-12 at 17 29
29@2x"
src="https://github.com/user-attachments/assets/e6954807-2509-4310-a9ae-f12e0b5a4e17"
/> | <img width="608" height="698" alt="CleanShot 2026-11-12 at 17 35
15@2x"
src="https://github.com/user-attachments/assets/736cb935-5df2-49c6-ac02-789a19a3f2ec"
/> |
| <img width="1448" height="274" alt="CleanShot 2026-11-12 at 17 40
08@2x"
src="https://github.com/user-attachments/assets/4ae20a2d-69e4-488e-9fb8-7790478c209b"
/> | <img width="1446" height="284" alt="CleanShot 2026-11-12 at 17 40
34@2x"
src="https://github.com/user-attachments/assets/f5758095-da1b-4134-8742-8d40f2d8f9bc"
/> |

## Review instructions

1. Open **Integrations** and an installed integration such as Data API.
Check that Installed appears only in the action button.
2. Resize across the medium and extra-large breakpoints. Compare the
sidebar alignment with Database, including the mobile menu.
2026-11-12 17:49:00 +11:00
Joshen Lim 53ffdf75c9 Joshenlim/fe 4945 cmd k support searching for all table (#53262)
## Context

Probably the final piece for this series of changes towards resource
aware Cmd K. We currently only present results for tables when searching
in Cmd K, this PR adds in other entity types like views, materialized
views, foreign tables, and partitioned tables (only the parent)

Note that the results excludes entities created from database extensions
to reduce the chance of noise

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/27bf5026-937a-4883-b365-75694d551a39"
/>

## Related changes
- Tweaked the entity icon for partitioned tables a little to be blue
(previously gray) and
- Added an entity icon for child partition tables in the table editor
that's slightly lighter than the partition table icon, currently child
partition tables just render with the same icon as tables which can be
confusing
<img width="286" height="128" alt="image"
src="https://github.com/user-attachments/assets/638af7c3-512d-4264-bfae-0a8827b3ef94"
/>
- Note that i'm planning to look into this separately RE how to better
render child partition tables so this might go away subsequently

## Performance

As always, ran a claude benchmarking session - this runs on debounced
keystrokes against a live catalog, so it's benchmarked at scale:
**45,653 `pg_class` rows**
- 12k tables
- 3,143 views
- 3,002 matviews
- 3,001 foreign tables)
Taking a median of 15 runs, all variants measured against the same
catalog in one process.

| scenario | query | master | this PR | worst |
|---|---|---|---|---|
| exact table name | `t_500` | 19.5ms | 24.3ms | 29.1ms |
| view name | `v_10` | 19.3ms | 23.7ms | 25.8ms |
| foreign table name | `ft_10` | 18.9ms | 24.1ms | 26.9ms |
| no match | `zzz_nothing` | 19.4ms | 24.0ms | 27.5ms |
| broad prefix (~3k matches) | `t_1` | 30.8ms | 38.7ms | 45.1ms |
| broad matview prefix | `mv_1` | 26.6ms | 37.5ms | 41.7ms |
2026-11-12 11:37:45 +08:00
Pamela Chia 362c974153 fix(studio): record onboarding survey exposure only for signed-in users (#53253) 2026-11-12 10:21:20 +09:00
Matt Rossman afe5b4ed58 fix(studio): remove Braintrust tool output masking workaround (#53244)
Removes the temporary `TODO:` tool output masking introduced in
https://github.com/supabase/supabase/pull/52106 now that [Braintrust
3.40.0](https://github.com/braintrustdata/braintrust-sdk-javascript/releases/tag/braintrust%403.40.0)
logs `toModelOutput` in tool spans and parent span results. SQL error
redaction remains in place.

Verified locally at the `schema` opt-in level by running the Assistant
against a development project. The Braintrust traces for [SQL
rows](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=2bca625a69c40d34ee41289acc073ea5&sid=a6304c155ecf7eed),
[SQL
error](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=b6f0581cbd273c7cd1d70bb6713877d8&sid=43fbbf283faa0da9),
and [notebook
results](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=05409f3af4e66131efa768a03bb8a67f&sid=321520afdd3fa7af)
omit the sample rows and errors shown in Studio.

| Studio | Braintrust |
| --- | --- |
| <a
href="https://github.com/user-attachments/assets/dbf43dda-c78e-4782-acf7-951d8920a283"><img
src="https://github.com/user-attachments/assets/dbf43dda-c78e-4782-acf7-951d8920a283"
width="350" alt="Notebook results at limited sharing"></a> | <a
href="https://github.com/user-attachments/assets/4ff513ae-c76c-47ad-ba1f-0dbc8bcfeee7"><img
src="https://github.com/user-attachments/assets/4ff513ae-c76c-47ad-ba1f-0dbc8bcfeee7"
width="350" alt="Braintrust notebook output with redacted results"></a>
|

Closes AI-1374
2026-11-11 17:28:48 -05:00
Lukas BernertandClaude Fable 5 f38928ad90 fix(studio): resolve disk limits from the project's instance configuration (#52367)
## Problem

Studio validates disk IOPS/throughput against one minimum value per
compute size. Projects whose hardware supports more get blocked below
their actual limits, charts and banners can show the wrong baseline, and
burst charts are gated by a hardcoded size list that is wrong for some
configs.

Fixes PROD-674

## What changed

- New per-configuration limits table:
`packages/shared-data/instance-disk-limits.ts` (values from the AWS
EBS-optimized tables).
- The size-wide floors in `compute-disk-limits.ts` are now derived from
that table as per-size minimums. Published values are unchanged and
pinned in tests.
- New `useProjectDiskLimits()` resolves a project's limits from its
primary database, falling back to the floors.
- Disk form validates against the project's actual limits (floors when a
different compute size is selected). New inline hint when provisioning
between baseline and max.
- Burst charts/tiles/metrics show only if baseline is below max.
- Chart reference lines and the disk IO banner use the resolved values.

## How to test

1. Settings → Database → Disk on a Large+ project: IOPS/throughput
accept values up to the project's actual limits, error above them, and
show the burst hint between baseline and max.
2. Reports: burst metrics are offered only for projects whose disk IO
bursts; a saved burst chart on a non-bursting project renders an
"unavailable" placeholder instead.
3. `pnpm --filter studio vitest run
components/interfaces/DiskManagement/DiskManagement.test.ts
data/reports/database-charts.test.ts`

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-11-11 17:58:26 +01:00
Kody Jackson 3f03e5b0d5 chore(www) - refactor faqs on /partners, /compute, and /pricing to avoid JS + add in LD-JSON entries (#53270)
## Problem

faqs on /partners, /compute, and /pricing use JS, making them invisible
to search / LLM crawlers.

## Solution

Moves them to detail > summary elements in a shared component.

## Preview links

-
[/partners](https://zone-www-dot-lh2wp7c6i-supabase.vercel.app/partners)
- [/compute](https://zone-www-dot-lh2wp7c6i-supabase.vercel.app/compute)
- [/pricing](https://zone-www-dot-lh2wp7c6i-supabase.vercel.app/pricing)

## JSON-LD validation

-
[/partners](https://validator.schema.org/#url=https%3A%2F%2Fzone-www-dot-lh2wp7c6i-supabase.vercel.app%2Fpartners)
-
[/compute](https://validator.schema.org/#url=https%3A%2F%2Fzone-www-dot-lh2wp7c6i-supabase.vercel.app%2Fcompute)
-
[/pricing](https://validator.schema.org/#url=https%3A%2F%2Fzone-www-dot-lh2wp7c6i-supabase.vercel.app%2Fpricing)
2026-11-11 09:59:53 -06:00
Monica Khoury 873b42c84d feat(studio): collapse previous restorations list in database backups (#53264)
## Problem

The "Previous restorations" list on the Database Backups restore page
keeps growing. Entries for cloned projects that were later removed stay
in the list and can't be deleted, so the list pushes the rest of the
page down.

Linear: FE-4402

## Solution

Make the list collapsible instead of deleting entries, which is the
safer option.

- The list is collapsed by default.
- The heading is now a trigger with a chevron that rotates when open.
- The heading shows the number of restorations, e.g. "Previous
restorations (12)", so a collapsed list still shows how much is hidden.

It reuses the existing `Collapsible` component from `ui`. Only
`RestoreToNewProject.tsx` changes.

## Review instructions

1. Open a project on a Pro plan or above with physical backups enabled,
then go to Database > Backups > Restore to a new project.
2. Make sure the project has previous restorations. If it doesn't, mock
the response of the `clone/status` request in DevTools with a few
entries.
3. Check that "Previous restorations (N)" is collapsed on load.
4. Click the heading and check that the list opens and the chevron
rotates.
5. Click again and check that the list closes.
2026-11-11 16:52:37 +02:00