mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
create-pull-request/patch
40517
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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> |
||
|
|
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) |
||
|
|
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> |
||
|
|
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. |
||
|
|
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. |
||
|
|
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) |
||
|
|
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. |
||
|
|
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> |
||
|
|
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) |
||
|
|
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) |
||
|
|
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>
|
||
|
|
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> |
||
|
|
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" /> |
||
|
|
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 |
||
|
|
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> |
||
|
|
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> |
||
|
|
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.
|
||
|
|
57f59091e5 |
fix: Free Plan Audit Log Retention (#53251)
As requested by auth team |
||
|
|
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> |
||
|
|
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> |
||
|
|
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> |
||
|
|
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) |
||
|
|
79e7836a5a | feat(pipelines): Add support for unknown destination (#53272) | ||
|
|
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) |
||
|
|
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) |
||
|
|
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) |
||
|
|
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. |
||
|
|
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 | |
||
|
|
c9291259f5 |
fix(studio): don't send duplicate pageviews for exact-URL repeats under TanStack (#53291)
Since Studio moved to the TanStack build (rolling release from Oct 27), it sends a second `$pageview` for the same URL right after the first on several pages. The router compat shim fires `routeChangeComplete` when only the hash changes, which Next never did, so `PageTelemetry` records the page again. On `/sign-in-mfa` this happens when the auth client strips the token hash after an OAuth return. **Changed:** - **One pageview per URL**: `PageTelemetry` remembers the path + query of the last pageview it sent and skips a route change that lands on the same one. Identical-URL repeats were about 40% of `/sign-in-mfa` pageviews and about 12% of all Studio pageviews, up from about 7% before the rollout. - **Filter changes still count**: a query-only change (`?category=security`, `/customers?industry=...`) still sends a pageview. - **Referrer on new signups**: the repeat carries the live `document.referrer` with no first-referrer override, so after an OAuth return it reported the provider's domain. The github.com share of `$initial_referring_domain` on signups roughly doubled after the rollout. `$initial_*` values already written stay as they are. **Note:** I kept the fix out of the shim. A shim filter on TanStack's `pathChanged` would also drop query-change pageviews and stop the command menu closing on same-path query navigations. Identical-URL repeats that predate the rollout are dropped too (for example www `/customers`, which calls `router.replace` on mount), so some Studio page counts will land below their old baseline. ## To test Tested on the Studio PR preview. Run `window.devToolbar()` in the console, open the dev toolbar's Events tab, and filter for `$pageview`: - [x] On any page, run `window.location.hash = 'x'` in the console, expect no new `$pageview` - [x] In a project's Logs, tick a Level filter (query change), expect one `$pageview` per change with the new `?filter=` in its URL - [x] Click from one project page to another, expect one `$pageview` per navigation - [x] Click the sidebar link for the page you are already on, expect no new `$pageview` - [x] Sign in through an external provider (tested with SSO), expect exactly one `$pageview` for `/sign-in-mfa`. The toolbar opens after login, so I checked this one in the staging event data. ## Linear - fixes GROWTH-1491 --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com> |
||
|
|
362c974153 | fix(studio): record onboarding survey exposure only for signed-in users (#53253) | ||
|
|
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 |
||
|
|
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> |
||
|
|
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) |
||
|
|
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. |
||
|
|
701730e3eb |
chore(kb,www,docs) - Add in relevant cross-links between the Supabase Component Library and kb,www,docs (#53237)
## Problem After #53183 and #52567 have been addressed, we should strengthen the interconnections between the UI library and the rest of the Supabase ecosystem. ## Solution - Adds contextual links for `/library`, Auth / Realtime category pages, and specific Auth / Realtime components. Hits top-level product pages, docs, kb, and blogs. ## Preview links N/A, link changes are relatively atomic so easier to review without many preview links. --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
0c49117cf3 |
feat(design-system): trace bar and markers (#52163)
## Problem We're adding tracing UI primitives to the design system as building blocks for future trace waterfalls. This is PR 4 in a stack of small, component-by-component PRs. PR 3 added the span rows with an empty timeline column, and this one fills it in with bars, event markers and two optional overlays. After it, the waterfall looks like one. Part of [DEBUG-243](https://linear.app/supabase/issue/DEBUG-243/tracing-ui-primitives-stacked-prs) ## Solution Adds `Trace.Bar`, `Trace.Markers`, `Trace.Slowest` and `Trace.CollapsedChildren`. They're separate primitives that you compose inside a `Trace.Lane`, positioned from the Waterfall's time scale: - `Trace.Bar` is the span's bar. - It's tinted by span status (brand, destructive or muted), not by service or kind. - It has a minimum visible width so very short spans stay visible, and a ring when its row is selected. - A running span extends to `nowMs`, and its width transitions smoothly (linear, 300ms, respecting reduced motion) while it runs. - `Trace.Markers` draws a small marker at each of the span's event timestamps, with the event name as a native tooltip. Events outside the visible window are skipped. - `Trace.Slowest` is opt-in. It shows a warning badge on the row of the slowest finished span (`slowestId` from PR 1). The badge is anchored to the bar's trailing edge with `right:`, so it stays inside the lane even when the bar is nearly full width, and it has a solid background so it's readable over a coloured bar. - `Trace.CollapsedChildren` is opt-in. When a row has children and is collapsed, it draws a thin tick at each direct child's midpoint on the parent's bar. It only looks at direct children, and it renders nothing when a span has more than 200 of them (`MAX_COLLAPSED_MARKS`), to bound the DOM cost. - Recommended order inside a `Lane` is `Bar`, `CollapsedChildren`, `Markers`, `Slowest`, so markers and the badge sit on top if they overlap. - `utils.ts` gains `effectiveEndMs`, `MAX_COLLAPSED_MARKS` and `collapsedChildMidpoints`. `Trace.Duration` now uses `effectiveEndMs`, so running spans measure up to `nowMs`. - `Trace.Root` gets an optional `defaultCollapsed` prop (a set of span ids). It lets the docs example open with a parent collapsed to show the child ticks. - Docs: the "Rows" example heading becomes "Rows and bars", the example now shows each state (normal, error, running, collapsed parent with child ticks, events and the slowest badge), and there's a short composition snippet. ## Additional context This is PR 4 of a stack, so it builds on `kemal/debug-243-3-trace-rows-cell-lane` and PR 5 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: - Only the running bar's width animates. Finished bars and markers move instantly while the Ruler's ticks slide as the range grows, and a running bar's left edge changes without animating. If that looks off in a live trace, the fix is a shared `transition-[left,right,width]` across the four primitives. - The docs example is static, so running-bar growth isn't visible on the page. It was checked on a temporary ticking page that isn't part of this PR. ## Review instructions 1. Open the preview link and find the Tracing page under UI Patterns. 2. In the "Rows and bars" example, check each state: 1. A normal bar. 2. An error bar in the destructive tint. 3. A running bar that ends at the "now" line. 4. A collapsed parent with a tick for each child. Expand it and the ticks should disappear. 5. A span with event markers. Hover a marker to see the event name. 6. The slowest badge on the full-width root bar, fully inside the lane and readable. 3. Click a bar and check its row gets selected and the bar shows the ring. 4. Switch between light and dark mode and check the bars, ticks, markers and badge are legible in both. 5. Read `Bar.tsx` and the additions to `utils.ts`. Run the Trace unit tests in `packages/ui-patterns`, which now cover the bar and child-tick helpers including the 200 cap, and run typecheck and Prettier. |
||
|
|
106381829f |
feat(docs): ai layout shell (#52976)
Closes DOCS-1472 ## Problem - new top bar, sidebar and footer need a layout that mounts them only for readers on the `docs-layout-v2` flag - guide table of contents and the reference navigation sit in the page column, so the reading column is narrow ## Solution - adds the layout shell, so the flag picks the new or the current top bar, sidebar and footer - moves the guide table of contents into a right rail, and shows the current heading in the top bar breadcrumb - moves the reference navigation into the right rail, and hides the library and version row because the breadcrumb shows them - keep the docs home to keep the current top bar and no sidebar, so the home page stays full width <!-- ## 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 [/docs/guides/database/overview?docs-ia-mvp-v1=option-1](https://docs-git-antlio-docs-v2-5-shell-right-rail-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1) 2. make sure that the sidebar shows the database pages with a back link to Products, and that the table of contents is in the right rail 3. open [/docs/reference/javascript/introduction?docs-ia-mvp-v1=option-1](https://docs-git-antlio-docs-v2-5-shell-right-rail-supabase.vercel.app/docs/reference/javascript/introduction?docs-ia-mvp-v1=option-1), and make sure that the version dropdown is in the breadcrumb and not above the right rail ## 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) |
||
|
|
b28c6fa822 |
feat(docs): ai layout top bar + breadcrumbs (#52975)
## Problem - docs top bar holds the global nav menus, so it repeats what the new sidebar shows - redesign needs a top bar with a breadcrumb for the current page and room for the page actions ## Solution - replaces the top bar with a logo cell, a breadcrumb, the page actions and an account cell - adds a sections menu under the logo, so a reader moves between docs, reference and the knowledge base - adds a breadcrumb slot for the current heading, which the right rail fills in #PR5, and a reference version dropdown - replaces the search field with an icon button, and shows ⌘K and ⌘I in the search and ask ai tooltips - adds a legacy copy of the current top bar, so the flag can show it merge the stack together, because the new top bar shows for every reader until #PR5 adds the flag switch <!-- ## 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 [/docs/guides/database/overview](https://docs-git-antlio-docs-v2-4-top-bar-supabase.vercel.app/docs/guides/database/overview) 2. make sure that the breadcrumb shows Database and the page 3. open [/docs/reference/javascript/introduction](https://docs-git-antlio-docs-v2-4-top-bar-supabase.vercel.app/docs/reference/javascript/introduction), and make sure that the breadcrumb has a version dropdown after JavaScript ## 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) |
||
|
|
aad6ac1adc |
feat(docs): ai layout breadcrumbs page actions (#52974)
Closes DOCS-1470 ## Problem - reference pages have no breadcrumbs, so a reader on `/reference/cli/supabase-init` sees no path back to the cli reference - a guide breadcrumb can repeat its parent, for example "Connecting to your database" twice under Database > Fundamentals - redesign needs page actions in the top bar to copy a page as markdown and to set up an agent ## Solution - adds reference breadcrumbs, so a reference page shows the reference home and its library - adds the current version to the library breadcrumb when the library has more than one version - removes a breadcrumb that repeats its parent with the same url and name - adds a copy page split button and a set up agent menu, with telemetry events for each action - changes `ui-patterns` to export `CrossfadeIcon`, so the copy button reuses its copied state animation #52972 must merge first, because the breadcrumbs skip the overview row that it adds <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. run `pnpm --filter docs exec vitest run lib/breadcrumbs.test.ts`, and make sure that all tests pass 2. read the new telemetry events in `packages/common/telemetry-constants.ts`, and make sure that each event names what the user did 3. the top bar shows the page actions in the next pr, so check them on the preview of that pr ## 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) |
||
|
|
51c07ef6b2 |
feat(docs): ai layout sidebar tree (#52972)
## Problem - current sidebar shows only the page's product, so a reader opens the top bar menus to reach another product - redesign moves the global nav into the sidebar, so the sidebar needs levels and a way back up ## Solution - adds a sidebar that opens one level at a time: the docs sections, then a section's products, then a product's pages - adds a header row with a back link to the level above, and a home link at the top level - changes a product row to open the product overview and show its pages at once - adds icons to the top level sections in the current nav and in the option-1 nav - changes the new page tree to show a background on hover only, and text color on the current page - adds an overview row to the start section, which only the new layout shows #52971 must merge first, because the sidebar uses the `layout-v2:` css variant <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. run `pnpm --filter docs exec vitest run components/Navigation/NavigationMenu`, and make sure that all tests pass 2. read `DocsSidebarNav.test.tsx`, and make sure that the tests cover the back link, the home link and the product link to its overview 3. the layout mounts the sidebar in the stack top, so check the sidebar on the preview of that pr ## 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) |
||
|
|
3aa70c221f |
feat(docs): ai layout groundwork (#52971)
## Problem - docs layout redesign needs a flag, so the team can check the new layout on production first - ai tools agent cards open a setup page with no agent selected, so the reader picks the agent again ## Solution - adds the `docs-layout-v2` posthog flag, and `?docs-layout-v2=true|false` overrides it for the rest of the browser session - adds a `layout-v2:` css variant, so server components can style the new layout and the current layout from the same markup - changes the agent cards to set `?client=` on their link, so the setup page opens with that agent selected - replaces the footer with link cells for status, product updates and issue reports, and keeps the old footer for the flag merge the stack together, because the new footer shows for every reader until #PR5 adds the flag switch <!-- ## 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 [/docs/guides/getting-started?docs-layout-v2=true](https://docs-git-antlio-docs-v2-1-groundwork-supabase.vercel.app/docs/guides/getting-started?docs-layout-v2=true), and make sure that the `<html>` element has `data-docs-layout="v2"` 2. open the same page with `?docs-layout-v2=false`, and make sure that `data-docs-layout` is gone ## 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) |
||
|
|
620f9aa291 |
content(kb) - mobile backend listicle (#52983)
## Context mobile backend listicle ## Preview link https://kb-git-kody-devrel-811-mobile-backend-listicle-supabase.vercel.app/kb/guides/best-mobile-app-backend-providers --------- Co-authored-by: Tyler <dshukertjr@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> |
||
|
|
7b0f8af277 |
content(kb) - add faq + update existing supabase auth guides for better auth reference (#53243)
## Context Updates existing providers guide + adds a FAQ pointer to the new Better Auth guide. ## Preview links https://kb-git-kody-devrel-756-better-auth-updates-supabase.vercel.app/kb/faqs/auth/better-auth-third-party-auth |
||
|
|
cd6b25614c |
feat(design-system): trace row, cell, lane and duration (#52161)
## Problem We're adding tracing UI primitives to the design system as building blocks for future trace waterfalls. This is PR 3 in a stack of small, component-by-component PRs. PR 2 added the waterfall container and the time ruler, and this one adds the span rows. It's the first PR where the tree is interactive. Part of [DEBUG-243](https://linear.app/supabase/issue/DEBUG-243/tracing-ui-primitives-stacked-prs) ## Solution Adds `Trace.Rows`, `Trace.Cell`, `Trace.Lane` and `Trace.Duration`: - `Trace.Rows` is a virtualized, scrollable `role="tree"` list of span rows, so large traces stay fast. Rows are flattened from the span tree and the collapse state, and collapsed spans hide their descendants. The children you pass are the per-row template. - `Trace.Cell` is the tree column for a row: indent by depth, an expand/collapse toggle when the span has children, the span name and `Trace.Duration`. - `Trace.Lane` is the timeline column for a row. For now it's only the positioned container that bars and markers will fill in the next PR, and it has no padding so it lines up with the Ruler. - `Trace.Duration` shows the formatted duration, and pulses (motion-safe only) while the span is running. - The root now holds view state: `selectedId` and the set of collapsed spans. Both are uncontrolled and available through `useView()`. Selection is here because rows are interactive and the Inspector PR will read it. - Keyboard support follows the tree pattern, with a roving tabindex: - Up/Down move focus. - Right expands a collapsed row. - Left collapses an expanded row, or moves focus to the parent from a collapsed row or a leaf. - Enter or Space selects. - Arrow keys move focus only. Selection is separate and happens on Enter, Space or click. - `utils.ts` gains `flattenTree` (visible rows with depth, `hasChildren` and `isExpanded`) and `formatDuration` (three significant digits on top of `formatMs`). - New dependency: `@tanstack/react-virtual` in `ui-patterns`, using the same range as Studio (`^3.13.24`) and with a matching `pnpm-lock.yaml` change. - The Tracing docs example now renders the rows, with the preview sitting under the "Rows" heading. There are no bars yet, so the timeline column is empty apart from the ruler. Bars come in the next PR. ## Additional context This is PR 3 of a stack, so it builds on `kemal/debug-243-2-trace-waterfall-ruler` and PR 4 builds on this branch. The earlier exploration is in the draft #51184, which stays open as reference until the stack lands. Left out on purpose: - Controlled `selectedId` props. - `aria-setsize` and `aria-posinset`. - Hidden-descendant counts, which come with the collapsed-children marks in PR 4. A span whose parent is missing is treated as a root, which is how PR 1 already behaves, so there's no separate orphan handling here. ## Review instructions 1. Open the preview link and find the Tracing page under UI Patterns. 2. In the example, check the rows render with indent, toggles, names and durations, and that the timeline column lines up under the ruler. 3. Collapse and expand a parent with the toggle. Its descendants should disappear and reappear. 4. Click into the tree and use the keyboard: 1. Down moves focus to the next row. 2. Right expands a collapsed row. 3. Left collapses an expanded row. 4. Left on a leaf or a collapsed row moves focus to its parent. 5. Enter selects the focused row. 5. In the live example, check the running span's duration pulses, and that it doesn't when your OS has reduced motion on. 6. Switch between light and dark mode and check the rows, toggles and selected state are legible in both. 7. Read `Rows.tsx`, the view state in `Trace.tsx` and the additions to `utils.ts`. Run the Trace unit tests in `packages/ui-patterns`, which now cover `flattenTree` and `formatDuration`, and run typecheck and Prettier. |
||
|
|
1854331fb6 |
[FE-3106] (part 2) – refactor(studio): move api handlers into route files (#53202)
Moves every `pages/api/**` handler into its TanStack server route under `routes/api/**` and deletes `pages/api/**`, part of the final pass of the TanStack Start migration (FE-3106). Handlers move verbatim and still run through `toWebHandler`, so auth (`apiWrapper`), response shapes and headers are unchanged. Part 2 of the stack. **Depends on:** #53199 **Changed:** - `routes/api/**` – each route now holds its handler (formerly the `pages/api` default export) as a local `nextHandler`/named function. Next-only `config`/`maxDuration` exports are dropped: `vite.config.ts` already sets the function `maxDuration`, and `toWebHandler` parses bodies itself - `routes/api/ai/docs.ts` – Web-native handler inlined, `NextRequest` → `Request` - `lib/api/apiHelpers.ts` – `getPgMetaRedirectUrl` moved here from the old `tables` handler, which the other pg-meta routes imported it from - `eslint.config.cjs`, `.github/CODEOWNERS` – `pages/api` paths → `routes/api` - `tests/routes/api/**`, `lib/api/{generate-v4,rate}.test.ts`, `scripts/__tests__/server-source-maps.test.ts` – call the route's registered handler with a Web `Request` (`tests/lib/server-route.ts`); the MCP query-validation cases now run against the native route **Removed:** - `pages/api/**` (102 files), including the Next twins of the already-native `routes/api/mcp/index.ts` and `functions/$slug/body.ts` - unused `ProjectSettings` types and the `node-mocks-http` dev dependency Parity: every route registers the same methods its handler serves. The exceptions are `check-cname`, `get-ip-address`, `get-utc-time`, `get-s3-keys`, `get-deployment-commit`, `cli-release-version` and `connect`: in Next they answered any method, and their routes register `GET` only, as before this PR. Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Load the table editor, SQL editor and Auth users on a self-hosted build – `/api/platform/**` and `/api/v1/**` respond as before - Use the Assistant and the docs search – `/api/ai/**` streams as before - `GET /api/get-deployment-commit` – same JSON and `Cache-Control` Ran typecheck, ESLint, lint ratchet, knip, Prettier, the TanStack build and the full Studio vitest suite: all pass except `lib/server/configcat.test.ts`, which also fails on `master` in an environment with ConfigCat env vars set. Self-hosted E2E is CI-only. --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
0daddc4551 |
feat(docs): agent feedback capabilities (#53115)
## Problem - an agent that finds a wrong docs page leading to use a different method gets no report - mcp server and the cli can send feedback, but no page tells agents to report docs problems ## Solution - adds a note for ai agents at the top of each guide's markdown version, so agents report wrong pages - adds an agent-only instructions page with a disabled nav entry, so agents learn how to write and send a report - adds a "report documentation problems" section to the ai tools guide, so users can approve, turn off or delete reports - changes the mcp guide to say that `submit_feedback` takes documentation feedback, so the tool list matches the new use - adds the instructions page to `llms.txt`, so agents that start from supabase.com find it Linear: DEPR-698 <!-- ## 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 [/docs/guides/auth.md](https://docs-git-anthonylio-depr-698-explore-agent-feed-2bdb50-supabase.vercel.app/docs/guides/auth.md), and make sure that the page starts with the "Note for AI agents" blockquote 2. make sure that the note links to `agent-feedback.md`, tells the agent to read it before the final reply, and asks "Send this report to Supabase?" 3. open the preview [/docs/guides/ai-tools/agent-feedback.md](https://docs-git-anthonylio-depr-698-explore-agent-feed-2bdb50-supabase.vercel.app/docs/guides/ai-tools/agent-feedback.md), and make sure that the page has the five-line report template and no agent note 4. open the preview [/llms.txt](https://zone-www-dot-com-git-anthonylio-depr-698-explor-a825b7-supabase.vercel.app/llms.txt), and make sure that it lists "Report documentation problems" with the `.md` link ## 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) |
||
|
|
86f9c0c250 |
chore(deps): bump node-forge to 1.4.3 (#53261)
## Problem `pnpm audit` reports a moderate advisory for `node-forge` 1.4.2 (patched in `>=1.4.3`). It is a transitive dependency, pulled in through `nuxt` > `@nuxt/nitro-server` > `nitropack` > `listhen` by `@supabase/vue-blocks`. ## Solution Ran `scripts/fix-audit-vulnerability.ts node-forge`, which resolved `node-forge` to 1.4.3 without leaving a permanent override. The only change is in `pnpm-lock.yaml` (`node-forge` 1.4.2 to 1.4.3). No `package.json` or `pnpm-workspace.yaml` changes. Checks run: - `pnpm install --frozen-lockfile` succeeds. - `pnpm why node-forge --recursive` shows a single version, 1.4.3. - `pnpm tsx scripts/fix-audit-vulnerability.ts --json` no longer lists `node-forge`. - `pnpm --filter @supabase/vue-blocks run typecheck` passes. ## Review instructions No UI change. To verify: 1. Run `pnpm install --frozen-lockfile`; it succeeds. 2. Run `pnpm why node-forge --recursive`; it shows only `node-forge@1.4.3`. 3. Run `pnpm tsx scripts/fix-audit-vulnerability.ts --json`; `node-forge` is not in `vulnerabilities`. 4. Confirm the diff touches only `pnpm-lock.yaml`. ## 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-4990](https://linear.app/supabase/issue/FE-4990/bump-a-single-vulnerable-dependency) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> |
||
|
|
5c8a7caf77 | chore(studio): silence sentry vite plugin logs (#53259) | ||
|
|
1a2e8c679b |
feat(studio): handle visible project permissions for scoped pat (#53227)
## Problem We had some org permissions lingering when the permission form was scoped to project only. ## Solution We narrow the possible permissions you can pass, here's what changed with some guards. - On Project scope, 11 permissions that can’t work no longer appear. These are the org-level ones (Members, Projects, Billing and the like) plus a few rows with nothing behind them. Organization scope and full-access tokens look exactly as before. - Organization Settings lost its “Read” option on Project scope. You can pick None or Read-write. Read-write is still needed for one thing: claiming a project through OAuth. - Hidden permissions can’t slip through. Switching scope clears them, presets skip them, the counters ignore them, and the request sent to the API drops them as a last check. - A shared package was updated, which wasn’t in the plan. Six of those rows weren’t showing in the form at all because shared-data was on an older version of @supabase/shared-types than Studio. Claude Code updated it so the form matches the full permission list. **That makes the PR touch package.json and the lockfile, so call it out in review.** - One loose end: the Full access preset description still mentions “organization members”, which is now hidden on Project scope. Fixing it would mean changing copy, so it was left for a follow-up. ## Review instructions 1. Check out the branch and run `pnpm install` — `packages/shared-data` picks up a new `@supabase/shared-types`, so this isn't optional. 2. Run `pnpm dev:studio` and open http://localhost:8082/account/tokens. 3. Open the dev toolbar (the floating Supabase button, or the user dropdown), go to **FLAGS → ConfigCat**, and turn on `scopedPAT`. 4. Click **Generate new token**. **Resource access** defaults to **Project**. 5. Expand all five permission categories. See that 11 rows are gone: Organizations, Organization Audit Logs, Organization Billing And Invoices, Organization Configuration, Organization Members, Organization Projects, Platform Webhooks (organization), Project Authentication Hooks, Project Authentication Users, Perform Developer Level Operations, and the project-level SQL Snippets. 6. See that SQL Snippets (account-wide), Projects (account-wide), Organization Settings, and every other row are still there. 7. Open the **Organization Settings** dropdown. See that it offers only **None** and **Read-write**. 8. Switch **Resource access** to **Organization**. See that all 11 rows come back, and Organization Settings offers **Read** again. 9. Set **Organization Members** to Read-write and **Organization Settings** to Read. Switch to Project, then back to Organization. See that both are now **None**. 10. Switch back to Project and apply **Preset · Read-only**. See that Organization Settings stays at None and no hidden row is set. 11. Fill in a name, organization, and project, then create the token. See that the `POST /platform/profile/scoped-access-tokens` request body contains none of the hidden scope IDs. |
||
|
|
00adb5a81b |
chore(studio): remove the Iceberg pipeline destination (#52229)
## Problem Retire the deprecated Iceberg (Analytics Bucket) destination from Pipelines. ## Solution - Remove the destination UI, configuration mappings, feature-flag usage, and generated API variants. - Remove the legacy Pipelines integration from Storage while preserving standalone Analytics Buckets. - Remove unused components and sheet-layout support, and add regression coverage for retained Storage operations. - Remove the stale Pipelines claim from the Storage docs overview. ## Validation - Pipelines, Storage, and replication data tests - After the final cleanup: Studio typecheck and all 3 Analytics Bucket regression tests passed. - Formatting, scoped ESLint, Knip, and whitespace checks passed; lint warnings are pre-existing. - Storage overview: Prettier, ESLint with zero warnings, content-listing schema validation, and Markdown rendering passed. Production API-type verification remains pending the coordinated API deployment. Legacy Iceberg pipelines, destinations, and slots must be cleaned up before rollout. ## Review instructions 1. Verify that Pipelines offers BigQuery, DuckLake, Snowflake, and ClickHouse, with no Analytics Bucket option. 2. Verify that Storage Analytics Bucket creation, namespace/table operations, and wrapper/key cleanup remain available without Pipelines controls. ## Checklist - [x] Read CONTRIBUTING.md. - [x] Updated the Storage overview copy and checked the docs authoring guidance. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |