mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
bot/decrease-eslint-ratchet-baselines
3301
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e05ef0e50c |
fix(studio): use API collation warning for read replica eligibility (#53049)
## What
Read replica eligibility now uses the `collation_reindex_required`
warning returned by the upgrade eligibility endpoint
(`/v1/projects/{ref}/upgrade/eligibility`) to decide whether to block
replica creation, instead of reimplementing the collation lineage
boundary check in Studio.
- Removes `CollationLineage.utils.ts` and its tests.
- `useCheckEligibilityDeployReplica` sets `isCollationLineageCrossed`
when the response includes a `collation_reindex_required` warning.
## API types
Regenerated `packages/api-types` from the production specs so the new
warning type is available. The regen also picks up other recent API
changes, which Studio now handles so typecheck passes:
- `PROMOTING` project status: added labels in `BranchStatusBadge` and
the dev toolbar's `ProjectStatusTab`.
- `table_using_reg_type` upgrade validation error (tables with columns
using `reg*` types that `pg_upgrade` can't carry over): added a title,
description, and Manage link to the table in `UpgradeWarnings`.
## Testing
- Studio typecheck passes (the one remaining error, in `ui-patterns`
McpUrlBuilder, is also on `master`).
- Read replica and infrastructure settings unit tests pass.
|
||
|
|
5ac0a4843b |
feat(kb): send search and result click telemetry events (#52981)
## Problem KB search sends no events. Part of [DOCS-1514](https://linear.app/supabase/issue/DOCS-1514) (Add telemetry to search). ## Solution Two events through `/telemetry/event`, sent only on platform and after consent: - `kb_search_submitted`: `queryLength`, `resultCount`, `hasResults` - `kb_search_result_clicked`: `resultPath`, `resultPosition` (1-based), `resultCount`, sent with keepalive Query text isn't sent: it can contain personal data. New `buildTelemetryEventRequest` builds the body for `sendTelemetryEvent`. KB posts it with plain `fetch` and no auth header, so no GoTrue client starts on the shared dashboard session. ## Additional context Tested on `astro dev` with Playwright: - `rls`: `{queryLength: 3, resultCount: 10, hasResults: true}` - `zzqxjv`: `{queryLength: 6, resultCount: 0, hasResults: false}` - 2nd result clicked: `{resultPosition: 2, resultCount: 10}`, no `Authorization` header - No consent: nothing sent Also ran `common` and Studio typecheck, KB tests, and `astro build` (no GoTrue in the bundle). ## Review instructions 1. `pnpm --filter kb dev` on platform, accept cookies. 2. Search `rls`, click a result, and check both `/telemetry/event` requests. 3. Decline cookies and repeat: nothing sends. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Kody Jackson <kody.jackson@supabase.io> |
||
|
|
b360605842 |
feat(ui): floating surface shadows (#53009)
## Problem - popovers, menus, selects and the chart tooltip draw a 1px `border` next to a `shadow-*`, so the edge shows as a separate gray line ## Solution - adds `floating-surface-shadow-sm` and `-md` utilities in one file, so every floating surface uses the same edge and shadow - replaces popover, menu, select and chart tooltip borders and shadows with the `md` utility, so edges blend into shadows - changes the chart tooltip background to the card surface in dark mode, so the tooltip is lighter than the page - adds a 1px outline in forced colors mode, because that mode removes box shadows | before | after | | -------|------| | <img width="696" height="371" alt="image" src="https://github.com/user-attachments/assets/0bca48bd-565d-48e0-bd44-1e804e3ebd7b" /> | <img width="696" height="371" alt="image" src="https://github.com/user-attachments/assets/6ad2d80e-806a-46a6-b022-891b55d979e4" /> | <!-- ## 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 [/design-system/docs/components/popover](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/popover) and click "Open popover" 2. make sure that the popover has a soft shadow and a thin edge with no separate gray border, in light and dark theme 3. open [/design-system/docs/components/dropdown-menu](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/dropdown-menu), click "Open" and hover "Invite users", and make sure that the menu and the submenu have the same edge 4. open [/design-system/docs/components/select](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/select), click "Select a fruit" and make sure that the list has the same edge 5. open [/design-system/docs/components/chart](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/chart) in dark theme, hover a bar in the tooltip example, and make sure that the tooltip is lighter than the page 6. in chrome devtools, open the rendering panel and set "Emulate CSS media feature forced-colors" to `active`, and make sure that the popover and the select list have an outline 7. open [/design-system/docs/components/tooltip](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/tooltip), hover "Hover" and make sure that the tooltip still has its shadow from #52631 ## 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) |
||
|
|
1fb63b7d85 |
fix(ui): lift tooltip from the page and use a ring edge (#52631)
## Problem - tooltips blend into the page in dark mode, for example the timestamp tooltip in the logs table - the tooltip background is `bg-alternative`, which is the same color as the page background ## Solution - changes the tooltip background in dark mode, so the tooltip is one elevation step above the page - replaces the border and the drop shadow with a 1px ring from the `foreground` token, so the edge is thinner and uses theme tokens - changes the row highlight in the timestamp tooltip - fixes the "Copied!" state in the timestamp tooltip, so the copied value does not show behind the text and the row keeps its width | before | after | | -------|------| | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/07435a9e-74eb-4007-aa5e-d350a979f8bb" /> | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/df274062-318e-4ed0-841a-2bf57c98ec4c" /> | | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/1cfc18fa-196e-41e2-9aae-2458cd98418b" /> | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/c116329c-233c-4216-9a71-4a1950ec710a" /> | <!-- ## 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 [/design-system/docs/components/tooltip](https://design-system-git-antlio-tooltip-contrast-supabase.vercel.app/design-system/docs/components/tooltip) and set the theme to dark 2. hover the "Hover" button, and make sure that the tooltip is lighter than the page and has a thin ring edge 3. set the theme to light, and make sure that the tooltip has a thin ring edge and no drop shadow 4. open [/dashboard/project/_/logs/edge-logs](https://studio-git-antlio-tooltip-contrast-supabase.vercel.app/dashboard/project/_/logs/edge-logs) in dark mode and select a project 5. hover a date in the logs table, and make sure that the tooltip is lighter than the table 6. hover each row in the tooltip, and make sure that the row highlight shows 7. click a row, and make sure that "Copied!" shows with no value text behind it and the tooltip width does not change ## 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) |
||
|
|
1f75a630c2 |
fix: update Ask AI model (#52736)
OpenAI is retiring the pinned GPT-4o mini snapshot on January 14, 2027, but "Ask AI" on our site(s) still uses it. This PR replaces it with GPT-6 Luna at low reasoning, which is a similarly cost effective model. Its completion budget is increased to allow room for reasoning, while the total cap preserves the previous input allowance. I noticed the `packages/ai-commands` where this was defined also includes dead code from older versions of SQL and cron helpers, so this also removes them for housekeeping. I also upgraded the OpenAI SDK to support types for the new model. To test, try asking a question in "Ask AI" in the docs [preview](https://github.com/supabase/supabase/pull/52736#issuecomment-6618563374) build: <img width="568" height="583" alt="CleanShot 2026-11-03 at 7 22 29 PM@2x" src="https://github.com/user-attachments/assets/fe8f824f-3884-44b8-affd-5710343e0101" /> Note the "Rename with Supabase AI" feature doesn't work but that's an existing issue not related to this PR: https://github.com/supabase/supabase/issues/51438 **References** - https://developers.openai.com/api/docs/deprecations - https://developers.openai.com/api/docs/models/gpt-6-luna Closes AI-1397 |
||
|
|
c7baea1eb3 |
feat(ui): unify mobile nav (#52410)
## Problem - follow up pr #52177 to reuse in home + www new mobile menu ## Solution - adds `MobileNavToggle` to `ui-patterns` and uses it in docs, kb and www, so the three apps share one same shake shack burger - fixes Escape on www, because the closed desktop dropdowns marked each Escape as handled, so the drawer now checks focus - changes the top bar to find its active group during render, so the active tab shows on the first frame - changes the drawer on docs pages without a sidebar to open on their group, so troubleshooting opens on Resources <!-- ## 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 Provide a clear numbered procedure that the PR reviewer can walk through. 1. open from mobile `/docs` and open menu 2. make sure that the drawer opens below the header with the section picker and the sign in buttons 3. make sure that the page behind the drawer does not scroll 4. press Escape, and make sure that the drawer closes and focus returns to the burger 5. open `docs/guides/database/overview`, and make sure that the drawer still shows the group links above the sidebar nav 6. open `/`, open the menu 7. click a link in the drawer, and make sure that the drawer closes ## 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) |
||
|
|
9659778769 |
feat(ui): scrollbar track (#52493)
## Problem - proposal to lift scroll bar ui accross the apps - fix shared `ScrollBar` in `ui` showing only a thin `bg-border` thumb with no track, so the scroll position is hard to see ## Solution - replaces the native scrollbars in the docs left nav and in the guide right column with the shared scroll area - replaces the native scrollbar in the docs search v2 results with the shared scroll area, and keeps the animated list height and the bottom fade - changes the command menu list to the shared scroll area, with the bar 2px from the edge so it does not touch the hover highlight - changes the studio connect sheet body and its framework combobox to the shared scroll area, so long code lines still scroll inside their own code blocks | state | preview | | -------|------| | before | <img width="473" height="260" alt="image" src="https://github.com/user-attachments/assets/ef22e643-b92a-4a23-9c77-6b10851e1445" /> | | after | <img width="473" height="260" alt="image" src="https://github.com/user-attachments/assets/46fe95e9-0574-4eef-afbd-20d591baa859" /> | <!-- ## 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 [/design-system/docs/components/scroll-area](https://design-system-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/design-system/docs/components/scroll-area), scroll the vertical and horizontal demos, and make sure that the thumb moves on a visible track and gets lighter on hover 2. open [/docs/guides/database/postgres/row-level-security](https://docs-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/docs/guides/database/postgres/row-level-security), scroll the left nav and the right column, and make sure that each shows the new scrollbar 3. resize the page to mobile width, open the menu, and make sure that it scrolls above the footer 4. make sure that the results scroll with the trackpad and with the arrow keys, and that the bottom fade shows 5. open [/dashboard](https://studio-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/dashboard), press `⌘K`, scroll the command menu, and make sure that the thumb does not touch the hover highlight of an item 6. open [/dashboard/project/_?showConnect=true](https://studio-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/dashboard/project/_?showConnect=true), scroll the connect sheet, and make sure that long code lines scroll inside their code blocks and do not widen the sheet ## 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) |
||
|
|
e89e3cf0a4 |
style(ui): tighten tooltip side padding (#52977)
## Problem - tooltip has 12px side padding and 6px top padding, so a short tooltip looks wide ## Solution - changes the shared tooltip side padding from 12px to 8px, so tooltip content sits closer to the edge in every app | before | after | | -------|------| | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/c37468a4-ddda-444a-842d-44d13f4e2a81" /> | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/04359925-4e3e-4d55-b8cf-550a6c2ba6f8" /> | <!-- ## 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 live and preview links of the design system tooltip page side by side 2. hover each example tooltip, and make sure that the side padding is smaller and that the text does not touch the border 3. hover a few tooltips in the studio preview, and make sure that long tooltip text still wraps inside the tooltip ## 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) |
||
|
|
5152899fac |
Joshenlim/fe 4720 cmd k support searching for functions (#52751)
## Context Building off from [here](https://github.com/supabase/supabase/pull/52678) to make Cmd+K resource-aware so finding and inspecting anything in a project doesn't depend on knowing where it lives in the dashboard. Specifically looking into database entities for now - end state would be that you could search for a table name for example, and Cmd K will pull up everything related to that table for you to skim (e.g Policies, Functions, Triggers, etc). Changes in this PR sets up searching for **database functions**. <img width="607" height="531" alt="image" src="https://github.com/user-attachments/assets/b4a2cd15-9874-4e80-80d4-d343d8c70fc3" /> ## Performance Ran a Claude session to benchmark `getSearchEntitiesSql` against the version on master (tables and policies only), on the same synthetic catalog: - 12,000 tables (36,651 `pg_class`), 6,001 policies, 27,258 `pg_proc` (12,000 user + 12,000 extension-owned functions), 290,915 `pg_depend`. - Median of 5 runs, `EXPLAIN ANALYZE`, local Postgres (warm cache). | Search | Matches | master | this PR | |---|---|---|---| | `t_1` | ~1/9 of tables | 12ms | 23ms | | `p_1` | broad policy-name match | 13ms | 25ms | | `fn_1` | user + extension functions | 8ms | 23ms | | `fn_` | every function | 8ms | 29ms | | `stress.fn_1` | schema-qualified | 10ms | 30ms | | `zzz` | nothing | 9ms | 22ms | - Adding functions costs +11 to +21ms at this scale - Most of it is fixed (+13ms even for a query that matches nothing): one pass over `pg_proc`, plus building the set of extension-owned functions. It doesn't grow with the number of matches. ## To test - [ ] Search a table name: Tables first, then policies, and functions - [ ] Search a function name: it appears under Functions and opens the editor panel in database/functions - [ ] Function outside public: schema filter switches and the function opens |
||
|
|
7b37c789ed |
fix(telemetry): skip sign-in pages and send cookie write time (#52697)
This fixes two gaps in the first-referrer cookie. It skipped only `accounts.google.com` and GitHub OAuth returns, so coming back from a regional Google account page, YouTube's account page, Sign in with ChatGPT (`auth.openai.com`) or Sign in with Apple stamped the write-once cookie with the login page. It also stored its write time without ever sending it, so there was no way to tell an old first-touch source from a fresh one in the data. **Changed:** - **Sign-in pages are never a source**: I extended `isOAuthRedirectReferrer` to also match Google's regional account hosts (`accounts.google.com.br`, `accounts.google.co.uk` and so on), `accounts.youtube.com`, `auth.openai.com` and `appleid.apple.com`. That one function decides cookie stamping, skips a cookie that already holds one of these hosts, and swaps such a live referrer for the cookie's referrer. Unit tests cover the host list, including a lookalike domain; `packages/common` tests run locally only until #51774 adds them to CI. - **Cookie write time on the pageview**: I added `first_touch_timestamp` (ISO 8601) to the pageview that consumes the cookie. A cookie without a valid `ts` sends no timestamp. Parsing previously defaulted it to the current time. The kb telemetry test now asserts the property, so CI covers it. **Note:** a pageview returning from these sign-in pages with a cookie now reports the cookie's referrer, as `accounts.google.com` returns already do, so `auth.openai.com` no longer shows up as `$referrer` on those pageviews. ## To test The preview never sets the cookie (not even for a `https://www.google.com/` referrer), so the cookie checks run against supabase.com. - [x] Before, on supabase.com today: `curl -sI https://supabase.com/ -H 'Referer: https://auth.openai.com/'` returns `Set-Cookie: _sb_first_referrer=...` holding `auth.openai.com`. Same for `https://accounts.google.com.br/`. - [ ] After deploy: the same two requests return no `_sb_first_referrer` cookie, and the control `-H 'Referer: https://www.google.com/'` still sets one. - [ ] After deploy, in PostHog: a dashboard `$pageview` with `first_referrer_cookie_consumed = true` carries `first_touch_timestamp`. ## Linear - part of GROWTH-1433 |
||
|
|
04e72cae1a |
feat(telemetry): track clicks on GitHub example links (#52947)
Docs, www and Studio link to the repo's `examples/` folder from many pages, but we don't record those clicks. PostHog autocapture is off, so we can't tell which examples people open or which pages send them there. **Changed:** - **New `example_link_clicked` event**: I added one capture-phase click listener in `PageTelemetry`. It sends the event when the clicked anchor points at `github.com/supabase/supabase/(tree|blob)/<ref>/examples/<path>`, with `examplePath` set to the path after `examples/`. The source page comes from the event's existing page URL. I put it in `PageTelemetry` so it covers docs, www and Studio without changing individual links, and it sits behind the existing `enabled` and consent gates. - **Survives same-tab navigation**: I added the event to `KEEPALIVE_ACTIONS`, since docs MDX links open GitHub in the same tab. **Note:** middle-clicks and the `window.open` items in the code sample "View source" dropdown aren't counted, so the numbers are a lower bound. ## To test Accept the cookie banner first: the event only sends after consent. Watch the network tab for `POST .../platform/telemetry/event`. Tested on the PR preview: - [x] On `/docs/guides/getting-started/tutorials/with-nextjs`, click "full example on GitHub", expect one request with `action: example_link_clicked` and `custom_properties.examplePath: user-management/nextjs-user-management` (one request, 201, `pathname` set to the docs page) - [x] On `/blog/self-host-maps-storage-protomaps`, click "Find the code", expect one request with `examplePath: storage/protomaps` (201) - [x] On a Studio project's Edge Functions page, click the examples link, expect one request with `examplePath: edge-functions/supabase/functions` (201) - [x] Click a GitHub link outside `examples/` (the GitHub button in the www nav), expect no `example_link_clicked` request (only `homepage_github_button_clicked` fired) - [x] Added: plain same-tab click on the docs link, expect the event to arrive even though the page navigates to GitHub (ingested in staging PostHog about one second after the click) ## Linear - fixes GROWTH-1441 |
||
|
|
2182a9100f |
fix(docs): nav first paint (#52679)
## Problem - the docs nav experiment from #52191 hides the top bar links and the sidebar nav until the feature flags load - the flags load after auth, posthog and configcat, so each visitor waits up to 1s after hydration ## Solution - changes the docs nav to show the server links on first paint, so most visitors do not wait for the flags - adds a cache of the experiment value from the last visit, so a returning visitor gets their variant at hydration - adds a head script that hides the nav only for visitors cached on option-1, so the control menu does not flash - fixes the nav swap when the posthog request fails, because the nav keeps the cached variant - fixes the stale option-1 cache after the flag is deleted, because the cache saves `false` when posthog returns no flag - changes the experiment exposure to wait for loaded flags, so a stale cached variant is never recorded <!-- ## 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/auth](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth) on desktop and reload the page 2. make sure that the top bar links and the sidebar nav show on first paint 3. open [/docs/guides/auth?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth?docs-ia-mvp-v1=option-1) and make sure that the top bar shows "Develop and deploy" and "Run and manage" 4. at a mobile width, open the menu and make sure that the menu sections show 5. run `pnpm --filter docs exec vitest run features/IaNav` and make sure that all 18 tests pass ## 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) |
||
|
|
2b55f7db9a |
Joshenlim/fe 4719 cmd k support searching for policies (#52678)
## Context Continue to build off from [here](https://github.com/supabase/supabase/pull/52205) to make Cmd+K resource-aware so finding and inspecting anything in a project doesn't depend on knowing where it lives in the dashboard. Specifically looking into database entities for now - end state would be that you could search for a table name for example, and Cmd K will pull up everything related to that table for you to skim (e.g Policies, Functions, Triggers, etc). Changes in this PR sets up searching for RLS policies. <img width="609" height="525" alt="image" src="https://github.com/user-attachments/assets/212a430a-314d-48c4-a27c-2f9bb06e8457" /> Policies are matched on, in priority, its name and the target table. ## Performance checking Just ran a check with Claude just to make sure that the added SQL doesn't cause any performance degradation on the database. Plan guard passes at 12,000 tables, under its 500ms budget. Also benchmarked locally with a 3-character query matching every policy, results look good so should be alright: | Catalog | Worst-case search | No-match baseline | |---|---|---| | 36k policies | ~52–64ms | ~16ms | | 120k policies | ~118–134ms | ~63ms | ## To test - [x] Search a table name: Tables first, then its policies, under Policies - [x] Search a policy name: it appears under Policies and opens the editor panel in database/policies - [x] Policy outside `public`: schema filter switches and the policy opens |
||
|
|
0b9e8bdea4 |
Joshenlim/fe 4882 make the new integrations UI the default (#52683)
## Context Makes the one-click integrations feature preview the new default + cleans up all the old integrations code that's no longer used with this change ## To test - [ ] Verify that the project integrations page is using the new UI |
||
|
|
ab60ab2684 |
Fix ProjectLayout side nav width changes after opening and closing inline SQL Editor (#52623)
## Context Happens in the ProjectLayout when the side navigation menu's width can be resized (Table Editor / SQL Editor) On those pages, if you were to toggle the inline SQL Editor with Cmd+E, the side navigation menu's width will change to fit the max width once the inline SQL Editor is closed, and its happening due to the library's default behaviour for handling nested resizable groups. The fix was to bump `react-resizable-panel` to `4.7.x` which introduced a new property `groupResizeBehaviour` and allows us to set that prop's value as `preseve-pixel-size` for the `ProjectLayout` since we use pixel values in this context for the panel widths. Same fix also applied for `FilterSideBar` which is used in Unified Logs |
||
|
|
298fda50dc |
feat(logs): filter by any log attribute DEBUG-223 (#52513)
Support filtering log attributes through the picker and log details, preserving filters across URLs and query surfaces. Fixes DEBUG-223. |
||
|
|
31c9854c2a |
chore: update api types (#52618)
Fixes API-types as per latest develop - pending prod deployment today to clear out the failing action that checks against prod types |
||
|
|
cd0b65c03e | feat(logs): Add Pipelines to unified logs and rename ETL to Pipelines (#52555) | ||
|
|
419ab63a14 |
fix(studio): report regionSelectionType 'auto' only for the Auto region option (#52283)
<!-- claude-slack-attribution --> _Requested by **Pam Chia** · [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1792977863856759?thread_ts=1792977863.856759&cid=C076KTY11DF)_ ## Problem **Before:** `getRegionSelectionType` had an untouched-field branch that also returned `auto`, but it was unreachable: `ProjectCreationForm` passed `dirtyFields.dbRegion` (`undefined` when untouched) into an `isDbRegionDirty = true` default parameter, so the branch never fired. With the new Auto (best available) region option also reporting `auto`, the value was ambiguous between "left untouched" and "picked the Auto option". **After:** `auto` means the user submitted the Auto (best available) region. An untouched field reports whatever default it holds (`general` or `auto`). Production values for untouched submissions don't change, since the removed branch never fired. Fixes [GROWTH-1358](https://linear.app/supabase/issue/GROWTH-1358/studio-regionselectiontype-never-reports-auto-for-untouched-default) ## Solution - `ProjectCreation.utils.ts`: `getRegionSelectionType` classifies only by the submitted region. Removed the `isDbRegionDirty` argument and the untouched-field branch. - `ProjectCreationForm.tsx`: stopped passing `isDbRegionDirty`. The default-region sync effect still uses it, unchanged. - `ProjectCreation.utils.test.ts`: removed the untouched-field cases. The Auto option cases (available and unavailable) stay. - `packages/common/telemetry-constants.ts`: updated the `regionSelectionType` doc to the new meaning. ## Review instructions 1. `pnpm --filter studio exec vitest run components/interfaces/ProjectCreation` passes. 2. On the preview, create a project with the Auto region option and confirm `project_creation_simple_version_submitted` fires with `regionSelectionType: 'auto'`. 3. Create another project leaving a smart group default (e.g. Americas) untouched, or picking an exact region, and confirm it reports `general` or `specific`. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --- _Generated by [Claude Code](https://claude.ai/code/session_01U4bWS81PTj81V8YkZeFP2Q)_ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
abd8594ff8 |
chore(telemetry): remove dead 'troubleshooting' MarkdownAffordancePageType (#52630)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1793582563464379?thread_ts=1793582563.464379&cid=C076KTY11DF)_ ## Problem **Before:** `MarkdownAffordancePageType` in `packages/common/telemetry-constants.ts` allowed `'troubleshooting'` as a `pageType` for `copy_as_markdown_clicked`, `preferred_source_clicked`, and `ask_ai_clicked`. No call site passes it: the docs troubleshooting pages were removed and now redirect to `/kb`, and the KB app does not render these affordances. The dead value implies a page class that can never report. **After:** The union lists only the page types that are actually sent (`blog`, `customers`, `events`, `pricing`, `changelog`, `guide`, `ask_ai_answer`), so the type documents reality and any future use of `'troubleshooting'` is a type error. Linear: GROWTH-1411 ## Solution Removed the `'troubleshooting'` literal from the union. Type-only change: no event names change and there is no runtime behavior change. Checked current `master` across `apps/docs`, `apps/www`, `apps/kb`, and `packages` for `pageType` values and `MarkdownAffordancePageType` consumers (`apps/docs/components/AiTools.tsx`, `apps/www/components/AiTools.tsx`, `AskAiPanel.tsx`, `ChangelogLlmMarkdownButton.tsx`); none use `'troubleshooting'`. ## Review instructions 1. Confirm the diff only removes `| 'troubleshooting'` from `MarkdownAffordancePageType`. 2. Optionally run `grep -rn "pageType" apps/docs apps/www apps/kb packages` and confirm no call site passes `'troubleshooting'`. 3. CI typecheck passes. ## 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) (n/a: no docs content changes) --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSDuN9F7AXVEcUdXBKE)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
6ec1b8a918 |
chore(telemetry): add Event suffix to account recovery event interfaces (#52624)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1793582042354949?thread_ts=1793582042.354949&cid=C076KTY11DF)_ ## Problem **Before:** Four account recovery event interfaces in `packages/common/telemetry-constants.ts` were named without the `Event` suffix that every other event interface in the catalog uses: `AccountRecoveryReminderExposed`, `AccountRecoveryActionClicked`, `AccountRecoveryTaskCompleted` and `AccountRecoveryReminderClosed`. The PostHog Event Review flagged this as a MEDIUM naming finding. **After:** They are `AccountRecoveryReminderExposedEvent`, `AccountRecoveryActionClickedEvent`, `AccountRecoveryTaskCompletedEvent` and `AccountRecoveryReminderClosedEvent`, matching the rest of the catalog. ## Solution Type-only rename. The four interface declarations and their four entries in the `TelemetryEvent` union are the only references in the repo (checked with a word-boundary grep of `packages/` and `apps/studio/`, plus GitHub code search across the whole repo). The `action` event name strings (`account_recovery_reminder_exposed`, `account_recovery_action_clicked`, `account_recovery_task_completed`, `account_recovery_reminder_closed`) and all call sites are unchanged, so no live PostHog event changes. ## Review instructions 1. Check the diff: 8 lines in `packages/common/telemetry-constants.ts`, no `action` string touched. 2. CI typecheck passes. Checks run locally: - `pnpm --filter common typecheck` (`tsc --noEmit`): passed, exit 0. - `prettier --check` with the repo config: passed. - `apps/studio` typecheck: could not run here. `tsc` was OOM-killed at about 13.7 GB in this environment, so CI is the first full studio typecheck. Studio has no references to the old or new names. - ESLint: not run. `packages/common` has no ESLint config. ## 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, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) ## Linear - fixes [GROWTH-1410](https://linear.app/supabase/issue/GROWTH-1410/add-event-suffix-to-account-recovery-telemetry-event-interfaces) --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011aGhS9a5vY8KKFX991yzem Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1a2db3779e |
feat(docs): ask ai v2 (#52459)
## Problem - the change is a follow-up to search v2 (#51175, #52233), which runs as the `docs-search-v2` experiment - in the `search-v2-active` group, `cmd+k` opens the new search instead of the legacy command menu, so readers lose ask ai - a search with no results stops at "No results found." and gives no next step ## Solution - adds an ask ai panel and a `cmd+i` shortcut to search v2, so the `search-v2-active` group can ask supabase ai - adds ask ai entries to the top nav, the results footer and empty results, so readers can ask from search - changes search and ask ai to use one dialog for the page, so two dialogs never open together - adds `renderNoResults` and `renderFooterStart` slots to the `docs-search` panel, so the package has no ask ai code - nit: adds a `keycaps` variant to `KeyboardShortcut` with a design-system example, and uses it in the search trigger and footers | state | preview | | -------|------| | after | <video src="https://github.com/user-attachments/assets/6681fcba-6267-4ee1-b9e0-154b5f45091d" /> | <!-- ## 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?docs-search-v2=search-v2-active](https://docs-git-antlio-feat-docs-ask-ai-supabase.vercel.app/docs?docs-search-v2=search-v2-active) 2. make sure that the top nav shows the search box and an `Ask AI` button 3. press `cmd+i` (`ctrl+i` on windows and linux), and make sure that the ask ai dialog opens with example questions 4. select an example question, and make sure that the bolt icon changes from gray to color while the answer loads 5. press `cmd+k`, and make sure that the same dialog changes to search 6. search for `zzqqxx`, select `Ask Supabase AI: zzqqxx`, and make sure that ask ai opens and sends the question 7. search for `auth`, and make sure that the results footer shows `Ask Supabase AI` and the keycap hints ## 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) |
||
|
|
ab448c11af |
feat(kb): send PostHog pageview and pageleave after consent (#52533)
## Problem The KB has a consent banner but sends no pageviews. `PageTelemetry` imports Next modules, so it can't run in Astro. Part of [GROWTH-1352](https://linear.app/supabase/issue/GROWTH-1352/add-consent-posthog-tracking-to-new-kb-app). ## Solution - Moved `handlePageTelemetry`, `handlePageLeaveTelemetry` and their first-touch helper into `common/page-telemetry.ts`, with no Next imports. Other apps are unchanged. - Added `PageTelemetryIsland` to the KB layout. After consent it sends one `$pageview` per page load and `$pageleave` on `beforeunload`. First-touch UTMs and the `_sb_first_referrer` and mw-diag cookies go only on a tab's first pageview after consent (a `sessionStorage` flag) or on arrival from an external site. - Needs `NEXT_PUBLIC_POSTHOG_KEY` and `NEXT_PUBLIC_POSTHOG_HOST` (`https://ph.supabase.com`) on the KB Vercel project. Both are set on Preview and Production. ## Review instructions 1. Check the `telemetry.tsx` removals match `page-telemetry.ts`. 2. On a KB preview page, accept cookies and check the network tab for `$pageview`, then `$pageleave` after navigating. KB and studio telemetry tests pass. From the kb preview, PostHog prod received `$pageview` on `/kb`, `$pageleave` on `/kb`, then `$pageview` on `/kb/guides/migrate-from-neon`. ## 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) |
||
|
|
5bbddd5f01 |
docs(mcp): document feedback tools and feature group (#52557)
## Problem [MCP 0.15.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.15.0) adds `submit_feedback` and `delete_feedback` in a new `feedback` group. The MCP docs page doesn't mention them, and the configuration panel always sends an explicit `features` list without `feedback`, so hosted users who set up through the panel never get these tools. ## Solution Document both tools on the MCP page: the `feedback` value, that they're hidden in read-only mode, what data is sent, and how hosted, project-scoped, and local connections differ. Update the "Available tools" intro. ## Verification [MCP Tools docs page Preview](https://docs-git-pedrorodrigues-ai-1387-2d-optional-doc-f3ca8e-supabase.vercel.app/docs/guides/ai-tools/mcp) <img width="792" height="890" alt="image" src="https://github.com/user-attachments/assets/74dbe7fd-b1e2-48bf-8b87-403800c8076f" /> <img width="792" height="747" alt="Screenshot 2026-10-30 at 15 30 05" src="https://github.com/user-attachments/assets/bc61ee27-58ba-45b7-bd19-99676035c21d" /> Closes AI-1387 |
||
|
|
1915615dca |
fix: clamp Popover/Select/DropdownMenu content to viewport height (#49233)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Bug fix. ## What is the current behavior? Fixes #49155. The three dropdowns in the issue (Edge Function Logs Severity filter, and the two dropdowns in the "Add foreign key relationship" modal) all get clipped by the viewport with no way to scroll to the rest of the content, in some cases making buttons unreachable. All three share the same root cause: `PopoverContent`, `SelectContent`, and `DropdownMenuContent` in `packages/ui/src/components/shadcn/ui/` each cap their max height with either a hardcoded pixel value (`max-h-96`, `max-h-[300px]`) or nothing at all, instead of using the available-height CSS variable Radix's Popper already computes and exposes for exactly this purpose. When the real available space is smaller than the hardcoded cap, the content still renders at the larger size and overflows past the edge of the screen. ## What is the new behavior? Swapped the fixed `max-h-*` values for the matching `--radix-*-content-available-height` variable on all three components, and changed `overflow-hidden` to `overflow-y-auto` so any content that still doesn't fully fit gets an internal scrollbar instead of clipping off-screen. ## Additional context **On verification:** I wasn't able to get an actual visual click-through of this fix. Locally, `apps/design-system` (the component demo site) hits a known contentlayer2 issue on Windows that leaves every `/docs/*` page 404ing regardless of this change. The CI preview deployment for `design-system` did build successfully, but it's gated behind Vercel SSO (team-only), which I don't have access to as an external contributor. What I did verify directly: - `pnpm --filter=ui typecheck` passes clean. - The three CSS variable names I'm referencing (`--radix-select-content-available-height`, `--radix-popover-content-available-height`, `--radix-dropdown-menu-content-available-height`) are real — confirmed by reading the installed `@radix-ui/react-select`, `@radix-ui/react-popover`, and `@radix-ui/react-dropdown-menu` source directly, where each one aliases its own variable to the underlying `--radix-popper-available-height` that Popper computes. - Compiled the exact new classes through this repo's pinned Tailwind version (4.2.4) via `@tailwindcss/postcss` directly, and confirmed each one generates the expected rule, e.g. `.max-h-\(--radix-popover-content-available-height\) { max-height: var(--radix-popover-content-available-height); }` — so there's no syntax mistake in the arbitrary-value class. Happy to have someone with repo access check the design-system preview, or I can revisit this once I have another way to view it. There's also a fourth spot in the report — the Severity filter's option list (`packages/ui-patterns/src/FilterBar/DefaultCommandList.tsx`), which hardcodes its own `max-h-[300px]` on an inner div rather than the `PopoverContent` primitive directly. That div renders inside the now-fixed `PopoverContent`, so it may already be covered by this change since CSS custom properties inherit to descendants — but since I couldn't confirm that visually either, I've left it untouched for now rather than guess. --------- Co-authored-by: Drew McLellan <drew.mclellan@gmail.com> |
||
|
|
e928d28e69 |
feat(ui-patterns): top nav menu (#52501)
## Problem - kb and docs each keep their own copy of the top bar menu and its buttons - the kb bar has no search box, and the docs bar has one on the right ## Solution - adds a shared top nav to `ui-patterns`, so kb and docs use one megamenu and one set of bar buttons - replaces the docs desktop dropdowns with the megamenu, so docs and kb show the same menu design - adds a heading to the first column of each docs menu, so the reader sees which group a list belongs to - adds the search box and a "sign up" button label to the kb bar, so it matches docs | state | preview | | -------|------| | before | <img width="1506" height="350" alt="image" src="https://github.com/user-attachments/assets/3045d400-4ac0-41d7-a94f-acc23fa919fa" /> | | after | <img width="1506" height="350" alt="image" src="https://github.com/user-attachments/assets/334e5130-611a-4eb7-a95a-c796e2bbcf80" /> | <!-- ## 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 kb and docs preview links above in desktop 2. on kb, hover "topics" and make sure that the panel opens under the bar 3. click the search box and make sure that the kb search dialog opens 4. on docs, open [/docs/guides/auth](https://docs-git-antlio-feat-shared-top-nav-supabase.vercel.app/docs/guides/auth) and make sure that the "products" label has an underline 5. open each docs menu and make sure that the first column has a heading 6. make sure that the menu button opens and closes the mobile menu in kb and docs ## 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) |
||
|
|
632989957b |
fix(pg-meta): pass encrypted FDW server options through format() as %L (#52540)
## What kind of change does this PR introduce? Bug fix ## What is the current behavior? `getCreateFDWSql` in `packages/pg-meta/src/sql/studio/database/fdw.ts` splices encrypted server option values into the `execute format(...)` statement as `''%s''`, filled from a PL/pgSQL variable that holds the Vault secret id. - `''%s''` relies on the secret id never containing a quote, and if the Vault lookup returns NULL it silently creates the server with an empty option value. - The update path in the same file already uses `%L` for this (`alter server ... options (add ... %L)`), so the create path was inconsistent with it. - Multigres's gateway only admits a runtime-built `EXECUTE` inside a PL/pgSQL body when `format()` uses `%I`/`%L` conversions. With `''%s''` it rejects the statement with `0A000: EXECUTE of a runtime-built statement inside a PL/pgSQL body is not supported`, so creating any wrapper that has an encrypted option (Slack, Stripe, ...) fails from Studio on a Multigres-backed project. Every other statement Studio's wrapper flows emit (create wrapper, secrets, foreign tables, import schema, all update and delete paths) already passes that check. ## What is the new behavior? The encrypted-option placeholder is `%L`, format()'s injection-safe literal conversion. A NULL secret id now renders as `NULL` and fails the `CREATE SERVER` instead of silently succeeding with an empty value, and the statement passes Multigres's gateway check. The unencrypted-option branch (already `%L`) and the update and delete builders are unchanged. The test that pinned the old placeholder now pins `%L`. ## Additional context `pnpm exec vitest run test/sql/studio/fdw.test.ts` in `packages/pg-meta`: 18 passed. Signed-off-by: Haritabh Gupta <20576107+haritabh17@users.noreply.github.com> |
||
|
|
3d76559cec |
chore(studio): remove logs.all deprecation banner (#52491)
## Problem The `logs.all` Management API endpoint retired on September 23, and the deprecation banner stopped rendering on September 24 because of its hardcoded expiry. The banner's code is now dead weight in the bundle. Resolves GROWTH-1104. ## Solution Removes the banner and everything it pulled in: - Deletes `BannerLogsAllDeprecation.tsx`, plus its mount effect, expiry timer, and exposure tracking in `AppBannerWrapper.tsx`. - Removes `isLogsOrObservabilityPath` (only this banner used it) and its tests. - Removes `BANNER_ID.LOGS_ALL_DEPRECATION`. `BannerStackProvider.test.tsx` used it as an arbitrary ID, so those tests now use `BANNER_ID.EXPLORER`. The tests themselves are unchanged. - Removes the `LOGS_ALL_DEPRECATION_2026_09_23` local storage key and the two `logs_all_deprecation_banner_*` telemetry events. The dismissal key stays in users' browsers, which is harmless because nothing reads it anymore. ## Review instructions 1. Open a project's Logs or Observability page on the preview and confirm no `logs.all` notice appears and the page renders normally. 2. Open an organization's landing page and confirm the Terms of Service banner still behaves as before. ## 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) |
||
|
|
27bb674186 |
chore: Delete non-existent rows by slug in search ingest (#52507)
## Problem Current search shows deleted pages. For example, here we are still indexing the troubleshooting index which has been moved to kb. <img width="793" height="765" alt="Screenshot 2026-10-29 at 15 54 24" src="https://github.com/user-attachments/assets/5659477c-ead8-4f5d-900a-9ffd42342f7b" /> ## Solution After ingest, clean rows which haven't been updated on the last 25 hours. We run an ingest at least once at midnight, so a row that hasn't been tracked twice means its content inside a page or the page itself doesn't exist anymore. <!-- ## 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 Cannot be reproduced on preview. _Tested locally, both database table correctly removes old rows. Search doesn't send old results on local searches._ ## 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) |
||
|
|
e9325aa3fa |
FE-4754 (#52450)
`CommandMenuInput` now supports controlled `value` / `onValueChange` props. Before, these props replaced the input's internal handlers, so the shared query stayed empty. Results in the RLS Policies, Edge Functions and Storage search views never updated, and Backspace went back to the parent menu instead of deleting a character. The shown value (controlled or internal) now drives the query, telemetry and the empty-input Backspace check, and the caller's `onValueChange` is still called. Added `CommandMenuInput.test.tsx` covering typing and Backspace in both modes. Studio typecheck (`pnpm --filter studio typecheck`) ran out of memory. [FE-4754](https://linear.app/supabase/issue/FE-4754/studio-pressing-backspace-or-typing-in-command-menu-context-search) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
d5ab791acc |
fix(pg-meta): quote password correctly in role update SQL (#52464)
## Problem `pgMeta.roles.update()` produces invalid SQL whenever a `password` is passed, so every password update fails with a syntax error. The builder wraps the `alter role` in a PL/pgSQL `format()` string and interpolated the already-quoted password into it, so the password's quotes ended the string early. It is latent today because nothing in Studio calls update with a password, but it blocks any future edit or reset-password UI for roles. The not-found branch in `update()` and `remove()` also referenced an undeclared `id`, so a missing role failed with `column "id" does not exist` instead of the intended message. Resolves FE-4766. Found while working on FE-4763. ## Solution - Emit `password %L` in the format string and pass the quoted password as a `format()` argument, the same way `valid until` already works. This also stops `%` in a password being read as a format specifier. - Add a small `getRoleNotFoundSql` helper so `update()` and `remove()` raise `Cannot find role with id N` (or `with name X`) instead of the column error. - Tests: update with a plain password, one with `'` and `"`, and one with `%`; a password combined with `valid until`; and the not-found message for update by id, update by name, and remove. Without the fix the password cases fail with a syntax error and the not-found case fails with the column error. The new tests drop the roles they create, since roles are cluster-wide and dropping the test database doesn't remove them. ## Review instructions 1. Run `pnpm exec vitest run test/roles.test.ts` in `packages/pg-meta` against a throwaway Postgres. 2. Confirm the new tests pass. 3. Revert `src/pg-meta-roles.ts` and confirm the password and not-found tests fail. ## 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) |
||
|
|
6a421fe296 |
feat(kb): updates glyph lines (#52389)
## Problem - make kb warp hero consistent with recent `GlyphLines` usage in `www` for favor over grain mask usage for consistency purpose ## Solution - replaces the grain lines on the kb heroes and topic covers with lines that spell the page title and description - changes all lines to one opaque border color, so overlapping glyphs do not get brighter - adds a surface cell behind each glyph, so lines that cross stay readable - changes the draw-in animations to start when the glyphs first paint, so the reader sees them - changes the canvases to redraw at the pinch zoom resolution, so zoomed text stays sharp - removes the grain mask and the animations that nothing uses now | state | preview | | -------|------| | before | <img width="1701" height="670" alt="image" src="https://github.com/user-attachments/assets/9c8de3d3-c3cb-4d7e-ad8c-aedc36f8f911" /> | | after | <img width="1701" height="670" alt="image" src="https://github.com/user-attachments/assets/0be46a5f-6024-4f76-b600-99a86090cc2c" /> | <!-- ## 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 dev:kb` and open `/kb` 2. open `/kb/topics/auth` and make sure that the grid, the frame lines and the shapes draw in after the ## 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) |
||
|
|
9eaae4cd2c |
feat(www): brand page (#52295)
## Problem - a person or an agent cannot link one logo file or pick the file for a light or a dark background as the brand assets page has one preview image and two zip downloads only - `apps/www/lib/json-ld.ts` sets `Organization.logo` to the open graph banner instead of a logo file ## Solution - [proposal] Brand Assets -> Brand Guidelines - [proposal] `/brand-assets` -> `/brand` - adds the official logos as separate svg and png files in `/brand-assets/`, with a catalog that tells the background that each file is for - show each file on its background, with copy and download actions - adds `/brand.md` and a "Copy agent prompt" button, so an agent can read which file to use for each background - adds a "Copy wordmark" item to the nav logo menu, which copies the wordmark file for the site theme - changes `Organization.logo` from the open graph banner to the wordmark png `brand assets page` | before | after | | -------|------| | <img width="1637" height="901" alt="image" src="https://github.com/user-attachments/assets/6b5361c8-0995-4e61-bc29-b5a7ccab7d69" /> | <img width="1637" height="901" alt="image" src="https://github.com/user-attachments/assets/0f65ab36-d6f2-427e-8973-eb559139cf8e" /> | `logo right click` | before | after | | -------|------| | <img width="676" height="362" alt="image" src="https://github.com/user-attachments/assets/5abde373-8a37-4ab8-8193-fb7112b97104" /> | <img width="676" height="362" alt="image" src="https://github.com/user-attachments/assets/ef5d0724-6a91-4af7-8e9d-59025a9eba87" /> | <!-- ## 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 dev:www` and open `http://localhost:3000/brand-assets` 2. in the gallery, copy and download one file of each group, and make sure that each file opens 3. click "Copy agent prompt", and make sure that the copied text names `https://supabase.com/brand-assets.md` 4. open `http://localhost:3000/brand-assets.md`, and make sure that it links each svg and png file 5. right-click the nav logo, hover "Copy logo" and "Copy wordmark", and make sure that the frame moves to the part that each item copies 6. click "Copy wordmark" in the light theme and in the dark theme, and make sure that the pasted svg has black and then white lettering 7. run `pnpm --filter www exec vitest run data/brand-assets.test.ts`, and make sure that the tests pass ## 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) |
||
|
|
9b015c7427 |
feat(studio): allow setting a password when creating a role (#52463)
## Problem The Create Role panel offers "User can login" but no way to set a password, so a role created with login enabled can't authenticate with a password until one is set elsewhere. The role SQL builder in `pg-meta` already supports a password on create; the form just never sent one. Resolves FE-4763. ## Solution - Add an optional **Password** field to the Create Role panel, shown only while "User can login" is on. It has a copy button and a "Generate a password" action, matching how project creation handles database passwords. - Keep password optional. If the field is empty, or login is turned off after typing one, the password is left out of the request, so behavior is unchanged from today. - Link the privilege switch labels to their switches (the label previously pointed at a wrapper `div`), which also lets the new tests find the switch by its label. - Tests: a `pg-meta` case creating a role with a password containing quotes, and component tests asserting the SQL sent for each of the four password and login combinations. Not in scope: editing or resetting an existing role's password. <img width="663" height="661" alt="Screenshot 2026-10-28 at 17 22 59" src="https://github.com/user-attachments/assets/270fcfb4-4dc9-4dc1-b8e6-4141ee755ac2" /> ## Review instructions 1. Open Database > Roles and click **Create role**. 2. Confirm no password field shows until you enable **User can login**. 3. Enable login, click **Generate a password**, then copy it with the copy button, and create the role. 4. Confirm you can connect as the new role using that password. 5. Create another role with login enabled and the password left empty; confirm it is created as before. 6. Click a switch label (for example "User can login") and confirm it toggles the switch. ## 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) |
||
|
|
84115482be |
feat(studio): storage lifecycle policies UI (#52318)
## Problem Lifecycle policies can only be set with an abstracted ui that hides the actual underlying policies but the user can still modify the policies via api, which would result in an un-documented drift from the policies set via said abstracted ui. ## Solution Show ui with list of effective policies applied and show if the policies drifted in a way that is incompatible with the abstracted ui in the "Create/Edit bucket modal". <img width="1489" height="800" alt="Screenshot 2026-10-26 at 18 35 39" src="https://github.com/user-attachments/assets/9e64f123-c06e-4cfe-9dba-839fae61c845" /> <img width="1439" height="847" alt="Screenshot 2026-10-26 at 18 35 50" src="https://github.com/user-attachments/assets/a32d3a27-6719-48b3-abd2-fb134158bd96" /> <img width="654" height="316" alt="Screenshot 2026-10-26 at 18 36 38" src="https://github.com/user-attachments/assets/0710c139-9b64-42f7-b410-c1a351b1f616" /> This PR also updates copywriting around the effects procured by the lifecycle policies settings in the bucket settings modal. <img width="704" height="440" alt="Screenshot 2026-10-26 at 18 35 17" src="https://github.com/user-attachments/assets/f4fa03d1-e11b-4d08-b4f5-d94b2d9350a3" /> <img width="351" height="82" alt="Screenshot 2026-10-26 at 18 35 28" src="https://github.com/user-attachments/assets/6ff1e149-92e0-4fd8-bfb5-0177afe207aa" /> ## To review - create a file storage bucket, enable object versioning and set some lifecycle policy values - once created, go to /project/_/storage/files/policies and find the bucket policies or navigate to it from the "Edit bucket settings" via the "View rules" button <img width="1133" height="725" alt="Screenshot 2026-10-27 at 14 50 52" src="https://github.com/user-attachments/assets/ef014f7a-5db6-413a-af53-a5648309b2c3" /> - adding extra policies should result in a "This bucket has a custom lifecycle policy" message in the edit bucket modal <img width="557" height="130" alt="Screenshot 2026-10-27 at 14 52 23" src="https://github.com/user-attachments/assets/cde29748-65d9-45b5-a54b-55737d78d311" /> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|
|
845ed5a1e3 |
feat(kb): add cookie consent banner (#52342)
## Problem kb has no cookie consent banner, so PostHog pageviews have to wait. Part of GROWTH-1352. ## Solution - `ConsentIsland` mounts the www/docs consent toast as a `client:only` island. - Shared consent code reads `process.env.NEXT_PUBLIC_*`, which Vite doesn't provide in the browser, so `astro.config.mjs` defines it for the client only. - `consent.tsx`, `ConsentToast`, and `PrivacySettings` import specific `common` modules instead of the barrel, which cuts the island from 652 KB to 96 KB. - A footer Privacy Settings link opens the same dialog, like docs. <img width="400" height="150" alt="kb-consent-banner" src="https://github.com/user-attachments/assets/c32a57ce-89e9-4842-89e4-67d03dafcd7c" /> kb previews auto-accept consent like www and docs (`NEXT_PUBLIC_ENVIRONMENT=staging`). Production needs `NEXT_PUBLIC_IS_PLATFORM` and `NEXT_PUBLIC_USERCENTRICS_RULESET_ID` before the banner shows. Testing: on `astro dev` (toast forced on), the banner renders, and Privacy settings opens from both the toast and the footer. Accept and opt out are unverified until production. ## Review instructions 1. The kb, www, and docs previews load with no console errors. 2. On the kb preview, the footer Privacy Settings link opens the dialog. ## 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) |
||
|
|
d1dcb57bdf |
feat(www): use the shared AiTools component on www pages (#52186)
## Problem Docs guides, docs troubleshooting pages, and knowledge base guides render the shared `AiTools` component from `ui-patterns`. The marketing site renders its own copy of the same actions in `MarkdownActions`, with the same styles and links. A change to one doesn't reach the other. Resolves [DOCS-1505](https://linear.app/supabase/issue/DOCS-1505/use-the-shared-aitools-component-on-www-pages). ## Solution Blog posts, customer stories, event pages, changelog entries, and pricing render `AiTools` through a www wrapper, and `MarkdownActions` is deleted. The wrapper sends `copy_as_markdown_clicked` and `ask_ai_clicked` with each page's type, as `MarkdownActions` did. - **Prefer on Google:** blog posts show the Prefer on Google link through `AiTools`, and clicks send `preferred_source_clicked`. #52026 proposed adding the link through `MarkdownActions`. This PR adds it through `AiTools` instead, and #52026 is closed. The link's URL is a shared constant in `markdown-affordance.ts`, which the docs wrapper also uses. - **Horizontal layout:** `AiTools` has an `orientation` prop. Pricing uses it to keep the actions in a row under the hero. The design system's AI Tools page documents it. - **Headings:** `AiTools` adds an "AI tools" heading: - Blog posts style it like the sidebar's On this page label. - Pricing, customer stories, and event pages hide it visually, so they look as they do on the live site. Screen readers still announce it as the section's label. - Changelog entries give AI tools its own sidebar section, like Change type and Products. The Links section appears only when an entry links to a GitHub discussion. The changelog index keeps `ChangelogLlmMarkdownButton`. It's a split button in the header toolbar, and `AiTools` is a list of links built for sidebars. ## Preview links Compare the before and afters (since there's a lot of examples here, links are less visually busy than images in this case): | Site | Live | Preview | | ------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | WWW | [/blog/give-your-supabase-app-its-own-mcp-server](https://supabase.com/blog/give-your-supabase-app-its-own-mcp-server) | [/blog/give-your-supabase-app-its-own-mcp-server](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/blog/give-your-supabase-app-its-own-mcp-server) | | WWW | [/pricing](https://supabase.com/pricing) | [/pricing](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/pricing) | | WWW | [/customers/berriai](https://supabase.com/customers/berriai) | [/customers/berriai](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/customers/berriai) | | WWW | [/events/agency-webinar-ai-prototyping-production](https://supabase.com/events/agency-webinar-ai-prototyping-production) | [/events/agency-webinar-ai-prototyping-production](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/events/agency-webinar-ai-prototyping-production) | | WWW | [/changelog/cbc-tls-ciphers-deprecated](https://supabase.com/changelog/cbc-tls-ciphers-deprecated) | [/changelog/cbc-tls-ciphers-deprecated](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/cbc-tls-ciphers-deprecated) | | WWW | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://supabase.com/changelog/17817-pgbouncer-and-ipv4-deprecation) | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/17817-pgbouncer-and-ipv4-deprecation) | | Design system | [/design-system/docs/fragments/ai-tools](https://supabase.com/design-system/docs/fragments/ai-tools) | [/design-system/docs/fragments/ai-tools](https://design-system-git-alexisa-docs-1505-supabase.vercel.app/design-system/docs/fragments/ai-tools) | ## Review instructions 1. Open each live and preview link side by side. 2. On pricing, check that the actions sit in the same row under the hero. 3. On the blog post, check that the "AI tools" heading matches the On this page label. 4. On the blog post, check that Prefer on Google appears in the sidebar and at the end of the post on mobile. 5. On both changelog entries, check that AI tools has its own sidebar section. Links appears only on the pgbouncer entry, which links to a GitHub discussion. 6. On each page, click Copy as Markdown, Ask ChatGPT, and Ask Claude. On the blog post, also click Prefer on Google. In the browser's network tab, check that each telemetry request includes the page's `pageType`. 7. On the design system page, check the Horizontal layout example. ## 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) |
||
|
|
c4424c9795 |
feat(kb): open search with cmd+k on every page (#52413)
## Problem - the kb search dialog opens only on the home page, because the home hero button contains the dialog and the cmd+k listener ## Solution - moves the search dialog and the cmd+k shortcut into the shared kb layout, so cmd+k opens search on every kb page - changes the home hero button to open the same dialog, so each page has only one search dialog <!-- ## 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` 2. click the search button in the hero, and make sure that the search dialog opens 3. close the dialog, push cmd+k (ctrl+k on windows or linux), and make sure that the same dialog opens 4. push cmd+k again, and make sure that the dialog closes 5. open `/kb/topics/migration`, push cmd+k, and make sure that the dialog opens ## 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) |
||
|
|
7f7ebf527b |
feat(studio): use shared logs table for recent function errors (#50958)
The Overview's "Errors in the last 24h" section now uses the Logs tab's queries (#50954) and the read-only `EmbeddedLogsTable` (#50953) instead of its own SQL and table. It previews the latest five errors since the last deploy, capped at 24h, shows "+N more" when there are more and links to the rest. It's behind the `edgeFunctionsOverview` flag, like the rest of the new Overview. - Rows have no multi-select checkbox. Clicking one opens it in the Logs tab with the same range and error filter, and "View logs" and "+N more" open the filtered list. - With the unified logs preview off, those links open the pre-unified Invocations tab (for invocation rows) or Logs tab (for runtime rows), using those tabs' own `its`/`ite`/`log` params. - "Explain with AI" and "Copy summary" send the previewed errors to the Assistant with the same prompt as selected logs on the Logs page. The prompt also notes how many errors were left out. - One count query, scoped to the function and unfiltered, gives both the error count behind "+N more" and the invocations since the deploy, from its level and log type facets. It replaces the hand-built invocation count SQL, so the section runs two queries instead of three. - The row query fetches only the five errors shown, through a new `pageSize` option on `useUnifiedLogsInfiniteQuery`. - The section uses the edge function preset from #50957, so it runs the Logs tab's scoped queries and shares its saved columns. - The custom error grouping and its SQL are removed. Net, the PR removes about 390 lines. ### How to test 1. With `edgeFunctionsOverview` on, open a function that has recent errors. You should see up to five rows without checkboxes, and "+N more" when there are more. 2. Click a row with the unified logs preview on. It opens the Logs tab with that log selected. Turn the preview off and click an invocation row and a runtime row. They open Invocations and Logs respectively. 3. Use Explain with AI and Copy summary and check the prompt. 4. For a function with no errors since the last deploy, the section shows the invocation count instead. ### Validation - MSW component tests: preview rows and "+N more", no checkboxes, the summary prompt, row links with the preview on and off, and the no-errors state. They also check the row query asks for five rows and that a single unfiltered count runs. `pageSize` and the facet count helper have unit tests. - Studio typecheck, lint ratchet, Prettier and knip pass on this layer. ### Stack Merge in order: 1. #50953 — reusable logs table building blocks 2. #50954 — function-scoped unified logs queries 3. #50955 — slimmer function detail layout, header on Overview 4. #50957 — Invocations merged into a function-scoped Logs tab 5. #50958 — Overview errors in the shared logs table 6. #52281 — remove the legacy Overview --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com> |
||
|
|
a9f56b3c4a |
feat(ui): mobile nav drawer (#52177)
## Problem on mobile docs pages with a sidebar have two menu buttons: the burger opens the global menu, and a second bar opens the sidebar while kb has its own full-screen accordion menu making two apps sharing no mobile nav code ## Solution - adds `MobileNavDrawer`, `MobileNavTabs` and `MobileNavThemeButton` to `packages/ui-patterns/src/MobileNav` - makes docs and kb use the same three parts - adds a full-width drawer in `MobileNavDrawer` under `--header-height`. It sets `inert` while it is closed - adds a tab row in `MobileNavTabs`, with a dropdown below `@xl` to avoid multiple tab lines - adds a theme button in `MobileNavThemeButton`. Each tap moves to the next theme in `singleThemes` - shows the group tabs, the theme button and the links of the selected group above the sidebar | before | after | | -------|------| | <img width="619" height="802" alt="image" src="https://github.com/user-attachments/assets/09d441c6-b4f3-4768-bb29-1e1d4f23fad1" /> | <img width="619" height="802" alt="image" src="https://github.com/user-attachments/assets/53043083-f05f-45aa-b30e-3db6fccdd443" /> | <!-- ## 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 Provide a clear numbered procedure that the PR reviewer can walk through. 1. For example, `Open the live and preview links side-by-side.` 2. For example, `See the issue is fixed.` ## 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) |
||
|
|
5d8499b6f1 |
chore(eslint): allowlist grant and connectionString in query exhaustive-deps (#52334)
## Problem `@tanstack/query/exhaustive-deps` flags every variable used in a `queryFn` that isn't in the `queryKey`. Some variables are intentionally left out because they don't change the returned data, and keeping them out of the key avoids splitting the cache: * **`connectionString`** in queries that run SQL against the user's database. These currently need `eslint-disable` comments or count against the ratchet. * **`grant`**, the FGA grants that Studio data hooks now take (see #52331). Every migrated query would otherwise need a disable comment. The installed plugin (5.91.2) has no way to configure this. ## Solution * Upgrade `@tanstack/eslint-plugin-query` from `^5.0.0` (resolving 5.91.2) to `^5.104.5`. The rule's `allowlist` option arrived in 5.95.0. 5.105.0 is newer than our pnpm minimum release age allows. * Allowlist `grant` and `connectionString` for `exhaustive-deps` in `eslint-config-supabase/next.js`. * Remove the 11 disable comments in Studio that only suppressed `connectionString`. * Six disable comments stay, because they suppress other dependencies: * `ReportBlock.tsx` * `UserJourneys.queries.ts` * `github-config-query.ts` * `bucket-objects-infinite-query.ts` * `table-rows-query.ts` * `useSingleLog.tsx` * Lower Studio's `@tanstack/query/exhaustive-deps` baseline from 87 to 28. The upgraded rule is stricter than 5.91.2: without the allowlist it adds about 18 warnings. With the allowlist, the total drops well below the old baseline, because many existing warnings were unsuppressed `connectionString` omissions. The lockfile changes are the plugin and its `@typescript-eslint` dependencies. The graphiql entries are re-keyed by pnpm's peer resolution; their versions are unchanged. ## Testing * `pnpm --filter studio run lint:ratchet` passes. * ESLint is clean on each file where a disable comment was removed. * Other apps' ratchets only track `shadcn/*` rules, so they're unaffected. |
||
|
|
fdab2cc751 |
feat(studio): interrupt serious account recovery gaps (#51643)
## Problem Users with serious recovery gaps may never visit Account Security, so a manually accessible reminder is easy to miss. ## Solution Show the existing reminder as a full-screen layout takeover after required MFA verification and successful account reads. Keep the original URL, query and fragment intact. The dashboard stays mounted but inert, preserving unsaved work; dismissal reveals it. Wait for existing dialogs to close. Keep rollout gating, eligibility and snooze unchanged. A successfully resolved background check dismisses an untouched takeover; started tasks and completed rows remain until Continue. Both of these recovery flags are enabled via ConfigCat for local and staging: - `enableAccountRecoveryInterstitial`: this work - `enableAuthRecoveryCodes`: the work it depends on We’ll only flip these to `true` for production once all of this is merged and heavily tested. | Interruption Example | | --- | | <img width="654" height="800" alt="16563" src="https://github.com/user-attachments/assets/eec71acf-78ab-473d-a9d3-9c6cdc3aff07" /> | The dashboard remains usable while eligibility loads. An open takeover stays in place through background refreshes. Signing out clears in-memory reminder state so clearing browser snooze permits retesting. ## Review instructions 1. Open [this PR’s staging preview](https://studio-staging-git-dnywh-account-recovery-interstitial-supabase.vercel.app/dashboard/organizations) with a non-SSO test account and complete required MFA verification. Check `enableAccountRecoveryInterstitial` and `enableAuthRecoveryCodes` are both true in the staging dev toolbar. Close the toolbar and other dialogs. 2. **Exhausted codes:** use an account with existing codes and exactly one verified authenticator. Override GET `/factors/recovery-codes` in DevTools Network: retain JSON fields, set `remaining` to `0` and save. Clear `account-recovery-reminder:<userId>` from Local Storage for this preview origin, then reload. Make sure you are **not** on `dashboard/account/security` as that won’t show the interstitial. Confirm the request uses the override and the takeover opens without changing the URL. 3. **Missing codes, separate scenario:** disable overrides and use an MFA test account with no generated codes. Clear snooze and reload. A zero remaining count simulates exhausted codes, not missing codes. A second verified authenticator prevents the exhausted-code trigger, but not the missing-code trigger. 4. Skip, reload and switch projects or organisations. Confirm snooze persists. A different account must have separate reminder state. For warning-to-critical escalation, generate codes on the missing-code account, then override its remaining count to zero and reload without clearing the warning snooze. 5. Disable overrides before live actions. Save codes or add an authenticator, then Continue. Confirm the page and URL remain intact. Tab and Command/Ctrl+K must not reach dashboard controls; nested dialogs must still work. Editor draft and browser-history preservation are also covered by component tests. 6. With snooze cleared, open a project URL containing a query and fragment; opening and dismissing the takeover must leave that full URL unchanged. Check account settings, sign-in, MFA verification and consent/connection flows remain uninterrupted. A healthy account, failed reads or a disabled rollout flag must not trigger a takeover. 7. Throttle the status request: the dashboard stays usable while eligibility loads. If another dialog is already open, the takeover waits until it closes. There is no standalone recovery route or runtime mock parameter. |
||
|
|
e2ec13d9a6 |
feat(studio): snooze recovery reminders per browser (#52124)
## Problem Skipped recovery reminders need a consistent reminder interval for each signed-in person in the browser. ## Solution Snooze missing codes for thirty days and exhausted codes for seven days. Escalation breaks snooze; sign-out preserves it. Completing codes, or adding a backup factor for exhausted codes, resolves the applicable gap. Track task actions, completion and dismissal. ## Review instructions **This PR’s own deploy preview cannot show the takeover.** Review its diff here, but test the assembled stack on [#51643’s staging preview](https://studio-staging-git-dnywh-account-recovery-interstitial-supabase.vercel.app/dashboard/organizations). The controller only mounts in #51643. Before each scenario: use a non-SSO staging test account with MFA verified; check `enableAccountRecoveryInterstitial` and `enableAuthRecoveryCodes` are both true in the staging dev toolbar, then close the toolbar and other dialogs. Clear `account-recovery-reminder:<userId>` from DevTools Application → Local Storage **for that preview origin**, then reload the dashboard. 1. Use an account with existing codes and exactly one verified authenticator. Override GET `/factors/recovery-codes` in DevTools Network: retain JSON fields, set `remaining` to `0`, save and reload. Confirm the overridden request succeeds and the takeover opens. 2. Skip. Confirm the URL stays unchanged and the local-storage record has critical severity with expiry seven days ahead. In a separate scenario, genuinely missing codes should record warning severity with expiry thirty days ahead. 3. Reload, switch projects or organisations, then sign out and back in. The reminder stays hidden. Clear the record and reload to retest. 4. Disable overrides before live actions. Save codes and Continue; the record clears. Adding a second authenticator resolves exhausted codes but must not resolve missing codes. Use separate test accounts for these cases. |
||
|
|
d98c277790 |
feat(studio): rotate Storage URL signing keys FE-4433 (#52165)
## Problem Rotating a project's Storage URL signing key currently needs a support ticket, so customers can't rotate on their own timeline or keep a standby key until their signed URLs have migrated. Linear: [FE-4433](https://linear.app/supabase/issue/FE-4433/allow-users-to-rotate-storage-url-signing-keys-via-ui) ## Solution Adds a URL signing keys page at `/project/{ref}/storage/signing-keys`, linked from the Storage menu. It builds on the design prototype from `feat/storage-rotate-signing-keys` and follows the current JWT Keys page styling. - Active key, standby key, and revoked keys are shown in separate tables, so there is only ever one active key. The UI allows one standby key at a time. - Create a standby key (ES256 by default, HS512 optional), rotate the standby key to active, revoke a standby key, or move a revoked key back to standby. - The key list reports JWK types (`EC`, `oct`), which are mapped to ES256 and HS512 labels. Unrecognized types fall back to the raw value. - Telemetry: `storage_url_signing_key_created` and `storage_url_signing_key_updated` (with a `change` property), fired when the action succeeds. - A "Created at" column is not included yet because the keys endpoint doesn't return it. It will follow in a later PR. <img width="1272" height="846" alt="Screenshot 2026-10-23 at 11 43 45" src="https://github.com/user-attachments/assets/980742ed-6c4e-43d1-b170-847e550fde4c" /> ## Review instructions 1. Open the preview and go to Storage > URL signing keys on a project. 2. Create a standby key, then rotate it to active. The previous active key should move to standby. 3. Revoke the standby key (type its ID to confirm), then move it back to standby from the revoked table. 4. Compare the table styling with Project Settings > JWT Keys. 5. Check that creating a standby key and moving a revoked key to standby are disabled while a standby key exists. ## 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) --------- Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> |
||
|
|
973dfa1b97 |
feat(studio): scope unified logs queries to one edge function (#50954)
Adds an optional `scope` to the unified logs search: fixed filters every query applies on top of the user's, which the user can't remove. Nothing sets a scope in this PR, so the Logs page is unchanged. #50957 uses one to narrow the function Logs tab to one edge function. A scope uses the same columns and operators as the `filter` URL param, so any view can narrow logs to one resource without new query code. Columns the query builder doesn't know match a `log_attributes` key, so one edge function's logs are: ```ts { filters: [ { column: 'log_type', operator: '=', value: 'edge function' }, { column: 'log_type', operator: '=', value: 'edge function runtime' }, { column: 'function_id', operator: '=', value: functionId }, ], } ``` - New `edge function runtime` log type, read from the `function_logs` source. Its level comes from the console level (`error`/`fatal` count as errors, `warn`/`warning` as warnings), and its details stay in metadata. - **Every scan**: the scope's filters apply to rows, counts, the chart and single-facet queries. Facet scans never drop them, unlike the user's own filter on the facet's column. Filters on the same column and operator combine like the URL's (`=` values match any), every group must match, and a scope replaces the default postgres + edge log types. - **Fails closed**: a scope condition that can't be built matches no rows, instead of being dropped like a bad user filter. - **ClickHouse only**: scoped searches always run on ClickHouse, whatever `otelUnifiedLogs` says, including downloads and the log detail panel. The BigQuery queries are unchanged from master and throw on a scope rather than return rows from outside it. - `getLogTypeVisibility` offers only the log types a scope fixes. Otherwise it keeps the new log type out of the filters, since the project-wide Logs page already shows runtime logs inside each invocation's detail panel. - `toQuerySearchParams` and `createUnifiedLogsSearch` attach the scope. - `UnifiedLogs` works out which log types its queries may use once, instead of in each of its queries, filters and facets. ### How to test 1. Open the project Logs page with the unified logs preview on. The log type filter shouldn't offer "Edge Function runtime", and default results should match master. 2. The scoped behavior is easiest to try on #50957. ### Validation - Query builder tests: the scope on every count scan, the chart and facet queries, requests for out-of-scope log types, different operators on one column, the fail-closed case, BigQuery refusing a scope, and unscoped queries staying the same. - Studio typecheck, lint ratchet, Prettier and knip pass on this layer. ### Stack Merge in order: 1. #50953 — reusable logs table building blocks 2. #50954 — function-scoped unified logs queries 3. #50955 — slimmer function detail layout, header on Overview 4. #50957 — Invocations merged into a function-scoped Logs tab 5. #50958 — Overview errors in the shared logs table 6. #52281 — remove the legacy Overview --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com> |
||
|
|
f4d6d90527 |
chore: Open new search on ctrl+k and not-found page (#52233)
## Problem When user press `ctrl` + `k` on docs, with the search v2 experiment active, the old search opens instead of the new one. Also, search v2 doesn't open on 404 page. ## Solution Add missing key handler. <!-- ## 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 preview with new search experiment enabled 2. Press `ctrl` + `k`, the new search modal should appear 3. Then open a 404 page 4. Make sure that the "Search the page" button opens the new modal too ## 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) |
||
|
|
fa9f1baeb4 |
fix: Trim query texts. Prevent searches with less than two characters (#52220)
## Problem Currently we are firing searches too early and too often. Analyzing data, most common cases are people adding spaces while typing, and not so meaningful two character searches _(see screenshot below)_. <img width="419" height="460" alt="Screenshot 2026-10-23 at 13 23 17" src="https://github.com/user-attachments/assets/ead60c12-e558-4584-9108-1b4326846ce0" /> This first, makes unnecessary calls to our search function, but second pollutes data. ## Solution - Trim queries before sending them to the search callbacks - Avoid searches with only two characters, this is configurable on the consumable side of the components via a `minCharacters` prop which default is `0`. <!-- ## 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 Open both docs and kb previews, and open the new search experience in both. - Write combinations like " au", "au ", or "au" these strings shouldn't trigger a search call in the network tab - Once you add a third character that is not a space, a search call should happen ## 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) |
||
|
|
54a271b0f8 |
Upgrade sonner to 2x and update toast design (#52003)
## Problem Two issues: - There's an accessibility issue with sonner before v2 as it applies `role="status"` to an `li` element - The custom Tailwind classes we pass are not applied and once applied correctly, the design is not what we want ## Solution - Upgrade sonner to v2 (the aria attribute are now applied to the toasts container) - Fix the design, especially the close icon and the upload usages (with progression) In all screenshots, the close button is only displayed when hovering the toast. <img width="384" height="73" alt="image" src="https://github.com/user-attachments/assets/c34038f1-30ce-43d7-a031-81727d61592c" /> <img width="776" height="156" alt="image" src="https://github.com/user-attachments/assets/ec27ff42-6887-4b12-a39b-262a3adacf6b" /> <img width="385" height="78" alt="image" src="https://github.com/user-attachments/assets/c6b36ec9-881c-4dbe-a0c0-81b2b2b5053f" /> ## Review instructions On [Design System](https://design-system-hgbzzl10s-supabase.vercel.app/design-system/docs/components/sonner): - Check each example with extra attention to the loading/promise and upload ones On [Studio](https://studio-staging-1nx2cwequ-supabase.vercel.app/dashboard/), in the Table Editor: - Create a new table by importing a CSV file and check there's only one loading icon while the progress is shown (requires a quite big CSV as it's fast) - Then import more data in the new table |
||
|
|
a3a3e2fd82 |
feat(studio): surface AWS Marketplace on billing and plan chooser (#51122)
## Problem Studio’s upgrade flow only leads into Stripe checkout. Eligible customers with an AWS spend commitment can miss the AWS Marketplace path at commitment time. ## Solution Keep Stripe checkout alone. Make AWS Marketplace discoverable around plan commitment: - Plan chooser: Admonition callout after the plan cards → `supabase.com/aws-marketplace` - Billing: quiet “More information” link (`AWS Marketplace`) when the org is eligible This supabase.com/aws-marketplace link will go live when the first PR in the stack (#52198) is merged. | Plan Chooser | Billing | | --- | --- | | <img width="1280" height="1323" alt="Billing Basket Supabase" src="https://github.com/user-attachments/assets/561b4c4c-246f-4db2-9f2d-12e1f60483b0" /> | <img width="1280" height="1323" alt="Billing Basket Supabase" src="https://github.com/user-attachments/assets/3da7b5fe-9c97-4516-8a01-56d131d2e50a" /> | | _Unit at bottom of cards_ | _Quiet link under “More information” on top left_ | ## Review instructions 1. Studio [Billing](https://studio-staging-git-dnywh-feataws-marketplace-pu-51ddc2-supabase.vercel.app/dashboard/org/_/billing) (direct-billed Free/Pro) → More information → AWS Marketplace 2. Change subscription plan → Prefer purchasing through AWS Marketplace? under plan cards 3. Confirm the callout does not appear for partner-billed / non-eligible orgs |
||
|
|
c5f9403d8a |
feat(www): add AWS Marketplace landing and pricing FAQ (#52198)
## Problem Customers with an AWS spend commitment (PPA or EDP) need a clear way to buy Supabase through AWS Marketplace. Today that path is easy to miss on marketing surfaces. ## Solution - Canonical `/aws-marketplace` landing with self-serve (Pro/Team via Buy with AWS) and private-offer (Enterprise form) paths - Buy with AWS CTA: our primary `Button`, co-branded procurement URL, `partner.js`, and `data-awsmp-bwa-*` attributes - Pricing FAQ item linking to the landing page and public listing - Older blog post banner pointing at the updated path | `/aws-marketplace` | `/pricing` | Blog Post | | --- | --- | --- | | <img width="1280" height="1323" alt="Supabase on AWS Marketplace" src="https://github.com/user-attachments/assets/19318bd0-6a07-49e2-8a1f-7c2a827f790a" /> | <img width="1280" height="1323" alt="Pricing Fees Supabase" src="https://github.com/user-attachments/assets/7d3278e7-0e5f-4206-8642-d8e8450a2c79" /> | <img width="1280" height="1323" alt="88266" src="https://github.com/user-attachments/assets/e0d1b4cc-886e-4858-944a-6792af202e1b" /> | ## Review instructions 1. Open the [www preview](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/aws-marketplace) for `/aws-marketplace` 2. Confirm hero **Buy with AWS** (primary green) opens the AWS procurement URL with product/seller IDs 3. Confirm **Request a private offer** goes to the Enterprise form 4. Open [`/pricing`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/pricing) → FAQ → “Can I purchase Supabase through AWS Marketplace?” 5. Open [`/blog/supabase-aws-marketplace`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/blog/supabase-aws-marketplace) and confirm the banner about the updated path |