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 | |
|---|---|---|---|---|
|
|
478bd88d35 |
feat(ui-patterns): underline hoverable code block tokens (#52209)
## Problem - in docs code blocks, tokens with a type hover look the same as plain code making it hard to discover ## Solution Provide a brief description of the change and the key choices you made when architecting the solution. Feel free to include screenshots if it includes visual changes. | state | preview | | -------|------| | before | <img width="815" height="283" alt="image" src="https://github.com/user-attachments/assets/46e7aebe-5ddc-4514-a1a3-5ed78782c9f2" /> | | after | <img width="815" height="283" alt="image" src="https://github.com/user-attachments/assets/46816300-2e10-4f28-b6ed-57e09b1dbebb" /> | <!-- ## 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/passwords?queryGroups=language&language=js` 2. make sure that `email` and `password` in the `signUp` example show a dashed underline in the color of the token ## 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) |
||
|
|
942246995a |
feat(ui-patterns): toc disclosure (#51651)
## Problem as highlighted in [#51565](https://github.com/supabase/supabase/pull/51565#discussion_r4260820836) we are lacking toc on mobile ## Solution this is a proposal to add a toc disclosure for mobile breakpoint | state | preview | | -------|------| | after | <img width="1492" height="618" alt="image" src="https://github.com/user-attachments/assets/cc4d174f-47ee-499c-af6d-8f62a2edf25a" /> | | after | <img width="1492" height="618" alt="image" src="https://github.com/user-attachments/assets/ef76288a-3e28-45fa-9a22-0af84247798b" /> | <!-- ## 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. visit `/docs/guides/observability/advanced-log-filtering` 2. decrease screen size or use mobile ## 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) |
||
|
|
7d63d764fc |
Joshenlim/fe 4712 cmd k support searching for database tables (#52205)
## Context Looking into some kaizen improvements for Cmd+K, with the overarching idea 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 the foundation here by starting with just the tables. <img width="500" alt="image" src="https://github.com/user-attachments/assets/65054781-2385-416c-aed9-f142380e4454" /> This might be similar to how we currently support searching for database entities via these "Queries" section, but these only search within the context of the entity category, not across (e.g only tables, only policies) <img width="500" alt="image" src="https://github.com/user-attachments/assets/66ca16c6-9551-4134-b1e1-0b0c4b004085" /> The idea isn't to replace this, but provide another way to find your database entities so that - You can see related entities to what you're searching at a glance - You don't need to go to a 2nd level nav in Cmd K Also fwiw the bulk of the LOC changes in here are mainly tests actually, actual LOC changes are +385, -22 |
||
|
|
17582d8373 |
Cmd K to sort results based on relevance score (#52211)
## Context Realised that Cmd K doesn't really sort results by relevance. e.g here searching for "Cron" shows the first result as "Edge functions" which has nothing to do with Cron, so this PR just addresses this <img width="618" height="552" alt="image" src="https://github.com/user-attachments/assets/d643136d-a7ec-4d67-84b7-47ef0ccb5d1d" /> |
||
|
|
5a98369a85 |
Tighten Cmd K fuzzy matching (#52207)
## Context Searching in Cmd K has a tendency to return seemingly irrelevant results - e.g searching "blog" or "colors" would show "Project Integrations" as a search result. Cmd K itself ranks items with a fuzzy scorer that matches characters in order but not contiguously - so _any_ item with a non-zero score stays in the list. <img width="661" height="200" alt="image" src="https://github.com/user-attachments/assets/2e170ccc-ab01-43f3-8d83-7e567e95913e" /> ## Changes involved - Add a custom filter for Cmd K to filter out results which fuzzy score falls below 0.01 - This catches the worst scattered matches and keeps short abbreviations like `db` → Database (about 0.17). - Keywords are matched by substring only, never fuzzily, and requires a score of at least 0.5 - Cmd K normally fuzzy-matches keywords together with the name, so we match keywords by exact substring instead ## To test - Open the command menu in Studio and search `colors` and `blog`. Project Integrations should not appear. - Search `branch`, `vercel`, `github` and `privatelink`. Project Integrations should appear. - Search `addons`, `restart project` and `pause project`. The corresponding Add-ons and Project availability commands should appear. - Search `db`, `auth` and `stor`. The usual results should still appear. |
||
|
|
2f7ccdd6bc |
Cmd K hitting backspace while search input is empty should return to first level (#52206)
## Context Currently while using Cmd+K, if you're in a second level nav (e.g after selecting "Search Database Tables") To return back to the first level nav, you'd need to hit "Esc" which is unintuitive and not how most Cmd+K UX works. PR here changes that behaviour such that - Hitting backspace while search input is empty will return you back to the first level nav - Hitting esc will close the Cmd+K panel |
||
|
|
2193f2acdf |
fix(ui-patterns): only initiate the command menu when it opens (#52129)
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> Closing the command menu called `setOpen(false)`, and `setOpen` always ran `init()`, which mounts the lazy `CommandMenu`. So the first close (e.g. a shallow `routeChangeComplete` from switching schema in the Table Editor on Next, or the load-time `onResolved` on TanStack) mounted the menu and its hooks fetched api keys, project settings, the projects list, secrets, auth/storage config and integrations. Reproduces on master, found while testing #52016. The menu and its queries now load on first open instead (on TanStack that used to happen at page load). **Changed:** - `viewState.ts` – `setOpen` only calls `init()` when opening - `CommandProvider.tsx` – add `completeNavigation` to the listener effect deps - `SqlEditor.Commands.tsx` – treat mounting while open as just opened, so the first Cmd+K still prefetches tables **Added:** - `viewState.test.ts` – closing doesn't initiate a never-opened menu, opening does - `CommandProvider.navigation.test.tsx` – a real or shallow completion leaves a never-opened menu unmounted and closes an open one. Fails without the fix. - `SqlEditor.Commands.test.tsx` – mounting while open prefetches tables ## To test - Table Editor, open DevTools Network, switch schema (e.g. public to auth) – only the schema's pg-meta queries fire, no api-keys, settings, projects or integrations requests - Load a project and navigate via the sidebar before opening Cmd+K – none of those requests - Cmd+K – the menu opens, its commands work, and the first open fetches tables - Navigate via a command – the menu closes - With the menu open, follow a shallow path change (e.g. open another SQL snippet) – the menu closes - Repeat locally on TanStack (`pnpm dev:studio`) <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-4c050997-e4e4-51eb-98e2-b67e470e41b4?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-4c050997-e4e4-51eb-98e2-b67e470e41b4&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> |
||
|
|
8b4be6cdfd |
feat: Add search to kb (#52089)
## Problem There's currently no search on kb. ## Solution - Move components used in Docs' Search V2 project to a common package for re-usage. - Use these components on the Search V2 on docs - Refactor useDocsSearchV2 to accept endpoint for other solutions - Connect the search with the new `kb_search` table <!-- ## 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 For both, the kb preview and the docs preview with the search v2 experiment active using the `?docs-search-v2=search-v2-active`: - Open the preview link of the project - On the homepage, press cmd/ctrl + k or click the search trigger - A search panel should open, type something, for example "edge functions" and wait for results to appear - Clicking a result should lead to the desired page <img width="1173" height="832" alt="Screenshot 2026-10-22 at 13 34 43" src="https://github.com/user-attachments/assets/1c3a3d7f-2fe3-452a-91dd-20ba7be3ef1b" /> _Search modal working on kb preview_ ## 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) |
||
|
|
592365408e |
fix(pg-meta): set pgrst.db_schemas to '' when the Data API is off (#52162)
## Problem `enrichLintsQuery` in `packages/pg-meta/src/sql/studio/advisor/lints.ts` only emitted `set local pgrst.db_schemas = ...` when `exposedSchemas` was truthy. When the Data API is off (empty string), it emitted nothing. The current lints rely on an unset `pgrst.db_schemas` yielding an empty list. That only works with pg-meta's older copy of splinter. Newer splinter falls back to `public` when the setting is unset, so once pg-meta upgrades its splinter copy, projects with the Data API off would get false exposure findings. Pooled backends that were reused after a migration check can also read `''`, so relying on "unset" is unreliable. Link: https://linear.app/supabase/issue/FE-4708/pg-meta-lints-set-pgrstdb-schemas-when-the-data-api-is-off ## Solution - An empty string now emits `set local pgrst.db_schemas = '';`. - `undefined` is intentionally unchanged and still emits nothing. This should land before the splinter copy upgrade. ## Review instructions 1. Run `pnpm vitest run test/sql/studio/lints.test.ts` in `packages/pg-meta`. All 4 tests should pass. 2. Confirm that `enrichLintsQuery(query, '')` includes `set local pgrst.db_schemas = '';` and that `enrichLintsQuery(query, undefined)` includes no `pgrst.db_schemas` statement. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
3d326d7644 |
feat(ui): prose table component (#51794)
## Problem - docs and kb render markdown tables in different ways - docs uses its own `Table` component with its own scroll listener - kb has no scroll container which can lead on phones to overflow - design system `Table` already scrolls with `ShadowScrollArea` which was not used within guides ## Solution - docs and kb article tables use the `ui` `Table` - (proposal) `Table` gets a `prose` variant - kb guides map `table` to `<Table prose />` - `ShadowScrollArea` shows and hides the edge shadows without a fade (no strong opinion but felt snappier) - refactor table components to use `ref` vs deprecated `forwardRef` - fixes #52065 cc @jbergstroem <!-- ## 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/ai/choosing-compute-addon` on [prod](https://supabase.com/docs/guides/ai/choosing-compute-addon#hnsw) and on [preview](https://docs-3t4ed5odv-supabase.vercel.app/docs/guides/ai/choosing-compute-addon#hnsw) 2. open `/kb/guides/migrate-from-postgres` on [prod](https://supabase.com/kb/guides/migrate-from-postgres) and on [preview](https://docs-3t4ed5odv-supabase.vercel.app/kb/guides/migrate-from-postgres). on live, the table goes out of the article. on preview, the table scrolls in the article. ## 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) |
||
|
|
8bcbe3dcc7 |
feat(docs): extracts code block component (#51661)
## Problem new surfaces display code blocks their own way while docs has the full implementation but it lives inside `apps/docs` ## Solution - moves the docs code block parts to `ui-patterns/CodeBlock` as separate imports - kb code blocks now show line numbers, which matches docs | state | preview | | -------|------| | before | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/76ff0096-433a-4b06-9eca-1d79c4940e24" /> | | after | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/4f5d91d9-13df-44a0-9e65-edf605773c5f" /> | <!-- ## 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. visit /[docs/guides/database/tables#enabling-row-level-security ](https://docs-git-feat-shared-code-block-parts-supabase.vercel.app/docs/guides/database/tables#enabling-row-level-security)code blocks, line numbers, colors in light and dark mode, copy, and word wrap match 2. visit [/docs/guides/auth/passwords](https://docs-git-feat-shared-code-block-parts-supabase.vercel.app/docs/guides/auth/passwords) hover over a typed identifier tooltip should still show 3. visit a kb guide with code, for example [/kb/guides/migrate-from-mysql](https://kb-git-feat-shared-code-block-parts-supabase.vercel.app/kb/guides/migrate-from-mysql) 4. visit the [design system code block page](https://design-system-git-feat-shared-code-block-parts-supabase.vercel.app/design-system/docs/fragments/code-block) ## 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) |
||
|
|
b8483fc454 |
refactor(ui): remove migrated inline code compatibility styles (#51986)
## Problem All eight apps now import the shared inline-code styles, so the old utility and prose rules are redundant. ## Solution Remove those definitions and the remaining `text-code-inline` classes from four shared components and one Studio payment label. Behaviour stays the same. Code should keep the shared appearance established earlier in the stack, with possible small differences in text size, weight and spacing where the old class still took precedence. ## Review instructions - **Design:** check the config removals and four shared-component class removals. Optional spot checks: [Markdown examples](https://design-system-git-dnywh-depr-707-code-cleanup-supabase.vercel.app/design-system/docs/ui-patterns/markdown#inline-code) and [MCP configuration](https://studio-staging-git-dnywh-depr-707-code-cleanup-supabase.vercel.app/dashboard/project/_?showConnect=true&connectTab=mcp). - **Security:** check the single class removal in `CreditCard.tsx`. No payment logic changes or payment-flow testing needed. Optional: in [Studio](https://studio-staging-git-dnywh-depr-707-code-cleanup-supabase.vercel.app/dashboard/organizations), choose an organisation with a Stripe-managed payment method and check “Token ending in …” under Billing > Payment methods. You can see what it looks like on master based on [these screenshots](https://github.com/supabase/supabase/pull/44965) with `VOLZ`. |
||
|
|
f3c8ea07e4 |
feat(ui): add opt-in shared inline code defaults (#51980)
## Problem Apps repeat inline-code styles in classes and Markdown renderers, so code looks different across apps. See [DEPR-707](https://linear.app/supabase/issue/DEPR-707/apply-shared-default-styling-to-inline-code). ## Solution Add `packages/config/inline-code.css` for apps to import. It gives inline code a border and background, uses the default foreground colour, inherits the surrounding weight, and scales code from 12.5px beside 14px text to 14px beside 16px text, with a `0.75rem` minimum (normally 12px). Long values wrap only when needed. Code blocks, highlighted code and editors keep their own styles. `data-code-style="plain"` excludes other custom displays. Tailwind classes can override the defaults. No app imports the file yet, so this PR has no visual changes. Later PRs in the stack enable it per app, then #51986 removes the old styles. #51904 remains the full backup and should not merge alongside this stack. See that #51904 draft for what it looks like at the end. ## Review instructions Review the shared CSS in this one-file diff. App-specific changes and visual checks belong to the later PRs, up the stack. |
||
|
|
6cde55ae3c |
feat(api-types): generate fga-requirements.ts from OpenAPI specs (#52093)
## What Generates `packages/api-types/types/fga-requirements.ts`, a map from `'METHOD /path'` to the FGA permission groups that endpoint requires, from the `x-fga-permissions` annotations in the v1, v2, and platform OpenAPI specs. Groups are OR-of-AND (a caller needs every permission in at least one group) and are preserved verbatim. Keys are the path literals passed to openapi-fetch, so later work can type-check permission grants against fetch calls. - `codegen:prod` and the production drift check (`verify-production-types`) now generate and compare the new file. - Local `codegen` also generates it, from the local API (`LOCAL_API_URL`, defaults to `http://localhost:8080`). - Permission IDs are validated against the platform spec's `CreateScopedAccessTokenBody.permissions` enum. Generation fails on malformed annotations, empty groups, unknown IDs, or an endpoint annotated in two specs. An empty annotation (`[]`) is treated as ungated and omitted. - The drift-check workflow now also runs when `packages/api-types/scripts/` changes, so generator changes without regenerated output are caught. - Exported from `api-types` as `fgaRequirements`, with `FgaRequirements` and `FgaGuardedEndpoint` types. No Studio changes. ## Testing - `pnpm --filter=api-types test` - `pnpm --filter=api-types codegen:prod` regenerates the committed file with no diff. Resolves FE-4686 |
||
|
|
d364c3a8e6 |
Joshenlim/fe 4674 expose auto region selection in dashboard (#52062)
## Context API added a new option "auto" for the available regions endpoint, so the changes in this PR is just for dashboard to render that in the region selector for project creation if that option is available in the response <img width="452" height="306" alt="image" src="https://github.com/user-attachments/assets/60a39bbb-b9f0-4677-a267-cd8b975371b1" /> - "Auto" option is prioritized and selected by default if its present in the response - Otherwise it'll fall back as per normal to the recommended general region - Recommended badges for other options are hidden if auto region is present and recommended - Unrelated but realised there was a gap if there's no general region recommended where the region selection will be undefined by default then. Opting to default to the first available general region in this case ## To test "Auto" option for region selection will be available on free organizations, so we can test on the preview with free organizations - [ ] Verify that project creation works as expected while auto option is selected for free plan - [ ] Verify that project creation works as expected for non-free plan |
||
|
|
ced4ff82a4 |
feat(www): upgrade to Next.js 16 (#52001)
## Problem The marketing site (`apps/www`) is still on Next.js 15. Resolves FE-4673. ## Solution Upgrades `apps/www` to Next.js 16.3.6 (`next` now uses the workspace catalog; `@next/mdx` and `@next/bundle-analyzer` are bumped to match). Fixes for breaking changes: `middleware.ts` renamed to `proxy.ts`, removed the `eslint` key from `next.config.mjs`, moved Sentry options under `webpack`, and added `images.localPatterns` and `images.qualities`. `dev` and `build:next` now run with `--webpack`, because the MDX remark plugins have non-serializable options and `esmExternals: 'loose'` is ignored by Turbopack. ## Review instructions 1. Run `pnpm --filter=www typecheck` and `pnpm --filter=www test`. 2. Run `pnpm dev:www` and open `/pricing` and `/blog/vector-buckets`; both should render, including images. 3. Check the Vercel preview build. Locally, `next build` needed `NODE_OPTIONS=--max-old-space-size=8192`, so confirm memory is sufficient. `proxy.ts` now runs on the Node.js runtime instead of edge. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
6957daa3b7 |
feat(studio): add setting to skip the SQL editor unsaved-changes prompt (#52029)
## What Adds an opt-out for the "Unsaved changes" dialog shown when closing SQL editor tabs in manual-save mode. Resolves FE-4170. - New **Confirm on discard** toggle in the SQL editor's More actions menu (both toolbar layouts). - New **Don't ask again** checkbox in the dialog itself. It turns the same setting off when the user confirms the discard. - `DiscardChangesConfirmationDialog` gains a `children` slot. The description now renders as a `div` so block-level children are valid HTML. - `TabCloseConfirmation` gains an optional `optOut`, so any tab type can offer a "don't ask again" checkbox. Only SQL tabs use it. The Explorer tabs are unchanged. - The Intellisense and Confirm on discard items now use `DropdownMenuCheckboxItem`, so both settings announce their checked state to screen readers. The check indicator is still shown on the right via a local class override. <img width="353" height="229" alt="Screenshot 2026-10-20 at 16 10 14" src="https://github.com/user-attachments/assets/c6f67934-51ba-48dd-8aee-f279ae7eb486" /> <img width="432" height="207" alt="Screenshot 2026-10-20 at 16 10 02" src="https://github.com/user-attachments/assets/d064dcb1-1097-4ac3-bbf0-6a47506820c1" /> ## Behavior notes - The setting is stored in `localStorage` (`sql-editor-confirm-unsaved-changes`). It is device-local and global, not per project. It defaults to on. - With the prompt off, closing a tab still **discards** its unsaved edits. It only skips the confirmation. - It only applies in manual-save mode. In auto-save mode there is nothing to discard, so the toggle is hidden. - The browser's native `beforeunload` prompt, shown when closing or reloading the browser tab with unsaved work, is unaffected. Browsers don't allow customizing it. ## Testing - New unit tests for the SQL tab close handler: it confirms by default, skips the dialog when the setting is off, and the opt-out writes the setting. - `lint:ratchet` and `knip` pass. - Manually checked the menu at both widths and the dialog. |
||
|
|
20e304a377 |
feat(kb): add search ingestion and edge function (#51843)
## Problem We need embeddings for Kb to run a search endpoint in the Content API and future KB search. ## Solution This PR adds KB search backed by its own Supabase table, ingested from the KB markdown export, and aligns the KB and docs search ingest setups. <!-- ## 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. --> ## Test 1. Run the **KB Search Ingest** workflow, or locally run `pnpm --filter kb search:ingest` with `SUPABASE_URL` and `SUPABASE_SERVICE_ROLE_KEY` set in `apps/kb/.env.local`. 2. Query the endpoint and check that the results link to `https://supabase.com/kb/troubleshooting/...`: ``` curl '<kb-url>/kb/api/search?q=connect%20timeout&limit=5' ``` ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Jeremias Menichelli <jmenichelli@gmail.com> |
||
|
|
d9faba5a2c |
feat(kb): design overhaul (#51565)
## Problem knowledge base homepage was a list of topic cards with nothing to browse by, and guide pages had no table of contents ## Solution - adds grid drawn hero proposal - adds featured guides and topic cards - updates guide page layout | state | preview | | -------|------| | after | <img width="1504" height="757" alt="image" src="https://github.com/user-attachments/assets/41492e87-f4ad-4dea-ad30-7dc3ca2882b0" /> | `variants` homepage ships with a few design options behind query params, so we can compare them on the preview before picking one, temporary and non selected one will be removed Param | Values | What it does -- | -- | -- hero | grid (default), warp | grid draws the flat table grid _ warp bends the ASCII field into a funnel below the hero copy featured | cover (default), book | cover shows the featured guides as cards with an ascii cover _ book shows them as books search | off (default), on | on adds a search button under the hero copy that opens the guide search dialog. Cmd+K / Ctrl+K also opens it <!-- ## 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 preview at `/kb` 2. open a guide such as `/kb/guides/migrate-from-firebase-auth` ## 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) |
||
|
|
e42f4ec612 |
chore: remove pgMetaScopedIntrospection feature flag (#52019)
## 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? Cleanup: remove a fully rolled-out Studio feature flag. Resolves CLI-2759. Supersedes #50260 and #47931 (rebuilt on current master). ## What is the new behavior? Scoped introspection is the only path. - Studio: delete `data/scoped-introspection.ts` and `PG_META_SCOPED_INTROSPECTION_FLAG`; stop threading `scoped` through table editor, rows/counts, privileges, enumerated types, table definition, retrieve, prefetcher, `EntityListItem`, `SidePanelEditor`, `EditHookPanel`, `DefaultLayout`. - pg-meta: drop `scoped?: boolean` from public builders and delete the frozen unscoped SQL. `tables.list` keeps its full-catalog `TABLES_SQL` (never flag-gated). ## Test plan - [x] pg-meta + Studio typecheck - [x] pg-meta suite against Docker DB (521/521) - [x] Studio vitest for touched areas - [x] Open Table Editor, row counts, privileges, and enumerated types on a project (dogfooded on the preview deploy) - [ ] After merge, retire `pgMetaScopedIntrospection` in the flag dashboard 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1ddb9ac787 |
Refactor organization audit logs to use filter bar (#51921)
## Context Related to this PR [here](https://github.com/supabase/supabase/pull/51790), gonna refactor the Organization audit logs UI to also use the FilterBar component to match a consistent UX across log surfaces, instead of the individual filter popovers. <img width="1450" height="684" alt="image" src="https://github.com/user-attachments/assets/c1a4aab3-59d0-46a5-b7c7-1e7a5ad86b0d" /> ### For design Adding a small update to the `FilterBar` component here with a `topLevelOnly` parameter if the component is being used with `supportsOperators` (nested groups) - In the case of AuditLogs as least, figured that the date range filter option only makes sense as a top level filter - Hence this prevents the date range filter from being selectable while managing filters within a group <img width="366" height="186" alt="image" src="https://github.com/user-attachments/assets/e34ea0c8-5f03-4115-9fb1-554612f148dd" /> |
||
|
|
7a9565530c |
Fix handle truncation for multi dim array for table-row-query (#51834)
## Context If you create a table with a `jsonb` **array** column, then try to insert a new row with `[["` as the `jsonb` column value, the dashboard currently incorrectly flags it as a large value and blocks the user from editing it <img width="583" height="133" alt="image" src="https://github.com/user-attachments/assets/28b89648-12b6-4b49-a862-b4ec0db03e24" /> It's happening due to a small issue in `table-row-query` regarding its truncation logic, a stop gap to prevent fetching large column values which will cause browser performance issues. Multi dimension arrays are being handled differently in which there's no `...` appended at the end. And hence the naive check in `isValueTruncated` caused this issue to happen. Opting to adjust the SQL in `table-row-query` to align the truncation behaviour for multi dim array, such that it will end with `...` if the value being fetched is too large. ## To test We mainly need to ensure that the original problem no longer happens + truncation of large values is still working as expected. The following SQL here sets up some sample rows to test the truncation logic in the UI. ``` create table trunc_test ( id int primary key, label text, big_text text, big_json jsonb, big_text_1d text[], big_grid text[][], big_docs jsonb[][], small_grid text[][], small_docs jsonb[] ); insert into trunc_test values -- row 1: everything large (1, 'large', repeat('a', 20000), jsonb_build_object('k', repeat('b', 20000)), (select array_agg(repeat('c', 300)) from generate_series(1, 120)), (select array_agg(array[repeat('d', 300), 'x']) from generate_series(1, 120)), (select array_agg(array['{"k":1}'::jsonb, to_jsonb(repeat('e', 300))]) from generate_series(1, 120)), array[array['a','b'], array['c','d']], array['["x"]'::jsonb]), -- row 2: everything small (2, 'small', 'hi', '{"k":1}', array['a'], array[array['a','b'], array['c','d']], array[array['{"k":1}'::jsonb]], array[array['a','b'], array['c','d']], array['["x"]'::jsonb]); ``` |
||
|
|
b8eca2e1c9 |
feat(docs) - Add in preferred source for Google under 'AI tools' (#51846)
## Problem Google introduced a new pattern for [`adding preferred sources`](https://developers.google.com/search/docs/appearance/preferred-sources#deeplink) relatively recently, where you can set specific site providers as your preference for Google results. We don't support this yet, but should. ## Solution Adds in a new link under the `AI Tools` section of the sidebar. [preview](https://docs-git-kody-devrel-728-preferred-source-google-docs-supabase.vercel.app/docs/guides/getting-started) <img width="448" height="548" alt="image" src="https://github.com/user-attachments/assets/865dd93a-1575-47dc-b400-7df0f4ac7605" /> ## Open questions **Does this feel like the right implementation?** Other approaches: - Google allows you to add in [fancy buttons via JS](https://developers.google.com/search/docs/appearance/preferred-sources#standard-javascript)... but this'd be adding a new request on every page load which feels not ideal. - [Vercel KB](https://vercel.com/kb/guide/rag-chatbot-production-architecture-on-vercel) uses the `deeplink` implementation as well, but they add a stylized button to the righthand side of the page. My initial thought was that it felt too visually disruptive to have a separate button on the righthand side. Thematically this fits with other AI affordances too, so matching the current `AI Tools` styling felt better. **Does this match Google branch guidelines?** On the [preferred sources page](https://developers.google.com/search/docs/appearance/preferred-sources#button-image-assets), Google seems to suggest that this element can be relatively freeform. ``` You can design your own custom promotion badge or download official translated graphic assets provided by Google: ``` There's stricter guidelines for [`Sign in with Google`](https://developers.google.com/identity/branding-guidelines#google-logo-in-the-sign-in-with-google-button)... specifically, `don't Use monochrome versions of the Google "G" for the button.` Feel like that's more specific to *just* sign-in with Google, but worth another brain confirming that. ## Preview links https://docs-git-kody-devrel-728-preferred-source-google-docs-supabase.vercel.app/docs/guides/getting-started --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: anthony lio <lionnet.ant@gmail.com> |
||
|
|
27e6259a39 |
chore(studio): remove legacy status banner and incidentIoStatusPage flag (#51852)
## Summary The incident.io status page is now the only status banner for everyone, so the legacy status banner path is removed: - Removed the `incidentIoStatusPage` ConfigCat flag. The incident.io path is unconditional. - Deleted the legacy status banner code (`StatusPageBanner` and its utils/visibility hook) and its tests. - Deleted the legacy API endpoints `/api/incident-banner`, `/api/incident-status`, and `/api/status-override` (pages, app, and routes variants), along with their data hooks, query keys, and lib helpers. - Removed `STATUSPAGE_*` env vars from the Turbo config and the `INCIDENT_BANNER_DISMISSED_IDS` local storage key from `packages/common`. - Updated the AI tools and SQL generation endpoint that read the flag. `NEXT_PUBLIC_ONGOING_INCIDENT` / the `ongoingIncident` override is kept. The `incident_status_cache` table and its migration are intentionally untouched. Studio no longer reads it, and dropping it is a separate cleanup. ## Testing - Studio typecheck passes. - Related vitest suites pass (414 tests). |
||
|
|
a37e434aa4 |
chore(studio): track docs link clicks in the region selector footer (#51841)
Adds `free_tier_general_region_docs_link_clicked` event, fired when the regions docs link in the selector footer is clicked |
||
|
|
f5288eb1e2 |
feat(studio): remember project home chart interval per project (#51833)
## Problem The time-range dropdown above the request charts on the project home page resets on every visit, so users who prefer a different range have to re-select it each time. Resolves FE-2828. <img width="819" height="353" alt="Screenshot 2026-10-16 at 10 42 05" src="https://github.com/user-attachments/assets/cb8d467b-e709-43b0-9ae4-b02ebccf5faf" /> ## Solution Persist the selection in localStorage, keyed per project (`home-chart-interval-${ref}`), in both usage section variants (`ProjectUsageSection` and `ProjectUsageSectionDeltas`, chosen by the `newHomepageUsageDeltas` flag). - New `resolveChartInterval` helper validates the stored value against the known keys and the plan's log retention, falling back to the plan default for corrupt values or after a plan downgrade. Unit tested. - Removed the `useEffect` in `ProjectUsageSection` that reset the interval on retention change, since it would overwrite the saved value. - Moved `getDaysRequired` into `logs.utils.ts` so the dropdown and the helper share the retention check. Manually verified with the flag on and off: reload keeps the selection, and each project keeps its own. |
||
|
|
e4ee46854a |
docs: add Antigravity to Supabase agent plugin docs (#51647)
## What this does
Adds **Antigravity** to the Supabase AI agent plugin docs.
- **Plugin docs** (`AgentPluginsPanel`): Antigravity client between
Cursor and Gemini CLI. The install step is a copyable `agy plugin
install https://github.com/supabase-community/supabase-plugin` (checked
with `agy` 1.4.0: it installs v0.1.17 with both skills and the MCP
server). A note below points to the `/plugin` slash command and
[Antigravity's plugin
docs](https://antigravity.google/docs/plugins/#managing-plugins-by-surface).
- **Icon**: replaces the existing Antigravity icon (MCP client picker
and "Pick your agent" grid share it) with the official full-color icon
from the [Antigravity press assets](https://antigravity.google/press/).
- **"Pick your agent" grid**: Antigravity now shows the "Plugin + MCP"
badge and links to the plugin page.
Plugin support shipped in supabase-community/supabase-plugin
[v0.1.17](https://github.com/supabase-community/supabase-plugin/releases/tag/v0.1.17)
(#66), validated with `agy` 1.3.5 and 1.4.0.
## Testing
Ran the docs app locally at
|
||
|
|
17f21bf6a8 |
Joshenlim/fe 4510 auditlogs filterbar for account logs (#51790)
## Context Replaces the individual filters on the Account audit logs page with the filter bar to match a consistent UX across log surfaces <img width="1206" height="360" alt="image" src="https://github.com/user-attachments/assets/c5bdfd7e-3277-4695-b9fc-1791df8720c7" /> Also uses the `supportOperators` param for the `FilterBar` to support "OR" based operations when filtering for projects <img width="1219" height="97" alt="image" src="https://github.com/user-attachments/assets/d4748e6c-d1f3-4f23-b767-e0f4bb1c0a1c" /> The main changes for the `FilterBar` component made in this PR (which would be more relevant for the design team) are: - Added a divider between the options and "New group" - Originally didn't have a divider - So there's a clearer distinction that the "New group" isn't a option to set as the value for - Add a new `defaultGroupOperator` prop - Originally defaults to `AND` - However, in the context of Audit Logs when filtering for projects, you'd expect `OR` to be the default to filter across several projects (`AND` wouldn't make sense here) |
||
|
|
3960e6ac41 |
chore(deps): bump lucide-react to v1 (#51770)
## Problem Lucide React v1 improves screen reader behaviour (icons are hidden from assistive tech by default). It also removes brand icons such as GitHub. We were still on Lucide 0.x across the monorepo. ## Solution - Move every workspace onto one shared Lucide React v1 version via the pnpm catalog. - But Lucide React v1 [deprecated brand icons](https://github.com/lucide-icons/lucide/blob/main/BRAND_LOGOS_STATEMENT.md) - Meaning we need to handle any _old_ brand icons we used from Lucide 0.x. - Luckily, that was just `GitHubIcon`. So... - Add a `GithubIcon` in `packages/ui` that matches Lucide’s previous GitHub icon, and use it wherever we imported GitHub from Lucide. - No other Lucide brand icons were in use. - Studio “Continue with GitHub” sign-in still uses the existing SVG asset (`github-icon.svg`), not this component. - Keep the `Icon` suffix import style [recently introduced](https://github.com/supabase/supabase/pull/51659) - Monorepo apps now use `catalog` Lucide React v1. ## Review instructions 1. Open [Studio preview](https://studio-staging-git-dnywh-bump-lucide-react-v1-supabase.vercel.app/dashboard/org) on a project that is connected to GitHub: - Project home → Activity stats “GitHub” row - Org project list → GitHub badge on a connected project card/row - Branches → GitHub link on a branch row, or “Sync with a GitHub branch” - Project Settings → Integrations → GitHub integration panel 2. Open [/kb/guides/sample-guide](https://supabase.com/kb/guides/sample-guide) → confirm “Go to the GitHub discussion” shows the icon. 3. Open [/docs/reference/javascript](https://supabase.com/docs/reference/javascript) → confirm the header GitHub control still shows the icon. Or [/docs/guides/troubleshooting/rls-simplified-BJTcS8](https://supabase.com/docs/guides/troubleshooting/rls-simplified-BJTcS8) → “View discussion on GitHub”. |
||
|
|
991653aa36 |
chore(studio): allow project creation region flags to resolve independently (#51787)
## Problem Updating our region experiment flags to be able to handle latest experiment. ## Solution Make flags resolve independently. cc @charislam ## Review instructions tbc --------- Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com> |
||
|
|
d0cf8dbc50 |
fix: align webhook FE with updated API changes (#51800)
## What Aligns the webhooks FE with backend changes confirmed by Pawel (FE-4621): 1. `custom_headers` is optional but never null, matches the updated contract. 2. Removed the client-only `name` field (never persisted by the API). Display name is now the endpoint's URL plus its subscribed event types. 3. The deliveries list endpoint now returns the full `event` object, so `eventType`/`eventPayload` are always populated. Added an Event column to the deliveries table. Also regenerates `packages/api-types` from production to pick up these changes. While testing, found and fixed two more related issues: 4. A delivery can briefly exist before the backend finishes attaching its event data, regardless of what triggered it (test, retry, or real traffic). The deliveries list now polls every 5s while open, so new or still-settling deliveries fill in automatically instead of requiring a manual refresh. 5. "Send test event" always defaulted to an unrelated sample event type. The test endpoint actually accepts a specific `event_type`, so this now sends the endpoint's own subscribed type automatically, or shows a picker when there's more than one to choose from. ## Testing All webhooks component/unit tests pass (30/30), typecheck and lint clean. Manually verified on localhost against a live backend. ## Note This may clash with #51614 (`custom_headers: null` in a test fixture, no longer a valid value once this merges). Will follow up there after this lands. |
||
|
|
bb1a2ab70d |
feat(docs): add Copy as Markdown and Ask AI to troubleshooting pages (#51501)
Resolves [DOCS-1334](https://linear.app/supabase/issue/DOCS-1334/add-copy-as-markdown-ask-affordance-to-troubleshooting-pages). ## What this changes Troubleshooting pages now have the same AI tools as guides: Copy as Markdown, Ask ChatGPT, and Ask Claude. Readers can copy an article as markdown, or open it in an AI assistant in one click. The actions appear in the troubleshooting sidebar, after Keywords. The heading matches the other sidebar headings. On narrow screens, the sidebar stacks under the article, so the actions also work on mobile. <img width="1512" height="908" alt="Screenshot 2026-10-09 at 2 29 13 PM" src="https://github.com/user-attachments/assets/991c1555-c163-4894-91e5-8701bb1831f8" /> <img width="740" height="831" alt="Screenshot 2026-10-09 at 2 32 31 PM" src="https://github.com/user-attachments/assets/1b9423d4-9f26-4f6f-9c9a-e95d50d7808e" /> ## How it works Before this PR, the AI tools section was built directly into the guides sidebar, so only guides could use it. This PR moves it into its own component, and guides and troubleshooting pages both render that component. A future change to these actions, such as adding another assistant or changing the Ask prompt, then happens in one place and applies to both page types. Each page passes a page type to the component. The component includes that page type in the analytics events it sends when someone copies markdown or clicks an Ask link. Guides send `guide`, and troubleshooting pages send `troubleshooting`, so usage on each page type can be measured separately. ## Open question This PR adds a `troubleshooting` page type for analytics. It stays in draft until that value is confirmed. If we reuse `guide` instead, it's a one-line change. ## Testing - Copy as Markdown copies the article and shows the "Copied!" state. - Ask ChatGPT and Ask Claude open with the canonical page URL. ChatGPT requires you to be logged in, which is also true on existing guide pages. - The sidebar layout works at desktop and mobile widths. - Guide pages look and behave the same as before. ## Possible follow-up On troubleshooting pages, the sidebar lists Products, Related error codes, Keywords, AI tools, and then "Is this helpful?". The first four headings use the sidebar's regular heading style. "Is this helpful?" still uses the small monospace style from the guides sidebar, so it stands out. This PR lets the AI tools component accept a heading style from the page it's placed on. The feedback component could accept a heading style the same way. Troubleshooting pages could then pass the regular sidebar style, and every heading in that sidebar would match. --------- Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |
||
|
|
0f618d8efb |
fix(mcp): use native HTTP for Devin MCP connections (#51646)
## Problem
The Devin Desktop preset wraps Supabase MCP URLs in `npx -y mcp-remote`,
although Devin Local and Devin CLI support Streamable HTTP natively.
Connecting therefore adds a Node/npm bridge that the client does not
need. The preset also lacks Devin-specific setup and authentication
instructions.
## Solution
Use the existing native `url` configuration for Devin:
```json
{
"mcpServers": {
"supabase": {
"url": "https://mcp.supabase.com/mcp"
}
}
}
```
The generated URL retains the selected project, read-only mode, and
features. The internal `windsurf` key is preserved.
Add shared setup instructions for the configuration panel and generated
Markdown: user-scope installation, the Windows config file location next
to the shared macOS/Linux one, a re-authentication command for hosted
connections, and loading tools in a new Devin Local or CLI session.
Local connections omit the re-authentication step.
Include Devin in the shared client URL round-trip test. The Devin-only
test files from the first revision were removed in review so that tests
stay shared across clients.
Native configuration follows the official [Devin MCP
documentation](https://docs.devin.ai/cli/extensibility/mcp/configuration)
and [Devin Local
integration](https://docs.devin.ai/desktop/devin-local).
## Validation
- **273 tests passed** across 28 `ui-patterns` test files on the current
revision; 34 of them in the MCP section.
- Package typechecking, Prettier on the four changed files, and `git
diff --check` passed.
- **Devin CLI 3000.11.3:** native HTTP initialization and tool
discovery; synthetic OAuth with S256 PKCE and authenticated tool
discovery using a saved token.
- **Devin Desktop 3.10.48 / bundled Devin Local 3000.10.48:** the server
card showed `Connected` and the fixture tool. Its `tools/list` request
came from the bundled Devin Local process.
OAuth validation used controlled local fixtures; live Supabase Hosted
authorization was not exercised. The full monorepo application build was
not run.
## Review instructions
1. Run `pnpm --filter ui-patterns exec vitest run src/McpUrlBuilder` and
`pnpm --filter ui-patterns typecheck`.
2. Select **Devin Desktop** in the MCP configuration panel. Confirm that
the JSON uses `url` and preserves the selected project, read-only mode,
and features.
3. Switch to the local connection. Confirm that Hosted login
instructions disappear. Check that generated Markdown explicitly limits
that login step to Hosted connections.
## 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 topic edited; the change is in the shared MCP configuration
component and its generated instructions.
|
||
|
|
9aea81c3b7 |
fix(www): rename Enterprise "Designated Support manager" to "Technical Account Management" (#51628)
## What kind of change does this PR introduce? Copy fix on the pricing page. ## What is the current behavior? The Enterprise tier on supabase.com/pricing lists "Designated Support manager". We can't offer a dedicated support manager for tickets, but all Enterprise customers do get access to the Technical Account Management (TAM) service. ## What is the new behavior? The Enterprise feature reads "Technical Account Management" (`packages/shared-data/plans.ts`). ## Additional context Requested by Brad Gyger in Slack. Not changed in this PR (different copy, flagging for follow-up): the "Designated support" row in `packages/shared-data/pricing.ts`, the "Designated support team, account manager and technical specialist" description in `apps/www/components/Pricing/PricingComparisonTable.tsx`, and "Designated Support" in `apps/www/data/PricingAddOnTable.json`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
4b93c5186d |
chore: bump shiki and catalog entry (#51578)
## Problem monorepo resolved four different shiki majors _ shiki was never added to the pnpm catalog so each app kept whatever version it started with. shiki 4.5.0 stops grammar injections from being registered again on every language load (shikijs/shiki#1318) and docs worked around the same problem locally in #50501 ## Solution - adds `shiki: ^4.5.0` to the catalog and points docs, www and marketing at it - docs preload guard from #50501 stays but will be ff by moving docs to lazy language loading in another pr <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open `/docs/guides/database/full-text-search` on the docs preview and on production side by side _ sql, js, dart and python blocks should have the same colors in light and dark mode 2. hover a function name in one of the js blocks on that page, the type popover should still show 3. open the www preview home page, scroll to the frameworks section and switch a few tabs _ code should be highlighted. 4. open `/go/supabase-stripe-projects` on the www preview _ code block section should be highlighted the same as production ## 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) |
||
|
|
f1082e28c7 |
chore: migrate Framer Motion imports to Motion (#51520)
## Problem Closes #31221. The applications and shared UI packages still import the former `framer-motion` package instead of Motion's React entry point. ## Solution Replace runtime imports, type imports, and three test mocks with `motion/react` across the consuming workspaces. Replace the seven direct dependency declarations with `motion: ^11.18.2`. Preserve the existing animation engine version and all other dependency resolutions, including the asynchronous `domMax` feature loader. Historical blog examples remain as published; `framer-motion` remains a transitive implementation dependency of Motion. ## Review instructions 1. Run `pnpm install --frozen-lockfile` and check the seven dependency replacements in the lockfile. 2. Open the WWW Auth page and Docs homepage at desktop and mobile widths, with normal and reduced motion preferences. 3. Open the mobile navigation, expand Product on WWW, and close the menu using Escape and the close button. 4. Check the existing animation components, shared form validation, and Studio tests for unchanged behavior. Validation: - Studio: 731 test files, 8,334 passing tests and one expected failure, with `--maxWorkers=4`. - Shared UI, UI patterns, WWW, and UI library: 615 passing tests. - `pnpm run typecheck --concurrency=1`: all 16 repository tasks pass. - All six application source lint scripts and lint ratchets pass; generated Docs example copies are excluded from local lint. - Repository Prettier source check, lockfile formatting, and case hazard check pass. - WWW: 10 existing end-to-end checks across nine pages. - Docs: 5 existing guide link and accessibility checks across Database and Auth. - WWW and Docs mobile navigation pass at desktop/mobile sizes with normal/reduced motion; SQL-to-REST translation tabs exercise the asynchronous feature loader without browser errors. - Frozen-lockfile installation passes; all existing package and snapshot resolutions are unchanged. - Learn and UI library command palettes open, filter results, and close with Escape without browser errors. - Independent code review finds no actionable defects. - `npm run build -- --filter=www --filter=docs --filter=studio --filter=learn --filter=library --concurrency=1 --continue=always`: all five affected applications build successfully (9 tasks including prerequisites); asset uploads disabled for local validation. ## 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) (no docs topics changed) --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
700365ffba |
fix(pg-meta): generate privilege, publication, role and schema SQL that servers can statically check (#51457)
## What kind of change does this PR introduce? Bug fix. ## What is the current behavior? On a project whose database server statically checks `DO` blocks before running them (Multigres does), several Studio actions fail: - Creating a table shows "Failed to update API access privileges for new table", although the table is created. - Toggling Realtime for a table fails with `EXECUTE of a runtime-built statement inside a PL/pgSQL body is not supported`. - The same error blocks editing a role or schema (rename, owner, drop) and changing column privileges. All of these come from SQL that `@supabase/pg-meta` generates. Such a server only accepts a dynamic `EXECUTE` when it can prove the statement is fixed, and two shapes in our SQL prevent that: - parentheses around the payload: `execute(format(...))` - `%s` conversions in `format()` strings, which substitute raw text (for example `%s` fed by `<oid>::regclass`, by a `string_agg(...)` subselect, or by a variable holding a table list) ## What is the new behavior? `tablePrivileges.grant/revoke`, `columnPrivileges.grant/revoke`, `publications.update`, `roles.update/remove` and `schemas.update/remove` generate SQL with no parentheses around the payload and only `%I`/`%L` conversions: - Table and column privileges name the table with `%I.%I`, taking the schema and name from `pg_class`/`pg_namespace`. - The publication update loops over the tables to drop and to add, with the same `tables` semantics as before (`undefined` keeps the tables, `null` publishes all tables, a list replaces them, bare names resolve through the search path). - `schemas.remove` picks between `drop schema … cascade` and `… restrict` with two plain statements instead of a `%s` fed by a `CASE`. - The grant and revoke format strings are built with `literal()`, so a quote in a role name can't end the string early. The statements are equivalent on regular Postgres. ## Additional context - New tests: replacing, clearing and keeping a publication's tables, switching between a table list and all tables, and a test (no database needed) that fails if the generated SQL of any of these builders goes back to `execute(...)` or `%s`. - I ran the pg-meta tests against a local Postgres 17. A set of existing snapshot tests were recorded on Postgres 14 and fail there with and without this change (for example the new `MAINTAIN` privilege in table privileges), so CI is the real check for those. The tests covering the changed SQL pass. - Some other Studio SQL is blocked on such servers for different reasons (for example creating foreign servers, and `SET` inside a `DO` block). It isn't addressed here. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
e5bc7d8fa1 |
chore(studio): ship fullscreen pricing panel, remove plan presentation experiment (#51554)
## Summary The `pricingPanelPlanPresentation` experiment is concluded with `fullscreen` as the winner. This makes it the only presentation and removes the experiment code. - Plan-change panel always opens as the full-screen overlay with the pricing-page style cards. - Removed the `control`, `parity`, `gaps` and `fullscreen-gaps` presentations: the side-sheet shell, the original compact card, and the "Not included" / "Plan limits" gap rows. - Removed `plan-presentation.ts` (flag read, eligibility gate, exposure tracking, gap lists) and its tests. - Removed the `pricing_panel_plan_presentation_experiment_exposed` event from `telemetry-constants.ts`. - The panel no longer waits for PostHog flags to resolve before opening. - `useTrackExperimentExposure` stays; it's kept across experiment gaps in `knip.jsonc`. **Behavior change for previously ineligible orgs:** partner-billed, Stripe-managed, AWS Marketplace, Enterprise/Platform orgs and members without billing write were held on `control` during the test. They now also get the full-screen panel. Their partner-managed notices and disabled CTAs are unchanged. ## After merge - [ ] Archive the `pricingPanelPlanPresentation` flag and end the experiment in PostHog. ## Test plan - [x] `vitest` for `BillingSettings/Subscription`: 11 passing (partner-managed messaging, full-screen shell, pricing-page cards, no gap rows) - [x] `tsc`: no errors in touched files - [x] `knip --workspace apps/studio`: clean - [ ] Preview: open `/org/[slug]/billing?panel=subscriptionPlan` for a Free org and a partner-billed org 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
ffef679f70 |
chore(docs): add hasResults to docs_search_v2_search_submitted (#51541)
<!-- claude-slack-attribution --> _Requested by **Pam Chia** · [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1791767641595649?thread_ts=1791767641.595649&cid=C076KTY11DF)_ ## Problem **Before:** `docs_search_v2_search_submitted` (added in #51146) fires when a Search V2 query settles on either the `results` or the `noResults` state, but it only sends `query`. A search that found nothing looks the same as one that found results, and no other Search V2 event carries the outcome, so the no-results rate for Search V2 can't be computed. **After:** the event also sends `hasResults`. It's `true` when the endpoint returned at least one result and `false` when it returned none, so zero-result searches can be counted and their queries inspected. ## Solution - `packages/common/telemetry-constants.ts`: `DocsSearchV2SearchSubmittedEvent` gains a doc-commented `hasResults: boolean` property. - `apps/docs/features/SearchV2/SearchV2Dialog.tsx`: the existing fire site sends `hasResults: searchState.status === 'results'`. The `useDocsSearchV2` reducer only sets `results` when the response has at least one hit, and `noResults` otherwise, so the status is exactly the outcome. The change is additive: the event name and `query` are unchanged, and the `loading`, `error`, and `initial` states still don't fire the event. Linear: [GROWTH-1330](https://linear.app/supabase/issue/GROWTH-1330/docs-search-v2-add-hasresults-to-docs-search-v2-search-submitted) ## Review instructions 1. Open the docs preview with the Search V2 flag query: `?docs-search-v2=search-v2-active`. 2. Open search and type a query that returns results. In the network tab, the `/platform/telemetry/event` request for `docs_search_v2_search_submitted` has `custom_properties` `{ "query": "...", "hasResults": true }`. 3. Type a query that returns nothing (for example random characters). The event has `"hasResults": false`. ## 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) (not applicable: no docs content changed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JaqCdU2sPkBMbaUmUPW75i --- _Generated by [Claude Code](https://claude.ai/code/session_01JaqCdU2sPkBMbaUmUPW75i)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
b2dab2b896 |
feat(studio): update region selector in create form (#51282)
## Problem Updates the region selector in create form to we can run a small experiment. --------- Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com> |
||
|
|
842e1b5e40 |
fix(ui-patterns): wrap long confirm strings in TextConfirmModal (#51503)
## Problem Long confirm strings in `TextConfirmModal` don't wrap. I noticed it when deleting a preview branch with a long name: the name runs past the edge of the dialog and gets cut off, so you can't read what you're supposed to type. ## Solution Changed `whitespace-pre` to `whitespace-pre-wrap` on the confirm string so it wraps. Did the same for the copy button in the `enableCopy` variant and let it grow in height so the wrapped text fits. https://github.com/user-attachments/assets/0a2aa346-8e61-4d58-b595-e6adee4aa1fd ## Review instructions 1. Open the Text Confirm Dialog page in the design system preview. 2. In the demo, change `bucketName` to something long and open the dialog. The name should wrap instead of being cut off. 3. Add `enableCopy` to the demo and check the copy button wraps too. 4. Short names should look the same 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) --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
325a5a0da7 |
fix(studio): polish extension installation dialogs (#51463)
## Problem The enable-extension dialog in #51440 needs clearer installation copy and a consistent disclosure for custom-schema guidance. On narrow screens, footer buttons touch and dialog content can scroll sideways. ## Solution Polish the dialog on top of #51440: - Explain fixed-schema requirements and hide custom-schema guidance when the extension requires a specific schema. - Share the disclosure interaction with the session-expired and API-hardening dialogs through `ui-patterns/DialogDisclosure`, documented with a live design-system example. - Fix narrow-screen overflow and add vertical spacing to shared dialog footers. - Refine inline-code styling and update the PostGIS instructions and E2E button locator. | After | | --- | | <img width="852" height="710" alt="CleanShot 2026-10-09 at 12 17 47@2x" src="https://github.com/user-attachments/assets/59f6f1e7-9884-4cdb-b678-62b7f88a8ec5" /> | | _Standard extension_ | | <img width="836" height="1092" alt="52254" src="https://github.com/user-attachments/assets/dbf53d3e-6583-4c3b-8f43-577e0723d9a7" /> | | _Standard extension expanded accordion_ | | <img width="836" height="604" alt="CleanShot 2026-10-09 at 12 20 04@2x" src="https://github.com/user-attachments/assets/c8e3961f-2683-440c-a2a2-48ccd53c4a17" /> | | _Extension with fixed schema_ | ## Review instructions 1. Open `/project/<ref>/database/extensions`. Turn on the toggle for a disabled `postgres_fdw` extension. Expand **Install in a different schema** and check its hover, keyboard focus and full-width click target. Repeat with `pg_cron` or `pgmq`: the intro must say **must**, and custom-schema guidance must be absent. Cancel without enabling. 2. At 320 px and 375 px, check the extension dialog's alignment, inline-code rendering, wrapped SQL and stacked **Enable** / **Cancel** spacing. Confirm the page does not scroll sideways. 3. On a platform project with the Data API enabled, open `/project/<ref>/integrations/data_api/settings`. Under **Harden Data API**, click **Harden Data API**. Expand both sections and check the same trigger behaviour. Confirm completed sections still show their check icons. Close without applying either action. 4. The session-expired dialog has no direct route. It is rendered by `apps/studio/hooks/misc/withAuth.tsx` after authentication loading exceeds 10 seconds. For repeatable local review, temporarily pass `visible={true}` to its `SessionTimeoutModal` callsite, then open `/projects`. Expand **Having trouble?** by clicking the text or chevron and using Enter / Space. Check the help text and controls. Close the dialog without signing out or clearing site data, then undo the temporary prop change. 5. In the design system, open [`/docs/components/dialog#optional-details`](https://design-system-git-dnywh-choreextension-dialog-polish-supabase.vercel.app/design-system/docs/components/dialog#optional-details). Click **Export results**, then expand **What’s included** with the mouse and keyboard. The demo imports the same `ui-patterns/DialogDisclosure` used by Studio. 6. Open another dialog and an alert dialog at a narrow width. Check the shared 8 px gap between stacked footer buttons. Review inline-code examples on `/docs/components/typography` for the shared styling change. |
||
|
|
255a80e219 |
refactor(apps): standardise existing favicon assets and declarations (#51419)
## Problem - Favicon files and markup are duplicated across apps. ## Solution - Replace old files with one ICO, one Apple icon and two manifest icons per set. - Share icon markup and add generation notes and scripts. - Keep existing branding, including Learn's black and white icon. - Make the border radius match across all apps’ favicons. ## Review instructions - Check normal app icons and Studio staging in browser tabs. - Check icons load under `/docs` and `/kb`. - Run `node scripts/validate-favicons.mjs`. All 8 sets should pass. |
||
|
|
2d5768d3c1 |
feat(studio): wire Platform Webhooks UI to real backend API (#51352)
## What
Wires the existing (mocked) Platform Webhooks UI to the real Management
API backend, per FE-3749.
- New `data/platform-webhooks/` query/mutation hooks, calling the real
`/v2/organizations/{slug}/webhooks/...` and
`/v2/projects/{ref}/webhooks/...` endpoints
- Updated `PlatformWebhooks.types.ts` to match the real API contract
(field names, shapes)
- Added a signing secret field to the create-endpoint form (API requires
a user-provided secret, not server-generated like the mock assumed)
- Removed the event-type column from the deliveries table (the real
list-deliveries endpoint doesn't return event type, only the
single-delivery endpoint does)
- Removed `PlatformWebhooks.mock.ts` / `.store.ts` and their tests
## Why
UI was built ~80% against mock data months ago; this closes the gap to a
real, working feature.
## Known open items (not blocking, tracked separately)
- `name` field has no backend storage yet — client-only for now, open
question with Ali/Paweł
- Deliveries table only fetches the backend's default single page — real
server-side pagination not yet wired (see FE-3750)
## Follow-up PR (stacked)
Tests for the new `data/platform-webhooks/` hooks (MSW-based), per the
ticket's own scope split.
## Testing
Manually tested end-to-end against local backend: created/edited/deleted
an endpoint, verified the real signature using webhook.site,
independently recomputed the HMAC and confirmed it matches the
`webhook-signature` header.
Linear: FE-3749
---------
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
|
||
|
|
6119ea1eb5 |
feat(design-system): remove table head hover in design system (#51452)
## Problem All our tables had shadcn's rather annoying row hover on a non-interactive `<thead>`. ## Solution Some tailwind/css magic to stop the hover on `<thead>`. |
||
|
|
d523603e17 |
fix(ui-patterns): hide Skip to content drop shadow when off-screen (#51460)
## Problem The shared Skip to content control parks itself with `-translate-y-full`, so its bottom edge sits on the top of the viewport. After raised Button shadows landed, the `0 1px 3px` drop shadow still peeks into the top-left of Studio, Docs, www, and design-system even when the link is hidden. ## Solution Hide the control with `-translate-y-[calc(100%+8px)]` so the shadow clears the viewport. Update the unit test to match. One shared `ui-patterns` change covers every consumer. | Before | | --- | | <img width="420" height="108" alt="CleanShot 2026-10-09 at 10 14 27@2x" src="https://github.com/user-attachments/assets/469dd260-d989-49a2-a28c-7f02fa353571" /> | | _Note the shadow poking out from the top of the viewport_ | ## Review instructions On light mode and on Safari (for clearest visibility): 1. Open any Studio, Docs, or www preview page (no need to sign in on www/docs). 2. Look at the top-left of the viewport before pressing Tab. Confirm there is no faint button shadow / dark speck. 3. Press Tab once. Confirm the Skip to content button still slides in cleanly, then Enter to jump to main content. |
||
|
|
692b14d47b |
fix(ui): opaque sticky table column hover (#47668)
## Problem
On tables with a sticky last column (Database Extensions, OAuth Apps,
Custom Auth Providers), hovering a row lets scrolled cell content show
through the sticky column.
Root cause: row hover uses `bg-surface-200`, which maps to `--muted`
(alpha). That works for normal cells (nothing behind them) but sticky
cells sit above horizontally scrolled content, so the tint is
see-through.
## Solution
In `ShadowScrollArea` when `stickyLastColumn` is set:
- Keep an opaque `bg-surface-100` base on sticky cells
- Composite the muted hover tint via `background-image` so hover matches
`TableRow` without becoming transparent
Also:
- Extensions: use `Table containerProps={{ stickyLastColumn: true }}`
instead of nesting a second `ShadowScrollArea` (same pattern as OAuth /
Custom Auth)
- OAuth Apps and Custom Auth Providers: drop redundant per-cell
`bg-surface-100` / `hover:bg-surface-200` so sticky hover comes only
from `ShadowScrollArea`
| Before | After |
| --- | --- |
| <img width="1042" height="98" alt="27097"
src="https://github.com/user-attachments/assets/204a7dc4-d5ac-40b7-87fb-fdb03982eaad"
/> | <img width="1084" height="101" alt="94456"
src="https://github.com/user-attachments/assets/c6db3607-6bbe-4488-a0a5-81f5a0436d66"
/> |
## Review instructions
1. Open Database Extensions. Narrow the viewport or scroll the table
horizontally so the Enabled column is sticky.
2. Hover a row while Links or description content sits under the Enabled
column. The sticky cell should stay opaque and match the row hover tint
(light and dark).
3. Optionally repeat on Auth → OAuth Apps and Auth → Custom Providers
(actions column).
Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
|
||
|
|
cd00775dd7 |
feat(studio): add the pipeline creation wizard preview foundation (#51425)
## Problem The redesigned pipeline creation flow (mega branch being worked on in #49243) needs an incremental rollout while the existing creation sheet remains the default. ## Solution - Register **Pipeline creation wizard** in Feature Previews, with visibility controlled by the `pipelineCreationWizard` ConfigCat flag. - Require the flag and an explicit user opt-in (via Feature previews dialog) before enabling the preview. This adds the preview registration, copy, storage key, and gate. It does not change creation routing or ship the wizard. The complete gated flow can be tested on #49243. The ConfigCat flag is configured as follows: - **Local/staging:** true for everyone. - **Production:** false by default, true for the **Supabase Team Email** segment. The flag makes the preview visible; it does not opt anyone in. Users enable it once in Feature Previews. No dev toolbar override is needed in local/staging. ## Review instructions 1. In local or staging hosted Studio, open **Feature previews**. Find **Pipeline creation wizard**. With no saved preference, it should be off by default. 2. Toggle it on and reload. The opt-in should persist. Toggle it off and reload to confirm opt-out persists. **Add pipeline** still opens the sheet in this foundation PR. |
||
|
|
a7cf044118 |
feat(telemetry): capture ChatGPT Ads oppref click id (GROWTH-1278) (#51397)
## Problem ChatGPT Ads appends an `oppref` click id to landing URLs. We don't read it, so ChatGPT ad signups show up in PostHog with no click id and the first-referrer cookie doesn't treat the visit as paid. GROWTH-1278 ## Solution - Add `oppref` to the first-touch click ids sent with PostHog events (`telemetry.tsx`) - Add `oppref` to `CLICK_ID_KEYS` in `first-referrer-cookie.ts`, so it is stored in `_sb_first_referrer` and counts as a paid signal Conversion reporting to OpenAI itself goes through GTM, so it isn't part of this PR. ## Review instructions 1. Run `pnpm exec vitest run first-referrer-cookie` in `packages/common`. The `hasPaidSignals` test now covers `oppref`. 2. On the preview, load any page with `?oppref=test` and check the first-touch event in PostHog carries `oppref`. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
6ef729cb5c |
feat(storage): versioning bucket modals (FE-4161) (#49205)
| # | Branch | Base | | - | ------ | ---- | | 1 | `feat/storage-versioning-private-alpha` — merged | `master` | | 2 | `feat/storage-versioning/002-bucket-form-fields` | `master` | | 3 | `feat/storage-versioning/003-bucket-modals` ◀ | 2 | | 4 | `feat/storage-versioning/004-object-versions-data` | 3 | | 5 | `feat/storage-versioning/005-file-preview-versions` | 4 | | 6 | `feat/storage-versioning/006-billing-storage-retention` | 5 | | 7 | `feat/storage-versioning/007-archived-objects-data` | 6 | | 8 | `feat/storage-versioning/008-archived-rows` | 7 | | 9 | `feat/storage-versioning/009-archived-preview-pane` | 8 | | 10 | `feat/storage-versioning/010-replace-file` | 9 | ## [3/10] Storage object versioning: wire into the bucket modals **Base:** `feat/storage-versioning/002-bucket-form-fields` (PR 2) ### This PR Mounts the object-versioning form section in the create and edit bucket modals behind the feature preview, and saves it. - create and edit bucket modals spread `bucketVersioningFormFields` into their existing form schema - lifecycle defaults to 30 days / 10 versions - edit adds a confirmation before suspending an actively versioned bucket ## Enabling object versioning on a new bucket and setting lifecycle policies https://github.com/user-attachments/assets/194f8319-4929-432e-8a50-206f180a77a8 ## Edit and suspend object-versioning https://github.com/user-attachments/assets/f31e1d34-9840-4f5a-a269-6a911214742d ## To reproduce 1. Make sure storage versioning is enabled under feature previews > Storage Versioning 2. Open Storage Bucket File explorer 3. create new bucket and enable Object Versioning 4. set lifecycle policy - Noncurrent version expiration: can be either empty or >1 - Retained noncurrent versions: can be either empty or between 1 and 100 and can't exist without "Noncurrent version expiration" 5. Open new bucket with object versioning and test changing lifecycle policies 6. Disabling object-versioning shows proper warning and updates `versioning_status` to SUSPENDED (it can never go back to DISABLED once it has been enabled on a bucket) --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> |