mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
create-pull-request/patch
6129
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2695cf117a |
[FE-3106] (part 8) – refactor(studio): move storage, functions and branches pages (#53217)
Moves the `/storage`, `/realtime`, `/compute`, `/functions` and `/branches` page bodies into their route files and deletes the pages (FE-3106). Part 8 of the stack. **Depends on:** #53216 **Changed:** - `routes/project/$ref/{storage,realtime,compute,functions,branches}/**` – 26 page bodies inlined. Wrappers the routes imported from pages (`BranchesPageWrapper`, `MergeRequestsPageWrapper`, …) are now private to their route files. Bucket redirects, function create/deploy navigation and merge-request links use typed `navigate`/`Link`; function logs/invocations use `useLocation().href` - Edge function overview, logs-navigation, vectors, compute and branches tests render the routes with `renderRoute` - `routes/project/$ref/storage/files/buckets/$bucketId.tsx` – also carries master's #52777 (Purge CDN cache action and single `action` query param for the bucket modals), ported from the deleted page so it isn't reverted **Removed:** - 26 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Storage: open a bucket, its policies link and S3 settings – same layout; deleting a bucket returns to the list - Edge Functions: create a function, open Overview/Code/Logs/Invocations/Details – same layout - Branches and merge requests – lists and "Review" links work --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
7418124337 |
[FE-3106] (part 6) – refactor(studio): move project home and database page bodies (#53215)
Moves the project home, `/merge`, `/api` and all `/database/*` page bodies into their route files and deletes the pages (FE-3106). Part 6 of the stack. **Depends on:** #53214 **Changed:** - `routes/project/$ref/{index,merge,api/index}.tsx`, `routes/project/$ref/database/**` – 26 page bodies inlined; redirects use `<Navigate>`/`useNavigate` with typed params and `search`; `next/link` → `Link` - `database/pipelines/new` – same-origin header links navigate client-side via `splitInternalUrl`, external ones via `href`, matching the old shim - `PipelineCreationPage.test.tsx` – renders the route with `renderRoute` **Removed:** - 26 page files, and `DatabaseTriggersLayout`/`PipelinesLayout`, which only the deleted pages' `getLayout` used (the route shells already inline them) Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Click through Database (Tables, Functions, Triggers, Indexes, Roles, Policies, Backups, Pipelines, Publications) – same layout, titles and sidebar - `/project/<ref>/database/triggers` – redirects to `triggers/data` - `/project/<ref>/api` – redirects to the Data API docs, keeping the query - Create a pipeline and leave the wizard – unsaved-changes guard and navigation behave as before --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
33ae2caa0d |
[FE-3106] (part 4) – refactor(studio): move sign-in and standalone page bodies (#53213)
Moves the sign-in and standalone page bodies (`/sign-in`, `/sign-up`, `/sign-in-sso`, `/sign-in-partner`, `/sign-in-mfa`, `/sign-in-recovery-code`, `/forgot-password`, `/forgot-password-mfa`, `/reset-password`, `/cli/login`, `/partners/stripe/projects/login`, `/authorize`, `/redeem`, `/logout`, `/maintenance`, `/verify-email`, `/support/csat`, `/mcp/secrets`) into their route files and deletes the pages (FE-3106). Part 4 of the stack. **Depends on:** #53212 **Changed:** - `routes/_auth/**` and the standalone routes – page bodies inlined; `next/router`/`next/link`/`next/head` → native TanStack (`navigate({ to, search })`, `search: true` to carry the query, `href` for runtime return URLs) and inline `<title>`. Layout chains match the old `getLayout`s - `components/interfaces/CliLogin/CliLoginScreen.tsx` – the CLI login screen moves out of the page so its test can import it without the route file exporting it - `tests/routes/{authorize,_auth/**}.test.tsx` – moved from `tests/pages/**` and rendered with `renderRoute` **Removed:** - 18 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Sign out, open `/sign-in` and `/sign-up` – same layout and title; switching between them keeps `returnTo` - Sign in with MFA – `/sign-in-mfa` returns to the original page - `/cli/login?session_id=…` and `/authorize?…` – flows complete as before - `/logout` – redirects to `/sign-in` --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
412df7746e |
feat: revamped free plan limit modals / downgrade improvements (#53257)
Whenever customers run into their 2 Free Plan project limit, we were previously just listed the affected members: <img width="1044" height="566" alt="image" src="https://github.com/user-attachments/assets/d1c1327d-2532-4d8e-8af2-425da9ce1ee5" /> While this lists the affected members, it is pretty unclear which organizations are affected or which projects contribute to this and what the best course of action is. This PR revamps all components that are displayed in this situation (new project launch, downgrade to Free, project unpause) to show the affected organizations + projects primarily and give more actionable tips: <img width="1014" height="638" alt="Screenshot 2026-11-11 at 3 57 45 PM (1)" src="https://github.com/user-attachments/assets/ae38f71d-bbde-4181-a623-24bef778afee" /> <img width="768" height="152" alt="image" src="https://github.com/user-attachments/assets/b3b0efd7-678b-4ac0-9602-4cc5d735a9aa" /> --- Additionally, this contains small improvements to the downgrade flow: - Rename button to "Downgrade Now" as opposed to "Confirm" to make it more clear that this is immediate - Explicitly mention downgrades are immediate and there is still another invoice for unbilled usage - Larger modal width for improved readability |
||
|
|
07574deea7 |
chore(studio): refine log detail panel (#52750)
<img width="823" height="614" alt="image" src="https://github.com/user-attachments/assets/1c1ac47f-07e2-4bbe-a91e-5690e849e519" /> ## Problem The log detail panel felt cramped. The header split across two lines, contrast between the header, tabs and properties was weak, and long values overflowed their column. Edge function logs also had no path in the unified logs query, so their title fell back to the raw event message, which repeated the status and cut off the function name. The panel also moved under the user. Clicking a Timeline step jumped to Overview, so stepping through a request meant switching back each time, and an "Enriching log..." row pushed the details down while they loaded. ## Solution - **Header:** one line with the type icon, status badge, method and path. The log type name moves to the icon's tooltip. Long paths clip from the start so the most specific segment stays visible. - **Type and spacing:** 15px title, 12px property labels and values, 40px section and "Logged" rows, and more room around the tabs. The panel uses the card background. - **Long values:** wrap inside their column instead of overlapping the label. - **Edge function paths:** the ClickHouse query now reads `request.pathname` for `function_edge_logs`, matching the BigQuery query. - **Timeline:** clicking a step keeps the Timeline tab open, while the header, actions and other tabs follow the clicked log. A single hidden step is shown instead of "+1 more", and the first step shows its absolute time in place of the "Request started" row. - **Loading:** the header's type icon becomes a spinner of the same size while the log's details load, replacing the "Enriching log..." row. - **User tab:** the "No signed-in user" state uses the same centered empty state as the Timeline tab. Side effects to check: - Edge function rows now fill the Path column, so function-scoped tables can show that column. Path filters and facets include these rows, and Timeline steps show method and path. - Audit Logs and the Auth Users panel share these components. Audit Logs picks up the taller section rows, and Auth Users fields drop to 12px. ## How to test On `/project/<ref>/logs`: 1. Select an API Gateway log. The header is one line: icon, status badge, `METHOD /path`. The icon spins while details load, and nothing below it shifts when it stops. 2. Open **Timeline** and click a few steps. The tab stays on Timeline while the header and highlight follow each click, and Overview then shows the clicked log. The first step shows a time instead of `+0 ms`. 3. Select an edge function log. The title shows `METHOD /functions/v1/<name>` and the Path column is filled. Filtering by part of that path matches these rows. 4. Select a Postgres log. The title shows the message, and its **User** tab shows a centered empty state like Timeline's "No related logs". 5. Select a log with a long URL in a narrow panel. Values wrap inside their column and the title clips from the start. This has only been checked in Chromium. 6. Open an entry in Audit Logs and a user in Auth > Users, and check the spacing and type. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d17e66f202 |
fix(studio): unified logs sidebar styling (#53470)
## Problem Unified Logs sidebar title and a few other bits fell out of sync after a recent change. ## Solution The Unified Logs filter sidebar hand-rolled its own header instead of using the shared `ProductMenuBar` header, so it drifted from every other section. This brings it back in line. - **Title**: `<p className="text-lg">` → `<h4 className="text-sm">`, matching `ProductMenuBar`. - **Header**: `px-4` → `px-6`, `gap-3` → `gap-2`, and `h-[48px]` → `min-h-(--header-height)`. - **Filter area**: `p-2` → `px-4 py-1.5`, so filter labels share the same left edge as the title. - **"Capture your logs" card**: dropped `mx-2` so it spans the container gutter. - **Reset button**: `variant="text"`, tooltip moved to `side="bottom"`. - **Card surfaces**: removed the ad-hoc `bg-muted/10 border-border/50` override so cards use the default border and inherit the sidebar surface. Note: `FeaturePreviewSidebarPanel` is shared, so the Advisors sidebar card loses the same tint — intentional, it brings all usages in line. | Before | After | |--------|--------| | <img width="293" height="745" alt="Screenshot 2026-11-16 at 19 11 05" src="https://github.com/user-attachments/assets/dc1ec664-382a-4e3b-a85b-40d37a8b479f" /> | <img width="265" height="739" alt="Screenshot 2026-11-16 at 19 10 43" src="https://github.com/user-attachments/assets/315fece5-3b45-4826-8e5c-5f6f9a1c258b" /> | ## Review instructions 1. Open Unified Logs (`/project/_/logs`) with the unified logs preview enabled. 2. Compare the sidebar header ("Logs" + Beta badge) against another section's sidebar header, e.g. Observability (`/project/_/advisors/rules` → Observability menu). The title size, weight and left padding should now match. 3. Confirm the filter labels ("Time Range", etc.) line up with the "Logs" title on the same left edge, and that the "Capture your logs" card spans the same width as the filter rows above it. 4. Apply a filter so the Reset button appears. It should render as a text button (no raised/filled background) and its tooltip should open below it. 5. Check the "Capture your logs" and "Go back to old logs" cards have no tinted background — just a border against the sidebar surface. 6. Check the Advisors sidebar (`/project/_/advisors`) card picks up the same treatment. |
||
|
|
2a9b02a99a | feat(docs): Improve Pipelines docs and UI (#53450) | ||
|
|
f7f27aac78 |
fix(studio): escape json and jsonb values in SQL copy and export (#53372)
## What Fixes invalid or corrupted SQL from "Copy rows as SQL" and "Export table as SQL" for json/jsonb columns (FE-4860, closes #49196). ## Why The SQL formatter built json literals by rewriting `JSON.stringify` output with regexes. That corrupted values containing double quotes or backslashes, and produced invalid SQL for jsonb columns holding plain strings or other non-object values. ## How - `formatTableRowsToSQL` now serializes the parsed value and only escapes single quotes. - Grid rows carry json columns as text (the grid query casts them to `::text`), so a new `parseGridJsonColumns` helper parses untruncated json cells before formatting. It is used by "Copy rows as SQL" and the selected-rows export. Truncated cells are left alone so they are still fetched in full. - The SQL export keeps json columns unstringified (`preserveJsonValues`), so a jsonb string like `"hello"` stays distinguishable from JSON text. CSV and JSON exports are unchanged. No `::text` cast was added to the export query: the API already returns json values parsed. ## Testing - Unit tests for values with `"`, `\`, `'`, plain-string jsonb, arrays, numbers, booleans and null, plus `parseGridJsonColumns`. - Ran the formatter output against a local Postgres: both the parsed (fetch-all) and grid-text (copy / selected rows) shapes loaded and round-tripped identically for jsonb and json columns. The old formatter's output failed with `invalid input syntax for type json` on the same data. - Not exercised end to end in the Studio UI, and the truncated-cell path is covered by unit tests only. ## Not in scope The JSON export still stringifies objects before `JSON.stringify`, so json columns come out as nested strings. That is separate pre-existing behavior. |
||
|
|
a66aa7417a |
fix(studio): sidebar collapsible (#53425)
## Problem - in "Expanded" mode the nav icons sit 2px right of the logo center - on page reload the sidebar starts collapsed and then plays the open animation when previously opened ## Solution - removes the extra padding kept for "Expanded" mode so the icons stay on the logo center - changes the sidebar to read the stored mode on the first render, so it opens with no animation or layout jump - fixes a sidebar that stays open after the user picks "Expand on hover" in the account preferences | before | after | | --------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | <video src="https://github.com/user-attachments/assets/36100073-6265-41b0-ab9a-1189d298b3bc" /> | <video src="https://github.com/user-attachments/assets/0d0a1f5f-fbd7-4bca-baae-3ac511f028c5" /> | ## Preview links | Site | Live | Preview | Search for | | ------ | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | ---------------- | | Studio | [/dashboard/project/\_](https://supabase.com/dashboard/project/_) | [/dashboard/project/\_](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/project/_) | Expand on hover | | Studio | [/dashboard/account/me](https://supabase.com/dashboard/account/me) | [/dashboard/account/me](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/account/me) | Sidebar behavior | ## Review instructions 1. open [/dashboard/project/\_](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/project/_) and select a project 2. open the sidebar control at the bottom of the sidebar and select "Collapsed" 3. select "Expanded" in the sidebar control, and make sure that the icons do not move to the side 4. reload the page, and make sure that the sidebar shows open at once with no animation ## 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) |
||
|
|
4ed3627d72 |
Joshenlim/fe 3891 improve handling of partition tables in (#53268)
## Context The Table Editor doesn't really handle partitioned tables well given the following issues: - Partitioned tables are rendered as a flat list in the Table Editor side menu, so the menu could get very long and noisy - this was the primary motivation for this PR - Child partitioned tables are not indicated with a proper icon, they're treated as regular tables in the Table Editor which is incorrect ## Changes involved - Table Editor side menu now only lists parent partitioned tables, omits all child partitioned tables - Child partitioned tables can be viewed by clicking on the button tooltip here or drilling down via "View partitions" <img width="300" alt="image" src="https://github.com/user-attachments/assets/e3cfbe4b-21ff-47df-8fcd-81d0c9f68d94" /><br /> <img width="400" alt="image" src="https://github.com/user-attachments/assets/5d0747cb-fb52-4301-ad9e-c7be504f43c9" /> - Selecting that will then render a nested nav as such <img width="291" height="323" alt="image" src="https://github.com/user-attachments/assets/bff0a42b-4265-4317-8299-537d82544388" /> - Sub partitioned tables can be drilled into the same way, and the back CTA steps up one level <img width="485" height="306" alt="image" src="https://github.com/user-attachments/assets/66f6f6cb-8b7d-46c5-8ea3-4ee4fd57aa84" /> - Parent partition tables have the following actions (Previously was only copy name and schema) <img width="465" height="257" alt="image" src="https://github.com/user-attachments/assets/2aa90995-7c30-4bcf-a446-d01ab52c1ede" /> - Deleting a parent partition table will also delete the child partition table, and that's highlighted in the confirmation modal <img width="418" height="316" alt="image" src="https://github.com/user-attachments/assets/0d61984b-f85e-4c93-84d0-549d300838c9" /> - Child partition tables have the following actions (Edit + duplicate removed since they aren't supported via the UI) <img width="482" height="229" alt="image" src="https://github.com/user-attachments/assets/e028b13d-2e92-4491-b05c-7a6cb0a129d6" /> ## To test In general, just verify the viewing UX of partitioned tables to see if it all feels alright, can use the following SQL to quickly set up partitioned tables ```sql create schema if not exists tint; create table public.nest_demo (id int, hue int not null, primary key (id, hue)) partition by range (hue); create table public.nest_demo_blue partition of public.nest_demo for values from (200) to (300) partition by range (hue); create table public.nest_demo_blue_light partition of public.nest_demo_blue for values from (200) to (250); create table tint.nest_demo_blue_deep partition of public.nest_demo_blue for values from (250) to (300); create table public.nest_demo_other partition of public.nest_demo for values from (0) to (200); ``` |
||
|
|
ac31093799 |
chore(studio): update issues icon (#53444)
## Problem `issues` icon looked too generic. ## Solution Add custom icon. - with exclamation mark if issues > 0 - empty inbox icon if issues === 0 |
||
|
|
1ddfdfc7bb |
fix(studio): prevent Warehouse connection status extending page height (#53442)
## Problem The Warehouse overview can acquire extra document height, allowing the header and sidebars to move when scrolling past the content. The connection card’s absolutely positioned screen-reader status has no local containing block in the default card layout. | Before | | --- | | <img width="1187" height="1034" alt="Integrations warehouse-cuf-browser-20261028 ETL Staging Supabase" src="https://github.com/user-attachments/assets/6bf0279d-c644-4834-9a6d-f6b634037b72" /> | | _Note the entire bottom area has shifted up, including sidebar contents._ | ## Solution Position the connection card relatively in both layouts, keeping the live status announcement inside its card. This fixes the source without changing root layouts or scroll containment. ## Review instructions 1. Open **Integrations > Warehouse > Overview** on a configured project such as [this one](https://supabase.green/dashboard/project/yirnfrgkxmnqgexikhfc/integrations/warehouse/overview). 2. Scroll past the bottom. Only the content pane should scroll; the header and sidebars should stay in place. 3. Check connection details still work in the Connect sheet. |
||
|
|
7ee828f3f6 |
chore(studio): center Explorer query result states (#53437)
## What The Explorer results area showed its idle and no-rows states as a small line in the top-left corner, which was easy to miss, and showed nothing while a query ran. These states now sit in the center of the results area, with an icon above the label: - **Before a run:** "Run the query to see results" - **While running:** "Running query…" (new). When a re-run has previous rows, they stay on screen, dimmed, under the running state, so notebook cells don't collapse and grow back. - **No rows:** "Success. No rows returned" Assistant query cells also show the running state after you approve a query, since that run happens outside the editor. ## Testing Enable the `explorer` flag and open Explorer. 1. Open a new query tab and check that "Run the query to see results" is centered. 2. Run `select pg_sleep(2)`. "Running query…" shows while it runs, then the result appears. 3. Run `select 1 where false` and check that "Success. No rows returned" is centered. 4. Run `select * from pg_tables`, then re-run it. The rows stay visible, dimmed, under the running state. 5. In a notebook with several cells, click **Run notebook**. Cells keep their height while they run. 6. Ask the Assistant to run a query and approve it. The cell shows "Running query…" until the result arrives. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
51bd16d9ca |
Joshenlim/fe 5064 update database triggers to use new nav (#53356)
## Context Update database triggers to use the new page components + add deprecation notices to legacy components There's no visual change here --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
f4d8252427 |
Improve postgres upgrade warning for pipelines (#53359)
## Context For upgrading a project's Postgres version, the eligibility check returns blockers if a project has active pipelines running. However, the notices are currently confusing and not actionable from a user's POV for these reasons: - The warnings mention the slot name in the title, but as a user i've no idea what slot names these are referring to - There's no CTA as a user to action on to unblock myself - There's multiple warnings due to each replication slot that the pipelines take up, although they all point to the same reason that pipelines just needs to be stopped before upgrading - Example here if i have 3 active pipelines: I get 10 warnings here <img width="500" alt="image" src="https://github.com/user-attachments/assets/c4d99cd4-df3b-4e8e-90cd-896c0f2fa52b" /> Am opting to consolidate all Pipelines related upgrade warnings into just one row as such, by grouping them if the upgrade eligibility error type is `active_replication_slot` and the slot name begins with `supabase_etl_`. Added a "Manage" CTA as well that brings users to the Pipelines page <img width="799" height="234" alt="image" src="https://github.com/user-attachments/assets/50a0c64a-6afe-44e2-9bf8-a21e8ecfc47a" /> Also small nit but this PR fixes the weird list decorator in the rows too <img width="165" height="81" alt="image" src="https://github.com/user-attachments/assets/8c0a0ff6-225f-48d1-a25f-8ffa9e65533c" /> |
||
|
|
000320e914 |
fix(studio): keep form text consistent across breakpoints (#53429)
## Problem Small and medium form controls and related text grow from 14px to 16px below a viewport breakpoint, making them larger than surrounding dashboard text. ## Solution Keep these sizes at 14px across breakpoints in shared controls and form layouts, plus Studio search fields and assistant textareas. Explicit large and extra-large variants keep their existing sizes. The shared sizing change also applies to buttons. ```diff - text-base md:text-sm + text-sm ``` This accepts iOS Safari’s automatic zoom when focusing smaller editable fields. User zoom remains available. Validation: Prettier, scoped Studio ESLint, and whitespace checks pass. Browser checks and a full build have not been run. ## Review instructions 1. Open a project’s **Settings > General**. Resize across 768px and check that field text, labels, helper text, and buttons keep the same font size. 2. Open the organisation/project selector and resize across 640px. Its search text should stay at 14px. 3. Open the assistant and check that its textarea text stays the same size across 768px. 4. On an iPhone, focus an editable field and check that the accepted focus zoom behaviour remains usable. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
ad69889569 |
feat(studio): show Google client IDs one per line when read-only (#53321)
## Problem In the Google sign-in provider settings, the Client IDs field is a single-line input. When several comma-separated IDs are configured, the value overflows the input, so it is hard to tell whether an ID is already present. Linear: FE-4476 ## Solution Show the IDs one per line when the field is not being edited, and the original comma-separated string while it is focused. - Not focused: the field is read-only and shows one ID per line, in the stored order. - Focused: the field is editable and shows the exact stored string. - The stored value, the validation, and the API payload are unchanged. Typing does no conversion. - If the field is read-only or disabled, it stays in the one-per-line view. It adds a small `CommaSeparatedListInput` component and a new `comma-separated-list` field type, used only for the Google Client IDs field. ## Review instructions 1. Open a project and go to Authentication > Sign In / Providers > Google. 2. Enable Google sign-in and enter several client IDs separated by commas, then save. 3. Reload the page and reopen Google. Check that the IDs show one per line, in the order you saved. 4. Click into the field and check that it shows the original comma-separated string. 5. With Google enabled, add a trailing comma or a space and click Save. Check that the validation error appears and no request is sent. |
||
|
|
acde41a2e2 |
feat(studio): add magic link and email OTP toggle to email provider settings (#53308)
## What changed Adds an "Enable magic links and email OTP" toggle to the Email provider settings in Auth. It maps to the new `EXTERNAL_EMAIL_MAGIC_LINK_DISABLED` auth config field, inverted in the UI the same way `SMS_AUTOCONFIRM` is (via `doubleNegativeKeys`). ## Notes - `packages/api-types` does not include the new field yet; the form reads config values untyped, so this works before the types are regenerated. - Typecheck shows no errors under `Auth/`. Not yet verified in the UI against a backend that returns the field; no tests added. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
df03d7349f |
feat(studio): saved views follow up (#53375)
## Problem The saved views feature in Unified Logs had a few rough edges: - The "no saved views" state in the dropdown was a plain disabled menu item with no context on how to get started. - The "save as view" suggestion banner title had an exclamation mark that didn't match the rest of the app's tone. - The Save View dialog's filter/options summary was a flat list of grouped text rows, which didn't visually connect to the pill-style filters users had just built on the filter bar. ## Solution - Added a proper empty state to the saved views dropdown (icon, title, description) using the shared `EmptyStatePresentational` pattern, sized down to fit the compact dropdown. - Dropped the exclamation mark from the "You've configured N filters" suggestion banner title. - Reworked the Save View dialog's filter and options summary to render as pills matching the filter bar's visual style, instead of grouped text rows — one pill per filter condition, plus matching pills for view options, with slightly larger spacing between the two sections. ## Review instructions 1. Open Unified Logs, apply 3+ filters, and open the saved views dropdown with no views saved — confirm the new empty state. 2. Configure filters until the save suggestion banner appears — confirm the title has no exclamation mark. 3. Click "Save view" and confirm filters/options render as pills matching the filter bar's style. _You need to enable the flag `logsSavedViews` locally_. |
||
|
|
4998b77ab2 |
feat(studio): ask whether org creators know how to code (#53317)
I added the "Do you know how to code?" question (Yes / No, optional) to the onboarding survey on the new organization form and in the follow-up dialog. The answer is sent as `can_code` in the same survey request as the other answers. I removed an earlier version of this question before the survey shipped because the platform didn't store it; the platform now accepts `can_code`. **Changed:** - **New question, always visible**: it shows on both surfaces without waiting on another answer, so it can be answered on its own. Only the `org_form` arm of the experiment shows the survey. - **Follow-up dialog shows every question at once**: "What are you building?" used to appear only after "Who is this org for?" was answered. "How many people?" still appears only for the Company org type. - **Follow-up card above other banners**: I raised its priority in the banner stack so it sits in front of the project-page cards for its five-minute window. - **Telemetry**: I added a `hasCanCode` boolean to `onboarding_survey_submit_button_clicked` and `onboarding_survey_submit_failed`. **Note:** Merge only after the platform change that accepts `can_code` is in production: before that, the API drops the key and still returns 204, so answers are lost with no error. The change is live once `can_code` is listed under `OnboardingSurveyBody` in the production platform OpenAPI spec. I widened `OnboardingSurveyBody` locally because `packages/api-types` can only be regenerated once the production spec has the field. ## To test Setup: sign in and set the `onboardingSurveyPlacement` flag to `org_form` with the dev toolbar. Tested on the PR preview: - [x] Open `/new`: expect "Do you know how to code?" below "What are you building?" with Yes then No, before any other question is answered. Answer both and create the org: expect one `POST /platform/organizations/onboarding-survey` whose body has `building` and `can_code`. Observed: both questions on the untouched form, options Yes then No; one request, 204, body has `"can_code":"yes"`. - [x] Create an org with only "Do you know how to code?" answered: expect one request whose body has `can_code` and no `building` key. Observed: one request, 204, `"can_code":"no"`, no `building` key, and no follow-up card on the new org's page. - [x] Create an org with the org type changed to Company, a size picked and "Do you know how to code?" answered, leaving "What are you building?" blank: expect one request with `kind`, `size` and `can_code`, and no follow-up card on the new org's page. Observed: one request, 204, `"kind":"COMPANY","size":"50","can_code":"yes"`; no follow-up card. - [x] Create an org with "What are you building?" answered and the new question left blank: expect the request body to have no `can_code` key, and the org to be created. Observed: one request, 204, no `can_code` key. - [x] Create an org without touching the survey, then open the new org's page: expect the "Help improve Supabase" card. Click Answer: expect all three questions in the dialog right away. Answer all three questions and send: expect one request with `kind`, `building` and `can_code`. Observed: no survey request at creation; the card shows on the org page; the dialog opens with all three questions blank; one request, 204, body has `"can_code":"yes"`. - [x] Set the flag to `control` and open `/new`: expect no survey questions. Observed: none of the survey questions render. - [x] Added check: `onboarding_survey_submit_button_clicked` carries `hasCanCode`. Observed: `true` when answered on both surfaces, `false` when left blank. ## Linear - fixes GROWTH-1487 |
||
|
|
f1d9d3a96a |
feat(studio): add saved views in unified logs (#53286)
Persist saved views through project-scoped content endpoints. Restore custom attribute filters and saved options, and validate content with focused Zod schemas. |
||
|
|
b046f12571 |
chore(api-types): update generated API types from production (#53364)
Regenerates the API types with `pnpm api:codegen:prod` and fixes the
Studio type errors the new types caused.
## Changes from the API
- **Branch merge now requires production write permission.** `POST
/v1/branches/{branch_id_or_ref}/merge` changed from accepting either
`branching_development_write` or `branching_production_write` to
requiring `branching_production_write`. Studio's FGA refinement for
merge no longer matched and failed typecheck.
- Removed the merge entry from `lib/fga-refinements.ts`.
- `merge.tsx` checks merge permission with `useGrant` instead of
`useBranchGrant`.
- `BranchMergeGrant` uses `GrantFor` instead of `GrantForVariants`.
- Removed merge from the "requires a variant" test in
`guarded-fetch.test.ts`.
- Users with only development branching permissions can no longer merge
in Studio. This matches what the API now enforces.
- **Replication pipelines have a required `cluster_id`.** Added it to
the pipeline fixtures in six test files.
- **`MemberWithFreeProjectLimit` has a required
`free_plan_organizations`.** Added it to the mock in
`tests/pages/new/[slug].test.tsx`. No app code reads it yet.
## Testing
- `pnpm typecheck` passes.
- Vitest passes for the affected Studio tests.
|
||
|
|
64eafa5058 |
Replace valtio store with URL state for organization billing panels (#53353)
## Context Realised that opening the organization billing subscription + spend cap panels do not actually append the `?panel` URL param, but those panels will be opened if you land on `/billing?panel=xxx` directly. There's a discrepancy between how this state is being handled - we've got a valtio store to handle the panel open state, and also URL handlers as well that look out for the `panel` query param in a `useEffect` which then updates the valtio store. Opting to streamline these by replacing the valtio store with a simple `useQueryState` instead. ## To test - [ ] Verify that clicking "Change subscription plan" or "Change spend cap" in org billing settings opens their respective panels with the right URL param appended, and closing them removes the URL param - [ ] Verify that landing directly on `/billing?panel=subscriptionPlan` or `/billing?panel=costControl` opens the respective panels too |
||
|
|
8f3f680d73 |
Use NoSearchResults for no search results in integrations (#53354)
## Context Just swaps out to use `NoSearchResult` for empty search state in project integrations for consistency ### Before <img width="1146" height="422" alt="image" src="https://github.com/user-attachments/assets/d66c1714-be55-4cbf-9de1-f5c8a2464649" /> ### After <img width="1145" height="333" alt="image" src="https://github.com/user-attachments/assets/761624f4-f827-41d7-bd53-d6bcb11df4f8" /> |
||
|
|
d374842f03 |
fix(studio): hide email identity unlink until Auth clears password (#53352)
## Problem Unlinking the email (password) identity from Account → Security removes the email identity in the UI, but Auth leaves `encrypted_password` in place. Users can still sign in with the old password, and **Add password** fails with “Current password required when setting new password.” This is an Auth lifecycle bug. Until Auth clears the hash on email unlink, Studio should not allow that unlink. ## Solution Keep `enableAccountPassword` on so OAuth-only users can still add a backup password (matches the changelog). Disable **Unlink** on the email identity with tooltip “Temporarily unavailable”, and guard the confirm handler. OAuth unlink is unchanged. Re-enable email unlink once Auth clears the password hash. No changelog change for now. ## Review instructions 1. Open the Studio preview → **Account → Security** → **Sign-in methods**. 2. On an account with both GitHub and Email linked: hover the Email unlink control and see **Temporarily unavailable**; GitHub unlink still works; **Change password** still works. 3. On an OAuth-only account: **Add password** still appears when the flag is on. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
42b6571e7d |
Chore/housekeeping org pages (#53303)
## Context Some minor UI issues that I found while reviewing another PR - Fix `NoProjectsOnPaidOrgInfo` prematurely showing while project details is still loading <img width="1249" height="376" alt="image" src="https://github.com/user-attachments/assets/3f41f4a3-849f-4685-bcc4-6fed3b433042" /> - Fix padding alignment for Organization details form group <img width="1115" height="282" alt="image" src="https://github.com/user-attachments/assets/c0865614-208c-4335-87d3-176c4411b6a4" /> - Fix projects list on `/org/[slug]` showing stale projects while switching orgs - just removed `keepPreviousData` so that the card loaders shows up - Fix organization settings in sidebar menu not showing active state while on certain settings pages like audit-log-drains, webhooks, etc |
||
|
|
b009175ab0 |
fix(studio): keep report toolbars clear of wrapped content (#53302)
## Problem Funky layout. Observability report toolbars reserve a fixed height. When controls wrap on narrow screens, they can overlap report content. Refresh, date and Docs controls also have inconsistent alignment. ## Solution Keep the sticky toolbar in normal document flow so its actual height determines content spacing. Align refresh and date controls to the left and Docs to the right across Auth, Database, Edge Functions, Data API, Realtime and Storage reports. <!-- linear:table-colwidths:550,137 --> <table> <thead> <tr> <th>Before</th> <th>After</th> </tr> </thead> <tbody> <tr> <td><img src="https://github.com/user-attachments/assets/05c2d0cd-1893-4491-92e4-3b445ab47300 " alt="CleanShot 2026-11-12 at 17 44 20@2x" width="1652" data-linear-height="878" /></td> <td><img src="https://github.com/user-attachments/assets/f8873c55-2c5d-45fa-9d40-643002ef7ff8 " alt="CleanShot 2026-11-12 at 17 44 43@2x" width="1658" data-linear-height="850" /></td> </tr> <tr> <td><img src="https://github.com/user-attachments/assets/ac6467c0-9e08-4420-b55f-e1965bb25f3f " alt="CleanShot 2026-11-12 at 17 45 01@2x" width="1650" data-linear-height="252" /></td> <td><img src="https://github.com/user-attachments/assets/90e69f62-f811-4039-8c2b-64b3e1a3e679 " alt="CleanShot 2026-11-12 at 17 45 11@2x" width="1646" data-linear-height="250" /></td> </tr> <tr> <td><img src="https://github.com/user-attachments/assets/657ce909-b057-4e0c-aa1a-2e9427ddb72d " alt="CleanShot 2026-11-12 at 17 54 51@2x" width="1000" data-linear-height="222" /></td> <td><img src="https://github.com/user-attachments/assets/b7763a8c-8cd2-486b-a99a-fa7c75539bf0 " alt="CleanShot 2026-11-12 at 17 53 10@2x" width="992" data-linear-height="224" /></td> </tr> <tr> <td>*Note the awkward shadow on the left and right.*</td> <td></td> </tr> </tbody> </table> ## Review instructions 1. Open **Observability > Database**, then Auth, Edge Functions, Data API, Realtime and Storage. 2. Check refresh and date controls on the left and Docs on the right. 3. Narrow the viewport until controls wrap, then scroll. Check that the toolbar stays sticky and report content remains below it. |
||
|
|
7ef7d9f648 |
fix(studio): update Flask ConnectSheet env var to SUPABASE_PUBLISHABLE_KEY (#48826) (#48830)
## What kind of change does this PR introduce?
Bug fix
## What is the current behavior?
In the Connect Sheet modal for Flask
(`apps/studio/components/interfaces/ConnectSheet/content/flask/supabasepy/content.tsx`),
the example code snippet uses `SUPABASE_KEY` for `.env` and
`os.environ.get("SUPABASE_KEY")` in `app.py`. When users follow the
Flask Quickstart guide (which specifies `SUPABASE_PUBLISHABLE_KEY`),
running `app.py` raises `SupabaseException: supabase_key is required`.
## What is the new behavior?
Updated the `.env` code snippet to `SUPABASE_PUBLISHABLE_KEY` and
`app.py` to `os.environ.get("SUPABASE_PUBLISHABLE_KEY")` matching the
standard Quickstart convention.
## Additional context
Fixes #48826
Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
|
||
|
|
ed6d1b4c63 |
feat(studio): show error details in AlertError and attribute user faults in SQL errors (#53242)
## Problem `AlertError` gives users and support no way to correlate a failure with Sentry or platform logs. It also treats every failure the same: a bad table editor filter or an offline browser gets "try refreshing, contact support". On the reporting side, SQL errors were attributed by who wrote the whole statement. That made errors in the user's part of mixed SQL Studio's fault: policy expressions, function bodies, cron schedules, table editor filters and row edits. Marking them as user SQL instead would drop them from Sentry entirely. Part of FE-4772. ## Solution **`AlertError`** - Platform and Studio faults show the request ID, the Sentry event ID (labeled "before sampling", since the event may be sampled out) and a "Copy details" button. - The copied text never includes `formattedError`, metadata, the cause or SQL. - SQL errors copy the SQLSTATE, position and query name instead of the message. - User faults (`isUserError`) show their message with "Please try again. If the issue persists, try refreshing your browser." There is no support link, no IDs and no copy button. - Offline shows only "You may be temporarily offline. Check your internet connection and try again." - Defaults come from `getErrorPresentation`, and props the caller passes still win. The table editor passes a filter-specific description when filters are set. **SQL error classification** - `executeSql` takes an optional `isUserFaultSqlState` predicate for Studio SQL. When it matches, the error is a `StudioSqlError` with reason `user_input` and fault `user`, and is still redacted to SQLSTATE plus query name. - `isUserFaultForValues` (classes 22, 23 and P0, plus 42501 and 57014) is for typed values: table editor filters and row edits, cron name and schedule. - `isUserFaultForSql` (any SQLSTATE except server classes 08, 53, 57 other than 57014, 58 and XX) is for embedded user SQL: policies, functions, the custom access token hook. - `isUserFaultForStatsStatement` is for `pg_stat_statements` text (Query Insights `EXPLAIN`, index advisor). It treats 42P02 (`$1` placeholders) as Studio's fault. - `UserSqlError` is now only SQL the user wrote in full, and it is still never sent. - The policy, function and cron mutation hooks no longer take `sqlOrigin`. **Routing and types** - `ERROR_ROUTING` is one table keyed by tag, then by fault. Its type requires exactly the faults each class can produce. - User faults get `SAMPLE_USER_FAULT` (default 0.01, set with `NEXT_PUBLIC_SENTRY_SAMPLE_RATE_USER_FAULT`) to catch misclassification. - The error class decides privacy (`isNeverReportedError`), separately from the rate. - Sentry events get a `reason` tag. - Each class declares its `reasons`, so a mistyped reason fails typecheck. ## Review instructions 1. Open the table editor, add a filter with a wrong-typed value (text on an integer column). The alert shows the Postgres error, the filter hint, and no support link, IDs or copy button. 2. Make a query fail with a platform error (e.g. block a `/platform/` request in DevTools). The alert shows the request ID, the event ID and "Copy details". Paste the copied text and check it has no SQL or `formattedError`. 3. Go offline in DevTools and trigger a query. Only the offline message shows. 4. Create a policy with an invalid `USING` expression. The toast shows the Postgres error. In Sentry it is a `StudioSqlError` with reason `user_input`, sampled at the user-fault rate. 5. Review `lib/errors/error-routing.ts` and `data/error-classification.ts` for the routing table and the SQLSTATE predicates. |
||
|
|
115a2ffeef |
feat(studio): gate database functions, triggers, and webhooks on sql grants (#53269)
Resolves FE-4744. Part of the grants rollout; builds on the read/write SQL variants from #53185. ## What - **Data layer:** the database functions, triggers, database webhooks, and event triggers queries now take a `read` grant (exposed as `queryOptions` factories). All 8 create/update/delete mutations take a `write` grant and mark their SQL with `asWriteSql`. - **Guards:** the hand-written FGA checks in the functions, triggers, event triggers, and database webhooks lists, the functions page, the triggers layout/route, and the webhooks integration tab now derive from grants, with denied and error states. - **Other consumers** updated to pass grants: `CreateFunction`, `TriggerSheet`, `EditHookPanel`, `DeleteHookModal`, `ChooseFunctionForm`, `FunctionSelector`, `AutoEnableRLSNotice`, and SQL editor definition/autocomplete hooks. ## Behavior changes - **Webhooks integration tab:** was gated on `database_webhooks_config_read`; now gated on `database_read`, which is what the backend checks for the pg-meta query it uses. Both permissions are granted to the same built-in roles, so there is no change for built-in roles. A permissions-load failure now shows an error alert instead of the content. - **`AutoEnableRLSNotice`:** hidden unless the user has read access, since it can't tell whether the trigger already exists without it. ## Out of scope - User-authored SQL execution in `QueryEditor` / `useSqlEditorExecution` stays `unguarded.migrating` (FE-4750). ## Testing - New tests: query factories and write mutations (`data/database-sql-grants.test.ts`), webhooks tab granted/denied/error, functions list read/write granted/denied/error. - Typecheck, Prettier, lint ratchet, and Studio vitest suites for affected areas pass. |
||
|
|
6205145edd |
feat(ui): heading links (#53094)
## Problem - kb article headings have no link to their section, so a reader cannot share a link to one part of a guide - docs and www headings show a `#` link that only jumps to the heading, and studio report headers use their own copy link button ## Solution - adds `CopyHeadingLinkButton` to `ui`, with the studio look, so one copy link button serves all surfaces - replaces the `#` link in `Heading` with the button, so docs, www and `ui-patterns` markdown headings copy a link on click - adds the button to the h2 to h4 headings of kb guides, faqs and troubleshooting articles - changes the studio report section headers to use the shared button, and removes their local copy logic | before | after | | -------|------| | <img width="795" height="378" alt="image" src="https://github.com/user-attachments/assets/68302dc8-829a-4af1-b1c3-5ec68d8c39e3" /> | <img width="795" height="378" alt="image" src="https://github.com/user-attachments/assets/b21d363e-3f27-43b0-aa0c-0efd92693d7e" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/kb/guides/migrate-from-mysql](https://kb-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/kb/guides/migrate-from-mysql) and hover the "Retrieve your MySQL database credentials" heading 3. click the icon and check that the clipboard holds the page url with `#retrieve-your-mysql-database-credentials` 4. open [/docs/guides/database/overview](https://docs-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/docs/guides/database/overview), hover an h2 and do steps 2 and 3 again 5. repeat 3 6. open [/blog/introducing-dbarena](https://zone-www-dot-com-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/blog/introducing-dbarena), hover an h2 and do steps 2 and 3 again 7. open [/dashboard/project/_/observability/auth](https://studio-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/dashboard/project/_/observability/auth), select a project, change a filter, and copy the "Usage" section link 8. make sure that the copied url keeps the filter query string and ends with `#usage` ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
ce5c68198c |
fix(studio): sort Postgres versions newest first in the version selector (#53278)
## Problem The internal-only Postgres version selector sorted versions by raw string comparison, so `17.6.1.164` appeared above `17.11.0.002` and the list looked randomly ordered. The sort also ran in place on the array returned by React Query, which can be the cached data. Resolves FE-4603. ## Solution - Add `sortPostgresVersionsNewestFirst` in `ProjectCreation.utils.ts`. It compares version segments numerically, returns a new array, and does not mutate its input. - Use it in `PostgresVersionSelector` in place of `.sort().reverse()`. - OrioleDB versions are not grouped; they are ordered by version number like the rest. - Side effect: the default selection (the first GA version in the list) is now the newest GA version. - Unit tests cover numeric ordering and non-mutation. Before: <img width="447" height="184" alt="Screenshot 2026-11-11 at 16 00 45" src="https://github.com/user-attachments/assets/219f26a1-1475-40ce-a0dc-49480005194f" /> After: <img width="448" height="196" alt="Screenshot 2026-11-11 at 15 58 32" src="https://github.com/user-attachments/assets/24a99b91-22ff-4667-bf96-0046a426d95b" /> |
||
|
|
f2af7ea280 |
chore(studio): remove the terms of service update notice (#53323)
I removed the "We've updated our Terms of Service" notice from the dashboard. It was added in #51302 and has been up since early October, and it had no expiry of its own. I also removed its landing-path helper, its tests and its dismissal key. ## To test Tested on the PR preview, in a browser profile that never dismissed the notice: - [x] Open an organization's landing page (`/org/<slug>`): expect no "We've updated our Terms of Service" card in the bottom right. Observed: no card on the organizations list or on an org's landing page, with the dismissal key unset on both. ## Linear - fixes GROWTH-1494 |
||
|
|
79e7836a5a | feat(pipelines): Add support for unknown destination (#53272) | ||
|
|
166e54309a |
feat(studio): improve logs attribute actions (#53271)
## Problem Follow-up to #53170 (one-click filter/copy buttons on Unified Logs Overview attribute rows). Review feedback: the value text disappeared on hover to make room for the action buttons, which made it hard to read or select, and hid what you were about to copy. ## Solution Reworked the hover interaction on `LogFieldRow`: - The value is never hidden. On hover-capable rows, a single small "more actions" trigger appears at the row's edge, opening the same dropdown menu (equals / not equals / copy) that touch devices already use — desktop and mobile now share one interaction pattern. - On hover, focus, or while the dropdown is open, the value slides left by the trigger's width so it clears fully instead of sitting behind it. - The row stays in its "active" state (background + slide) while the dropdown is open, and resets once it closes. - Below 768px, behavior is unchanged — the row dropdown is the only affordance. <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. Open Unified Logs, select a request, go to the Overview tab. 2. Hover a row with a long attribute value — confirm the text stays visible and slides left to clear the trigger button, in both light and dark mode. 3. Click the trigger button, apply a filter and/or copy — confirm it matches the existing touch/mobile dropdown behavior. 4. With the dropdown open, confirm the row stays in its "active" look, and resets back to normal once it closes. 5. Resize below 768px — confirm the row-level dropdown (tap the row) still works as before, unaffected. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
6fcdcdca9a |
fix(studio): preserve password reset after recovery-code verification (#53305)
## Problem Using a recovery code during “Forgot password” sends the user to organisations or their original destination before they can set a new password. This path was introduced in #50569 and has been reproduced in production. ## Solution Preserve the password-recovery context through recovery-code verification, then open the password-reset form with the original destination intact. Match the authenticator flow by excluding password recovery from sign-in tracking. ```diff Forgot password → email reset code → MFA recovery code - Original destination + New-password form → original destination ``` Adds regression tests for the recovery-code link and the post-verification destination. Relevant tests, Studio typecheck, production build and formatting pass. ## Review instructions 1. Open [Forgot password on the Studio preview](https://studio-staging-git-dnywh-fix-recovery-code-pass-e363b9-supabase.vercel.app/dashboard/forgot-password) and request a reset code for an account that has MFA and saved recovery codes. Enter the emailed reset code. 2. Click “Authenticate using a recovery code” and submit an unused code. This consumes the code. 3. Confirm the new-password form opens, save a new password, and confirm navigation continues to the original destination. 4. Check that ordinary sign-in with a recovery code still opens the original destination directly. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
0ed90ae460 |
fix(ui): split button divider (#53258)
## Problem - in dark mode split button shows a middle divider that is lighter and heavier than the outer edge, and the design system `button-split-dropdown` example has the same bug - button edge is a translucent inset shadow over a translucent fill, so the `-ml-px` overlap stacks two edges and two fills in one column - light mode has the same defect on hover and with the menu open, because the hover fill is translucent too ## Solution - adds a `SplitButtonGroup` component to `ui`, so a split button has a `role="group"` wrapper and one shared divider - fixes the divider color in both themes, because only one button paints the shared border column - changes the shared column to follow the hovered button, so the divider takes its edge color in a fixed place - removes the press scale from buttons in the group, so no gap opens between the two buttons - changes the design system split button docs to `SplitButtonGroup` | before | after | | -------|------| | <img width="428" height="219" alt="image" src="https://github.com/user-attachments/assets/4cbc5dc9-3575-4eef-83b9-a6141796ccc8" /> | <img width="428" height="219" alt="image" src="https://github.com/user-attachments/assets/9c5b283d-e6bd-428a-bee1-7f59249aeb83" /> | | <img width="428" height="219" alt="image" src="https://github.com/user-attachments/assets/046338f9-6dfd-4c32-8e33-30c1b0f84715" /> | <img width="428" height="219" alt="image" src="https://github.com/user-attachments/assets/c79e1c7a-e1ac-4682-a898-1a36c6b028fc" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open the [/design-system/docs/components/button](https://design-system-git-antlio-fix-split-button-divider-supabase.vercel.app/design-system/docs/components/button#split-with-dropdown) preview in dark mode, and zoom in on the split example 2. make sure that the divider has the same color and weight as the outer edge 3. hover the primary action, and make sure that the divider takes its edge color and stays in the same place 4. hover the chevron and open the menu, and make sure that the divider takes the chevron edge color 5. switch to light mode, and repeat steps 2 to 4 6. press and hold the primary action, and make sure that it does not shrink 7. tab to the chevron, and make sure that the focus ring shows on all four sides and that Enter opens the menu 8. open the [/design-system/docs/fragments/admonition](https://design-system-git-antlio-fix-split-button-divider-supabase.vercel.app/design-system/docs/fragments/admonition#split-button-with-dropdown) preview at a narrow width, and make sure that the split fills the row with one divider 9. open the [/dashboard/project/\_/settings/log-drains](https://studio-git-antlio-fix-split-button-divider-supabase.vercel.app/dashboard/project/_/settings/log-drains) preview, and make sure that the `primary` split looks the same as on master ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
c9d8a17b75 |
fix(studio): align integration navigation and remove duplicate status (#53301)
## Problem Integration pages repeat the Installed state in the breadcrumb and action button. Their sidebar spacing also differs from other Studio product menus below the extra-large breakpoint. ## Solution Remove the breadcrumb badge and retain the action button. Match the shared product menu spacing: 12 px inside items, with a 12 px outer inset from the medium breakpoint upwards. | Before | After | | --- | --- | | <img width="608" height="706" alt="CleanShot 2026-11-12 at 17 29 29@2x" src="https://github.com/user-attachments/assets/e6954807-2509-4310-a9ae-f12e0b5a4e17" /> | <img width="608" height="698" alt="CleanShot 2026-11-12 at 17 35 15@2x" src="https://github.com/user-attachments/assets/736cb935-5df2-49c6-ac02-789a19a3f2ec" /> | | <img width="1448" height="274" alt="CleanShot 2026-11-12 at 17 40 08@2x" src="https://github.com/user-attachments/assets/4ae20a2d-69e4-488e-9fb8-7790478c209b" /> | <img width="1446" height="284" alt="CleanShot 2026-11-12 at 17 40 34@2x" src="https://github.com/user-attachments/assets/f5758095-da1b-4134-8742-8d40f2d8f9bc" /> | ## Review instructions 1. Open **Integrations** and an installed integration such as Data API. Check that Installed appears only in the action button. 2. Resize across the medium and extra-large breakpoints. Compare the sidebar alignment with Database, including the mobile menu. |
||
|
|
53ffdf75c9 |
Joshenlim/fe 4945 cmd k support searching for all table (#53262)
## Context Probably the final piece for this series of changes towards resource aware Cmd K. We currently only present results for tables when searching in Cmd K, this PR adds in other entity types like views, materialized views, foreign tables, and partitioned tables (only the parent) Note that the results excludes entities created from database extensions to reduce the chance of noise <img width="500" alt="image" src="https://github.com/user-attachments/assets/27bf5026-937a-4883-b365-75694d551a39" /> ## Related changes - Tweaked the entity icon for partitioned tables a little to be blue (previously gray) and - Added an entity icon for child partition tables in the table editor that's slightly lighter than the partition table icon, currently child partition tables just render with the same icon as tables which can be confusing <img width="286" height="128" alt="image" src="https://github.com/user-attachments/assets/638af7c3-512d-4264-bfae-0a8827b3ef94" /> - Note that i'm planning to look into this separately RE how to better render child partition tables so this might go away subsequently ## Performance As always, ran a claude benchmarking session - this runs on debounced keystrokes against a live catalog, so it's benchmarked at scale: **45,653 `pg_class` rows** - 12k tables - 3,143 views - 3,002 matviews - 3,001 foreign tables) Taking a median of 15 runs, all variants measured against the same catalog in one process. | scenario | query | master | this PR | worst | |---|---|---|---|---| | exact table name | `t_500` | 19.5ms | 24.3ms | 29.1ms | | view name | `v_10` | 19.3ms | 23.7ms | 25.8ms | | foreign table name | `ft_10` | 18.9ms | 24.1ms | 26.9ms | | no match | `zzz_nothing` | 19.4ms | 24.0ms | 27.5ms | | broad prefix (~3k matches) | `t_1` | 30.8ms | 38.7ms | 45.1ms | | broad matview prefix | `mv_1` | 26.6ms | 37.5ms | 41.7ms | |
||
|
|
362c974153 | fix(studio): record onboarding survey exposure only for signed-in users (#53253) | ||
|
|
f38928ad90 |
fix(studio): resolve disk limits from the project's instance configuration (#52367)
## Problem Studio validates disk IOPS/throughput against one minimum value per compute size. Projects whose hardware supports more get blocked below their actual limits, charts and banners can show the wrong baseline, and burst charts are gated by a hardcoded size list that is wrong for some configs. Fixes PROD-674 ## What changed - New per-configuration limits table: `packages/shared-data/instance-disk-limits.ts` (values from the AWS EBS-optimized tables). - The size-wide floors in `compute-disk-limits.ts` are now derived from that table as per-size minimums. Published values are unchanged and pinned in tests. - New `useProjectDiskLimits()` resolves a project's limits from its primary database, falling back to the floors. - Disk form validates against the project's actual limits (floors when a different compute size is selected). New inline hint when provisioning between baseline and max. - Burst charts/tiles/metrics show only if baseline is below max. - Chart reference lines and the disk IO banner use the resolved values. ## How to test 1. Settings → Database → Disk on a Large+ project: IOPS/throughput accept values up to the project's actual limits, error above them, and show the burst hint between baseline and max. 2. Reports: burst metrics are offered only for projects whose disk IO bursts; a saved burst chart on a non-bursting project renders an "unavailable" placeholder instead. 3. `pnpm --filter studio vitest run components/interfaces/DiskManagement/DiskManagement.test.ts data/reports/database-charts.test.ts` --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
||
|
|
873b42c84d |
feat(studio): collapse previous restorations list in database backups (#53264)
## Problem The "Previous restorations" list on the Database Backups restore page keeps growing. Entries for cloned projects that were later removed stay in the list and can't be deleted, so the list pushes the rest of the page down. Linear: FE-4402 ## Solution Make the list collapsible instead of deleting entries, which is the safer option. - The list is collapsed by default. - The heading is now a trigger with a chevron that rotates when open. - The heading shows the number of restorations, e.g. "Previous restorations (12)", so a collapsed list still shows how much is hidden. It reuses the existing `Collapsible` component from `ui`. Only `RestoreToNewProject.tsx` changes. ## Review instructions 1. Open a project on a Pro plan or above with physical backups enabled, then go to Database > Backups > Restore to a new project. 2. Make sure the project has previous restorations. If it doesn't, mock the response of the `clone/status` request in DevTools with a few entries. 3. Check that "Previous restorations (N)" is collapsed on load. 4. Click the heading and check that the list opens and the chevron rotates. 5. Click again and check that the list closes. |
||
|
|
1a2e8c679b |
feat(studio): handle visible project permissions for scoped pat (#53227)
## Problem We had some org permissions lingering when the permission form was scoped to project only. ## Solution We narrow the possible permissions you can pass, here's what changed with some guards. - On Project scope, 11 permissions that can’t work no longer appear. These are the org-level ones (Members, Projects, Billing and the like) plus a few rows with nothing behind them. Organization scope and full-access tokens look exactly as before. - Organization Settings lost its “Read” option on Project scope. You can pick None or Read-write. Read-write is still needed for one thing: claiming a project through OAuth. - Hidden permissions can’t slip through. Switching scope clears them, presets skip them, the counters ignore them, and the request sent to the API drops them as a last check. - A shared package was updated, which wasn’t in the plan. Six of those rows weren’t showing in the form at all because shared-data was on an older version of @supabase/shared-types than Studio. Claude Code updated it so the form matches the full permission list. **That makes the PR touch package.json and the lockfile, so call it out in review.** - One loose end: the Full access preset description still mentions “organization members”, which is now hidden on Project scope. Fixing it would mean changing copy, so it was left for a follow-up. ## Review instructions 1. Check out the branch and run `pnpm install` — `packages/shared-data` picks up a new `@supabase/shared-types`, so this isn't optional. 2. Run `pnpm dev:studio` and open http://localhost:8082/account/tokens. 3. Open the dev toolbar (the floating Supabase button, or the user dropdown), go to **FLAGS → ConfigCat**, and turn on `scopedPAT`. 4. Click **Generate new token**. **Resource access** defaults to **Project**. 5. Expand all five permission categories. See that 11 rows are gone: Organizations, Organization Audit Logs, Organization Billing And Invoices, Organization Configuration, Organization Members, Organization Projects, Platform Webhooks (organization), Project Authentication Hooks, Project Authentication Users, Perform Developer Level Operations, and the project-level SQL Snippets. 6. See that SQL Snippets (account-wide), Projects (account-wide), Organization Settings, and every other row are still there. 7. Open the **Organization Settings** dropdown. See that it offers only **None** and **Read-write**. 8. Switch **Resource access** to **Organization**. See that all 11 rows come back, and Organization Settings offers **Read** again. 9. Set **Organization Members** to Read-write and **Organization Settings** to Read. Switch to Project, then back to Organization. See that both are now **None**. 10. Switch back to Project and apply **Preset · Read-only**. See that Organization Settings stays at None and no hidden row is set. 11. Fill in a name, organization, and project, then create the token. See that the `POST /platform/profile/scoped-access-tokens` request body contains none of the hidden scope IDs. |
||
|
|
00adb5a81b |
chore(studio): remove the Iceberg pipeline destination (#52229)
## Problem Retire the deprecated Iceberg (Analytics Bucket) destination from Pipelines. ## Solution - Remove the destination UI, configuration mappings, feature-flag usage, and generated API variants. - Remove the legacy Pipelines integration from Storage while preserving standalone Analytics Buckets. - Remove unused components and sheet-layout support, and add regression coverage for retained Storage operations. - Remove the stale Pipelines claim from the Storage docs overview. ## Validation - Pipelines, Storage, and replication data tests - After the final cleanup: Studio typecheck and all 3 Analytics Bucket regression tests passed. - Formatting, scoped ESLint, Knip, and whitespace checks passed; lint warnings are pre-existing. - Storage overview: Prettier, ESLint with zero warnings, content-listing schema validation, and Markdown rendering passed. Production API-type verification remains pending the coordinated API deployment. Legacy Iceberg pipelines, destinations, and slots must be cleaned up before rollout. ## Review instructions 1. Verify that Pipelines offers BigQuery, DuckLake, Snowflake, and ClickHouse, with no Analytics Bucket option. 2. Verify that Storage Analytics Bucket creation, namespace/table operations, and wrapper/key cleanup remain available without Pipelines controls. ## Checklist - [x] Read CONTRIBUTING.md. - [x] Updated the Storage overview copy and checked the docs authoring guidance. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
3b57afc40c |
fix(studio): wait for project endpoint before showing function url (#53255)
`EdgeFunctionsListItem` built its URL as ``
`${endpoint}/functions/v1/${slug}` `` from `useProjectApiUrl`, whose
`data` is `undefined` while the project settings query is still pending.
On a cold load, each row showed `undefined/functions/v1/<slug>`, and the
copy button copied that string. `EdgeFunctionDetails` and
`TerminalInstructions` interpolated the endpoint the same way.
**Changed:**
-
`apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx`:
only builds the URL once `endpoint` is defined. While it's pending, the
row shows a `ShimmeringLoader` in place of the URL and no copy button.
The copy button now has an accessible name ("Copy function URL").
-
`apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx`:
the "Invoke function" snippets wait for both the endpoint and the
function. Until then they show a skeleton, so the cURL tab no longer
renders or copies `undefined/functions/v1/...`. If either query fails,
the card shows an `AlertError` instead.
-
`apps/studio/components/interfaces/Functions/TerminalInstructions.tsx`:
the "Invoke your function" curl command is only added once the endpoint
resolves, with a loader in its place until then.
Also checked: `EdgeFunctionOverviewHeader` already guards on `endpoint
&& slug`, so it's unchanged. `EdgeFunctionTesterSheet` doesn't use
`useProjectApiUrl`: it builds the URL from project settings at submit
time and never renders it, so it's also unchanged. `useProjectApiUrl`
itself is unchanged.
**Added:**
-
`apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.test.tsx`:
renders a row while the settings request is in flight and asserts
there's no `undefined/functions/v1` text, a loader is shown and there's
no copy button. Once settings resolve, it asserts the full URL and that
the copy button copies it. It fails on the old component.
-
`apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.platform.test.tsx`:
a case where project settings fail to load, asserting the invoke card
shows the error and no cURL snippet.
## To test
- [ ] Open a project's Edge Functions page (`/project/<ref>/functions`)
with a hard reload and network throttling (for example "Slow 4G"). The
URL column never shows `undefined`: it shows a loader, then
`https://<ref>.supabase.co/functions/v1/<slug>`.
- [ ] Click a row's copy icon: the clipboard has the full function URL
and the page doesn't navigate.
- [ ] Click a row: it still navigates to that function's page.
- [ ] Hard reload a function's Details page
(`/project/<ref>/functions/<slug>/details`) with throttling. The cURL
snippet under "Invoke function" shows a skeleton, then the real URL.
- [ ] Open `/project/<ref>/functions?create=cli` with throttling. The
"Invoke your function" curl command shows a loader, then the real URL.
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
5eb68c5df2 |
Add indexes to cmd k related resources in table editor (#53204)
## Context We previously added a "Related resources" section in Cmd+K if you're on the Table Editor with a table opened, this included resources pertaining to the table such as policies, triggers, and functions. We're adding indexes as well in this PR - thinking that might also be appropriate to have in this context <img width="500" alt="image" src="https://github.com/user-attachments/assets/5cd383ff-6617-49ba-bdb8-6f65d8fd0680" /> ## Performance Benchmarked with Claude against the stress catalog (`PG_META_STRESS_TABLES=12000`), with master and this branch timed in the same run on the same database, median of 9. | Table | master | This PR | Worst of 9 | |---|---|---|---| | Hub table — 8 indexes, policy, many FK triggers | 1.6 ms | 2.3 ms | 2.8 ms | | Policy + user trigger | 1.0 ms | 1.3 ms | 2.0 ms | | Mid-chain table | 1.1 ms | 1.5 ms | 1.7 ms | | Deliberately over-indexed table — 20 indexes | 0.8 ms | 2.0 ms | 4.6 ms | | Table that doesn't exist | 1.1 ms | 1.5 ms | 4.5 ms | |
||
|
|
6eb785a8a2 |
feat(studio): offer a backup authenticator after saving recovery codes (#52353)
## Problem Initial MFA setup ends without offering a second authenticator as a backup. ## Solution After initial MFA setup and saving codes, offer another authenticator without interrupting existing completion callbacks. | After | | --- | | <img width="1024" height="759" alt="56157" src="https://github.com/user-attachments/assets/81809970-2a50-425f-b4bb-792790ed8047" /> | | _The dialog that appears on step 2 below if first MFA method._ | ## Review instructions 1. Open [Security](https://studio-staging-git-dnywh-recovery-backup-offer-supabase.vercel.app/dashboard/account/security) with a disposable account without MFA. Set up MFA and save the recovery codes. 2. Choose “Add another method” to start backup setup, or “Not now” to finish. Adding a backup must not generate recovery codes again. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
16ea380714 |
fix(studio): reuse the account deletion confirmation pattern (#52350)
## Problem The account deletion dialog repeats the organisation requirement and leaves the form area blank while the membership check loads or fails. Its confirmation form also differs from the other deletion dialogs in Studio. ## Solution ```text Request deletion ├─ Checking memberships → loading state ├─ Membership check fails → retry ├─ Organisation memberships found → leave all organisations first └─ No memberships → shared email confirmation ``` Use `TextConfirmModal` for email validation and the shared copy control. | Before | After | | --- | --- | | <img width="1098" height="576" alt="Image" src="https://github.com/user-attachments/assets/01371989-b913-4b31-ac28-5da29447cf77" /> | <img width="838" height="436" alt="Image" src="https://github.com/user-attachments/assets/b3a2dc4d-eba0-4d2e-a698-f3c9fa14312f" /> | | <img width="876" height="674" alt="Image" src="https://github.com/user-attachments/assets/002c5e0e-b081-40ff-aeba-1bb7a24d18d1" /> | <img width="854" height="630" alt="Image" src="https://github.com/user-attachments/assets/806a9e17-753f-4d8d-8100-ce037b84a8ff" /> | ## Review instructions 1. In Preferences, select **Request deletion**. With organisation memberships, confirm the dialog says **Leave all organizations first**. Without memberships, check that the dialog shows your email and the placeholder **Type your email address in here**. When the copy control is enabled, select the email and check that it copies the address. Submit a different email to check the inline validation. [Open Preferences](https://studio-staging-git-dnywh-fix-account-deletion-copy-supabase.vercel.app/dashboard/account/me) 2. With the copy control enabled, verify that copying the email leaves the form open and keeps the input unchanged. |
||
|
|
36e8bda235 |
fix(studio): align deletion panels (#53190)
## Problem Account, project and organisation deletion settings use different warning layouts and action placement. In the organisation panel, the button sits inside the admonition description, so it stays below the copy at wide widths. ## Solution ```text Delete account / project / organisation └─ Danger admonition ├─ Consequence and supporting copy └─ Action below the copy at narrow widths, beside it at wide widths ``` Standardise the affected settings section descriptions and preserve the Vercel Marketplace action for partner-managed organisations. The account confirmation flow is reviewed separately in #52350. Both PRs target `master`. | Before | After | | --- | --- | | <img width="1458" height="484" alt="CleanShot 2026-11-10 at 14 15 06@2x" src="https://github.com/user-attachments/assets/2e7e627d-5079-464c-b7ef-51b93ca62e9a" /> | <img width="1450" height="410" alt="CleanShot 2026-11-10 at 14 13 15@2x" src="https://github.com/user-attachments/assets/88cdcd4a-463c-47be-9c95-3eab172bed29" /> | | <img width="1462" height="430" alt="CleanShot 2026-11-10 at 14 14 51@2x" src="https://github.com/user-attachments/assets/84109e7e-2e42-4252-9f1b-9760ded1f2e7" /> | <img width="1452" height="392" alt="CleanShot 2026-11-10 at 14 13 37@2x" src="https://github.com/user-attachments/assets/d2238d64-5a32-456f-addc-6fd3ce1de1fe" /> | | <img width="1868" height="394" alt="CleanShot 2026-11-10 at 14 15 22@2x" src="https://github.com/user-attachments/assets/a2ab7a9d-2d79-46fc-b600-ace07e098e55" /> | <img width="1872" height="412" alt="CleanShot 2026-11-10 at 13 26 40@2x" src="https://github.com/user-attachments/assets/fad70041-d0ea-4da6-b429-2b2fc39d2103" /> | ## Review instructions 1. Open the deletion sections in **Account preferences**, a project's **Settings → General** and an organisation's **General settings**. 2. At narrow and wide widths, check that the buttons sit below and beside the copy respectively. 3. For a Vercel-managed organisation, check that the panel still directs users to Vercel Marketplace. 4. In project and branch general settings, check the updated punctuation in the affected section descriptions. |
||
|
|
767cc52c13 |
feat(studio): track recovery code copy and download (#53195)
## Problem Studio tracks completion of recovery setup, but there are no events for copying or downloading the codes. ## Solution Track both actions in the shared recovery-code dialog. Record a copy after the clipboard write succeeds and a download when the browser starts it. The events carry no recovery-code values. ## Review instructions 1. Open [Recovery codes](https://supabase.com/dashboard/account/security#recovery-codes) on this branch's Studio preview with a disposable MFA account. Select **Generate recovery codes** or **Regenerate** if it already has a set. 2. In **Save your recovery codes**, select **Copy**, then **Download**. Check the browser network panel for `recovery_codes_copied` and `recovery_codes_download_clicked` in the telemetry requests (`telemetry/event`). |