mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
30833db87e005e4ef0257eaed728ea569b03c359
1763
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2182a9100f |
fix(docs): nav first paint (#52679)
## Problem - the docs nav experiment from #52191 hides the top bar links and the sidebar nav until the feature flags load - the flags load after auth, posthog and configcat, so each visitor waits up to 1s after hydration ## Solution - changes the docs nav to show the server links on first paint, so most visitors do not wait for the flags - adds a cache of the experiment value from the last visit, so a returning visitor gets their variant at hydration - adds a head script that hides the nav only for visitors cached on option-1, so the control menu does not flash - fixes the nav swap when the posthog request fails, because the nav keeps the cached variant - fixes the stale option-1 cache after the flag is deleted, because the cache saves `false` when posthog returns no flag - changes the experiment exposure to wait for loaded flags, so a stale cached variant is never recorded <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/docs/guides/auth](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth) on desktop and reload the page 2. make sure that the top bar links and the sidebar nav show on first paint 3. open [/docs/guides/auth?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth?docs-ia-mvp-v1=option-1) and make sure that the top bar shows "Develop and deploy" and "Run and manage" 4. at a mobile width, open the menu and make sure that the menu sections show 5. run `pnpm --filter docs exec vitest run features/IaNav` and make sure that all 18 tests pass ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
1d50816f47 |
docs: enforce duplicate ID a11y rules and fix duplicates (#52720)
Closes DOCS-1573 ## Problem Recently, @antlio surfaced that our side nav was visually breaking. This is caused by a duplicate-id issue. The docs E2E axe scan reports duplicate `id` attributes as a warning only, so pages with duplicate IDs ship. A full scan of production guides found duplicate IDs on 25 of 586 pages. **Causes:** - **Repeated headings:** a page uses the same heading text twice, for example `#### Example` under two sections. Each heading slugs to the same ID. - **Pricing partials:** three usage pages put `## Pricing` directly above a shared partial that starts with its own Pricing heading. - **Components:** Mermaid diagrams hardcode SVG marker and node IDs. The Apple secret generator renders `id="undefined-optional"` on each field label. Each "Build it" listing on the Supabase way page renders `#build-it`. ## Solution - **Enforce the rules:** add `duplicate-id`, `duplicate-id-active`, and `duplicate-id-aria` to `ENFORCED_RULES`. - **Repeated headings:** give each later duplicate a `[#parent-section-heading]` anchor. The first occurrence keeps its ID. - **Pricing headings:** remove the page heading above the three partials that start with `## Pricing`. The PITR partial starts with `### Pricing`, so it gets `[#pitr-pricing]` and the page keeps its H2. - **Mermaid:** prefix the SVG IDs of each diagram with `useId()`. - **Apple secret generator:** give each field an ID. The label now also points at its input. - **Content listings:** add an optional `headingAnchor` to listing groups, and set it on the repeated "Build it" groups. - **pg_net:** the `http_delete` signature had `[#post-signature]`, copied from `http_post`. It is now `[#delete-signature]`. **Cross-references:** no link in the repo targets a changed ID. Each first occurrence keeps its ID, so existing links resolve to the same heading as before. **Not changed:** the www suite and `packages/ui-patterns`. All fixes stay in `apps/docs`. **Verification:** - Against production, `/docs/guides/platform/manage-your-usage/log-drains` fails the @a11y test with `duplicate-id`. - Against a local docs server, the @a11y test passes on all 28 changed or affected pages. **Unverified:** a full-site run with `A11Y_ENFORCE_ALL=1`. Run it against the preview before merge. ## Review instructions 1. From `e2e/docs`, run the a11y test against production. See it fail with `duplicate-id`: ```bash DOCS_E2E_PAGE_PATHS=/docs/guides/platform/manage-your-usage/log-drains PLAYWRIGHT_BASE_URL=https://supabase.com pnpm exec playwright test --grep @a11y ``` 2. Run the same command with `PLAYWRIGHT_BASE_URL` set to the docs preview URL from the Vercel bot comment. See it pass. 3. On the preview, open `/docs/guides/platform/manage-your-usage/log-drains`. In the table of contents, select **Pricing** under **Log Drain Events**. See the page scroll to the second Pricing section. 4. On the preview, open `/docs/guides/integrations/partner-integration-guide`. See both sequence diagrams render with arrowheads. ## 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) |
||
|
|
5a1e59eb2e |
docs: add Claude as ID-JAG issuer for MCP Enterprise-Managed Auth (#52021)
## Problem Anthropic now lets Claude issue the ID-JAG for enterprise-managed MCP auth when a customer's identity provider can't. No Supabase code change is needed: the platform already validates ID-JAGs against whichever issuer URL the organization configures. The page called the feature "enterprise-managed authentication." It implements the MCP spec's Enterprise-Managed Authorization extension and is built on an RFC 7523 authorization grant. Authentication stays with the IdP. The Studio field description had the same wrong word. ## Solution **New section, "Using Claude as the ID-JAG issuer."** Covers the Claude-side steps (Organization settings > Connectors > Supabase > Managed authorization > Set up, copy the Issuer URL, leave Tenant ID empty), the Supabase-side step (same ID-JAG Issuer field), and the connection test. Two constraints were verified against our platform code: one issuer per SSO provider so the Claude URL replaces the IdP URL and members need an SSO identity in Supabase. The third, that a Claude-issued ID-JAG attests Claude-org membership rather than an IdP session, comes from Anthropic's partner guide. **Rename to "enterprise-managed authorization."** Page title, headings, body, SSO guide section, nav label (title case, matching sibling entries), and the Studio description. The slug moves to `enterprise-mcp-authorization` with a permanent redirect from the old path in `apps/www/lib/redirects.js`. The Studio "Learn more" link and the two published blog posts that linked the page point at the new slug directly. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Ana <30495040+ana1337x@users.noreply.github.com> Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
fca0f99354 |
docs: move the explain() guide to guides/api/query-plans (#52471)
Closes DOCS-1496 ## Problem The Debugging performance issues page is moved to the Data API as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). The [docs tree tests](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests) in supabase/evals drove the rename. Each test gives an agent a developer goal and only the navigation labels, with no page content and no search. - **The task:** [one test](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests/investigate-tree-036-client-call-execution-plan) asks how to see the plan Postgres uses for a slow supabase-js `.from('orders').select()` call. Its answer is this page. - **Today's label:** the page sits under Database as "Debugging performance issues". That label names a symptom many pages share, not the tool the page teaches. - **The change:** round 4 of the tests split the `explain()` content into its own topic, labeled "Query plans with explain()" and placed in Data API, Tools, next to the other client tools. Option 1 fixed every task its new topics targeted. - **Why the whole page moves:** `explain()` is the only thing the page covers, so a split would leave an empty source. The page takes the topic's label as its title. ## Solution - **Move, not split:** the whole page covers `explain()`, so a split would leave an empty source. The page moves to `guides/api/query-plans`, and the old URL redirects there. The existing `api/rest/debugging-performance` redirect now points straight to the new URL, so there's no chain. - **Anchors:** the four H2s keep their anchors, so the client reference link to `#enabling-explain` resolves through the redirect. The two H3s, Example data and Expected response, are gone. Nothing links to them. - **Navigation:** both entries in today's navigation point to the new URL, with the label "Query plans with explain()". In Option 1, the Data API, Tools entry points to the new page, and the Database entry is gone, since it would list the page twice. This was the last Option 1 topic that linked to a section of its source page, so the test that tracked those topics is removed. - **Inbound link:** Realtime reports links to the new URL. - **Cross-links:** the page links Query Performance for finding slow queries, Query optimization for plans of SQL you run yourself, Row Level Security performance for slow policies, and the `explain()` client reference. Query optimization and Row Level Security performance link back to it. - **Guide shape:** a value-statement opener with the reason `explain()` is off by default, and the sample table before the query that reads it. The SQL samples have no comments, and the `format` option has an example. Production readers are told to set up the filter before enabling, and the options paragraph warns that `analyze` on a write changes data. - **Row Level Security performance:** the caution about restricting plans now sits above the step that enables them. - **Sample fix:** `pgrst.db_pre_request` holds one function, so the production step now checks for an existing one and says to call the filter from it. The disable step clears the pre-request setting only for readers who set the filter directly. The filter function sets `search_path`, so the Security Advisor doesn't flag it. It matches the `Accept` header case-insensitively anywhere in the list, because PostgREST accepts `Application/vnd.pgrst.plan+text` and the old prefix check let it through. The check for an existing pre-request function reads `pg_db_role_setting`, which also shows per-database settings that `pg_roles.rolconfig` leaves out. When both a global and a per-database setting exist, the page says PostgREST uses the per-database one. The function is created and set as `public.filter_plan_requests`, because PostgREST resolves an unqualified name against the requested schema first. After the filter, the page says the Supabase Platform sets `cf-connecting-ip`, and that a self-hosted project needs a header its proxy overwrites. ### Verification `test-the-docs`, local stack, Supabase CLI v2.39.2. Each SQL fence ran in document order. The `supabase-js` calls were checked through the HTTP request they send, with `Accept: application/vnd.pgrst.plan`. | Step | Result | | --- | --- | | Plan request before enabling | 406, as expected | | Enable, then request a plan | 200, text plan, and JSON with `+json` | | Sample table, no extra grant | readable by `anon` | | Pre-request filter with `set search_path = ''`, non-matching IP | 401 `Not allowed to use application/vnd.pgrst.plan`, normal requests 200 | | Filter, mixed-case `Application/vnd.pgrst.plan+text` | old filter 200 with a plan, new filter 401; matching IP 200 | | Insert plan with `options=analyze` | row persists after the request; without `analyze`, no row | | Existing-function check with an `in database` setting | `pg_db_role_setting` shows it, `rolconfig` doesn't | | Disable | plan requests 406, normal requests 200 | | `cf-connecting-ip` on a hosted project | checked in review on a test project: Cloudflare sets it, and a request that sends its own value is rejected at the edge with `error code: 1000` | ### Not verified - **Deferred:** the TypeScript fences, because the sandbox runs Node only for example apps. The plan values in the example response come from the old page and differ slightly from a local run. - **Old links left on the redirect:** the client reference specs (`supabase_{dart,py,kt,swift}`), the supabase-js doc comment, and one `www` blog post still link to the old URL. ## Manual testing 1. Open [Query plans with explain()](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/api/query-plans). See the enable, use, production, and disable sections. 2. Open [the old URL](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/database/debugging-performance#enabling-explain). See it redirect to the new page at Enabling `explain()`. 3. In the Database sidebar under Debugging, click **Query plans with explain()**. See the new page open. |
||
|
|
86848fc036 |
docs: move the production security checklist to its own page (#52466)
Closes DOCS-1494 ## Problem The Security section of the Production checklist is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `## Security` to `guides/security/production-checklist`. The production checklist keeps the heading, and its `#security` anchor, with a one-sentence pointer. The page is in the Security sidebar under Guides, after Production Checklist. - **Option 1 navigation:** the "Production security checklist" entry in Run and manage, Security and compliance, points to the new page. The Option 1 test no longer expects the anchor. - **Page shape:** a value-statement opener with the situations that call for the checklist, then the items grouped under Database, Account and organization, Auth, and Threat review. Each group opens with a lead-in that says what its checks protect. - **Inbound links:** two Studio linter entries for OTP settings, the Studio Auth providers form, and `auth/auth-email-passwordless` now point to `production-checklist#auth`. The password length lint points to the password security guide instead, since the checklist has no password item. They used to land on `going-into-prod#security`, which is a pointer now. - **Claim fixes:** - The replication item told readers to enable replication on sensitive tables. It now says to enable RLS on replicated tables that hold sensitive data. - The Auth items named **Authentication > Providers**. The Dashboard label is **Sign In / Providers**. - **Terminal path:** the Auth group links the Management API endpoint for its settings. The Database items link to guides that carry CLI or SQL paths. - **Review fixes:** a note that RLS doesn't filter Postgres Changes `DELETE` events, a SQL path for publications, and the other email links the OTP expiry controls. - **Agent prompt:** after the opener, a copyable `AiPrompt` that has an agent audit the project read-only and report each item as pass, fail, or can't check. It reads Security Advisor and the tables through the Supabase MCP server, and SSL, network restrictions, Auth settings, and org members through Management API GET endpoints. `includeInMarkdown` is on, so the `.md` carries the prompt as a fenced text block. - **Cross-links:** Testing auth flows points to the checklist's Auth group, and the Security overview and Product configuration pages link the checklist. The custom SMTP item links the SMTP guide. ### Not verified - **Deferred samples:** none. The page has no code samples. - **Agent prompt:** its endpoints and fields match `api_v1_openapi.json`, and `Owner` matches Studio's role name. No agent has run it against a hosted project. - **Studio:** the link changes are strings only. Studio tests and build run on this PR because it touches `apps/studio`. ## Manual testing 1. Open [Production security checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist). See the agent prompt below the opener and four groups of checks. Click **Copy** and see the prompt text. 2. Open [Production checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security). See the Security heading with a one-sentence pointer to the new page. 3. In the Security sidebar under Guides, click **Production security checklist**. See the new page open. |
||
|
|
d97a410577 |
docs: add a Supabase CLI v2 to v3 migration guide (#52147)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs update ## What is the current behavior? There's no page covering the breaking changes between Supabase CLI v2 and v3. v3.0.0 was released on 2026-11-02. ## What is the new behavior? Adds a migration guide at `/docs/guides/local-development/cli/migrating-to-v3`, linked from the Local Dev / CLI nav just under "Install and run the CLI". It's modelled on [Vite's migration guide](https://vite.dev/guide/migration): a short summary, what to do before upgrading, how to install (or stay on v2), a CI quick-reference table, then one section per change, ending with the removed commands, flags, config keys and env vars as tables. The content comes from the `BREAKING CHANGE` footers of the breaking PRs on supabase/cli `next`, checked against the code there: supabase/cli#6609, supabase/cli#7064, supabase/cli#7066, supabase/cli#7074, supabase/cli#7109, supabase/cli#7116, supabase/cli#7172, supabase/cli#7176, supabase/cli#7188 and supabase/cli#7221. ## Additional context The page describes v3.0.0 as released: npm `latest`, Homebrew, Scoop and the Linux packages all install v3. The "Staying on v2" channels are live with v2.122.1: npm `v2.stable`, `supabase/tap/supabase@2`, `supabase-v2-stable` on Scoop, and `version: v2.stable` or a semver range like `^2` on `supabase/setup-cli@v3` (ranges need v3.2.0). It also updates about 60 existing guides and troubleshooting pages for v3. Hosted examples pass `--remote`, CI examples that change a hosted project pass `--yes`, deprecated target flags and removed commands are replaced, and pages that described migra as the default now describe pg-delta. It adds a new concept page, "Running commands against local and hosted projects" at `/docs/guides/local-development/local-and-hosted-projects`, linked from the Local Dev nav after "Local development workflow". It covers how a command picks its target (local by default, `--remote` and its forms, the linked project, the `Target:` line), how settings resolve (flag, then shell env, then project env files, then config), and when the CLI asks before changing a hosted project (`--yes`, `SUPABASE_YES`, `--dry-run`, seeding), with a CI recipe and a section for AI coding agents. The migration guide links to it from its target, consent and config sections. Tracks CLI-2747 🤖 Generated with [Claude Code](https://claude.com/claude-code) |
||
|
|
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) |
||
|
|
7e5748ba6b |
docs: move team member role mapping to its own page (#52476)
Closes DOCS-1498 ## Problem The Configure user access section of Temporary access is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `## Configure user access` to `guides/platform/team-database-access`. Temporary access keeps the heading and its anchor, with a one-sentence pointer. The page is in the Platform sidebar after Temporary Access. - **Option 1 navigation:** the "Map team members to Postgres roles" entry in Run and manage, Team, points to the new page. The Option 1 test no longer expects the anchor. Today's navigation uses the same label, at 34 characters. - **Guide shape:** a value-statement opener with a short definition of a role mapping, Prerequisites, then steps to authorize a team member and to restrict their access. Each list has a lead-in. - **Sample fixes:** - The request sent the role list as `user_roles`. The Management API requires `roles`. - `expires_at` was in milliseconds. It takes Unix seconds, which the Dashboard sends. - A new step looks up the team member's user ID through the organization members endpoint. The old sample used a placeholder with no way to find the value. ### Not verified - **Samples:** the Management API calls need a hosted project, so `test-the-docs` can't run them. I ran them by hand against a hosted project. ## Manual testing 1. Open [Map team members to Postgres roles](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/team-database-access). See the prerequisites, the steps to authorize a team member, and the restrictions. 2. Open [Temporary access](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/temporary-access#configure-user-access). See the Configure user access heading with a one-sentence pointer to the new page. 3. In the Platform sidebar, click **Map team members to Postgres roles**. See the new page open. |
||
|
|
340101642a |
docs: move preview branches on Vercel to its own page (#52473)
Closes DOCS-1497 ## Problem The Vercel section of Branching integrations is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution Split out the old section into a new one with `/edit-the-docs` and `/test-the-docs`. ## Manual testing 1. Open [Preview branches on Vercel](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/integrations/vercel-preview-branches). See the prerequisites, two steps, and the After you connect section. 2. Open [Branching integrations](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/deployment/branching/integrations). Under **Hosting providers**, see a one-sentence pointer to the new page, with no Vercel heading. 3. In the Branching sidebar, click **Preview branches on Vercel**. See the new page open. 4. In the Integrations sidebar, click **Preview branches on Vercel**, after **Vercel Marketplace**. See the new page open with the Integrations sidebar. |
||
|
|
e928d28e69 |
feat(ui-patterns): top nav menu (#52501)
## Problem - kb and docs each keep their own copy of the top bar menu and its buttons - the kb bar has no search box, and the docs bar has one on the right ## Solution - adds a shared top nav to `ui-patterns`, so kb and docs use one megamenu and one set of bar buttons - replaces the docs desktop dropdowns with the megamenu, so docs and kb show the same menu design - adds a heading to the first column of each docs menu, so the reader sees which group a list belongs to - adds the search box and a "sign up" button label to the kb bar, so it matches docs | state | preview | | -------|------| | before | <img width="1506" height="350" alt="image" src="https://github.com/user-attachments/assets/3045d400-4ac0-41d7-a94f-acc23fa919fa" /> | | after | <img width="1506" height="350" alt="image" src="https://github.com/user-attachments/assets/334e5130-611a-4eb7-a95a-c796e2bbcf80" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open the kb and docs preview links above in desktop 2. on kb, hover "topics" and make sure that the panel opens under the bar 3. click the search box and make sure that the kb search dialog opens 4. on docs, open [/docs/guides/auth](https://docs-git-antlio-feat-shared-top-nav-supabase.vercel.app/docs/guides/auth) and make sure that the "products" label has an underline 5. open each docs menu and make sure that the first column has a heading 6. make sure that the menu button opens and closes the mobile menu in kb and docs ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
57b659d47f |
docs: move slow and failing query logging to its own page (#52469)
Closes DOCS-1495 ## Problem The `log_min_duration_statement`, `auto_explain.*`, and `log_min_error_statement` sections of Postgres log configurations are split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `log_min_duration_statement`, `auto_explain.*`, and `log_min_error_statement` to `guides/observability/log-slow-queries`. Postgres log configurations keeps each heading and its anchor, with a one-sentence pointer. The page is in the Database sidebar after Postgres log configuration. - **Option 1 navigation:** the "Log slow and failing queries" entry in Run and manage points to the new page. The Option 1 test no longer expects the anchor. `/edit-the-docs` and `/test-the-docs` ran as well. - **Cross-links:** the Customizing Postgres config table links this guide from its `auto_explain.*`, `log_min_duration_statement`, and `log_min_error_statement` rows, and the intro links Query logs with SQL for searching the logs. ## Manual testing 1. Open [Log slow and failing queries](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/observability/log-slow-queries). See the slow queries, query plans, errors, and restore-defaults sections. 2. Open [Postgres log configurations](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config#logmindurationstatement). See the heading with a one-sentence pointer to the new page. 3. In the Database sidebar, click **Log slow and failing queries**. See the new page open. |
||
|
|
e79adc4a42 |
docs: move leaked API key rotation to its own page (#52465)
Closes DOCS-1493 ## Problem The Rotate a leaked or compromised key section of API keys is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `### Rotate a leaked or compromised key` to `guides/security/rotate-leaked-api-keys`. API keys keeps the heading and its `#leaked-key` id, with a one-sentence pointer. The page is in the Security sidebar under Guides, since its URL selects that sidebar. - **Option 1 navigation:** the "Rotate a leaked API key" entry in Run and manage, Security and compliance, points to the new page. The Option 1 test no longer expects the anchor. Run /test-the-docs and /edit-the-docs. ## Manual testing 1. Open [Rotate a leaked or compromised API key](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/security/rotate-leaked-api-keys). See the create, replace, and retire sections, with Dashboard and Management API tabs. 2. Open [API keys](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/getting-started/api-keys#leaked-key). See the heading with a one-sentence pointer to the new page. 3. In the Security sidebar under Guides, click **Rotate a leaked or compromised API key**. See the new page open. |
||
|
|
76f3d06a8b |
docs: add Test Row Level Security policies with pgTAP guide (#52344)
Closes DOCS-1499 ## Problem The testing overview teaches RLS tests, in pgTAP and from application code, in sections that have grown into their own task. ## Solution This goes above and beyond the initial ask, which was just to move a section into a new topic. Because I was here anyway, I aimed to improve the experience and improve our RLS Evals score on tests. A companion Evals PR will split out a new Eval for the new topic, migrating the checks that were in the RLS guide. Some fixes are also included from running our docs skills, including: - **Structure:** move the pgTAP example and the Application-Level testing section to `guides/database/postgres/testing-row-level-security`. The overview keeps both headings, each with a short pointer. The "RLS policies testing" nav entry points to the new page, and so does "Test RLS policies with pgTAP" in the Option 1 nav. - **Style:** a value-statement opener, lowercase SQL, and the command split from its output. - **Technical fixes:** test 2 asserts the `returning` value. Test 4 uses `is_empty`. The output is the output `supabase test db` prints. - **Additions:** `supabase start`, the table as a migration applied with `supabase db reset`, and two sentences on how the test isolates its data and user. A note for readers who use an agent to write their tests, linking to a `## Write quality tests with agents` reference section. One sentence in the RLS guide's `### Run the test suite` links to that section. ## Review instructions 1. Open [Test Row Level Security policies with pgTAP](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/testing-row-level-security) on the preview. See five steps and a passing `Tests=4` output. 2. Open [Testing overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#database-unit-testing-with-pgtap). See the heading with a one-sentence pointer to the new page. 3. In the sidebar under Local development, Testing, click **RLS policies testing**. See the new page open. 4. On the [Testing overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#application-level-testing), click **Test the policy from your application**. See the TypeScript suite on the new page. 5. On the new page, click **Write quality tests with agents** in the agent note's prompt. See the five rules for agents near the bottom of the page. 6. On [Row Level Security](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/row-level-security#run-the-test-suite), click **Write quality tests with agents** under Run the test suite. See the new page open at that section. 7. Open the [Database guides with the Option 1 nav](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1). Under Row Level Security, roles and Vault, click **Test RLS policies with pgTAP**. See the new page open. |
||
|
|
9b1ddcab93 |
chore: Remove old search code and add contributing documentation plus local dev flow (#52487)
## Problem We decided to keep the search_v2 experiment. ## Solution Delete all files related to the variant experimentation, old components and ingest flow. <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. Open the docs preview 2. Search V2 should be the default search ## 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) |
||
|
|
b27694b1d4 |
docs: add TanStack DB reference page (#51086)
## Problem `supabase/tanstack-db` (a frontend data layer syncing TanStack DB collections with Postgres via Supabase) has no reference documentation on supabase.com/docs. ## Solution Adds a new `/reference/tanstack-db` SDK reference page documenting `supabaseCollectionOptions()`, `queryOnce()`, and live-query/mutation usage. Since the package has no TypeDoc pipeline (unlike `middleware`/`server`), it uses the legacy hand-written YAML spec pattern already used for Python, Swift, C#, and Dart v1 (`apps/docs/spec/supabase_tanstack_db_v1.yml`), wired into `navigation.references.ts` and the sidebar/breadcrumb constants the same way as the existing `middleware` entry. Content is sourced from the public `supabase/tanstack-db` README and source, since there's no internal ticket for this. ## Review instructions 1. Run `pnpm run codegen:references:legacy` in `apps/docs` and confirm `features/docs/generated/tanstack_db.v1.*.json` are generated. 2. Start local Supabase (`pnpm supabase start`) and `pnpm dev:docs`, then visit `/docs/reference/tanstack_db` and confirm the sidebar entry and content render. ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Tiago Antunes <tiagoantunespt@gmail.com> |
||
|
|
4b7af187a4 |
feat(docs): add Option 1 navigation behind the flag (#52191)
Closes DOCS-1469 ## Problem Option 1 in the navigation proposal groups the docs into Start, Build, Develop and deploy, Run and manage, Self-Hosting, Reference, and Resources. The `docs-ia-mvp-v1` flag from #52049 switches to an Option 1 config. That config is still a copy of today's navigation. ## Solution - **Top nav:** reads Start, Build, Develop and deploy, Run and manage, Self-Hosting, Reference, and Resources. Menus still open sidebars by URL prefix, as they do today. - **Run and manage:** pages under `/guides/platform`, `/guides/security`, and `/guides/observability` share one sidebar with the outline's seven groups. - **Other sidebars:** follow the outline. REST, GraphQL and Realtime share one sidebar, and Cron and Queues share one sidebar. - **Seven new topics:** keep their outline labels and link to the section on their source page, for example `getting-started/api-keys#leaked-key`. - **No flash of today's nav:** flags load in the browser, so the nav stays invisible until the query param or the flags resolve, with a 1-second fallback. The links stay in the HTML for agents. - **Tests:** each page appears once across the sidebars, and every link goes to a page in today's navigation. With the flag off, `useNavItems` returns today's navigation. **Not changed:** no URLs move. Breadcrumbs still show today's trail, which DOCS-1470 covers. ## Manual testing 1. Open [Database Backups with the flag on](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/platform/backups?docs-ia-mvp-v1=option-1). The top nav reads Start, Build, Develop and deploy, Run and manage, Self-Hosting, Reference, and Resources. The sidebar shows the seven Run and manage groups. 2. Open [the same page with the flag off](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/platform/backups?docs-ia-mvp-v1=control). Today's navigation shows. 3. Open [Database with the flag on](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1). The sidebar starts with Connect to your database. 4. In the sidebar, open Row Level Security, roles and Vault, and select Test RLS policies with pgTAP. The testing overview opens at Database unit testing with pgTAP. |
||
|
|
ee8cc9cff1 |
test(docs): fail navigation levels with 10 or more items (#52190)
Closes DOCS-1462 ## Problem A navigation level with many items is hard to scan. Today, 18 levels in the docs navigation have 10 or more items, such as Platform > Platform Configuration. Nothing stops a PR from adding more. ## Solution - **Level size check:** `NavigationMenu.levels.nav-check.test.ts` walks the top nav and every sidebar. A level with 10 or more items fails the test, which names the level. - **Allowlist:** starts with today's 18 levels, so CI is green on merge. A level that drops below 10 items also fails until you remove it from the list. - **Option 1:** the check runs on the flagged navigation from #52049 too, with its own allowlist. - **Navigation checks workflow:** `docs-navigation-checks.yml` runs every test named `*.nav-check.test.ts`, only when the navigation config or a check changes. The general docs test job skips these tests. A later navigation guard only needs that file name. ## Manual testing 1. Run `pnpm --prefix="apps/docs" run test:nav-checks`. Both tests pass. 2. In `NavigationMenu.constants.ts`, add five items to Security > Product security, and run the command again. Both tests fail and list `Security > Product security`. |
||
|
|
d1dcb57bdf |
feat(www): use the shared AiTools component on www pages (#52186)
## Problem Docs guides, docs troubleshooting pages, and knowledge base guides render the shared `AiTools` component from `ui-patterns`. The marketing site renders its own copy of the same actions in `MarkdownActions`, with the same styles and links. A change to one doesn't reach the other. Resolves [DOCS-1505](https://linear.app/supabase/issue/DOCS-1505/use-the-shared-aitools-component-on-www-pages). ## Solution Blog posts, customer stories, event pages, changelog entries, and pricing render `AiTools` through a www wrapper, and `MarkdownActions` is deleted. The wrapper sends `copy_as_markdown_clicked` and `ask_ai_clicked` with each page's type, as `MarkdownActions` did. - **Prefer on Google:** blog posts show the Prefer on Google link through `AiTools`, and clicks send `preferred_source_clicked`. #52026 proposed adding the link through `MarkdownActions`. This PR adds it through `AiTools` instead, and #52026 is closed. The link's URL is a shared constant in `markdown-affordance.ts`, which the docs wrapper also uses. - **Horizontal layout:** `AiTools` has an `orientation` prop. Pricing uses it to keep the actions in a row under the hero. The design system's AI Tools page documents it. - **Headings:** `AiTools` adds an "AI tools" heading: - Blog posts style it like the sidebar's On this page label. - Pricing, customer stories, and event pages hide it visually, so they look as they do on the live site. Screen readers still announce it as the section's label. - Changelog entries give AI tools its own sidebar section, like Change type and Products. The Links section appears only when an entry links to a GitHub discussion. The changelog index keeps `ChangelogLlmMarkdownButton`. It's a split button in the header toolbar, and `AiTools` is a list of links built for sidebars. ## Preview links Compare the before and afters (since there's a lot of examples here, links are less visually busy than images in this case): | Site | Live | Preview | | ------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | WWW | [/blog/give-your-supabase-app-its-own-mcp-server](https://supabase.com/blog/give-your-supabase-app-its-own-mcp-server) | [/blog/give-your-supabase-app-its-own-mcp-server](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/blog/give-your-supabase-app-its-own-mcp-server) | | WWW | [/pricing](https://supabase.com/pricing) | [/pricing](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/pricing) | | WWW | [/customers/berriai](https://supabase.com/customers/berriai) | [/customers/berriai](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/customers/berriai) | | WWW | [/events/agency-webinar-ai-prototyping-production](https://supabase.com/events/agency-webinar-ai-prototyping-production) | [/events/agency-webinar-ai-prototyping-production](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/events/agency-webinar-ai-prototyping-production) | | WWW | [/changelog/cbc-tls-ciphers-deprecated](https://supabase.com/changelog/cbc-tls-ciphers-deprecated) | [/changelog/cbc-tls-ciphers-deprecated](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/cbc-tls-ciphers-deprecated) | | WWW | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://supabase.com/changelog/17817-pgbouncer-and-ipv4-deprecation) | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/17817-pgbouncer-and-ipv4-deprecation) | | Design system | [/design-system/docs/fragments/ai-tools](https://supabase.com/design-system/docs/fragments/ai-tools) | [/design-system/docs/fragments/ai-tools](https://design-system-git-alexisa-docs-1505-supabase.vercel.app/design-system/docs/fragments/ai-tools) | ## Review instructions 1. Open each live and preview link side by side. 2. On pricing, check that the actions sit in the same row under the hero. 3. On the blog post, check that the "AI tools" heading matches the On this page label. 4. On the blog post, check that Prefer on Google appears in the sidebar and at the end of the post on mobile. 5. On both changelog entries, check that AI tools has its own sidebar section. Links appears only on the pgbouncer entry, which links to a GitHub discussion. 6. On each page, click Copy as Markdown, Ask ChatGPT, and Ask Claude. On the blog post, also click Prefer on Google. In the browser's network tab, check that each telemetry request includes the page's `pageType`. 7. On the design system page, check the Horizontal layout example. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
447cfa5227 |
feat(docs): add docs-ia-mvp-v1 flag for the new navigation (#52049)
Closes DOCS-1464 ## Problem The new docs navigation, Option 1, needs an A/B test against today's navigation. The docs app has no flag that switches the navigation per visitor. `docs:*` keys in this repo are build-time toggles from `enabled-features`. They are the same for every visitor, so they can't run an A/B. The flag is `docs-ia-mvp-v1`, a PostHog multivariate flag, like `docs-search-v2`. ## Solution - **Variant hook:** `useIaNavVariant` reads `docs-ia-mvp-v1` and returns `control` or `option-1`. It copies `useSearchV2Variant`. It returns `control` until the flag resolves, records exposure once resolved, and respects consent. - **Query param override:** `?docs-ia-mvp-v1=option-1` or `?docs-ia-mvp-v1=control` forces a variant for dogfooding and evals. A forced variant records no exposure. - **Option 1 config:** `features/IaNav/option1.constants.ts` re-exports today's navigation constants. An export defined in that file replaces the re-exported one, so Option 1 in DOCS-1469 overrides only what changes. - **Consumers:** The top nav, the mobile menu, and the guide sidebar read from `useNavItems`, which picks the config for the variant. **Not changed:** Reference sidebars, breadcrumbs, and hub pages. Breadcrumbs and hub pages can read `useIaNavVariant` in DOCS-1470 and DOCS-1471. **PostHog:** The flag doesn't exist in PostHog yet. Until it does, every visitor gets `control`, and the query param still works. ## Manual testing 1. Open [Auth with Option 1 forced](https://docs-git-docs-ia-nav-flag-supabase.vercel.app/docs/guides/auth?docs-ia-mvp-v1=option-1). The top nav and sidebar match today's navigation, because the Option 1 config is a copy. Locally, you can make a change to see the variant. 2. Open [Auth with no param](https://docs-git-docs-ia-nav-flag-supabase.vercel.app/docs/guides/auth). The navigation is unchanged. |
||
|
|
051d5f79da |
chore(docs) - remove troubleshooting guides and rendering logic (#52339)
## Problem Dupe content and workflows when this content now all lives in the KB. ## Solution Removes various artifacts from the docs repo (content files, github workflows, etc.) from the docs app. These paths have already been redirected to /kb in #52095 and we haven't seen any meaningful 404 traffic indicating the redirects were done incorrectly. ## Preview links TBD |
||
|
|
a9f56b3c4a |
feat(ui): mobile nav drawer (#52177)
## Problem on mobile docs pages with a sidebar have two menu buttons: the burger opens the global menu, and a second bar opens the sidebar while kb has its own full-screen accordion menu making two apps sharing no mobile nav code ## Solution - adds `MobileNavDrawer`, `MobileNavTabs` and `MobileNavThemeButton` to `packages/ui-patterns/src/MobileNav` - makes docs and kb use the same three parts - adds a full-width drawer in `MobileNavDrawer` under `--header-height`. It sets `inert` while it is closed - adds a tab row in `MobileNavTabs`, with a dropdown below `@xl` to avoid multiple tab lines - adds a theme button in `MobileNavThemeButton`. Each tap moves to the next theme in `singleThemes` - shows the group tabs, the theme button and the links of the selected group above the sidebar | before | after | | -------|------| | <img width="619" height="802" alt="image" src="https://github.com/user-attachments/assets/09d441c6-b4f3-4768-bb29-1e1d4f23fad1" /> | <img width="619" height="802" alt="image" src="https://github.com/user-attachments/assets/53043083-f05f-45aa-b30e-3db6fccdd443" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. For example, `Open the live and preview links side-by-side.` 2. For example, `See the issue is fixed.` ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
5bdb7399e8 |
docs: add "The Supabase way to build" getting started guide (#50283)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? A getting-started page that sits between the architecture overview (what the pieces are) and the existing guides (how to build one). Explains which product features to add, and when, as you are building. ## What is the current behavior? - Architecture lists the services. Quickstarts show one setup. Nothing says which block to add next. ## What is the new behavior? The page tells you which Supabase piece to add next. The links open the guide that shows you how. A short table at the top maps a need to a piece: store data, know who is calling, keep rows private, handle files, run server logic, show live updates, go to production. Under that are the same seven pieces, in the order most apps grow. Stop at the last one your app needs. Every section has the same four parts: - The situation that means you need this piece - The idea to remember - The mistake to avoid - A few links to the existing guide One warning sits in the database section. The Next.js quickstart leaves its sample table public so the page can load. Come back here before that table holds private data. ## Additional context - Page: `the-supabase-way-to-build.mdx`. Tiles: `the-supabase-way-to-build.data.ts`. Nav: second item under Build with AI tools. - Explainer only. It links out for the how. - Needs an SME read. Placement is interim. ### [The Supabase way to build (Preview)](https://docs-git-nikrichers-docs-1389-experimental-the-9beaf4-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build) <img width="2222" height="15924" alt="Image2026-10-26_01-54-16_PM" src="https://github.com/user-attachments/assets/caf02275-6c7e-4b35-be7f-659953e86bd6" /> ### Test plan - [ ] Preview renders, and the sidebar entry is second under Build with AI tools. - [ ] Each section has a Build it group of links. - [ ] Database stage points at API keys and says the quickstart's public read is temporary. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the “The Supabase Way to Build” guide, covering Database, Auth, RLS, Realtime, Storage, Edge Functions, and production hardening. - Added curated “Build it” links for each section to help readers find relevant guides. - Included guidance on securing data, files, credentials, and browser-accessible resources. - **Documentation** - Updated the Getting Started navigation to link to the new guide. - Clarified Storage policies, RLS behavior, public buckets, and secure secret management. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |
||
|
|
9084e8181b |
docs(ai): add Fireworks AI integration guide (#52193)
## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? **New docs page: Fireworks AI integration guide.** This adds `guides/ai/integrations/fireworks-ai` and covers two tasks. The first calls a Fireworks chat model from an Edge Function. The second stores Fireworks embeddings in a pgvector table and searches them from an Edge Function. Fireworks exposes an OpenAI-compatible API, so the page uses the OpenAI SDK with a Fireworks base URL. That matches the existing pattern in `guides/functions/ai-models`. Base for this stacked PR: https://github.com/supabase/supabase/pull/52246 ## What is the current behavior? - The docs have no Fireworks content. `git grep -i fireworks` across the repo returns no docs, examples, or templates. ## What is the new behavior? | File | Change | | --- | --- | | `apps/docs/content/guides/ai/integrations/fireworks-ai.mdx` | New guide covering API key secrets, **Generate text**, and **Search with embeddings** (table, RLS policy, HNSW index, `match_documents`, plus embed and search functions) | | `apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts` | Adds **Fireworks AI** under AI > Third-Party Tools, after Amazon Bedrock | | `apps/docs/content/guides/ai.mdx` | Adds a Fireworks AI card to the Integrations grid | ## Additional context - Worktree: `~/GitHub/supabase/supabase-worktrees/docs/fireworks-ai-integration` - Style: written against `apps/docs/style-guide/`, with a clean-context critic pass. Placement and page shape follow `guides/ai/integrations/amazon-bedrock.mdx`. - Fireworks facts (base URL, `FIREWORKS_API_KEY`, `accounts/fireworks/models/glm-5p3-flash`, `fireworks/qwen3-embedding-8b`, the `dimensions` parameter, unnormalized Qwen3 vectors) were checked against `docs.fireworks.ai` on 2026-10-22. | Check | Result | | --- | --- | | Page SQL on `pgvector/pgvector:pg17` (extension, table, RLS policy, HNSW index, `match_documents`) | Pass | | `match_documents` called as `authenticated` with RLS on | Pass, returns rows ranked by similarity | | Prettier on all 3 files | Pass | | Internal link targets exist | Pass (6 of 6) | | Edge Functions against the live Fireworks API | **Not run**, no Fireworks API key available | ### Needs review - **Edge Function code is untested end to end.** It follows the `withSupabase` and `jsr:@openai/openai@^6` patterns from `guides/functions/auth` and `guides/functions/ai-models`, but nobody has deployed it or called Fireworks with it yet. - **Model choices are inferred.** `glm-5p3-flash` is the model in the Fireworks quickstart. `qwen3-embedding-8b` is the serverless embedding default their docs recommend. The 1,024 dimension is my pick: it stays under the pgvector HNSW limit of 2,000 and is a supported Qwen3 output size. - **One page, two tasks.** The critic flagged `03-page-structure.md#one-unit-per-page`. I kept a single page to match the other integration pages in this folder. Splitting it is a reasonable alternative. - **Product owner sign-off.** No product spec exists for this page. Scope (inference plus embeddings) is limited to features that have already shipped. ### Proof: the guide renders on the preview and appears in the AI nav **Verified:** `Vercel – docs` check (pass) · preview page returns 200 · Fireworks AI card links from `/docs/guides/ai` (pass) [Fireworks AI guide (PR preview)](https://docs-git-nikrichers-fireworks-ai-integration-supabase.vercel.app/docs/guides/ai/integrations/fireworks-ai)  ### Test plan - [ ] Deploy `fireworks-chat`, `fireworks-embed`, and `fireworks-search` with a real `FIREWORKS_API_KEY` and confirm each returns the documented response - [x] Confirm the page renders and appears under AI > Third-Party Tools in the preview - [x] Confirm the Fireworks AI card renders on `/docs/guides/ai` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordan Lee <jordan.lee@supabase.io> |
||
|
|
fe599e8c0e |
docs(auth): add guide for testing auth flows without email and SMS limits (#52118)
Found during my dogfooding project :) ## Problem Testing magic-link sign-in on a hosted project can hit the built-in email limit after two sign-ins. A quick workaround is to turn off **Confirm email**, which is risky if it stays off at launch. The docs that would help are spread out: Mailpit appears only in the Passwords guide and the CLI pages, and test phone numbers appear only in the self-hosted phone MFA guide. Resolves [DOCS-1460](https://linear.app/supabase/issue/DOCS-1460/document-how-to-test-auth-flows-without-hitting-email-rate-limits) and [FDBKIN-16338](https://linear.app/supabase/issue/FDBKIN-16338/clarify-built-in-email-rate-limits-and-custom-smtp-requirement-for). The second is feedback from a user who hit the built-in email limit during sign-up testing and didn't know custom SMTP was needed. ## Solution A new guide, **Test auth flows**, explains how to test each sign-in method without real email or SMS limits. It opens with a link to the Supabase CLI setup that the local steps need: - **Test email flows locally:** Mailpit captures every email from local Auth, so the hosted email limit and address restriction don't apply. The steps have the reader copy the Project URL, publishable key, and Mailpit URL from `supabase status`, then swap the app's environment variables from the hosted project to the local stack. The guide also covers turning on email confirmation locally to test that flow. - **Test email flows on a hosted project:** the built-in email service's limits and the error it returns, how custom SMTP or the Send Email hook raises them, and a caution that turning off **Confirm email** also removes the hourly email limit, so it needs to be back on before launch. - **Test phone sign-in with test numbers:** fixed one-time passwords for chosen phone numbers, set in the Dashboard, `config.toml`, or the Management API. The local steps include the SMS provider settings that test numbers need, with placeholder credentials. The guide covers what test numbers skip, what still applies, and the risk of leaving them in production. The page sits under **Auth > Configuration** in the navigation. The magic link, passwords, email templates, phone sign-in, and rate limits guides link to it. The Production checklist gains an item to remove test phone numbers. The Passwords guide's Mailpit section becomes a link to the new page and keeps its heading, so existing links to it still work. ## Verification Local behavior was tested against a local stack with Supabase CLI 2.114.0: - 10 magic links to 10 addresses all arrived in Mailpit. A second request for the same address within one second returned `429 over_email_send_rate_limit`. - A test number signed in with its fixed code, and the code worked again without a new request. A second request within the wait returned `429 over_sms_send_rate_limit`. - With the project SMS limit set to 1, four requests for a test number all succeeded. - Test numbers failed with `phone_provider_disabled` until an SMS provider was enabled. With a provider enabled, Auth sent nothing to test numbers. - A key without the country code didn't match a number sent with `+1`, and the request went to the SMS provider. - A phone MFA challenge for a test number went to the SMS provider. Hosted behavior was tested on a Free plan project through the Dashboard, and the project's settings were restored afterward: - The Phone provider form doesn't save test numbers until the SMS provider's required fields and **Test OTPs Valid Until** are filled in. - With test number `14155552671=123456` saved, the number signed in with its fixed code and no SMS was sent. The same code worked a second time. - A second request for the test number right after the first returned `429 over_sms_send_rate_limit` with "after 4 seconds", so the hosted wait between codes is 5 seconds. - With the Phone provider turned off again, the test number returned `phone_provider_disabled`. Hosted projects require email confirmation by default. A `supabase config push` diff against a new project showed `enable_confirmations = true` on the remote, and the platform source sets `MAILER_AUTOCONFIRM` to `false` by default. On a second Free plan project, `supabase config push` with one `[auth.sms.test_otp]` entry stored the number as `14155552671=123456`, with **Test OTPs Valid Until** set 10 years ahead. The Management API spec defines `sms_test_otp` and `sms_test_otp_valid_until` on `PATCH /v1/projects/{ref}/config/auth`, with `sms_test_otp` limited to `<digits>=<digits>` pairs. Three magic links to a team member's address all sent within two minutes, with no `429`. The test project had **Confirm email** turned off. In the Auth source, `sendEmail` in `internal/api/mail.go` checks the hourly email limit only when `Mailer.Autoconfirm` is false, that is, when **Confirm email** is on. A comment there marks this behavior for deprecation. With **Confirm email** on, the built-in service returns `429` with `over_email_send_rate_limit` after two emails, which matches the original dogfooding report. The page states the limit applies while **Confirm email** is on, and the caution says turning it off removes the limit. The guide's `config.toml` snippet was run as written on a local stack, with `placeholder` Twilio credentials. The test number got `test-otp`, signed in with its code, and could request again after 5 seconds. The page renders on the local docs server, the navigation entry appears, and the section anchors that other guides link to resolve. `pnpm build:guides-markdown` generates the page with its admonitions and tabs. ### Self-review A `review-the-docs` pass covered the new guide and the six linked pages against the style guide and word list. While testing, the `config.toml` template's test OTP example turned out to be missing a country code. That's tracked for the CLI team in [CLI-2820](https://linear.app/supabase/issue/CLI-2820/fix-the-authsmstest-otp-example-in-configtoml-to-include-the-country). ## Follow-up The [Phone sign-in guide](https://supabase.com/docs/guides/auth/phone-login) says a user can request an OTP once every 60 seconds. The hosted test showed a 5-second wait for SMS codes. This PR leaves that sentence as is. |
||
|
|
b123d74008 |
chore(kb,docs) - migrate migration pages (#52243)
## Problem Don't want dupe entries of migration pages. Consolidation + redirects. ## Solution Went ahead and kept the listing on the docs homepages and docs resource pages b/c those links are good for general discoverability (for people, bots). Also migrated over the existing Vercel Postgres guide that got missed in the first pass of this. Updates relevant links elsewhere w/in the app too. ## Preview links [KB](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/) [KB Vercel Postgres](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/kb/guides/migrate-from-vercel-postgres) [Docs homepage](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs) [Docs resources page](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs/guides/resources) [www neon migration](https://zone-www-dot-com-git-kody-devrel-764-remove-mig-a4e53a-supabase.vercel.app/solutions/switch-from-neon) |
||
|
|
70fe3de074 |
docs: move social login URLs to social sign-in (#52111)
## Problem [supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102) and [supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109) rename *social login* to *social sign-in* in visible text, so every sign-in method follows the same pattern. The URLs still say `social-login`, and the Expo quickstart's says `social-auth`. Keeping feature names consistent includes the URLs: readers see them in the address bar, in search results, and in links shared between docs, the Dashboard, and the marketing site. Part of [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459). ## Solution | Old URL | New URL | | --- | --- | | `/docs/guides/auth/social-login` | `/docs/guides/auth/social-sign-in` | | `/docs/guides/auth/social-login/*` (18 provider pages) | `/docs/guides/auth/social-sign-in/*` | | `/docs/guides/auth/quickstarts/with-expo-react-native-social-auth` | `/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in` | | `/features/social-login` | `/features/social-sign-in` | - **Redirects:** `apps/www/lib/redirects.js` has a permanent redirect for each old URL. One `:path*` entry covers the provider pages. Existing redirects that pointed at the old URLs point straight at the new ones, so no URL redirects twice. - **Links:** docs content, navigation, provider data, and SDK specs, Studio's Auth provider settings (29 "Learn more" links), the marketing site, the UI library docs, and the knowledge base use the new paths. - **Code name:** the docs navigation list `SocialLoginItems` is `SocialSignInItems`. Intentionally unchanged: - **Blog posts:** their links keep the old URLs and use the redirects. - **Sitemaps:** the `refresh-sitemaps.yml` workflow regenerates them. - **Image file names:** for example, `social-login.png` and `supabase-expo-social-auth-login.png`. Readers don't see them. - **UI library blocks:** the blocks are named `social-auth`, and the name is part of their install commands, so renaming them is a decision for the UI library's owners. ## Related PRs The rename spans three PRs, so the feature has one name on every surface: - [supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102) (merged): the docs. - [supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109) (merged): the marketing site, the Dashboard command menu, the UI library docs, the knowledge base, and the Docker configuration comments. - **This PR:** the URLs, including the Expo quickstart's, move to `social-sign-in` with redirects. ## Verification - Docs typecheck and the guides Markdown build pass. - `redirects.js` loads with 841 entries and no conflicting sources. - No `social-login` path remains outside blog posts, snapshots, generated files, the redirect sources, and image file names. To check the redirects, use the marketing site's preview, because `www` applies the docs redirects and the docs preview doesn't. If that preview serves production docs, the redirected page shows as missing until the new paths deploy. The redirect itself is what to check: - [/docs/guides/auth/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login) - [/docs/guides/auth/social-login/auth-google](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login/auth-google) - [/docs/guides/auth/quickstarts/with-expo-react-native-social-auth](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth) - [/features/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-login) ## Preview links - [Social sign-in](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in) - [Sign in with Google](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-google) - [Expo quickstart](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) - [Social sign-in feature page](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-sign-in) |
||
|
|
3f4ff4fd4d |
docs: use social sign-in and phone sign-in consistently (#52102)
## Problem The docs used several names for the same sign-in methods: "social auth", "social authentication", and "social login" for social providers, and "Phone Auth" and "Phone Login" for phone. Other methods use *sign-in*, such as passwordless email sign-in and anonymous sign-in. The Auth overview also listed the sign-in methods without linking to their pages, and the custom OAuth/OIDC provider note had two different versions. Resolves [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459). ## Decision This PR first standardized on *social login*, which the [word list](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/WORD_LIST.md) named as an exception to *sign-in*. @czenko approved dropping the exception, so the feature is now *social sign-in*, and every sign-in method follows the same pattern. One name per feature keeps the docs consistent for readers and AI agents, and new pages don't need a special case. ## Solution - **Social sign-in:** "social auth", "social authentication", and "social login" are "social sign-in" in docs page titles, headings, body text, link text, navigation labels, the getting started listing, and the C# SDK reference specs. - **Phone sign-in:** the Auth overview's providers list and both phone navigation labels match the phone pages' titles. - **Word list:** drops *social login* as an exception, and names *social sign-in*, *phone sign-in*, and *anonymous sign-in* as feature names. - **Auth overview:** each sign-in method links to its page. - **Custom provider note:** a new partial, `_partials/custom_oauth_providers_note.mdx`, is included by the providers list and Social sign-in. - **Expo quickstart:** both image alt texts describe their screenshots. Intentionally unchanged: - **URLs, code names, and file names:** `/docs/guides/auth/social-login/...`, `SocialLoginItems`, MDX file names, and image files such as `social-login.png`. - **Dated and quoted content:** blog posts, an event page, a customer story, and a quoted user tweet. - **JS SDK reference text:** "Social Login (OAuth) providers" in `signInWithOAuth` comes from the `supabase-js` repository. ## Related PRs The rename spans three PRs, so the feature has one name on every surface: - **This PR:** the docs. - [supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109): the marketing site, the Dashboard command menu, the UI library docs, the knowledge base, and the Docker configuration comments. The UI library's blocks keep the name `social-auth`, because the name is part of their install commands, so renaming them is a decision for the UI library's owners. - [supabase/supabase#52111](https://github.com/supabase/supabase/pull/52111): the URLs, including the Expo quickstart's, move to `social-sign-in` with redirects. Merge this PR and #52109 first, then rebase #52111, because it edits some of the same lines. ## Preview links - [Auth overview](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth) - [Social sign-in](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/social-login) - [Build a Social Sign-in App with Expo React Native](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth) - [Choosing the Right SSO Sign-in Flow](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/choosing-login-flow) - [Understanding SSO Sign-in Flows](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/login-flows) - [SSO Testing and Best Practices](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/testing-best-practices) - [Restore a Platform Project to Self-Hosted](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/restore-from-platform) - [Configure Social Sign-in (OAuth) Providers](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/self-hosted-oauth) |
||
|
|
3d326d7644 |
feat(ui): prose table component (#51794)
## Problem - docs and kb render markdown tables in different ways - docs uses its own `Table` component with its own scroll listener - kb has no scroll container which can lead on phones to overflow - design system `Table` already scrolls with `ShadowScrollArea` which was not used within guides ## Solution - docs and kb article tables use the `ui` `Table` - (proposal) `Table` gets a `prose` variant - kb guides map `table` to `<Table prose />` - `ShadowScrollArea` shows and hides the edge shadows without a fade (no strong opinion but felt snappier) - refactor table components to use `ref` vs deprecated `forwardRef` - fixes #52065 cc @jbergstroem <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open `/docs/guides/ai/choosing-compute-addon` on [prod](https://supabase.com/docs/guides/ai/choosing-compute-addon#hnsw) and on [preview](https://docs-3t4ed5odv-supabase.vercel.app/docs/guides/ai/choosing-compute-addon#hnsw) 2. open `/kb/guides/migrate-from-postgres` on [prod](https://supabase.com/kb/guides/migrate-from-postgres) and on [preview](https://docs-3t4ed5odv-supabase.vercel.app/kb/guides/migrate-from-postgres). on live, the table goes out of the article. on preview, the table scrolls in the article. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
d9faba5a2c |
feat(kb): design overhaul (#51565)
## Problem knowledge base homepage was a list of topic cards with nothing to browse by, and guide pages had no table of contents ## Solution - adds grid drawn hero proposal - adds featured guides and topic cards - updates guide page layout | state | preview | | -------|------| | after | <img width="1504" height="757" alt="image" src="https://github.com/user-attachments/assets/41492e87-f4ad-4dea-ad30-7dc3ca2882b0" /> | `variants` homepage ships with a few design options behind query params, so we can compare them on the preview before picking one, temporary and non selected one will be removed Param | Values | What it does -- | -- | -- hero | grid (default), warp | grid draws the flat table grid _ warp bends the ASCII field into a funnel below the hero copy featured | cover (default), book | cover shows the featured guides as cards with an ascii cover _ book shows them as books search | off (default), on | on adds a search button under the hero copy that opens the guide search dialog. Cmd+K / Ctrl+K also opens it <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open the kb preview at `/kb` 2. open a guide such as `/kb/guides/migrate-from-firebase-auth` ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
b8eca2e1c9 |
feat(docs) - Add in preferred source for Google under 'AI tools' (#51846)
## Problem Google introduced a new pattern for [`adding preferred sources`](https://developers.google.com/search/docs/appearance/preferred-sources#deeplink) relatively recently, where you can set specific site providers as your preference for Google results. We don't support this yet, but should. ## Solution Adds in a new link under the `AI Tools` section of the sidebar. [preview](https://docs-git-kody-devrel-728-preferred-source-google-docs-supabase.vercel.app/docs/guides/getting-started) <img width="448" height="548" alt="image" src="https://github.com/user-attachments/assets/865dd93a-1575-47dc-b400-7df0f4ac7605" /> ## Open questions **Does this feel like the right implementation?** Other approaches: - Google allows you to add in [fancy buttons via JS](https://developers.google.com/search/docs/appearance/preferred-sources#standard-javascript)... but this'd be adding a new request on every page load which feels not ideal. - [Vercel KB](https://vercel.com/kb/guide/rag-chatbot-production-architecture-on-vercel) uses the `deeplink` implementation as well, but they add a stylized button to the righthand side of the page. My initial thought was that it felt too visually disruptive to have a separate button on the righthand side. Thematically this fits with other AI affordances too, so matching the current `AI Tools` styling felt better. **Does this match Google branch guidelines?** On the [preferred sources page](https://developers.google.com/search/docs/appearance/preferred-sources#button-image-assets), Google seems to suggest that this element can be relatively freeform. ``` You can design your own custom promotion badge or download official translated graphic assets provided by Google: ``` There's stricter guidelines for [`Sign in with Google`](https://developers.google.com/identity/branding-guidelines#google-logo-in-the-sign-in-with-google-button)... specifically, `don't Use monochrome versions of the Google "G" for the button.` Feel like that's more specific to *just* sign-in with Google, but worth another brain confirming that. ## Preview links https://docs-git-kody-devrel-728-preferred-source-google-docs-supabase.vercel.app/docs/guides/getting-started --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: anthony lio <lionnet.ant@gmail.com> |
||
|
|
bb1a2ab70d |
feat(docs): add Copy as Markdown and Ask AI to troubleshooting pages (#51501)
Resolves [DOCS-1334](https://linear.app/supabase/issue/DOCS-1334/add-copy-as-markdown-ask-affordance-to-troubleshooting-pages). ## What this changes Troubleshooting pages now have the same AI tools as guides: Copy as Markdown, Ask ChatGPT, and Ask Claude. Readers can copy an article as markdown, or open it in an AI assistant in one click. The actions appear in the troubleshooting sidebar, after Keywords. The heading matches the other sidebar headings. On narrow screens, the sidebar stacks under the article, so the actions also work on mobile. <img width="1512" height="908" alt="Screenshot 2026-10-09 at 2 29 13 PM" src="https://github.com/user-attachments/assets/991c1555-c163-4894-91e5-8701bb1831f8" /> <img width="740" height="831" alt="Screenshot 2026-10-09 at 2 32 31 PM" src="https://github.com/user-attachments/assets/1b9423d4-9f26-4f6f-9c9a-e95d50d7808e" /> ## How it works Before this PR, the AI tools section was built directly into the guides sidebar, so only guides could use it. This PR moves it into its own component, and guides and troubleshooting pages both render that component. A future change to these actions, such as adding another assistant or changing the Ask prompt, then happens in one place and applies to both page types. Each page passes a page type to the component. The component includes that page type in the analytics events it sends when someone copies markdown or clicks an Ask link. Guides send `guide`, and troubleshooting pages send `troubleshooting`, so usage on each page type can be measured separately. ## Open question This PR adds a `troubleshooting` page type for analytics. It stays in draft until that value is confirmed. If we reuse `guide` instead, it's a one-line change. ## Testing - Copy as Markdown copies the article and shows the "Copied!" state. - Ask ChatGPT and Ask Claude open with the canonical page URL. ChatGPT requires you to be logged in, which is also true on existing guide pages. - The sidebar layout works at desktop and mobile widths. - Guide pages look and behave the same as before. ## Possible follow-up On troubleshooting pages, the sidebar lists Products, Related error codes, Keywords, AI tools, and then "Is this helpful?". The first four headings use the sidebar's regular heading style. "Is this helpful?" still uses the small monospace style from the guides sidebar, so it stands out. This PR lets the AI tools component accept a heading style from the page it's placed on. The feedback component could accept a heading style the same way. Troubleshooting pages could then pass the regular sidebar style, and every heading in that sidebar would match. --------- Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |
||
|
|
4c7014745c |
feat(studio): add custom OIDC option to third-party auth providers (#51612)
<!-- claude-slack-attribution --> _Requested by **Stojan Dimitrovski** · [Slack thread](https://supabase.slack.com/archives/C022071RB2L/p1791475016175969?thread_ts=1791475016.175969&cid=C022071RB2L)_ ## Problem The Management API accepts any OIDC issuer for third-party auth (`POST /v1/projects/{ref}/config/auth/third-party-auth` with `oidc_issuer_url`), but the Dashboard only offers Firebase, Clerk, WorkOS, Auth0 and Amazon Cognito. Users with another OIDC provider have no way to register it from the Dashboard. Studio also hides any issuer it does not recognize: `IntegrationCard` returns `null` for the `custom` type, so an issuer added through the API never shows up in the list and cannot be deleted from the Dashboard. ## Solution - Add a "Custom OIDC" item to the Add provider menu on the Third-Party Auth page. - New `CreateCustomOidcDialog` with a single required Issuer URL field. It reuses `useCreateThirdPartyAuthIntegrationMutation`, so query invalidation and the error toast behave like the other providers. The URL is sent as typed after trimming whitespace. - New `isValidOidcIssuerUrl` helper in `ThirdPartyAuthForm.utils.ts`: the value must be an `https://` URL with a host, no query string, no fragment, and no embedded credentials. - The dialog copy is kept short: a one-line description and a single helper line noting that signing keys are found at the issuer's `/.well-known/openid-configuration`. - `IntegrationCard` now renders custom issuers (badge-check icon, "Custom OIDC" label, Issuer URL, Delete integration) instead of hiding them. Delete uses the existing flow and permission check. - The `custom` label changes from "Custom" to "Custom OIDC". - New docs page `apps/docs/content/guides/auth/third-party/custom-oidc.mdx` (served at `/docs/guides/auth/third-party/custom-oidc`). It covers the Dashboard flow, the Management API alternative, the `role` claim, client setup, and RLS. It is linked from the third-party auth overview and added to the docs sidebar. This supersedes the draft docs PR #51611. Not included: UI for `jwks_url` and `custom_jwks`. The page and menu keep the same feature gate (`authentication:third_party_auth`) and the same permission checks as the other providers. Before: the Add provider menu lists five providers. An issuer that is not one of them is registered only through the API and does not appear in the Dashboard. After: the menu has a sixth item, Custom OIDC. It opens a dialog that takes an issuer URL, rejects non-HTTPS values with an inline message, and registers the issuer. The new provider appears in the list and can be deleted from there. ## Review instructions 1. Open a project's Authentication > Third-Party Auth page and open Add provider. Check for the new Custom OIDC item. 2. Enter `http://example.com` and submit. The field shows an inline error and no request is sent. 3. Enter a valid HTTPS issuer URL that serves an OIDC discovery document and submit. A success toast appears and the provider shows in the list as Custom OIDC with its Issuer URL. 4. Enter an issuer the API rejects. The API error shows in the existing error toast and the dialog stays open. 5. Delete the provider with Delete integration and confirm it disappears from the list. 6. Read the new docs page and check that its Dashboard steps match the UI. Local checks: - `vitest --run components/interfaces/Auth/ThirdPartyAuthForm`: 20 tests pass (validation helper unit tests plus dialog component tests with MSW). - `tsc --noEmit` in `apps/studio`: no new errors. - ESLint on the directory: no warnings in the new or changed code. - Prettier is clean on the changed files, including the docs page. The typos check is clean on the docs page and overview. I did not run the dialog in a browser against a real project, so there are no screenshots. The docs app was not built or rendered locally. ## 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) 🤖 Generated with [Claude Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe) https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe --- _Generated by [Claude Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe)_ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f1082e28c7 |
chore: migrate Framer Motion imports to Motion (#51520)
## Problem Closes #31221. The applications and shared UI packages still import the former `framer-motion` package instead of Motion's React entry point. ## Solution Replace runtime imports, type imports, and three test mocks with `motion/react` across the consuming workspaces. Replace the seven direct dependency declarations with `motion: ^11.18.2`. Preserve the existing animation engine version and all other dependency resolutions, including the asynchronous `domMax` feature loader. Historical blog examples remain as published; `framer-motion` remains a transitive implementation dependency of Motion. ## Review instructions 1. Run `pnpm install --frozen-lockfile` and check the seven dependency replacements in the lockfile. 2. Open the WWW Auth page and Docs homepage at desktop and mobile widths, with normal and reduced motion preferences. 3. Open the mobile navigation, expand Product on WWW, and close the menu using Escape and the close button. 4. Check the existing animation components, shared form validation, and Studio tests for unchanged behavior. Validation: - Studio: 731 test files, 8,334 passing tests and one expected failure, with `--maxWorkers=4`. - Shared UI, UI patterns, WWW, and UI library: 615 passing tests. - `pnpm run typecheck --concurrency=1`: all 16 repository tasks pass. - All six application source lint scripts and lint ratchets pass; generated Docs example copies are excluded from local lint. - Repository Prettier source check, lockfile formatting, and case hazard check pass. - WWW: 10 existing end-to-end checks across nine pages. - Docs: 5 existing guide link and accessibility checks across Database and Auth. - WWW and Docs mobile navigation pass at desktop/mobile sizes with normal/reduced motion; SQL-to-REST translation tabs exercise the asynchronous feature loader without browser errors. - Frozen-lockfile installation passes; all existing package and snapshot resolutions are unchanged. - Learn and UI library command palettes open, filter results, and close with Escape without browser errors. - Independent code review finds no actionable defects. - `npm run build -- --filter=www --filter=docs --filter=studio --filter=learn --filter=library --concurrency=1 --continue=always`: all five affected applications build successfully (9 tasks including prerequisites); asset uploads disabled for local validation. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) (no docs topics changed) --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
1c97fe51be |
docs: move C# SDK from community to official support (#51487)
## Problem Remove COMMUNITY badge from C# SDK Reference, and fix links pointing to `supabase community`. ## 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) |
||
|
|
8617532ae1 |
fix(docs): remove orphaned cli.mdx and update stale /guides/cli link (#51495)
Resolves [DOCS-1252](https://linear.app/supabase/issue/DOCS-1252/resolve-e2e-broken-link-errors-for-the-cli-guide). #48453 updated most `/cli` links to `/local-development`. This PR covers the remaining `/cli` references. ## Changes - **Delete `apps/docs/content/guides/cli.mdx`.** The file has had no route since the October 2024 docs IA reorganization (#29364), which moved the CLI guides under `local-development/`. - In production, `/docs/guides/cli` redirects to `/docs/guides/local-development` through `apps/www/lib/redirects.js`, so the file's content never renders. - On Vercel previews, which don't have `www` redirects, the URL returns 404. Docs E2E tests every changed guide file, so any edit to `cli.mdx` fails the required check. - Deleting it is safe for Docs E2E, which only scopes added or changed files. The redirect still covers the old URL. - **Update the connection-refused troubleshooting page** to link to `/docs/guides/local-development` instead of the redirected `/docs/guides/cli`. - **Point the "Go to Local Dev / CLI" command palette entry at `/guides/local-development`.** It routed to `/guides/cli`, which only resolves through the `www` redirect and returns 404 on previews. - **Remove the unused `cli` navigation menu** from `NavigationMenu.constants.ts`. No `MenuId` resolves to it, so it was never rendered, and its links pointed to pages that no longer exist. Question for @czenko: #48453 left `cli.mdx` alone on purpose, describing it as needing a routing or content decision. Deleting it seemed like the simplest fix, but is there a reason to keep it? It looks like it's an artifact that sometimes gets updated because it's being mistaken as a living document. Also, I believe troubleshooting guides are being currently moved - this ticket and change might coincide with the new https://github.com/supabase/troubleshooting repository, but I didn't see this file existing in there just yet - it's being currently being moved in this PR https://github.com/supabase/troubleshooting/pull/330/changes#diff-b5908c6861f711c3a38fba99aa133cdb796f26c27a35e77c674cb21f988a1046 (so I think I should do the link change in that PR and I can remove it from this PR as to not create merge conflicts or drift). But it makes questions come up about how broken links are handled in that repository 👀 --------- Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |
||
|
|
8c10701cb5 |
feat(docs): Document TLS ciphers and upcoming CBC removal (#51390)
## Problem We're soon going to remove CBC-mode ciphers from the HTTP APIs for projects hosted on the platform. ## Solution These docs help customers understand what our TLS offering looks like and helps with the change. ## Review instructions Check the copy if it's understandable and well written ## 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) The `/write-the-docs` skill showed these notes: - The error strings in the troubleshooting table are typical messages, not taken from Supabase logs or tickets. - The proxy workaround is my suggestion, not part of the approved comms. - The openssl command appears on both pages. The troubleshooting renderer (MDXRemoteBase) doesn't seem to support <$Partial>, and no troubleshooting article uses one, so I didn't share it. - Both pages describe a future removal. After November 10 the wording ("will remove", "until the removal date") needs a follow-up edit to present tense. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
5c68e24faf |
fix(docs): keep collapsed sidebar group links in the server HTML (#51373)
Part of [DOCS-1432](https://linear.app/supabase/issue/DOCS-1432/discovery-gather-information-and-data) ## Problem While doing Discovery for Information Architecture, I found that my agents were taking 10+ clicks to find a page. This was _really_ bad. But it turns out it's an accessibility issue; the agent can't _see_ any nested subnav item. Allowing the dom to access the subnav without toggling an accordion allows an agent to freely navigate, completely resolving some of my failing evals. ## Solution - **Render a hidden list of each group's links.** A `<ul hidden>` next to each group holds its links, nested groups included, so they are in the HTML. The accordion is unchanged, so the sidebar looks and animates the same as production. - Checked for accessibility. ## Manual testing 1. Open the [Platform hub on the deploy preview](https://docs-git-docs-nav-render-collapsed-links-supabase.vercel.app/docs/guides/platform). In the sidebar, **Single Sign-On** and **Multi-factor Authentication** are collapsed. 2. Run `curl -s https://docs-git-docs-nav-render-collapsed-links-supabase.vercel.app/docs/guides/platform | grep -o 'href="/docs/guides/platform/sso"'`. It prints the link. The same command against supabase.com prints nothing. 3. Click **Single Sign-On**. It opens and shows its guides, including SSO with Google Workspace. 4. Click **Single Sign-On** again. It closes. Notice animation is intact. |
||
|
|
6ecf98671a |
docs(platform): add Platform Webhooks guide and event catalog (#51098)
## Problem Platform Webhooks (org- and project-level event notifications over the Management API) has no public documentation. CTRL-1017 asks for a docs page plus a specification of the available event types, so partners can integrate without reading the OpenAPI spec or asking engineering directly. Closes CTRL-1017. ## Solution **New guide covering the Management API path, plus an event catalog.** Adds `apps/docs/content/guides/platform/webhooks.mdx`: concepts and scoping, creating an endpoint, Standard Webhooks signature verification and secret rotation, test events, and delivery/retry/ordering behavior. Adds `apps/docs/content/guides/platform/webhooks/events.mdx`: the events reference. - Full payload documentation for the 8 project-lifecycle event types, and a name-and-trigger table for the 12 branch, member, and billing types whose payload fields aren't documented. - Documents `*` for subscribing to every event. - Access framing states the criterion: available to organizations on an early access allowlist, with the `403` / `access_disabled` response for everyone else. - Nav entry under Platform > Project & Account Management, after Personal Access Tokens, gated by `fullPlatformEnabled`. **The page deliberately omits the dashboard UI.** See the first row of the table below. ## Needs review before merge | Item | Detail | | -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **The Studio webhooks UI is not wired to the API, so this page documents the Management API only** | `PlatformWebhooksPage.tsx:29` imports `PLATFORM_WEBHOOKS_MOCK_DATA`; `PlatformWebhooks.store.ts` has no async or network code and hardcodes `createdBy: 'mock-user@supabase.io'`; nothing in `apps/studio` references `webhooks/endpoints` or `webhooks/deliveries`, even though `api-types/types/api-v2.d.ts` carries those paths 24 times. #43276 (DEPR-340) described it as "UI-only (with mock data)", and the `DEPR-340-backend-integration-tracker.md` it pointed to is no longer in the tree. A dashboard section can be added once the UI calls the API. | | Possible reference slug collision | Project- and org-scoped operations share identical `summary` values (both "Create endpoint", both "List endpoints"). The page links to the reference introduction and names the **Project webhooks** / **Organization webhooks** tags rather than deep-linking a generated page. | ## Preview links **Verified:** the new page returns 200 on the preview; the same path returns 404 on production, confirming net-new content; the nav entry renders on the preview build. ### Proof: new page renders on the PR preview [Open the new page on preview](https://docs-git-nikrichers-ctrl-1017-set-up-public-doc-fa3960-supabase.vercel.app/docs/guides/platform/webhooks) <img width="2295" height="8039" alt="Screenshot 2026-10-05 at 11-47-06 Platform Webhooks Supabase Docs" src="https://github.com/user-attachments/assets/7b1440d3-207d-4828-8593-77140bdcd73f" /> <img width="2295" height="12000" alt="Screenshot 2026-10-05 at 11-48-49 Platform Webhook Events Supabase Docs" src="https://github.com/user-attachments/assets/2808a88e-558e-4f73-a12a-01382cd3f6a2" /> ## Review instructions 1. Open the [PR preview](https://docs-git-nikrichers-ctrl-1017-set-up-public-doc-fa3960-supabase.vercel.app/docs/guides/platform/webhooks) and confirm the page renders as shown. 2. Confirm **Platform Webhooks** appears under **Platform > Project & Account Management** in the sidebar, after **Personal Access Tokens**. 3. Confirm the five internal-guide values in the second row of the needs-review table. 4. Decide with the Control Plane team whether the Studio UI ships wired to the API, which determines when a dashboard section gets added: Studio UI is slated for Q4, so it will not be shipped together. ## 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) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added a Platform Webhooks guide covering endpoint setup, event delivery, signature verification, test events, retries, retention, idempotency, ordering, and listener best practices. * Documented project and organization event types, payload schemas, event scopes, and versioning, plus access restrictions for organizations outside the allowlist. * **Navigation** * Added Platform Webhooks links, including Overview and Events, to the platform navigation when the full platform is enabled. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Paweł Gulbinowicz <pawel.gulbinowicz@supabase.io> Co-authored-by: Paweł Gulbinowicz <zamotany@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> |
||
|
|
8b148f93c1 |
docs(database): regroup the database functions guide and split out debugging (#50821)
Part 2 of 4 in stack #50823. This PR carries **structure only**: moves, regrouping, and the connective text the new shape needs. Reworded prose already landed in #50820. ## Problem This PR is running a structure edit. A reader arrives from search and has to find one thing. The guide gave them eight top-level headings, no grouping, and no opening outline. The style guide caps a group at 5 ± 1. Four of those headings are the action path: Getting started, Basic functions, Returning data sets, and Passing parameters. Nothing marked them as one sequence. `Suggestions` held four unrelated things: an Edge Functions comparison, two security topics, and a three-part debugging reference. The heading names nothing the reader is doing. Debugging was the largest thing on the page. It sat at H3 with three H4 children, and it shared only the word "function" with the rest of the guide. ## Solution - **Groups the four procedures** under `Create a database function`, so the action path is one unbroken sequence. - **Moves the Edge Functions comparison ahead of the procedures.** A reader choosing between the two needs it before the steps, not after them. - **Groups the two security sections** under `Secure a database function`. - **Splits debugging onto its own page**, `guides/database/debugging-functions`. It is registered in the Database sidebar and cross-referenced from the guide. - **Folds `Deep dive` into `Resources`.** Two trailing headings did one job. - **Adds an opening outline** linking each group and saying when to use it. - **Renames the frontmatter title** to sentence case, `Database functions`. ## Manual testing 1. Open the [guide on the deploy preview](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/functions). Five top-level headings, with the opening outline linking each group. 2. Open the [new debugging page](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/debugging-functions). It appears in the Database sidebar under Managing database functions. 3. Follow a repointed link. Open [Postgres log config](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config) and click Database Function Logging. It lands on the new page at General logging. 4. Run `pnpm build:guides-markdown` from `apps/docs`. Both pages appear under `public/markdown/guides/database/`. Discard the `manifest.json` change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added a guide to debugging Postgres database functions, with examples for logging, error handling, and inspecting query results. * Added the guide to Database navigation and updated related resources to link to it. * Reorganized the database functions guide to clarify function creation, security, and privileges. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ## Preview links | Site | Live | Preview | Search for | | --- | --- | --- | --- | | Docs | [/docs/guides/database/functions](https://supabase.com/docs/guides/database/functions) | [/docs/guides/database/functions](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/functions) | `Secure a database function` | | Docs | New page, 404 in production | [/docs/guides/database/debugging-functions](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/debugging-functions) | `Debugging database functions` | | Docs | [/docs/guides/database/postgres/postgres-log-config](https://supabase.com/docs/guides/database/postgres/postgres-log-config) | [/docs/guides/database/postgres/postgres-log-config](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config) | `Database Function Logging` | ## Review instructions This PR moves content. The risk is a broken link, not bad prose. 1. Open the preview of the guide. Count the top-level headings in the right-hand outline. There are five, down from eight. 2. Read the four bullets at the top of the page. Each links to a group, and each says when to use it. Click all four and confirm each lands on its section. 3. Open the new debugging page from the second row. Confirm it appears in the left sidebar under **Managing database functions**. 4. **Check the three locked anchors.** Append each to the preview guide URL and confirm the page jumps: `#quick-demo`, `#security-definer-vs-invoker`. Then append `#general-logging` to the **debugging page** URL. Four other pages link to these. 5. Open the Postgres log config preview from the third row. Find **Database Function Logging** in the Resources list and click it. It lands on the new debugging page, not on a dead anchor. 6. Compare the prose against the live page. **No sentence should have changed** beyond the new opening outline and the cross-reference to the debugging page. **If you only have two minutes:** do steps 4 and 5. A moved section that leaves a dead anchor is the failure this PR could cause. **A note on running SQL from this page.** Don't hand-paste from the rendered page. Blocks are split across tabs, and the Data tab in Returning data sets holds markdown tables that look pasteable but are not SQL. Use the `.md` export of the page, which flattens every tab in page order. #50822 has a copy-paste command for this. |
||
|
|
dcf266c360 | feat(docs): update search v2 ui (#51175) | ||
|
|
b0597aa5fa |
Add health advisor doc (#51144)
Add docs with bare min information abotut he addition of the 4 new health advisors ## Problem no docs on health advisors ## Solution added docs covering health advisors <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added health advisors for persistently high error rates in the Data API, Auth, Storage, and Edge Functions. * Findings include links to relevant troubleshooting guidance and instructions for reviewing recent errors or failed invocations in Studio Logs, MCP, or the Management API. * **Documentation** * Updated the advisors guide to describe health, security, and performance checks, with examples and links to access advisors in Studio and the Management API. * Clarified that findings may be intentional and can take time to clear after a fix. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Saxon Fletcher <saxonafletcher@gmail.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
0405b31b26 |
docs: re-publish Multigres Private Alpha docs — merge on October 2, 2026 (#50664)
## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? Re-add. Reapplies the Multigres Private Alpha docs section removed in #50662, ready to merge once Sugu gives the go-ahead. Do not merge until then. Linear: MUL-1621 (follow-up to MUL-452). ## What is the current behavior? Multigres docs section is down (per #50662): no overview/compatibility pages, no sidebar entry, no features-table row, no "What you get" cards. ## What is the new behavior? Exact reapply of #49020 (with Multigres marked Private Alpha): overview guide at `/docs/guides/database/multigres`, compatibility stub, Database sidebar entry, features-table row, "What you get" cards, and the `ContentListings` optional-`href` support they rely on. Base branch is the revert PR (#50662) so the diff here is legible now; retarget to `master` once #50662 merges. ## Additional context - `pnpm --filter docs exec vitest run lib/content-listings.test.ts` — 22 passed - Blocked on Sugu's go-ahead — `do-not-merge` label applied --------- Co-authored-by: Nik Richers <nik@validmind.ai> |
||
|
|
ffd2754c7a |
docs(cli): document experimental supabase stack commands and native runtime (#50391)
Add two guides under Local Development for the experimental `supabase stack` commands, wire them into the docs nav, the CLI reference, the marketing features list, and the pages that readers reach with a port conflict. New pages: - guides/local-development/parallel-projects: run one local project per app, git worktree, branch, or named environment on a single machine. Covers identity, automatic port assignment, removing fixed ports from config.toml, named projects, finding endpoints, stop and destroy, the `[experimental] stack` setting, and current limitations. - guides/local-development/runtimes: the Docker and native runtimes, how the CLI picks one, native platform requirements, artifact download and cache locations, and runtime limitations. Cross-links and context: - Local development index, CLI getting started, CLI workflows, managing environments, AI tools, MCP, and the edge functions port troubleshooting entry now point readers to the new guides where a second `supabase start` fails on a port conflict. - CLI reference: `supabase stack`, `stack start`, `stack stop`, `stack destroy`, the `experimental.stack` config key, and a note on `supabase start` and `[experimental] stack`. - www: two feature entries and copy tweaks on the hosted Postgres and innovation teams solution pages. - supa-mdx-lint: allow worktree, glibc, musl, and checksum. |
||
|
|
26010d80ce |
docs(observability): rename "Hire an agent" to "Agent prompts" (#51148)
The "Hire an agent" and "monitor" wording oversold the feature: it is just a prompt you give an agent to check health, security, performance, or resources, optionally on a schedule. Rename the group to "Agent prompts", drop "monitor" from the four child pages (Health, Security, Performance, Resources), and use plainer framing across the landing page and observability hub. URL slugs are unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Renamed the Observability section to “Agent prompts” and updated its page titles and descriptions to describe project checks. * Clarified that prompts read project data without changing it, and that findings can be sent through existing harness connections. * Updated setup guidance to refer to running prompts and using “checks” in task names. * Renamed the Health, Security, Performance, and Resources entries. The related links, schedules, and reporting details remain unchanged. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|
|
4a9b4b0a9e |
feat(docs): o11y agent setup stepper (#50962)
## Problem on monitoring agent pages the prompt lives in a "prompt" tab next to agent ones, while each agent tab ended with "paste the prompt" users have to work out that the prompt is sitting in that previous tab ## Solution this pr is a proposal to set agent setup as a two stepper `1` for the prompt panel `2` holds the agent tabs: - extracts prompt into a first step - moves agent tabs within their own step - polishes agent docs to match recent ui updates - sets `prompt` as an anchor link within agent tabs | state | preview | | -------|------| | before | <img width="823" height="452" alt="image" src="https://github.com/user-attachments/assets/a6a01832-ea73-48c1-b31d-25a0ef970e4e" /> | | after | <img width="823" height="716" alt="image" src="https://github.com/user-attachments/assets/f5014ad0-1555-4578-b4b1-5bf2733b4d37" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. visit [/automate-with-agents/health](https://docs-git-docs-agent-setup-stepper-supabase.vercel.app/docs/guides/observability/automate-with-agents/health#set-up-the-agent) ## 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) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Agent setup instructions are organized into prompt-copying and scheduling steps, with links to harness documentation. * Code tabs support icons and controlled selection. * Source code samples support adjustable footer notches. * **Bug Fixes** * Step numbers now display the correct shadow. * Links to page anchors now scroll to, focus, and highlight their targets, while respecting reduced-motion preferences. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
8ab2197eb8 |
Rename capacity monitor to resource monitor (#50849)
## Problem Capacity felt like a misleading naming for some users ## Solution renaming to resource monitor, to remove confusion with things like AWS capacity. And also leaves some room for interpretation that resource issues worth reporting are not always related to capacity. It could ust be interest in increase consumption. User expectations based on terminology will never be perfect though. ## Preview links https://supabase.com/docs/guides/observability/automate-with-agents/usage?queryGroups=agent-setup&agent-setup=prompt | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/observability/automate-with-agents/usage?queryGroups=agent-setup&agent-setup=prompt) <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. For example, `Open the live and preview links side-by-side.` 2. For example, `See the issue is fixed.` ## Checklist Check all before review: - [ ] 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 references [WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md) and the docs [CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md) guide <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Renamed “Capacity monitor” to “Resource monitor” across the guide, navigation, and monitoring prompt labels. * Updated the guide to link to the resource-report trigger documentation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
4730e3a640 |
docs: remove Generalist monitoring agent (#50784)
The Generalist is too broad and doesn't do any one thing well. Removing it to focus on dogfooding the four targeted agents (Health, Security, Performance, Capacity) before revisiting a combined agent. https://github.com/supabase/supabase/pull/50396 new PR since this one became messy with many upstream changes ## Problem I don't like the generalist ## Solution I am removing the generalist <!-- ## 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 Simply removing generalist: https://supabase.com/docs/guides/observability/automate-with-agents <img width="305" height="339" alt="image" src="https://github.com/user-attachments/assets/bb537038-799f-4ec6-a357-c4cb3c552cba" /> So generalist will be no mas ## 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 references [WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md) and the docs [CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md) guide <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Removed the combined Generalist monitoring guide and its navigation entry. Separate guides for health, security, performance, and usage monitoring remain. * The Generalist agent card and combined monitoring prompt are no longer available. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|
|
cd77bebafd |
chore(ui): refresh shared button styles (#50197)
## What kind of change does this PR introduce? UI polish / design system: refreshed button styles, related token tweaks, and a shared floating-button plate. Resolves DEPR-652. ## What is the current behavior? Default, primary, and secondary buttons use older fills, borders, and hover treatments. Primary still leans on brand scale utilities. Default fills don’t always read as raised chrome across surfaces, and floating copy / expand / scroll controls can let busy content show through translucent fills. Call sites hand-roll `rounded-* bg-background` wrappers for that. ## What is the new behavior? Refreshes primary, default, and secondary buttons with medium-weight labels, subtle shadows and inset edges, and smoother transitions. Light-mode default buttons use a raised fill with an accent hover state, primary text is brighter, and inline keyboard shortcuts inherit the button’s colour. Adds `FloatingPlate`: an opaque `bg-popover` shell for floating default buttons (and small clusters). Migrates Studio, Docs-related patterns, www, and `ui-patterns` floaters onto it so busy content no longer shows through translucent fills. Positioning, z-index, and hover/focus reveal stay on the plate’s `className`. Use `rounded="full"` for pills. Also: - Moves primary onto semantic `--primary` / `--primary-hover` (with a light-theme override) instead of brand utility fills - Tokenises button shadows as `--button-shadow-drop` / `--button-shadow-raised` / `--button-shadow-default` on the Button base - Aligns hover direction: darken on light mode, lighten on dark mode for both default and primary - Default fill stays opaque `bg-card` in light (occlusion) and translucent `bg-muted` in dark (adapts to the local surface) - Documents fills and `FloatingPlate` on the design-system Button page (with a live example) - Scales shared radius tokens in Studio and www; medium+ Button sizes use a proportionally softer radius - Fixes www nav CTA centering (`lg:inline-flex` instead of `lg:block`) - Query detail Expand/Collapse wires `aria-expanded` / `aria-controls` | Before | After | | --- | --- | | <img width="1074" height="438" alt="CleanShot 2026-09-18 at 15 52 51@2x" src="https://github.com/user-attachments/assets/ef43da21-b053-4b7e-9ac4-ab8b428228ab" /> | <img width="1090" height="464" alt="CleanShot 2026-09-18 at 15 50 59@2x" src="https://github.com/user-attachments/assets/2ddc55fc-4c8d-499c-a280-f3db3d99023c" /> | | <img width="1082" height="446" alt="CleanShot 2026-09-18 at 15 52 35@2x" src="https://github.com/user-attachments/assets/3dd5452d-325a-4e4a-a79d-26c6c6950a31" /> | <img width="1078" height="446" alt="CleanShot 2026-09-18 at 15 51 13@2x" src="https://github.com/user-attachments/assets/93666385-3e6e-42e0-9891-9cd6bb935b67" /> | ## To test ### Design system - [Button page](https://design-system-git-chore-button-styles-supabase.vercel.app/design-system/docs/components/button): default / primary in light and dark; hover should darken on light, lighten on dark - Same page: [Floating over content](https://design-system-git-chore-button-styles-supabase.vercel.app/design-system/docs/components/button#floating-over-content) / [Floating plate](https://design-system-git-chore-button-styles-supabase.vercel.app/design-system/docs/components/button#floating-plate) example; Copy over SQL should stay opaque - Spot-check hover on a code preview Copy control ### Docs [Docs deploy preview](https://docs-git-chore-button-styles-supabase.vercel.app/docs): - [Docs homepage](https://docs-git-chore-button-styles-supabase.vercel.app/docs): top-right **Sign up** / **Dashboard** primary; menu icon beside it (default icon button) - Shrink below `lg` and open the hamburger drawer: bottom **Sign in** (default) + **Start your project** (primary) medium block buttons - Tab once for **Skip to content** (FloatingPlate) - [MCP guide](https://docs-git-chore-button-styles-supabase.vercel.app/docs/guides/ai-tools/mcp): project picker - [Apple login](https://docs-git-chore-button-styles-supabase.vercel.app/docs/guides/auth/social-login/auth-apple): **Generate Secret Key** button in the Apple Secret Generator - Optional opacity check: any guide code block Copy control (e.g. at the bottom of [Import data into Supabase](https://docs-git-chore-button-styles-supabase.vercel.app/docs/guides/database/import-data)) ### Studio [Studio deploy preview](https://studio-staging-git-chore-button-styles-supabase.vercel.app/): - **Observability → Query Performance**: open a query detail → Expand/Collapse pill + SQL Copy chip (dark: no bleed-through) - **Observability → Query Insights**: select a query → Clear query pill - **Table Editor → any table → Definition** → floating **Open in SQL Editor** - **Connect → Framework → Add files**: Copy on the code tabs (FloatingPlate; light hover follow-up is DEPR-694) - Tab once for **Skip to content** ### WWW - [www deploy preview](https://zone-www-dot-com-git-chore-button-styles-supabase.vercel.app/): nav Sign in / Start your project vertical centering; hero medium CTAs radius --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
59e2122833 |
docs(pipelines): nest destination guides (#50708)
## Problem Pipeline destination guides live beside the Pipelines overview, so their sidebar hierarchy and URLs do not reflect that they belong to Pipelines. ## Solution Moves the BigQuery, ClickHouse, DuckLake, and Snowflake guides under `/database/replication/pipelines/`, redirects the old URLs in both docs preview (`apps/docs/next.config.mjs`) and production (`apps/www/lib/redirects.js`), and updates internal documentation links. The matching Studio changes, including destination-aware links from the creation sheet, will follow in a separate PR. ## To test - [Pipelines overview](https://docs-git-dnywh-docsnest-pipeline-destinations-supabase.vercel.app/docs/guides/database/replication/pipelines) - Destination guides: [BigQuery](https://docs-git-dnywh-docsnest-pipeline-destinations-supabase.vercel.app/docs/guides/database/replication/pipelines/bigquery), [ClickHouse](https://docs-git-dnywh-docsnest-pipeline-destinations-supabase.vercel.app/docs/guides/database/replication/pipelines/clickhouse), [DuckLake](https://docs-git-dnywh-docsnest-pipeline-destinations-supabase.vercel.app/docs/guides/database/replication/pipelines/ducklake), [Snowflake](https://docs-git-dnywh-docsnest-pipeline-destinations-supabase.vercel.app/docs/guides/database/replication/pipelines/snowflake) - [Old Snowflake URL](https://docs-git-dnywh-docsnest-pipeline-destinations-supabase.vercel.app/docs/guides/database/replication/snowflake) ## Review instructions 1. Open the Pipelines overview and confirm the four destination guides appear beneath Pipelines in the sidebar. 2. Open each destination guide and confirm its nested URL and content load correctly. 3. Open the old Snowflake URL and confirm it redirects to its new location. ## 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 references [WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md) and the docs [CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md) guide <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Moved BigQuery, ClickHouse, DuckLake, and Snowflake replication guides to a dedicated pipelines section and updated related navigation and links. * **Bug Fixes** * Added permanent redirects so existing links to the four destination guides continue to work. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
ec53175b8a |
refactor(ui): rename text-brand to text-primary (#50564)
## What kind of change does this PR introduce? Refactor. Follow-up to #49871. ## What is the current behavior? Branded (green) text still uses the `text-brand` classname while the colour comes from `--primary`. ## What is the new behavior? **Rename-only:** `text-brand` → `text-primary` across callsites and docs. Leftover `bg-brand` / `border-brand` alias to `brand-default`. No intentional colour changes in this PR. This better matches how we treat our green in other components and props, like `variant="primary"` for green buttons. ## To test On light mode: smoke-test that branded text still looks like #49871 (readable green, not the bright fill). - [Homepage](https://zone-www-dot-com-git-dnywh-depr-316-text-brand-de2380-supabase.vercel.app/): “Scale to millions” uses `text-primary` - [Docs homepage](https://docs-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/docs): branded links like “More on self-hosting” are still readable - [Typography docs](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/typography): documents `text-primary` - [Colour usage](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/color-usage): `text-primary` is visibly darker than `bg-brand-default` _on light mode_ - [Studio auth providers](https://studio-staging-git-dnywh-depr-316-text-brand-to-60fa6c-supabase.vercel.app/dashboard/project/_/auth/providers): enabled provider badge text readable; status dot stays bright green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated branded text, link hover states, icons, badges, indicators, and highlighted content across the Design System, Docs, Studio, Learn, UI Library, and marketing experiences to use the primary theme color. * Updated syntax highlighting and table-of-contents styling for consistent primary-color presentation. * Refined brand color fallback behavior for bright fills and borders. * **Documentation** * Updated color-usage and typography guidance to recommend the primary text utility. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |