mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
create-pull-request/patch
253
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a91867863b |
feat(studio): send explorer_banner_exposed at most once per week (#54539)
## Problem Part of FE-5266 (remove or sample noisy Studio events). `explorer_banner_exposed` is among the highest-volume Studio events because it fires once per page load. It only needs to work as the denominator for the banner's dismiss and click-through rates. Its owner signed off on capping it at once per user per week. ## Solution - Keep the existing once-per-page-load guard, then check a last-sent timestamp in localStorage (new key `EXPLORER_BANNER_EXPOSED_AT`). The event is sent only if 7 days have passed since the last one, and the timestamp is updated when it is sent. - The check lives in `BannerExplorer.utils.ts` with a unit test, following the existing `BannerFreeMicroUpgrade.utils.ts` pattern. A missing, invalid or future timestamp counts as due, so a clock change can't suppress the event indefinitely. - Update the event's doc comment: it now fires at most once per browser per week. "Per user" is approximated per browser, because the timestamp lives in localStorage. Someone using several browsers, or clearing storage, is counted more than once, and a shared browser counts as one person. If storage is unavailable, behavior falls back to once per page load. This changes what fires, so it is a standalone PR that can be reverted on its own. The dismiss and CTA events are untouched. |
||
|
|
3c905d9e18 | feat(studio): track docs link clicks with their destination (#54586) | ||
|
|
3f005ed135 | fix(telemetry): restore www click tracking, remove dead Studio events (#54588) | ||
|
|
206430d9b0 |
feat(studio): restore connect sheet snippet copy tracking (#54398)
The Connect sheet only reports a copy for the Postgres connection string and one MCP setup step. The Connect dialog it replaced also reported framework, mobile framework and ORM snippet copies and every MCP client's copy (#40611); that tracking was not carried over (#44327) and the dialog was later removed (#47122). I restored it with the existing `connection_string_copied` event, and added the sheet's command copies and Copy prompt so the whole sheet is covered. **Changed:** - **Framework, mobile framework and ORM snippets**: copying any file tab in the configure step sends `connection_string_copied` with `connectionTab` (`App Frameworks`, `Mobile Frameworks` or `ORMs`), `selectedItem` (the framework or ORM label) and `source: studio`. A framework added to the sheet later is covered without touching its content file. - **Install commands**: the framework, ORM, shadcn and skills install commands send the same event with `connectionType: Install command`, so they can be told apart from snippet copies. - **Claude Code and Codex MCP**: the add-server, authenticate and verify commands send the event with `connectionTab: MCP`, the client label and `connectionType: Command Line`. - **Copy prompt**: sends the existing `ai_prompt_copied` event with a new `source` value, `connect_sheet`. **Note:** `lang` carries the client library key (for example `supabasejs`), as the old dialog sent it, so the restored series lines up with the data from before March. Filter on `connectionType` to count snippet copies only: `Framework snippet` for frameworks, absent for ORM snippets. In Direct mode the install and skills install commands send the event with `connectionTab: Connection String` and `lang: bash`; the Direct file examples and Server mode are unchanged. In MCP mode the skills install command sends nothing, so the `MCP` series only counts MCP setup copies. ## To test Tested on the PR preview, with the network tab filtered to the telemetry event request: - [x] Open a project, open Connect, keep Framework on Next.js and click Copy on a file tab in the configure step; expect one `connection_string_copied` with `connectionTab: App Frameworks`, `selectedItem: Next.js`, `connectionType: Framework snippet`, `source: studio` - [x] Still on Next.js, switch to the `.env.local` tab and copy it; expect the same event again (one per click) - [x] Switch the framework to Flutter and copy a file tab; expect `connectionTab: Mobile Frameworks`, `selectedItem: Flutter` - [x] Switch to ORM, pick Prisma and copy a file tab; expect `connectionTab: ORMs`, `selectedItem: Prisma` and no `connectionType` - [x] Switch to MCP, pick Claude Code and copy the add-server command; expect `connectionTab: MCP`, `selectedItem: Claude Code`, `connectionType: Command Line` - [x] Still on Claude Code, copy the authenticate command; expect the same properties. Pick Codex and copy add-server, authenticate and verify; expect `selectedItem: Codex` on each - [x] In Framework mode copy the install command and the skills install command; expect `connection_string_copied` with `connectionType: Install command` and `connectionTab: App Frameworks` for each. In ORM mode copy an install command; expect `connectionTab: ORMs`, `connectionType: Install command` - [ ] In Direct mode copy the skills install command; expect `connection_string_copied` with `connectionTab: Connection String`, `connectionType: Install command`, `lang: bash` - [ ] In MCP mode copy the skills install command; expect no `connection_string_copied` request - [x] Click Copy prompt; expect one `ai_prompt_copied` with `source: connect_sheet` and no `connection_string_copied` - [x] Switch to Server and copy the env block; expect no `connection_string_copied` request - [x] Switch to Direct and copy the connection string; expect exactly one `connection_string_copied` with `connectionTab: Connection String` (unchanged behavior, no duplicate) ## Linear - fixes GROWTH-1532 |
||
|
|
6019742b8c |
chore(studio): remove local-only header events (#54535)
## Problem Part of FE-5266 (remove or sample noisy Studio events). `header_local_dropdown_opened` and `header_local_version_popover_opened` only render in local Studio, which never sends telemetry, so they can never fire. Their owner signed off on removing them. ## Solution - Remove the `track()` calls from `LocalDropdown` and `LocalVersionPopover`, along with the `useTrack` imports and the empty `onOpenChange` wrappers they left behind. - Remove the two event types and their `TelemetryEvent` union entries. There is no runtime change. This is a standalone PR so it can be reverted on its own. The catalog deletion sits next to the one in #54533, so whichever merges second may need a trivial rebase. |
||
|
|
663f077b47 |
chore(studio): remove header dropdown opened events (#54533)
## Problem
Part of FE-5266 (remove or sample noisy Studio events). The
`header_{organization,project,branch,user}_dropdown_opened` events are
among the highest-volume events and don't answer a product question: the
next pageview already shows what was selected. Their owner signed off on
removing them.
## Solution
- Remove the `track()` calls from the organization, project, branch and
user dropdowns. Each now passes its state setter straight to
`onOpenChange`.
- Drop the `useTrack` import from `BranchDropdown` and
`ProjectDropdown`, which no longer track anything.
- Remove the four event types and their `TelemetryEvent` union entries.
`header_feedback_dropdown_opened` is kept. `upgrade_cta_clicked` in the
user and organization dropdowns is untouched. This is a standalone PR so
it can be reverted on its own.
|
||
|
|
0bbbdf5c91 |
chore(common): remove unused integration install/uninstall completed events (#54532)
## Problem Part of FE-5266 (remove or sample noisy Studio events). `integration_install_completed` and `integration_uninstall_completed` are defined in the telemetry catalog, but nothing in the repo fires them. Their owner signed off on removing them. ## Solution Remove both event types and their `TelemetryEvent` union entries from `telemetry-constants.ts`. There are no call sites, so there is no runtime change. The related `integration_install_submitted` and failure events are untouched. |
||
|
|
0a3a53298b |
chore(studio): remove home_connect_section_exposed event (#54531)
## Problem Part of FE-5266 (remove or sample noisy Studio events). `home_connect_section_exposed` fires on every project home load and is no longer needed. Its owner signed off on removing it. ## Solution - Remove the exposure effect from `ConnectSection` and the imports it left unused. - Remove the `HomeConnectSectionExposedEvent` type and its `TelemetryEvent` union entry. `home_connect_action_clicked` is untouched. This is a standalone PR so it can be reverted on its own. |
||
|
|
2922cc2190 | feat(studio): track inline cell edits in the Table Editor grid (#54477) | ||
|
|
d4ef834d4d |
feat(studio): track usage on the org projects list (FE-5025) (#54417)
## Problem We don't have visibility into how people use the org projects list (`/org/[slug]`) or the organizations list (`/organizations`): whether they search, filter, sort or switch views, and which project card actions they use. Resolves FE-5025. ## Solution Adds four events, defined in `packages/common/telemetry-constants.ts` with org-level groups (no project group): - `org_projects_filter_applied` with `filterType: 'search' | 'status' | 'sort'`. Search sends only the result count, status sends the saved statuses (`active`/`paused`), and sort sends the sort value. - `org_projects_view_mode_updated` with `viewMode`. - `org_project_card_action_clicked` with `action: 'copy_id' | 'settings'` and `viewMode`, from the grid card menu and the table row menu and inline ref button. - `org_list_search_submitted` with `orgCount`. Notes for review: - Every event fires from its handler, not an effect, so restoring filters from local storage doesn't fire anything. - Search events use the same 500ms debounce as the query, skip empty input, and never include the search text. The project search count is read from the list query's cache entry via `fetchInfiniteQuery` on the same key, which reuses the in-flight request. - Status, sort and view events don't fire when the value didn't change. - `HomePageActions` and `ProjectList` also render on the `/project` picker, so `@page` lists both routes. - I didn't add the `data-attr` attributes from the ticket: autocapture is off, so they would send nothing, and the telemetry standards ask for explicit `track()` calls. ## How to test - `pnpm --filter studio exec vitest run components/interfaces/HomePageActions.test.tsx` covers view mode, status filter, search and clearing before the debounce settles. - In the browser network tab on `/org/[slug]`, each action sends one `telemetry/event` request with the properties above. Checking the events in PostHog staging is still to do. |
||
|
|
e7d7345bd6 |
fix(telemetry): add /new/* to the pages of three account recovery events (#54469)
## Problem - the account recovery interstitial can open on `/new/<org>` because `canInterruptRecoveryRoute` allows it - `@page` of three of its four events lists `/new` but not `/new/*` - `AccountRecoveryReminderExposedEvent` lists `/new/*`, so the four events disagree on the pages they fire on ## Solution - adds `/new/*` to `@page` of `AccountRecoveryActionClickedEvent`, `AccountRecoveryTaskCompletedEvent` and `AccountRecoveryReminderClosedEvent` ## Review category (docs PRs only) - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [ ] Moderate: good to have soon, not urgent - [ ] Low: get to it when you can ## Review instructions 1. open `apps/studio/lib/account-recovery/recovery-reminder.ts` and make sure that `canInterruptRecoveryRoute` allows `/new/<slug>` 2. make sure that the 4 `AccountRecovery*Event` interfaces in `packages/common/telemetry-constants.ts` list the same pages 3. make sure that the diff changes only JSDoc comments ## 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) |
||
|
|
217b9ca3f3 |
[FE-5024] feat(studio): track Table Editor sidebar and side panels (#53960)
Adds PostHog telemetry events across the Table Editor sidebar, new-tab page, and column/table/row/cell side panels so we can measure schema usage, entity-list search/filtering, entity menu actions, and panel saves without logging schema, table, column, or search names. **Added:** - Event definitions in `packages/common/telemetry-constants.ts` (added to `TelemetryEvent`): - `table_editor_schema_selector_updated` (`schemaType: 'public' | 'protected' | 'custom'`) when switching schemas in `TableEditorMenu`. It uses the same `schemaType` property and derivation as the existing `database_schema_selector_updated` (now shared through `getDatabaseSchemaType`), so the two selectors can be compared in one insight - `table_editor_new_item_clicked` (`itemType: 'schema'` or `itemType: 'table'` with `trigger: 'sidebar' | 'new_tab_card'`) from the sidebar and `NewTab` card - `table_editor_table_search_submitted` (debounced 500ms, cancelled on clear, schema switch via selector or URL/tab change, and unmount) - `table_editor_entity_filter_updated` (`visibleTypeCount`) on entity-type checkbox toggle, "Select only", and filter reset - `table_editor_entity_action_clicked` (`action`, `entityType`) across dropdown and context menus in `useEntityActionHandlers` (excluding the `View policies` link, which is covered by pageviews) - `table_column_created` / `table_column_updated` (`hasForeignKey`, `isArray`) on column side-panel saves via `SidePanelEditor.utils.tsx`, with `hasForeignKey` scoped to the saved column and no-op saves skipped - `table_updated` (`columnCountChanged`) on existing table edits in `SidePanelEditor.tsx` once table, column, primary key, foreign key, Realtime, and Data API updates succeed and at least one change was persisted; no-op saves and saves where any step fails are skipped - `table_editor_row_updated` (`editMethod: 'side_panel'`) when an existing row edit from the row side panel is persisted. Saves from the expanded cell editors and the foreign row selector don't count, and neither do edits queued with queue operations enabled. The grid ticket (FE-5023) can add more `editMethod` values when it tracks inline edits - `table_editor_cell_editor_opened` (`editorType: 'json' | 'text'`) when expanding JSON or text cell editors from the grid cell editors (`JsonEditor` / `TextEditor`) or `RowEditor` - Column, table and row save events are attributed to the project the save ran against (third `track()` argument), and fire only after the save succeeds - Focused MSW-backed tests for non-obvious telemetry edge cases (search debounce + cancellation on clear and selector/external schema switches, schema switch single-fire + PII checks, column-scoped FK/array derivation and no-op gating in `createColumn`/`updateColumn`, change/error reporting in `updateTable` without double-firing column events) ## To test Watch `POST /platform/telemetry/event` in DevTools (and confirm arrival in staging PostHog): - Switch schemas (`public` -> `auth` -> custom schema -> `public`): fires `table_editor_schema_selector_updated` with `schemaType` `protected` -> `custom` -> `public` and no schema name; re-selecting the active schema fires nothing - On the Database > Schemas visualizer, switching schemas still fires `database_schema_selector_updated` with the same `schemaType` values as before - Click **Create a new schema** and **New table** in the sidebar, plus **Create a table** on `/project/[ref]/editor/new`: fires `table_editor_new_item_clicked` with the expected `itemType` and `trigger` - Type in **Search tables...** and pause >500ms: fires one `table_editor_table_search_submitted` with no query text; clearing or switching schemas (via the selector or clicking a tab in another schema) before 500ms fires nothing - Toggle entity-type checkboxes, click **Select only**, or reset filters: fires `table_editor_entity_filter_updated` with the new `visibleTypeCount` - Trigger actions from a table/view menu (both ⋮ and right-click): fires `table_editor_entity_action_clicked` with `action` and `entityType` (**View policies** does not fire it) - Create and edit a column via the column panel: fires `table_column_created` / `table_column_updated` with `hasForeignKey` (scoped to that column) and `isArray`; clicking **Save** with no changes fires nothing - Edit an existing table (with and without adding/removing a column, or toggling Realtime alone): fires `table_updated` with `columnCountChanged`, without firing `table_column_*`; clicking **Save** with no changes fires nothing - Edit an existing row in the row side panel: fires `table_editor_row_updated` with `editMethod: 'side_panel'`. Inserting a new row, saving from an expanded JSON/text cell editor, picking a foreign row, or saving with queue operations enabled does not fire it - Edit an existing table so that adding a column (or updating Realtime/Data API) fails: `table_updated` does not fire - Expand JSON and text cell editors from both the grid and inside the row panel: fires `table_editor_cell_editor_opened` with `editorType: 'json' | 'text'` Notes for review: - No `data-attr`s were added. Autocapture is off, so each tracked interaction gets an explicit `track()` call instead. - `table_editor_cell_editor_opened` counts the expand buttons in both the grid cell editors and the row side panel fields. It's the same click on both surfaces. - `table_editor_row_updated` only has `editMethod: 'side_panel'` for now. The grid toolbar ticket (FE-5023) can add values when it tracks inline edits. --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
31f68587f6 |
feat(studio): track remaining usage on project home (#54143)
## Problem Project home tracked most interactions, but not which credential people copy from the "Copy" popover, or how often they use the custom report and notebooks beyond adding blocks. Opening the Connect sheet from the popover's "Get Connected" button also reported a stale `connect_sheet_opened` source, because the popover never set one. ## Solution Project home gets three new events: `home_project_credential_copied` (with a `credentialType` enum), `home_custom_report_refresh_clicked`, and `home_notebook_action_clicked` (`action: 'create' | 'analyze'`). "Get Connected" in the popover now sets a new `home_popover` Connect sheet source. The compute and GitHub stats now send `home_activity_stat_clicked` as well, with two new `stat_type` values. Every event fires from its click handler with a typed `track()` call, and none sends the copied value or any user-defined name. This follows the telemetry standards, so no `data-attr` attributes are added. ## How to verify 1. On a project's home page, open the "Copy" popover and copy each item. Each copy sends one `home_project_credential_copied` event, with `credentialType` set to `project_url`, `publishable_key`, `direct_connection_string`, or `cli_setup`. No event contains the copied value. 2. In the same popover, click "Get Connected". The Connect sheet opens and sends `connect_sheet_opened` with `source: 'home_popover'`. Opening it from the header button afterwards still sends `source: 'header_button'`. 3. Click the "Compute size" stat. It sends `home_activity_stat_clicked` with `stat_type: 'compute'` and no `stat_value`. 4. Click the "GitHub" stat. It sends `home_activity_stat_clicked` with `stat_type: 'github'`, and `stat_value` is 1 when a repository is connected and 0 when none is. 5. With the custom report section shown, click "Refresh report". It sends one `home_custom_report_refresh_clicked` event. 6. With the Notebooks section shown, click "New notebook" (or "Create your first notebook" when there are none). It sends `home_notebook_action_clicked` with `action: 'create'`. Click "Analyze" on a notebook with cells: it sends `action: 'analyze'`. ## Checks Ran `tsc --noEmit` in `apps/studio` and `packages/common`, `eslint` and the type-aware `eslint.type-checks.config.cjs` lint on the changed Studio files, `oxfmt --check` on every changed file, and `vitest run` for `ProjectConnectionPopover.platform.test.tsx` and `ActivityStats.test.tsx`. ## Checklist - [x] I have read the [Contributing Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] I have checked that the change works in the preview deployment ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [FE-5026](https://linear.app/supabase/issue/FE-5026/track-usage-on-project-home-gaps-only). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> |
||
|
|
6bd006dc08 |
feat(docs): layout toggle (#53688)
## Problem - docs layout v2 (variant `option-1` of the `docs-ia-mvp-v1` flag) is about to roll out and a reader in the rollout has no way back to the classic layout ## Solution - adds a toggle button bottom of the guide right column so user in the rollout can switch back - adds a dialog that asks for an optional reason when a reader switches back to classic, and stores the reason in `feedback_comments` with `metadata.source = 'docs_layout_switch'` so we relying on existing - adds the `docs_layout_updated` event and stops new experiment exposures for readers who picked a layout | toggle | survey | | -------|------| | <img width="654" height="312" alt="image" src="https://github.com/user-attachments/assets/69bcd4b8-7dd2-4fd3-9045-e3246625ccf9" /> | <img width="654" height="312" alt="image" src="https://github.com/user-attachments/assets/4b18eb76-b9f1-4d96-be25-14a960b11475" /> | <!-- ## 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/prisma?docs-ia-mvp-v1=option-1](https://docs-git-antlio-feat-docs-layout-switch-v2-supabase.vercel.app/docs/guides/database/prisma?docs-ia-mvp-v1=option-1) 2. click "Switch to classic layout" in the notice and make sure that a dialog asks "What made you switch back?" ## 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) |
||
|
|
bd4912cbdc |
feat(studio): track SQL editor sidebar, snippet and editor tab usage (#54170)
## Context Adds seven PostHog events through `useTrack` for the SQL Editor to better identify usage patterns there, each fired from its click or submit handler: - `sql_editor_new_item_clicked` (`itemType`) for the "+" menu. <img width="229" height="150" alt="image" src="https://github.com/user-attachments/assets/f6281bdb-d70e-4e7c-adf3-edce0ec2116c" /> - `sql_editor_snippet_search_submitted`: once per search session, on the first keystroke into an empty search box. <img width="285" height="214" alt="image" src="https://github.com/user-attachments/assets/4c482385-cab1-49d3-9aaa-e2be1aafb1af" /> - `sql_editor_snippet_sort_updated` (`sortBy`) when the sort order changes. <img width="226" height="121" alt="image" src="https://github.com/user-attachments/assets/0e7268ee-bf4a-46d4-ba8d-f07a6e9b0675" /> - `sql_editor_snippet_action_clicked` (`action`, `isBulk`) for snippet and folder context-menu actions. <img width="254" height="275" alt="image" src="https://github.com/user-attachments/assets/7338df06-47df-47be-b44d-6fc2dd49c586" /> - `sql_editor_snippet_share_submitted` when the share modal is confirmed. <img width="531" height="309" alt="image" src="https://github.com/user-attachments/assets/997e7567-9fdb-400e-af1a-147a5dcbb7a7" /> - `sql_editor_snippet_moved` (`snippetCount`, `toNewFolder`) after a move succeeds. <img width="539" height="247" alt="image" src="https://github.com/user-attachments/assets/f0da9544-d29e-402f-a0d3-9b7f5e3fa3c6" /> - `editor_tab_closed` (`closeType`, `editor`) in the tab bar that the SQL, Table and Explorer editors share. It fires when the tabs actually close, after any unsaved-changes confirmation. <img width="147" height="64" alt="image" src="https://github.com/user-attachments/assets/96073c69-acf1-4829-8532-beb283b7f373" /> No property carries names, SQL or search text, and every event is sent with an explicit `track()` call. ## How to verify On the PR's Studio preview, with analytics consent accepted, watch the network requests to the telemetry endpoint: 1. In the SQL editor, open the "+" menu and pick a new snippet, a new folder and (when available) a new logs query. Each one sends `sql_editor_new_item_clicked` with the matching `itemType`. 2. Type into the snippet search box. One `sql_editor_snippet_search_submitted` goes out on the first character, and none on later ones. Clear the box and type again: one more goes out. 3. Change the sort to Alphabetical, then to Created At. Each change sends `sql_editor_snippet_sort_updated` with `sortBy` `name` or `inserted_at`. Picking the current sort again sends nothing. 4. Right-click a snippet and pick each action (open in new tab, rename, move, share, unshare, duplicate, add to or remove from favorites, export, delete). Each sends `sql_editor_snippet_action_clicked` with that `action` and `isBulk: false`. Shift-click several snippets and pick move or delete: `isBulk: true`. 5. Right-click a folder and pick create snippet, rename or delete: `action` is `folder_create_snippet`, `folder_rename` or `folder_delete`. 6. Confirm the share modal: `sql_editor_snippet_share_submitted` goes out. Move a snippet into a new folder: after it succeeds, `sql_editor_snippet_moved` goes out with `snippetCount: 1, toNewFolder: true`. 7. In the SQL editor and the Table editor tab bars, use Close, Close Others, Close to the Right and Close All, and the tab's X button. Each sends `editor_tab_closed` with the matching `closeType` and `editor`. If you cancel an unsaved-changes prompt, nothing is sent. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
e3684c034c |
feat(studio): track usage on Project Settings: General (#54081)
## Problem Project Settings → General has almost no usage tracking. We can't tell how often users restart, pause, resume, or transfer projects from here. We also can't tell how often they copy the project ID or region, use the custom domain flow, or toggle high compliance mode. ## Solution Adds six PostHog events to `packages/common/telemetry-constants.ts`: `project_name_updated`, `project_settings_value_copied`, `project_lifecycle_action_submitted`, `project_compliance_mode_updated`, `custom_domain_step_submitted`, and `custom_domain_dns_record_copied`. Each event fires from the user's submit, confirm, copy, or toggle handler, never on render. Properties are only enums and booleans. No project names, domains, DNS record contents, or other typed values are sent. `ResumeProjectButton` is shared between settings and the paused-project home state, so it now takes a required `source` prop. The two call sites pass `settings_general` and `project_home`. Restart fires from the confirmation modal, with `restart_project` or `restart_database` depending on the chosen restart type. `DNSRecord` now types its `type` prop as `'CNAME' | 'TXT'`, so the copy event sends the record type as an enum. No `data-attr` attributes are added, because PostHog autocapture is off and they would not be collected. ## How to verify 1. On Project Settings → General, save a new project name. One `project_name_updated` event fires. 2. Copy the project ID, then the region. Each copy fires one `project_settings_value_copied` event, with `field` set to `projectRef` and then `region`. 3. Open the restart modal, then cancel it. No event fires. Confirm a restart (project or fast database reboot). One `project_lifecycle_action_submitted` fires with `action: restart_project` or `restart_database` and `source: settings_general`. 4. Confirm a pause, a resume, and a transfer. Each fires `project_lifecycle_action_submitted` with the matching `action`. A resume from settings sends `source: settings_general`; a resume from the paused project home page sends `source: project_home`. 5. Toggle high compliance mode. One `project_compliance_mode_updated` fires, with `isSensitive` set to the new value. 6. In the custom domain flow, Add, Verify, confirm Activate, and confirm Delete each fire `custom_domain_step_submitted` with `step` set to `configure`, `verify`, `activate`, and `remove`. 7. In the custom domain verification step, copy a DNS record's name, then its value. Each copy fires one `custom_domain_dns_record_copied` event, with `recordType` set to `CNAME` or `TXT` and `field` set to `name` and then `value`. ## Checks Ran `tsc --noEmit` in `apps/studio` and `packages/common`. Ran `eslint` (default config and `eslint.type-checks.config.cjs`) on the changed Studio files: no errors, only warnings that were already there. Ran `oxfmt --check` on all changed files. Ran `vitest run` on `General.test.tsx`, `Project.test.tsx`, `PauseProjectButton.test.tsx`, and `RestartServerButton.test.tsx`: all pass. ## Checklist - [x] I have read the [Contributing Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] I have checked that the change works in the preview deployment ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [FE-5029](https://linear.app/supabase/issue/FE-5029/track-usage-on-project-settings-general). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> |
||
|
|
f0a0a4f2fe |
docs(telemetry): add attempt and render-site rules (#54310)
I reviewed #54081 and found two tracking mistakes that the telemetry skill had no concrete rule for. I added both rules, and pointed the header of `telemetry-constants.ts` at the skill. **Changed:** - **Attempts named as results**: an event fired in a submit or confirm handler before the request resolves also counts failed attempts. I added a rule to name it `submitted`, or to move the call to where the request has succeeded when a result verb such as `updated` is wanted. - **Page-named values on shared components**: a value like `source: 'project_home'` is wrong on every other page the component renders on. I added a rule to find every render site before hardcoding a page name, and to pass the value as a prop or name it after the component when there are several. - **Conflicting verb guidance**: the header of `packages/common/telemetry-constants.ts` told authors to reuse verbs already in that file, while the skill names its own list as the authority. I replaced the header's naming text with a pointer to the skill. **Note:** both files are also changed in #54081 (the skill's `data-attr` paragraph and new events in the constants file), on different lines from mine. ## Linear - fixes GROWTH-1596 |
||
|
|
01c6966c9b |
chore(telemetry): add skill rules and rename three events (#54188)
The telemetry skill had no rules for mistakes I keep flagging in telemetry PR reviews, two of its sections repeated the rest of the file, and its approved verb list held verbs that no event uses or that another verb already covers. I added the rules, collapsed the repetition, cut four verbs, and renamed the three events whose verb is outside the list. **Changed:** - **New tracking rules**: I added rules for dismiss and abandonment events (a property must be able to differ at the call site), values captured at submit time, `track()` on conditionally rendered elements, debounced sends, events sent just before leaving the page, experiment exposure, and org-level events. I also added a rule for actions that change nothing: a bulk or menu action that changed nothing sends no result event, and a count property reports only the items that changed. The verify step now checks that case too. - **Shorter skill**: I changed "Review Rules" and "Implementing New Tracking" to link to the section that states each rule. I removed the verification checklist because each item duplicated a rule stated above it. - **Approved verbs**: I removed `intended` and `converted` (no event uses them) and `sent` and `moved` (one event each, both covered by another verb), and defined `created` against `added`. The skill now says the list is the authority. It used to say the list was derived from `telemetry-constants.ts`, which still holds older events with other verbs. I also stated when each verb fires: `clicked` and `submitted` in the handler, the rest once the result has happened. I updated the verb list in `.coderabbit.yaml` to match. - **Event renames**: `www_subprocessor_updates_subscribed` is now `www_subprocessor_updates_form_completed` (still sent after the successful response, so it keeps counting completed subscriptions), `realtime_inspector_broadcast_sent` is now `realtime_inspector_broadcast_submitted`, and `home_section_rows_moved` is now `home_section_rows_updated`. Nothing else in this repo references the old names. **Note:** after each app deploys, the renamed event is a new series, so a chart that spans the change needs both names. ## To test Tested on the PR preview: - [ ] On www, open `/legal/customer-resources/subprocessor-list`, submit the updates form with a test email, expect one `telemetry/event` request whose `action` is `www_subprocessor_updates_form_completed`, and no event after a failed submit. - [x] In Studio, open a project's Realtime Inspector, join a channel, send a broadcast message, expect one `telemetry/event` request whose `action` is `realtime_inspector_broadcast_submitted`. Observed: one request with that action and a 201 response, and no event after canceling the modal. - [x] In Studio, on the project home page, drag a section to a new position, expect one `telemetry/event` request whose `action` is `home_section_rows_updated` with `section_moved`, `old_position` and `new_position`. Observed: one request per drag, with `section_moved: "usage"`, `old_position: 1`, `new_position: 2`. I checked the staging analytics project: both new Studio event names showed up with matching counts, and neither old name did. ## Linear - fixes GROWTH-1584 |
||
|
|
f8cd1ee63e |
feat(studio): track docs button clicks (#54119)
## Problem We don't track clicks on the shared `DocsButton`, so we can't tell which pages send people to the docs most or where the UI needs more explanation. Closes FE-5020. ## Solution Add a `docs_button_clicked` event, fired once per click from the click handler in the shared `DocsButton`. One call covers every page that renders it. - Properties: optional `topic` (a fixed label passed by the caller, omitted when unset). `pathname` is already attached to every event by `useTrack`. - Groups are `Partial<TelemetryGroups>` because the button renders on project, organization, and account pages. - Click still stops propagation, as before. ## Review instructions 1. Run `pnpm dev:studio` and open a page with a docs button (e.g. a project's Auth or Database page). 2. Click it and check the `docs_button_clicked` event is sent once, with `topic` when the button has one. 3. Run `pnpm --filter studio exec vitest run components/ui/DocsButton.test.tsx`. Still to do after merge: verify the event in PostHog on staging. |
||
|
|
433d95afd0 |
feat(studio): track usage on the API keys pages (#54070)
## Problem Nothing is tracked on the API keys pages (new and legacy), so we can't tell which keys people copy, how often they create or delete keys, or how quickly projects disable legacy keys. Closes FE-5030. ## Solution Adds five events, defined in `packages/common/telemetry-constants.ts` and fired through `useTrack()`: | Event | When | Properties | | --- | --- | --- | | `api_key_copied` | User copies a publishable, secret, or legacy anon/service_role key with its Copy button. Keyboard copies aren't counted. Not fired when blocked by permissions or when the copy fails. | `keyType` | | `api_key_reveal_clicked` | User reveals a secret or legacy service_role key (not on hide) | `keyType` | | `api_key_created` | Key created from the dialog, or by the first-time setup (fires once per key) | `keyType`, `source` | | `api_key_removed` | Key deleted after confirming in the modal | `keyType` | | `legacy_api_keys_updated` | Legacy keys disabled or re-enabled | `enabled` | - Create, delete, and legacy toggle fire in the mutation hook's `onSuccess`, so failed attempts aren't counted and the event still fires if the component unmounts mid-request. They're attributed to the mutation's own project. Copy and reveal fire in the click handler. - Delete is tracked in `SecretAPIKeys` / `PublishableAPIKeys`, where the confirm modal and mutation live, not in the dropdown item. - No key names or values in properties. - `data-attr` added to the copy, reveal, create, delete, and docs controls (static strings; Studio's PostHog autocapture is currently off, so these send nothing today). `DocsButton` gets an optional `data-attr` prop. - `ui-patterns` `Input` gets optional `onReveal` and `onCopied` callbacks. `onCopied` fires only for the Copy button, so legacy and new keys count copies the same way. - The empty-state sample keys are `inert`, so their buttons don't copy or track. - New `getLegacyApiKeyType` helper maps the legacy `anon` / `service_role` tags to the event's `keyType`. Tests cover copy, reveal, the no-event-on-hide and denied-grant cases, the legacy toggle, and the key-type helper. Success paths for the create dialogs and delete aren't covered. ## How to test - [ ] Open `/project/[ref]/settings/api-keys`, copy a publishable and a secret key, reveal a secret key, and check `api_key_copied` and `api_key_reveal_clicked` in PostHog (staging) with the expected `keyType` - [ ] Create and delete a publishable and a secret key and check `api_key_created` / `api_key_removed` - [ ] On the legacy page, copy anon and service_role, reveal service_role, then disable and re-enable the keys and check `legacy_api_keys_updated` |
||
|
|
cbae30a467 |
feat(studio): link plan badge to upgrade flow (GROWTH-775) (#47447)
## What Makes the **Free** plan badge next to the organization name (in the org dropdown) a clickable entry point into the upgrade funnel. Resolves [GROWTH-775](https://linear.app/supabase/issue/GROWTH-775). Feedback verbatim: _"if i hit the 'free' button next to my account name it should take you to the upgrade to paid account funnel."_ The badge links to `/org/{slug}/billing?panel=subscriptionPlan&source=org_plan_badge`. Clicking it fires `upgrade_cta_clicked` with `placement: 'org_plan_badge'`. ## Changes | File | Change | |---|---| | `apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx` | Eligibility check and the linked badge. | | `apps/studio/components/layouts/AppLayout/AppLayoutDropdown.tsx` | New optional `trailingContent` slot, rendered as a sibling of the nav `<Link>`. Needed because a clickable badge can't be a `<Link>` nested inside the org `<Link>` (invalid HTML). Non-breaking — `BranchDropdown` is unaffected. | | `packages/common/telemetry-constants.ts` | Adds the `org_plan_badge` placement to `upgrade_cta_clicked`. | | `apps/studio/components/layouts/AppLayout/OrganizationDropdown.test.tsx` | Free org gets the link; partner-managed, billing-partner, and paid orgs keep the plain badge. | ## Who sees the link Orgs on the Free plan, managed by Supabase, with no `billing_partner`. Everyone else keeps the plain, non-clickable badge. The badge also stays plain when billing is disabled (`billing:all`) or plan changes are paused (`disableProjectCreationAndUpdate`), the same two checks `UpgradePlanButton` applies. Partner-managed orgs are excluded because they change plans at the partner (Vercel / AWS Marketplace / Stripe Projects). `PlanUpdateSidePanel` shows a `PartnerManagedResource` notice and disables every paid tier for them, so the badge would land them on a panel with no enabled action. `billing_partner` is checked separately because `getManagedByFromOrganizationPartner` doesn't map every partner — `fly` falls through to `supabase`. Free-plan members without `BILLING_WRITE` still get the link: `PlanUpdateSidePanel` renders `RequestUpgradeToBillingOwners` per plan card for them, so the landing is a real next action, not a dead end. ## Testing `OrganizationDropdown.test.tsx` covers the linked badge for a Free Supabase-managed org and the plain badge for partner-managed, billing-partner, and Pro orgs, plus the billing-disabled and plan-changes-paused cases. Existing partner-icon tests still pass. `tsc --noEmit` and Prettier are clean for the touched files. The Studio lint ratchet passes locally. --------- Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com> |
||
|
|
574cd4ba46 |
chore: remove old plan change UI (#54105)
Revamped plan change UI is fully rolled out for everyone. Removing the now obsolete components. |
||
|
|
e508c3c3f0 |
feat(studio): track schema visualizer usage (#53955)
## Problem The schema visualizer (`/project/[ref]/database/schemas`) sends no telemetry. We can't tell whether people use it to explore a schema or to export it, which export format they pick, or whether they edit tables from the graph. ## Solution Adds PostHog events for the visualizer's main actions: changing the schema, selecting a Find table result, copying (schema or table as SQL/Markdown, table or column name), downloading the graph as PNG or SVG, applying Auto layout, and choosing Edit table or Edit column from a node menu. Each event fires from the action's handler, so actions started from a keyboard shortcut count too. Properties are only fixed enums (`schemaType`, `content`, `format`, `action`); no schema, table, or column names are sent. Each tracked element also gets a `data-attr` for autocapture. View in Table Editor and the empty state's New table link get a `data-attr` only, because the pageview already records them. It also fixes an empty canvas after switching back to a schema that was already loaded. The graph stays mounted in that case and fitted the view only on first load, so the new schema's tables could sit off-screen until a reload. The view now fits whenever the schema on the canvas changes. Edits within the same schema still keep the current view. Studio's database pages keep the selected schema name in the `schema` URL param, and that name is chosen by the customer. Telemetry now redacts its value to `redacted` wherever it already redacts `keywords`: the event and pageview `page_url`, the query string, the referrer, first-touch data, and the URL properties posthog-js adds. This applies to every Studio event and pageview, not just this page. Params that only contain the word, such as `schemas` or `myschema`, are left alone. ## How to verify On the PR preview, open a project's Database > Schema Visualizer with PostHog debugging on (or watch the network requests to the telemetry endpoint), then: 1. Change the schema in the selector: one `database_schema_selector_updated` event with `schemaType` of `public`, `protected` (for example `auth`), or `custom`. 2. Open Find table and select a table: one `database_schema_visualizer_find_table_clicked` event. 3. Click Copy as SQL: one `database_schema_visualizer_copied` with `content: 'schema_sql'`. Copy as Markdown from the export menu sends `content: 'schema_markdown'`. 4. Download as PNG and as SVG: one `database_schema_visualizer_image_download_clicked` each, with `format` of `png` or `svg`. 5. Open Auto layout and click Apply: one `database_schema_visualizer_auto_layout_applied`. Cancel sends nothing. 6. From a table node menu, choose Copy name, Copy as SQL, and Copy as Markdown: `database_schema_visualizer_copied` with `content` of `table_name`, `table_sql`, and `table_markdown`. Column menu Copy name sends `column_name`. 7. From a table node menu choose Edit table, and from a column menu choose Edit column: `database_schema_visualizer_node_menu_clicked` with `action` of `edit_table` and `edit_column`. 8. No event carries a schema, table, or column name. 9. Switch the schema from public to auth, then back to public, with no reload: the public tables are shown and fitted on the canvas each time. Repeat auth → public → auth. 10. Edit a column from the graph and save: the view does not jump. 11. In the telemetry requests from steps 1 to 7 and in the pageview, `page_url` and `ph.search` show `schema=redacted`, never the schema name. The page itself still shows and switches the real schema. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`. Every package passed except studio, which ran out of memory beside a parallel lint run. `pnpm --filter studio run typecheck` alone then passed, and passed again after the view fix. `pnpm turbo run lint --filter='[origin/master]'` ran out of memory twice on studio's `lint:type-checks` (2 GB default heap). So I ran `eslint` and `eslint --config eslint.type-checks.config.cjs` on the changed Studio files with a larger heap: no errors, only pre-existing warnings. `vitest run components/interfaces/Database/Schemas/Schemas.utils.test.ts` passed. For the redaction, `vitest run` in `packages/common` (all 310 tests, including the new `schema` cases) and its `typecheck` passed; `common` has no lint script. `oxfmt --check` passes on all changed files. Event names and properties follow the repo's `telemetry-standards` skill. ## Checklist - [x] I have read the [contributing guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] The change is scoped to one feature - [x] Events are defined in `packages/common/telemetry-constants.ts` and added to the `TelemetryEvent` union ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [FE-5031](https://linear.app/supabase/issue/FE-5031/track-usage-on-the-schema-visualizer). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
653f914ca1 |
feat: post plan upgrade screen (#54003)
Right now, when customers upgrade from free → paid or even pro → team, we simply redirect to the org billing page with a quick banner that vanishes after 3 seconds confirming the plan was changed. it’s quite unsatisfying and feels like a missed opportunity to display what the customer now unlocked and next steps. I want to especially highlight projects that are now upgradeable from nano → micro, but we can later expand and make the “next steps” smarter and do it context-based. |
||
|
|
d2709729d6 |
feat(studio): track the plan change flow after the plan CTA click (#53916)
Studio sends no events between the plan CTA click and the backend's subscription update, so we can't see where people stop in the plan change flow. The redesigned plan change screen from #53670 is also gated by a ConfigCat flag, and ConfigCat flag values are not attached to events, so its rollout can't be compared against the legacy dialog. I added the missing events and a property for the flag state. **Changed:** - **Which screen a user gets**: I added `planUpdateRedesignEnabled` and `origin` (the `source` query param the panel was opened with) to `studio_pricing_plan_cta_clicked`. - **Confirm and completion**: the redesigned screen now sends `studio_pricing_plan_change_confirm_clicked` on the confirm button and `studio_pricing_plan_change_completed` once the change succeeds. A payment confirmation that the API answers with 202 (payment taken, plan still syncing) counts as completed too. - **Compute explainer and docs links**: expanding "Billed every hour, even when idle" sends `studio_pricing_compute_billing_explainer_opened`, and the compute and project transfer docs links send `studio_pricing_plan_change_docs_link_clicked`. - **Stale origin**: closing the pricing panel now removes `source` from the URL. Before, reopening the panel from the billing page reported the previous entry point as the origin. **Note:** the legacy dialog gets no new events, and `planUpdateRedesignEnabled` should be removed together with it. ## To test Needs the `billingPlanUpdateRedesign` flag on. Watch the `telemetry/event` requests in the network tab. Tested on the PR preview: - [x] Open `/org/<slug>/billing?panel=subscriptionPlan&source=backups` on a Free org and click "Upgrade to Pro", expect `studio_pricing_plan_cta_clicked` with `planUpdateRedesignEnabled: true` and `origin: "backups"`. Observed, and the redesigned screen opened. - [x] On the same panel, click the Enterprise card's "Contact us", expect exactly one `studio_pricing_plan_cta_clicked` with `selectedPlan: "Enterprise"`, `planUpdateRedesignEnabled: true` and `origin: "backups"`. Observed, one event. - [x] Expand "Billed every hour, even when idle", expect one `studio_pricing_compute_billing_explainer_opened`. Collapse it, expect no event. Observed, and a second expand sent a second event. - [x] Click "Learn about compute", expect `studio_pricing_plan_change_docs_link_clicked` with `docsLink: "compute"`. Observed, and the "Transfer" link sent `docsLink: "project_transfer"`. - [x] Go back and close the pricing panel, expect `source` to be gone from the URL. Observed: the URL ended at `/billing` with no `panel` or `source`. - [x] With the flag overridden off and the page reloaded, click "Upgrade to Pro", expect `planUpdateRedesignEnabled: false` and the legacy dialog. Observed. - [x] Confirm with a declining card, expect `studio_pricing_plan_change_confirm_clicked` and no `studio_pricing_plan_change_completed`. Observed: the subscription update returned 402 and no completion was sent. - [x] Confirm the upgrade with a test card, expect `studio_pricing_plan_change_confirm_clicked` then one `studio_pricing_plan_change_completed` with `currentPlan: "Free"`, `selectedPlan: "Pro"`, `origin: "backups"` and no project group. Observed, with `groups` holding only `organization`. - [x] Upgrade again with a card that requires 3D Secure, expect one `studio_pricing_plan_change_completed`, sent only after the challenge. Observed on a Pro to Team change. I also confirmed ingestion by querying the staging PostHog project: all five events from this run arrived from the preview host with the properties above. The run included the CTA click with both `true` and `false` for `planUpdateRedesignEnabled`, `docsLink` values `compute` and `project_transfer`, completions for Free to Pro and Pro to Team, and only an organization group on every event. ## Linear - fixes GROWTH-1565 |
||
|
|
86ab87efd7 |
chore(studio): remove the onboarding survey experiment flag (#53918)
The onboarding survey experiment on the new-org form is finished and the
survey version is now the default. I removed the
`onboardingSurveyPlacement` flag from Studio: the form always shows the
survey, and I deleted the old form path.
**Changed:**
- **New-org form**: always renders the name field plus the optional
"Help improve Supabase" survey card. Org type and size are saved through
the survey endpoint only, as they already were for the survey variant.
- **Experiment plumbing removed**: I deleted the flag read, its exposure
event (`onboarding_survey_placement_experiment_exposed`) and the variant
constants, so the form no longer starts on the old layout while flags
load.
- **Tests**: the survey tests keep their assertions with the flag setup
removed. I deleted the test for the old form (org type sent at creation,
no survey) because that behavior no longer exists.
**Note:** I removed the `renderFieldWrapper` option from
`OrganizationDetailsFields`, which only the old form path used. The
cloud marketplace org form still uses the component unchanged.
## To test
Tested on the PR preview:
- [x] Sign in and open `/new`: expect a Name field with no Type field
above the plan picker, and a "Help improve Supabase" card with the org
type, "What are you building?" and "Do you know how to code?" questions.
Observed: Name, Plan, then the card with "Who is this org for?" (default
Personal) and both questions.
- [x] Create a free org with the survey untouched: expect the create
request body to carry no `kind` or `size`, no `onboarding-survey`
request, and the follow-up card on the new org's projects page.
Observed: create body `{"name":"…","tier":"tier_free"}` (201), no survey
request, and the follow-up card with Answer and Skip on the org page.
- [x] Create a free org with type Company, a company size and a "What
are you building?" answer: expect one `POST
/platform/organizations/onboarding-survey` with those answers returning
204, and no follow-up card. Observed: one request with `kind:
"COMPANY"`, `size: "50"`, `building: "b2b_saas"` (204), create body
again without `kind` or `size`, no follow-up card.
- [x] Watch telemetry requests while `/new` loads: expect no
`onboarding_survey_placement_experiment_exposed` event. Observed: none
across both org creations, while `onboarding_survey_dismissed` and
`onboarding_survey_submit_button_clicked` (both `surface: org_form`)
were sent.
- [x] Added: the survey card is in the first render of `/new` and the
Name input keeps focus, with no layout switch after flags load.
## Linear
- fixes GROWTH-1562
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
|
||
|
|
676d216c81 |
feat(studio): add events for saved views (#53856)
## Problem Studio tracks PostHog telemetry for most user-facing interactions, but the saved-views feature added in #53630 (moving saved views from a toolbar dropdown into the filter sidebar) shipped with no tracking. There's no way to measure whether people discover the new Views panel, how often they create/apply/manage views, or how they respond to the "this view has been modified" prompt. ## Solution Added six PostHog events covering the saved-views lifecycle, following the existing `unified_logs_*` naming convention (matching the pre-existing `unified_logs_row_clicked` event): - `unified_logs_views_panel_opened` — opening the panel from the sidebar entry or mobile drawer (`surface` property) - `unified_logs_view_applied` — applying a preset or saved view (`viewType`, and `trigger: 'select' | 'reset'` to distinguish a row click from discarding edits via "Reset") - `unified_logs_view_created` — creating a view, with `source: 'new' | 'save_as_new' | 'duplicate'` to distinguish entry points - `unified_logs_view_updated` — renaming (`updateType: 'name'`) or updating a view's filters from the modified-view popover (`updateType: 'filters'`) - `unified_logs_view_removed` — deleting a view - `unified_logs_view_update_prompt_closed` — dismissing the "this view has been modified" popover without updating/saving/resetting Key choice: similar actions were consolidated into one event with a distinguishing property rather than one event per button, per the telemetry-standards convention (e.g. rename and filter-update both fire `unified_logs_view_updated` rather than two separate events). The internal re-apply that happens right after duplicating a view is not tracked as a separate `view_applied` event, to avoid double-counting against `view_created`. Event interfaces were added to `packages/common/telemetry-constants.ts` and registered in the `TelemetryEvent` union; `track()` calls were wired into the relevant handlers in `UnifiedLogs.tsx`. ## Review instructions 1. Enable the Unified Logs feature preview and the `logsSavedViews` flag, then open **Logs**. 2. With PostHog dev tools / network tab open, click the **Saved views** sidebar entry and confirm `unified_logs_views_panel_opened` fires with `surface: 'sidebar'`. 3. Save the current filters as a new view and confirm `unified_logs_view_created` fires with `source: 'new'`. 4. Click another view row to apply it — confirm `unified_logs_view_applied` fires with `trigger: 'select'`. 5. Change a filter on the active view, then click **Reset** in the modified-view popover — confirm `unified_logs_view_applied` fires with `trigger: 'reset'`. 6. Modify filters again and click **Update view** — confirm `unified_logs_view_updated` fires with `updateType: 'filters'`. 7. Rename a view via the row's ⋮ menu — confirm `unified_logs_view_updated` fires with `updateType: 'name'`. 8. Duplicate a view — confirm `unified_logs_view_created` fires with `source: 'duplicate'`. 9. Delete a view — confirm `unified_logs_view_removed` fires. 10. Modify the active view again and dismiss the popover with the X — confirm `unified_logs_view_update_prompt_closed` fires. |
||
|
|
27578cdfb5 |
fix(telemetry): send search query shape instead of raw text (#53500)
Search telemetry sent whatever people typed, and search boxes are a place where people paste credentials and personal data. I replace the raw text with a description of it. #53336 added the raw `query` to `kb_search_submitted`; docs search and the command menu already sent it. **Changed:** - **I send a description of the search term**: `kb_search_submitted`, `docs_search_v2_search_submitted`, `docs_search_v2_result_clicked` and `command_menu_search_submitted` now send `queryLength` and `queryWordCount`, measured after trimming and collapsing repeated whitespace. - **Text only for keywords**: the term itself (`query`, `value`, and `search_query` on `command_menu_command_clicked`) is sent only when it is up to 4 letters-only parts of at most 16 letters each, 40 characters in total. Keys, tokens, emails, IDs, project refs and connection strings never match. Over the last 30 days that shape covers about 96% of command menu searches, 88% of docs searches and 73% of KB searches, so term-level analysis such as no-result queries keeps most of its data. - **I removed `keywords` from the auth users search event**: `auth_users_search_submitted` no longer carries it. Those terms identify customers' end users, and I confirmed nothing downstream reads them. - **The `keywords` URL parameter is redacted wherever telemetry copies a URL**: the Auth users page keeps the search term in its URL, so I replace the value with `keywords=redacted` in the page URL, query string and referrer we send, and in the posthog-js `before_send` hook for the URL properties the SDK fills in on its own (`$session_entry_url`, `$initial_current_url`, `$referrer`, `$initial_referrer`). The URL in the browser is unchanged. **Note:** a letters-only name or passphrase still matches the keyword shape, and longer questions lose their text. I opened this in place of #53435, which removed `query` from the KB event only. ## To test Tested on the PR previews (docs, kb, studio-staging), reading the request bodies sent to `/platform/telemetry/event`: - [x] Docs: open search and type `auth`, expect `docs_search_v2_search_submitted` with `query: "auth"`, `queryLength: 4` and `queryWordCount: 1`. Observed exactly that, with `hasResults: true`. - [x] Docs: type `person@example.com`, expect the same event with `queryLength: 18` and no `query`. Observed, and no telemetry body in that step contained the address. - [x] KB: search `how do I reset my database password`, expect `kb_search_submitted` with `queryLength: 35`, `queryWordCount: 7` and no `query`. Observed. - [x] KB: search `storage policies` with two spaces, expect `kb_search_submitted` with `query: "storage policies"` and `queryLength: 16`. Observed, with `queryWordCount: 2`. - [x] Studio: open the command menu and type `abcdefghijklmnopqrst`, expect `command_menu_search_submitted` with no `value`, then type `auth` and expect `value: "auth"`. Observed both, with `queryLength` 20 and 4. - [x] Studio: on Auth > Users, search `person@example.com`, expect `auth_users_search_submitted` with no `keywords`. Observed: `trigger`, `sort_column`, `sort_order`, `providers` and `filter_column` only. - [x] Studio: with `?keywords=person%40example.com` in the Auth > Users URL, reload, then trigger an event on the page, expect `page_url` and `ph.search` in the request body to carry `keywords=redacted` and the address bar to keep the real term. Observed on all three events from that page, and the address bar kept the term. - [x] Studio: from that URL, do a full page load to another project page and trigger an event, expect `ph.referrer` to carry `keywords=redacted` while `document.referrer` keeps the real term. Observed on all three events from the new page. - [x] Studio: after that session, query the staging analytics project for events from the preview host, expect no property value to carry the address or anything but `keywords=redacted`. Observed: none of the events in the test window carried the address, and the SDK's own `$set`, `$pageview` and `$pageleave` events arrived with `keywords=redacted` in `$current_url`, `$referrer` and `$initial_current_url`. The session started on a page without the parameter, so `$session_entry_url` was not exercised here; the unit test on the `before_send` hook covers it. ## Linear - fixes GROWTH-1501 |
||
|
|
c6a3a23dfb |
feat(studio): track free project limit blocks on downgrade and transfer (#53460)
Studio blocks a downgrade to the Free Plan and a project transfer when a member would exceed their free project limit, and neither block is tracked. This adds one event for each so we can count how often people hit them. No UI change. **Changed:** - **Downgrade blocked**: `studio_billing_downgrade_blocked_modal_opened` fires when confirming a downgrade opens the "members have exceeded their free project limits" modal. It sits in `CancellationFlow`, so it covers both the Cancel subscription button and the plan side panel. - **Transfer blocked**: `project_transfer_preview_failed` fires when the transfer preview for the selected target organization comes back with members over the limit, once per preview. A refetch that returns the same data does not fire it again. **Note:** the transfer event fires from an effect on the preview data. The notice appears when that data arrives, so there is no click handler to attach it to. ## To test Needs an organization on a paid plan with a running project, where an owner or admin already has the maximum number of free projects in other organizations. Tested on the PR preview: - [ ] Go to the org billing page, click "Cancel subscription" and confirm the downgrade, expect the members-exceed-limit modal and one telemetry request with action `studio_billing_downgrade_blocked_modal_opened` carrying `currentPlan` and `membersExceedingLimitCount` - [ ] Open the plan side panel, pick the Free Plan and confirm, expect the same modal and one more `studio_billing_downgrade_blocked_modal_opened` request - [ ] In project settings > General, click "Transfer project" and select a Free Plan target organization, expect the "Project cannot be transferred" notice listing members and one telemetry request with action `project_transfer_preview_failed` carrying `sourcePlan`, `targetPlan` and `membersExceedingLimitCount` - [ ] Edge case: with the notice showing, switch to another browser tab and back, expect no additional `project_transfer_preview_failed` request ## Linear - fixes GROWTH-1510 |
||
|
|
22ea45a3ba |
feat: getting started v2 (#52511)
## Problem * the getting started page is a stack of content listings: an overview, use cases, framework quickstarts and tutorials * a new reader must find a path in that list, and the page gives no commands or agent prompt for their setup ## Solution * adds a stepper to the getting started page, so a reader gets the steps and an agent prompt for their setup * adds the `docs-getting-started-v2` posthog flag, so the stepper and the current page can run as an a/b test * adds events for stepper choices, link clicks and prompt copies, so the test can compare the two pages * adds a markdown export of the stepper, so the `.md` page lists every path for agents * moves the iso shapes from kb into `ui-patterns`, so the docs feature cards use the same shapes as the kb heroes * changes the edge functions shape to a flat puzzle piece, because the old shape had too many parts <!-- linear:table-colwidths:397,397 --> <table> <thead> <tr> <th>state</th> <th>preview</th> </tr> </thead> <tbody> <tr> <td>after</td> <td> https://github.com/user-attachments/assets/7127d817-4240-4d08-a1c9-6ada1b1b2563 </td> </tr> </tbody> </table> ## Review instructions 1. open [/docs/guides/getting-started?docs-getting-started-v2=stepper](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper>) and make sure that the stepper shows with agent selected 2. select next.js and the auth card, then make sure that the setup prompt names next.js and has a step for auth 3. open [/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs>) and make sure that connect your app shows the install command and the quickstart button ## 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>) |
||
|
|
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 |
||
|
|
15bee88898 |
feat(kb): send search query text on kb_search_submitted (#53336)
Adds the trimmed search term as a query property on kb_search_submitted, matching docs search. Goes through the existing consent-gated kb telemetry path. Refs DOCS-1588. |
||
|
|
362c974153 | fix(studio): record onboarding survey exposure only for signed-in users (#53253) | ||
|
|
aad6ac1adc |
feat(docs): ai layout breadcrumbs page actions (#52974)
Closes DOCS-1470 ## Problem - reference pages have no breadcrumbs, so a reader on `/reference/cli/supabase-init` sees no path back to the cli reference - a guide breadcrumb can repeat its parent, for example "Connecting to your database" twice under Database > Fundamentals - redesign needs page actions in the top bar to copy a page as markdown and to set up an agent ## Solution - adds reference breadcrumbs, so a reference page shows the reference home and its library - adds the current version to the library breadcrumb when the library has more than one version - removes a breadcrumb that repeats its parent with the same url and name - adds a copy page split button and a set up agent menu, with telemetry events for each action - changes `ui-patterns` to export `CrossfadeIcon`, so the copy button reuses its copied state animation #52972 must merge first, because the breadcrumbs skip the overview row that it adds <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. run `pnpm --filter docs exec vitest run lib/breadcrumbs.test.ts`, and make sure that all tests pass 2. read the new telemetry events in `packages/common/telemetry-constants.ts`, and make sure that each event names what the user did 3. the top bar shows the page actions in the next pr, so check them on the preview of that pr ## Checklist Check all before review: - [ x I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
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`). |
||
|
|
a73c5086fd |
feat(kb): send search opened and closed events (#53188)
## Problem kb search sends no event when the dialog opens or closes, so search usage has no denominator. Docs sends `docs_search_v2_opened` and `docs_search_v2_closed`. Resolves GROWTH-1474. ## Solution - adds `kb_search_opened` (`triggerType`: `keyboard_shortcut`, `search_input`) and `kb_search_closed` (`closeReason`: `dismissed`, `result_navigated`), the docs values kb can produce - `KbSearch` fires each event only on a real open or close, so Cmd+K toggling or a second open can't double-send - Enter on a result now closes the dialog before navigating, like a click does - `kb_search_closed` sends with `keepalive`, since a result click leaves the page ## Review instructions 1. `pnpm --filter kb test` 2. `NEXT_PUBLIC_IS_PLATFORM=true pnpm --filter kb dev`, accept cookies, filter network by `telemetry/event` 3. open search with the header button, press Escape, then Cmd+K twice: one opened and one closed per cycle Tested: kb and `common` tests pass, `common` typecheck passes. On `astro dev` with consent set, each open and close sent one event. Result-click close is unit-tested only (no local search API). ## 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) |
||
|
|
44573b7a5c |
feat(studio): rename Advisors to Issues in navigation (#52993)
Part 5 of 6: #52989 → #52990 → #52991 → #52992 → #52993 → #53138 Switches Studio navigation between Advisors and Issues with `issuesInbox`. With the flag off, the existing Advisors sidebar, pages, command menu entries, shortcuts, header panel, and contextual finding links remain available. With it on, these entry points show Issues and legacy Advisor URLs forward to the matching Issues category while preserving finding context. Direct Issues routes remain accessible in either state. The homepage section remains hidden when the flag is off. Telemetry event names are unchanged. ## How to test 1. Turn `issuesInbox` off: desktop and mobile navigation show Advisors, the header opens Advisor Center, and Security, Performance, and enabled Health Advisor pages remain usable. 2. Turn it on: navigation and the header show Issues. Legacy Advisor category URLs forward to matching Issues lists. 3. `G` then `V` opens the active variant. `V` then `S`, `P`, or `H` follows the active category links; shortcut reference labels match. 4. Table Editor finding links open the legacy finding when off and its issue when on. 5. Direct Issues routes remain usable with the flag off; the homepage section stays hidden. ## Validation - Broad navigation/layout/redirect/shortcut regression suite: 456 tests passed, retries disabled. - Focused suite: 181 tests passed with shuffle seed 52993, retries disabled. - Full Studio TypeScript, scoped ESLint, and changed-file Prettier pass. - Behavioral mutation probes detect broken flag guards, finding links, and redirect destinations; source restored afterward. [DEBUG-255](https://linear.app/supabase/issue/DEBUG-255/replace-advisor-terminology-with-issues-throughout-studio) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com> |
||
|
|
79763687f7 |
Include command section for event tracking in cmd k (#53205)
## Context Just updating Cmd K to include a `command_section` within the `command_menu_command_clicked` event action's properties, mainly to let us identify which section the clicked command came from. For e.g with the recent resource aware Cmd K changes, this will allow us to identify whether "Related resources" command items are being used, `command_section` will be set as "Related resources" <img width="500" alt="image" src="https://github.com/user-attachments/assets/3ab67df1-4a35-4ab0-9c12-6621a0a0fe8f" /> Or for searching database entities, clicking on each command item within their sections will set `command_section` as `"Tables" | "Policies" | "Triggers" | "Functions"` <img width="500" alt="image" src="https://github.com/user-attachments/assets/b0ba9cd7-d2ed-4ee6-8aae-c7fe8157f340" /> |
||
|
|
2ce7f1f33c |
experiment(studio): expanded onboarding survey (#45707)
Adds an optional onboarding survey to the new-organization form, so we
learn who new orgs are for and what they are building. Users in the
`org_form` arm of the `onboardingSurveyPlacement` PostHog flag see a
**Help improve Supabase** section. Users in `control` get today's form
unchanged and still record exposure, so the two arms can be compared;
users the flag doesn't assign get the existing form and record nothing.
**Changed:**
- **Survey on the new-org form**: asks **Who is this org for?** (plus
**How many people?** for companies) and **What are you building?** (AI
assistant or agent, AI search or knowledge base, B2B SaaS, internal
tool, consumer app, social or community, marketplace or booking,
e-commerce, developer tool or app builder, analytics or reporting,
other). Every question ends with **Prefer not to say**. Answers go to
`POST /platform/organizations/onboarding-survey` as `kind`, `size` and
`building`.
- **Follow-up card for a blank survey**: if the creator answers nothing,
a card in the bottom-right asks the same questions for 5 minutes after
the org is created (not on project creation pages). Only the creator
sees it, once, tracked in localStorage. A blank form sends nothing at
creation, because the platform keeps only the first survey response per
user and org. Skipping the card, closing it, or letting the 5 minutes
run out still saves the org type and size picked on the form.
- **Telemetry**: exposure for both arms, plus submit, submit failed,
dismissed (including `follow_up_expired` when the card times out) and
Answer clicked events with `surface` set to `org_form` or `follow_up`.
**Note:** I cut **How comfortable are you working with code?** from v1.
The survey endpoint doesn't accept `coding_experience` yet, and the
question is planned to move to the user level later.
## To test
Setup: override `onboardingSurveyPlacement` to `org_form` in the dev
toolbar. Close the Terms of Service banner first, since the follow-up
card shares its slot.
Tested on the PR preview:
- [x] Create an org with **Who is this org for?** and **What are you
building?** answered, expect one `POST
/platform/organizations/onboarding-survey` carrying `kind` and
`building` (plus `size` for companies), no `coding_experience` key, and
no `kind` or `size` in the org-create request. Observed: 204 with
`{"slug":"<slug>","kind":"COMPANY","size":"10","building":"b2b_saas"}`;
org-create body was `{"name":"<name>","tier":"tier_free"}`
- [x] Create an org with the survey left blank, then open its projects
page, expect the follow-up card; answer it, expect the same survey
request and a "Thanks for sharing" toast. Observed: no survey request at
creation; after answering, 204 with
`{"slug":"<slug>","kind":"PERSONAL","building":"consumer_app"}` and the
toast
- [x] Override to `control`, open the new-org form, expect the same form
as master (Name, Type, Company size with "How many people are in your
company?" for Company, then Plan), no survey section, and an
`onboarding_survey_placement_experiment_exposed` event with `variant:
control`. Observed: screenshots match master's form field for field; the
exposure arrived in PostHog with `variant: control`
- [x] Create an org with the survey left blank and don't act on the
follow-up card for 5 minutes, expect the card to disappear, one `POST
/platform/organizations/onboarding-survey` carrying the form's `kind`
(plus `size` for companies) and no `building`, and an
`onboarding_survey_dismissed` event with `reason: follow_up_expired`.
Observed (stored follow-up time moved to near expiry instead of
waiting): the card disappeared at the 5-minute mark with one 204
carrying `{"slug":"<slug>","kind":"AGENCY"}` and the `follow_up_expired`
event; an already-expired follow-up sends on page load; with the dialog
open past expiry nothing is sent until it is closed
## Linear
- fixes GROWTH-771
- part of GROWTH-1463
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
c62f07f940 |
fix(kb): ai tools events (#53180)
## Problem - kb guide sidebar shows the AI tools block from docs, with the same shared `AiTools` component - docs sends `agent_setup_clicked`, `copy_as_markdown_clicked` and `ask_ai_clicked` from that block, but kb sends no event for any click ## Solution - adds the docs events to the kb AI tools block, so a kb click sends the same event as a docs click - adds `kb` to the `pageType` values, because the kb sidebar also shows on troubleshooting pages, so `guide` is not correct - changes `agent_setup_clicked` to send with `keepalive`, because the connect link opens a page in the same tab and the browser can cancel the request - moves the kb telemetry sender to one module, so kb search and the sidebar use the same platform and consent checks - adds a test that clicks each AI tools item and checks the event that kb sends <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. run `pnpm --filter kb test`, and make sure that `GuideSidebar.test.tsx` and `KbSearch.test.tsx` pass 2. open [/kb/guides/best-supabase-auth-providers](https://kb-git-antlio-fix-kb-ai-tools-event-supabase.vercel.app/kb/guides/best-supabase-auth-providers) and accept the cookie banner 3. open the browser network panel, turn on "Preserve log" and filter the requests by `telemetry/event` 4. click "Copy as Markdown", "Ask ChatGPT" and "Ask Claude" in the AI tools block 5. make sure that each click sends one request, and that `custom_properties` has `pageType: "kb"` and `platform: "kb"` 6. go back to the guide and click "Connect your AI agent" 7. make sure that the log shows one `agent_setup_clicked` request after the docs page opens 8. search for a term in the kb header, and make sure that `kb_search_submitted` still sends ## 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) |
||
|
|
1d31266c82 |
fix(docs): stop sending Ask AI question text to telemetry (#53142)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1794187436590809?thread_ts=1794187436.590809&cid=C076KTY11DF)_ ## Problem **Before:** `docs_search_v2_ask_ai_question_submitted` sent the user's Ask AI question, cut to its first 300 characters, as a `question` property (added in #52459). Free-text questions can contain personal data such as names, emails, pasted logs, or connection strings. **After:** the event sends only `questionLength` and `questionSource`. No question text leaves the browser. This matches `kb_search_submitted`, which already leaves the query text out and sends only its length. Linear: [GROWTH-1458](https://linear.app/supabase/issue/GROWTH-1458/stop-sending-ask-ai-question-text-in-docs-search-v2-ask-ai-question) ## Solution - `packages/common/telemetry-constants.ts`: remove `question` from `DocsSearchV2AskAiQuestionSubmittedEvent` and note in the event doc that the question text is left out, as `KbSearchSubmittedEvent` does. - `apps/docs/features/SearchV2/AskAiPanel.tsx` (typed questions) and `SearchV2Provider.tsx` (questions carried over from search): drop the `question` property. - `apps/docs/features/SearchV2/constants.ts`: delete `ASK_AI_QUESTION_TELEMETRY_LENGTH`, which nothing uses now. - `SearchV2.telemetry.test.tsx`: replace the truncation test with one that checks a typed question sends exactly `{ questionLength, questionSource: 'typed' }`, has no `question` property, and does not contain the question text. Out of scope: `docs_search_v2_search_submitted.query` and `docs_search_v2_result_clicked.query` stay as they are. ## Review instructions 1. Check that the event type in `telemetry-constants.ts` no longer has `question`, and that typecheck enforces this at both call sites. 2. Run `pnpm vitest --run features/SearchV2` in `apps/docs`. All 33 tests pass locally. 3. `tsc --noEmit` passes in `apps/docs` (after `codegen:graphql`) and `packages/common`. Prettier is clean on changed files. ## 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) (not applicable: no docs content changed) --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSD3LLt9nZYbsWkZBjJ)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
5ac0a4843b |
feat(kb): send search and result click telemetry events (#52981)
## Problem KB search sends no events. Part of [DOCS-1514](https://linear.app/supabase/issue/DOCS-1514) (Add telemetry to search). ## Solution Two events through `/telemetry/event`, sent only on platform and after consent: - `kb_search_submitted`: `queryLength`, `resultCount`, `hasResults` - `kb_search_result_clicked`: `resultPath`, `resultPosition` (1-based), `resultCount`, sent with keepalive Query text isn't sent: it can contain personal data. New `buildTelemetryEventRequest` builds the body for `sendTelemetryEvent`. KB posts it with plain `fetch` and no auth header, so no GoTrue client starts on the shared dashboard session. ## Additional context Tested on `astro dev` with Playwright: - `rls`: `{queryLength: 3, resultCount: 10, hasResults: true}` - `zzqxjv`: `{queryLength: 6, resultCount: 0, hasResults: false}` - 2nd result clicked: `{resultPosition: 2, resultCount: 10}`, no `Authorization` header - No consent: nothing sent Also ran `common` and Studio typecheck, KB tests, and `astro build` (no GoTrue in the bundle). ## Review instructions 1. `pnpm --filter kb dev` on platform, accept cookies. 2. Search `rls`, click a result, and check both `/telemetry/event` requests. 3. Decline cookies and repeat: nothing sends. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Kody Jackson <kody.jackson@supabase.io> |
||
|
|
04e72cae1a |
feat(telemetry): track clicks on GitHub example links (#52947)
Docs, www and Studio link to the repo's `examples/` folder from many pages, but we don't record those clicks. PostHog autocapture is off, so we can't tell which examples people open or which pages send them there. **Changed:** - **New `example_link_clicked` event**: I added one capture-phase click listener in `PageTelemetry`. It sends the event when the clicked anchor points at `github.com/supabase/supabase/(tree|blob)/<ref>/examples/<path>`, with `examplePath` set to the path after `examples/`. The source page comes from the event's existing page URL. I put it in `PageTelemetry` so it covers docs, www and Studio without changing individual links, and it sits behind the existing `enabled` and consent gates. - **Survives same-tab navigation**: I added the event to `KEEPALIVE_ACTIONS`, since docs MDX links open GitHub in the same tab. **Note:** middle-clicks and the `window.open` items in the code sample "View source" dropdown aren't counted, so the numbers are a lower bound. ## To test Accept the cookie banner first: the event only sends after consent. Watch the network tab for `POST .../platform/telemetry/event`. Tested on the PR preview: - [x] On `/docs/guides/getting-started/tutorials/with-nextjs`, click "full example on GitHub", expect one request with `action: example_link_clicked` and `custom_properties.examplePath: user-management/nextjs-user-management` (one request, 201, `pathname` set to the docs page) - [x] On `/blog/self-host-maps-storage-protomaps`, click "Find the code", expect one request with `examplePath: storage/protomaps` (201) - [x] On a Studio project's Edge Functions page, click the examples link, expect one request with `examplePath: edge-functions/supabase/functions` (201) - [x] Click a GitHub link outside `examples/` (the GitHub button in the www nav), expect no `example_link_clicked` request (only `homepage_github_button_clicked` fired) - [x] Added: plain same-tab click on the docs link, expect the event to arrive even though the page navigates to GitHub (ingested in staging PostHog about one second after the click) ## Linear - fixes GROWTH-1441 |
||
|
|
cd0b65c03e | feat(logs): Add Pipelines to unified logs and rename ETL to Pipelines (#52555) | ||
|
|
419ab63a14 |
fix(studio): report regionSelectionType 'auto' only for the Auto region option (#52283)
<!-- claude-slack-attribution --> _Requested by **Pam Chia** · [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1792977863856759?thread_ts=1792977863.856759&cid=C076KTY11DF)_ ## Problem **Before:** `getRegionSelectionType` had an untouched-field branch that also returned `auto`, but it was unreachable: `ProjectCreationForm` passed `dirtyFields.dbRegion` (`undefined` when untouched) into an `isDbRegionDirty = true` default parameter, so the branch never fired. With the new Auto (best available) region option also reporting `auto`, the value was ambiguous between "left untouched" and "picked the Auto option". **After:** `auto` means the user submitted the Auto (best available) region. An untouched field reports whatever default it holds (`general` or `auto`). Production values for untouched submissions don't change, since the removed branch never fired. Fixes [GROWTH-1358](https://linear.app/supabase/issue/GROWTH-1358/studio-regionselectiontype-never-reports-auto-for-untouched-default) ## Solution - `ProjectCreation.utils.ts`: `getRegionSelectionType` classifies only by the submitted region. Removed the `isDbRegionDirty` argument and the untouched-field branch. - `ProjectCreationForm.tsx`: stopped passing `isDbRegionDirty`. The default-region sync effect still uses it, unchanged. - `ProjectCreation.utils.test.ts`: removed the untouched-field cases. The Auto option cases (available and unavailable) stay. - `packages/common/telemetry-constants.ts`: updated the `regionSelectionType` doc to the new meaning. ## Review instructions 1. `pnpm --filter studio exec vitest run components/interfaces/ProjectCreation` passes. 2. On the preview, create a project with the Auto region option and confirm `project_creation_simple_version_submitted` fires with `regionSelectionType: 'auto'`. 3. Create another project leaving a smart group default (e.g. Americas) untouched, or picking an exact region, and confirm it reports `general` or `specific`. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --- _Generated by [Claude Code](https://claude.ai/code/session_01U4bWS81PTj81V8YkZeFP2Q)_ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
abd8594ff8 |
chore(telemetry): remove dead 'troubleshooting' MarkdownAffordancePageType (#52630)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1793582563464379?thread_ts=1793582563.464379&cid=C076KTY11DF)_ ## Problem **Before:** `MarkdownAffordancePageType` in `packages/common/telemetry-constants.ts` allowed `'troubleshooting'` as a `pageType` for `copy_as_markdown_clicked`, `preferred_source_clicked`, and `ask_ai_clicked`. No call site passes it: the docs troubleshooting pages were removed and now redirect to `/kb`, and the KB app does not render these affordances. The dead value implies a page class that can never report. **After:** The union lists only the page types that are actually sent (`blog`, `customers`, `events`, `pricing`, `changelog`, `guide`, `ask_ai_answer`), so the type documents reality and any future use of `'troubleshooting'` is a type error. Linear: GROWTH-1411 ## Solution Removed the `'troubleshooting'` literal from the union. Type-only change: no event names change and there is no runtime behavior change. Checked current `master` across `apps/docs`, `apps/www`, `apps/kb`, and `packages` for `pageType` values and `MarkdownAffordancePageType` consumers (`apps/docs/components/AiTools.tsx`, `apps/www/components/AiTools.tsx`, `AskAiPanel.tsx`, `ChangelogLlmMarkdownButton.tsx`); none use `'troubleshooting'`. ## Review instructions 1. Confirm the diff only removes `| 'troubleshooting'` from `MarkdownAffordancePageType`. 2. Optionally run `grep -rn "pageType" apps/docs apps/www apps/kb packages` and confirm no call site passes `'troubleshooting'`. 3. CI typecheck passes. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) (n/a: no docs content changes) --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSDuN9F7AXVEcUdXBKE)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
6ec1b8a918 |
chore(telemetry): add Event suffix to account recovery event interfaces (#52624)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1793582042354949?thread_ts=1793582042.354949&cid=C076KTY11DF)_ ## Problem **Before:** Four account recovery event interfaces in `packages/common/telemetry-constants.ts` were named without the `Event` suffix that every other event interface in the catalog uses: `AccountRecoveryReminderExposed`, `AccountRecoveryActionClicked`, `AccountRecoveryTaskCompleted` and `AccountRecoveryReminderClosed`. The PostHog Event Review flagged this as a MEDIUM naming finding. **After:** They are `AccountRecoveryReminderExposedEvent`, `AccountRecoveryActionClickedEvent`, `AccountRecoveryTaskCompletedEvent` and `AccountRecoveryReminderClosedEvent`, matching the rest of the catalog. ## Solution Type-only rename. The four interface declarations and their four entries in the `TelemetryEvent` union are the only references in the repo (checked with a word-boundary grep of `packages/` and `apps/studio/`, plus GitHub code search across the whole repo). The `action` event name strings (`account_recovery_reminder_exposed`, `account_recovery_action_clicked`, `account_recovery_task_completed`, `account_recovery_reminder_closed`) and all call sites are unchanged, so no live PostHog event changes. ## Review instructions 1. Check the diff: 8 lines in `packages/common/telemetry-constants.ts`, no `action` string touched. 2. CI typecheck passes. Checks run locally: - `pnpm --filter common typecheck` (`tsc --noEmit`): passed, exit 0. - `prettier --check` with the repo config: passed. - `apps/studio` typecheck: could not run here. `tsc` was OOM-killed at about 13.7 GB in this environment, so CI is the first full studio typecheck. Studio has no references to the old or new names. - ESLint: not run. `packages/common` has no ESLint config. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) ## Linear - fixes [GROWTH-1410](https://linear.app/supabase/issue/GROWTH-1410/add-event-suffix-to-account-recovery-telemetry-event-interfaces) --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011aGhS9a5vY8KKFX991yzem Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1a2db3779e |
feat(docs): ask ai v2 (#52459)
## Problem - the change is a follow-up to search v2 (#51175, #52233), which runs as the `docs-search-v2` experiment - in the `search-v2-active` group, `cmd+k` opens the new search instead of the legacy command menu, so readers lose ask ai - a search with no results stops at "No results found." and gives no next step ## Solution - adds an ask ai panel and a `cmd+i` shortcut to search v2, so the `search-v2-active` group can ask supabase ai - adds ask ai entries to the top nav, the results footer and empty results, so readers can ask from search - changes search and ask ai to use one dialog for the page, so two dialogs never open together - adds `renderNoResults` and `renderFooterStart` slots to the `docs-search` panel, so the package has no ask ai code - nit: adds a `keycaps` variant to `KeyboardShortcut` with a design-system example, and uses it in the search trigger and footers | state | preview | | -------|------| | after | <video src="https://github.com/user-attachments/assets/6681fcba-6267-4ee1-b9e0-154b5f45091d" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/docs?docs-search-v2=search-v2-active](https://docs-git-antlio-feat-docs-ask-ai-supabase.vercel.app/docs?docs-search-v2=search-v2-active) 2. make sure that the top nav shows the search box and an `Ask AI` button 3. press `cmd+i` (`ctrl+i` on windows and linux), and make sure that the ask ai dialog opens with example questions 4. select an example question, and make sure that the bolt icon changes from gray to color while the answer loads 5. press `cmd+k`, and make sure that the same dialog changes to search 6. search for `zzqqxx`, select `Ask Supabase AI: zzqqxx`, and make sure that ask ai opens and sends the question 7. search for `auth`, and make sure that the results footer shows `Ask Supabase AI` and the keycap hints ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
3d76559cec |
chore(studio): remove logs.all deprecation banner (#52491)
## Problem The `logs.all` Management API endpoint retired on September 23, and the deprecation banner stopped rendering on September 24 because of its hardcoded expiry. The banner's code is now dead weight in the bundle. Resolves GROWTH-1104. ## Solution Removes the banner and everything it pulled in: - Deletes `BannerLogsAllDeprecation.tsx`, plus its mount effect, expiry timer, and exposure tracking in `AppBannerWrapper.tsx`. - Removes `isLogsOrObservabilityPath` (only this banner used it) and its tests. - Removes `BANNER_ID.LOGS_ALL_DEPRECATION`. `BannerStackProvider.test.tsx` used it as an arbitrary ID, so those tests now use `BANNER_ID.EXPLORER`. The tests themselves are unchanged. - Removes the `LOGS_ALL_DEPRECATION_2026_09_23` local storage key and the two `logs_all_deprecation_banner_*` telemetry events. The dismissal key stays in users' browsers, which is harmless because nothing reads it anymore. ## Review instructions 1. Open a project's Logs or Observability page on the preview and confirm no `logs.all` notice appears and the page renders normally. 2. Open an organization's landing page and confirm the Terms of Service banner still behaves as before. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
84115482be |
feat(studio): storage lifecycle policies UI (#52318)
## Problem Lifecycle policies can only be set with an abstracted ui that hides the actual underlying policies but the user can still modify the policies via api, which would result in an un-documented drift from the policies set via said abstracted ui. ## Solution Show ui with list of effective policies applied and show if the policies drifted in a way that is incompatible with the abstracted ui in the "Create/Edit bucket modal". <img width="1489" height="800" alt="Screenshot 2026-10-26 at 18 35 39" src="https://github.com/user-attachments/assets/9e64f123-c06e-4cfe-9dba-839fae61c845" /> <img width="1439" height="847" alt="Screenshot 2026-10-26 at 18 35 50" src="https://github.com/user-attachments/assets/a32d3a27-6719-48b3-abd2-fb134158bd96" /> <img width="654" height="316" alt="Screenshot 2026-10-26 at 18 36 38" src="https://github.com/user-attachments/assets/0710c139-9b64-42f7-b410-c1a351b1f616" /> This PR also updates copywriting around the effects procured by the lifecycle policies settings in the bucket settings modal. <img width="704" height="440" alt="Screenshot 2026-10-26 at 18 35 17" src="https://github.com/user-attachments/assets/f4fa03d1-e11b-4d08-b4f5-d94b2d9350a3" /> <img width="351" height="82" alt="Screenshot 2026-10-26 at 18 35 28" src="https://github.com/user-attachments/assets/6ff1e149-92e0-4fd8-bfb5-0177afe207aa" /> ## To review - create a file storage bucket, enable object versioning and set some lifecycle policy values - once created, go to /project/_/storage/files/policies and find the bucket policies or navigate to it from the "Edit bucket settings" via the "View rules" button <img width="1133" height="725" alt="Screenshot 2026-10-27 at 14 50 52" src="https://github.com/user-attachments/assets/ef014f7a-5db6-413a-af53-a5648309b2c3" /> - adding extra policies should result in a "This bucket has a custom lifecycle policy" message in the edit bucket modal <img width="557" height="130" alt="Screenshot 2026-10-27 at 14 52 23" src="https://github.com/user-attachments/assets/cde29748-65d9-45b5-a54b-55737d78d311" /> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |