Commit Graph
3 Commits
Author SHA1 Message Date
Mert YEREKAPAN 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
2026-12-04 10:46:11 +10:00
Lukas Klingsbo 8963a05479 chore(studio): drop anon key wording from connect snippet placeholders (#51793)
## Problem

Several snippets in the dashboard Connect sheet still mention anon keys
in placeholder text, even though publishable keys are now the
recommended client key:

- Swift, Kotlin, Expo, Ionic React and Ionic Angular show `<prefer
publishable key instead of anon key ...>` when the project has no
publishable key.
- Astro, Nuxt, Refine, TanStack, Flask and the three .NET snippets fall
back to `your-anon-key` when the project has neither key.
- Ionic React stores the key in a variable called `supabaseAnonKey`.

## Solution

- Both placeholders become `your-publishable-key`.
- The Ionic React variable becomes `supabaseKey`, matching the other
snippets.

Snippets that switch to `*_ANON_KEY` environment variables for projects
with only legacy keys (Next.js, Vite, SvelteKit and others) are
unchanged. There, `your-anon-key` still matches the variable name.

The Flutter snippet is handled separately in #51792.

## Review instructions

1. Open the Connect sheet for a project without a publishable key.
2. Go through the frameworks listed above and check that the
placeholders say `your-publishable-key`.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-10-16 13:30:08 +02:00
Guillaume Faas 7625a0353e feat(studio): add dotnet framework to Connect flow (#51257)
## Feature

Add a ".NET" option to the "Connect" flow in the Dashboard, with several
variants.

## 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 |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-staging-git-guillaumefaas-sdk-1881-add-s-537090-supabase.vercel.app/)
| Add .NET option in Connect |

## Review instructions

1. Click on the "Connect" button when on a project page
2. Select ".NET" in the frameworks drop-down
3. Verify the 3 variants (ASP.NET Core, Unity, Console)

## 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)
2026-10-12 10:34:54 +02:00