mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
create-pull-request/patch
40502
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
8e50db7952 |
docs: link the SQL to REST API Translator from the joins guide (#53771)
## Problem Readers who know the SQL join they want have to work out the matching embedding syntax by hand. The joins and nesting guide never mentions the SQL to REST API Translator, which does that conversion, so readers don't find it. Related to [FDBKIN-7994](https://linear.app/supabase/issue/FDBKIN-7994/improve-documentation-and-tooling-for-postgrest-join-syntax) Closes [DOCS-1729](https://linear.app/supabase/issue/DOCS-1729) ## Solution In the "Join types and join modifiers" section of `/guides/database/joins-and-nesting`, a new paragraph in the section's intro points readers who think in SQL to the translator. The paragraph says that the translator turns a SQL `select` query into a Data API request and Supabase JavaScript client code, with SQL joins as embedded relations. It also says that not every query translates, and names the translator's join limits: it handles only left and inner joins that compare columns with `=`, and the request it returns works only when a foreign key links the two tables. The paragraph follows the intro's explanation of left joins and `!inner`, so the translator's left-and-inner limit builds on it, and readers see the shortcut before the syntax table and the example tabs. Existing text is unchanged. ## How to verify 1. On the docs preview, open `/docs/guides/database/joins-and-nesting` and go to "Join types and join modifiers". 2. After the paragraph that ends "use `!inner` on the embedded relation", a paragraph names the SQL to REST API Translator and says that it converts SQL joins into embedded relations and client code. 3. The link opens `/docs/guides/api/sql-to-rest`. 4. The paragraph says that some queries won't translate. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'`, and Prettier on the changed file. All pass. Skipped the docs tests, because they need Docker. Checked the facts against `apps/docs/content/guides/api/sql-to-rest.mdx` (the subset note), the translator component in `packages/ui-patterns/src/SqlToRest/` (cURL, HTTP, and JavaScript outputs), and the join handling in `@supabase/sql-to-rest` 0.1.6: it throws on join types other than inner and left and on join conditions other than `=`, and it does not check for a foreign key. ## Second reader First read: ready, no blockers, three nits. All three applied: the paragraph moved after the syntax table, two sentences merged, and the join limits named. Second read: one blocker. The join-limit sentence had the Data API as its subject, but the foreign key limit belongs to the translator, and the Data API also supports computed relationships. Fixed by making the translator the subject. Third read, after the first sentence was split in two: one blocker. The translator doesn't check foreign keys, so a join without one still translates, and the request then fails. Fixed: the sentence now says the translator handles only left and inner joins that compare columns with `=`, and that the request works only when a foreign key links the two tables. Nits left as they are: the translator outputs joins as flattened spread embeddings (`...relation(...)`), which this page doesn't explain; "client code" could read "supabase-js code". Fourth read, after the join-limits sentence was split in two: ready, no blockers. Nit left as it is: "For example" introduces translator limits after a sentence about Data API limits. Fifth read, after the paragraph moved into the section intro: ready, no blockers, and the placement matches the section's topic. Nits left as they are: when two foreign keys link the same tables, the translator's request is ambiguous and fails, because it never adds a foreign key hint (ambiguous foreign keys are out of scope here); and the last two sentences could form their own paragraph. Left as follow-ups outside the scope: the page intro says "data APIs" in lowercase, `guides/api/sql-to-api.mdx` doesn't link to the translator, and "We can get…" on the page uses _we_ for the reader. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
c3426aca1a |
fix(studio): match interstitial titles to section headings (#53704)
## Problem The interstitial title explicitly uses the sans font, so it can look different from the section headings in the same card. ## Solution Let the title inherit Studio’s heading font so it matches the h2, h3 and h4 headings inside the interstitial. | Before | After | | --- | --- | | <img width="892" height="738" alt="CleanShot 2026-11-20 at 13 40 22@2x" src="https://github.com/user-attachments/assets/72ed0238-ba51-4a49-ba1b-d9c22e7be08d" /> | <img width="880" height="728" alt="CleanShot 2026-11-20 at 13 40 50@2x" src="https://github.com/user-attachments/assets/5deb7004-7b08-467e-9e34-d87d48d397b6" /> | _Not the best example but you get the point; a card with `h2`, `h3`, etc would now match visually._ ## Review instructions 1. Open [Before on staging](https://supabase.green/dashboard/authorize) and [After on the deploy preview](https://studio-staging-git-dnywh-interstitial-title-font-supabase.vercel.app/dashboard/authorize). Sign in if prompted. 2. Compare the **Missing authorization link** title in both tabs. The title on the preview should inherit the heading font (Manrope). |
||
|
|
a1b71bfdce |
fix(studio): clarify OAuth consent copy and hierarchy (#53702)
## Problem The consent screen repeats information below the permissions and puts the organization-level error away from the button it blocks. ## Solution Place the member-bound role limit under **Permissions requested**, mark section headings as headings, and group the role error with the action. Keep the redirect destination centred in the footer. | Before | After | | --- | --- | | <img width="890" height="1892" alt="CleanShot 2026-11-20 at 12 46 26@2x" src="https://github.com/user-attachments/assets/1fa1b266-a82a-4fec-a840-50408f1e04fa" /> | <img width="872" height="1706" alt="CleanShot 2026-11-20 at 12 46 32@2x" src="https://github.com/user-attachments/assets/f0e510b1-e6b3-4e66-b3f7-61845c4cab71" /> | | <img width="874" height="1970" alt="CleanShot 2026-11-20 at 12 52 19@2x" src="https://github.com/user-attachments/assets/97bcef92-50e7-453d-a1e4-9962b01a7cdf" /> | <img width="862" height="1488" alt="CleanShot 2026-11-20 at 12 47 59@2x" src="https://github.com/user-attachments/assets/556eb2f7-2d71-47ed-a21d-8a71a577bae6" /> | ## Review instructions 1. **Before:** Open the [Scoped OAuth tester](https://api.supabase.green/v1/oauth/authorize?response_type=code&client_id=a3999bfe-cfc7-4584-9c5a-ab6828d35aa3&redirect_uri=http%3A%2F%2Flocalhost%3A8765%2Foauth%2Fcallback) and leave consent open. 2. **After:** Open the [deploy preview consent screen](https://studio-staging-git-dnywh-oauth-consent-copy-supabase.vercel.app/dashboard/authorize?auth_id=606dbb8e-60ea-4155-bb36-70a7d31378dd). **What to check** 1. Open consent for a member-bound staging test app. Compare the role explanation under **Permissions requested** and the centred redirect destination with the current staging screen. 2. Open an organization-wide request with a role that cannot grant it. Alternatively, in Chrome DevTools → Network, use **Override content** on the successful organization preflight GET response for an unscoped request. Set `validation_failure` to `{"scope_target":"all_projects","role":{"name":"read-only"},"failed_scopes":["database:write"]}` and reload with DevTools open. 3. Check that the warning sits above the disabled **Authorize** button and the requested permissions are hidden. Clear any overrides when done. |
||
|
|
828bd84820 |
fix(studio): make OAuth project scope explicit (#53701)
## Problem An unchecked box leaves users to figure out that access is limited to selected projects. ## Solution Show two explicit project scope options as a set of radio buttons. A new grant starts with selected projects. Reauthorising an all-projects grant still preselects all projects. ## Review instructions 1. **Before:** Open the [Scoped OAuth tester](https://api.supabase.green/v1/oauth/authorize?response_type=code&client_id=a3999bfe-cfc7-4584-9c5a-ab6828d35aa3&redirect_uri=http%3A%2F%2Flocalhost%3A8765%2Foauth%2Fcallback) and leave consent open. 2. **After:** Open the [deploy preview consent screen](https://studio-staging-git-dnywh-oauth-project-scope-supabase.vercel.app/dashboard/authorize?auth_id=606dbb8e-60ea-4155-bb36-70a7d31378dd). | Before | After | | --- | --- | | <img width="880" height="1904" alt="CleanShot 2026-11-20 at 12 43 31@2x" src="https://github.com/user-attachments/assets/87ed5f18-eebd-455e-a37a-9131fc9ac269" /> | <img width="884" height="1948" alt="CleanShot 2026-11-20 at 12 43 45@2x" src="https://github.com/user-attachments/assets/1ec03fb1-1208-496c-8ad0-1d5b6736c5da" /> | **What to check** 1. Open consent for a project-scoped staging test app in an organization with projects. 2. Check that **All current and future projects** appears first and **Selected projects only** is selected for a new grant. 4. Select a project, switch to all projects, then switch back. The picker should reappear with your selection. 5. Repeat with an existing all-projects grant and check that the first option is selected. |
||
|
|
1c85e3efb7 |
fix(studio): clarify OAuth permission labels (#53699)
## Problem OAuth mixes abbreviated access levels with permission names whose meaning is hard to infer. ## Solution Use **Read and write** and **Read only** consistently, and add keyboard-accessible definitions for Database management and Environment. Reuse the dotted underline from Pipelines and document above-label placement. | Before | After | | --- | --- | | <img width="926" height="1936" alt="CleanShot 2026-11-20 at 12 20 42@2x" src="https://github.com/user-attachments/assets/053b4afa-f428-4c0d-8f3b-dbc3f3dd5cf8" /> | <img width="886" height="1902" alt="CleanShot 2026-11-20 at 12 21 20@2x" src="https://github.com/user-attachments/assets/8277064b-1e73-43ff-b7b5-4d4af7d6c68f" /> | | _No tooltips, old “READ-WRITE”._ | _Tooltips for ambiguous permissions, “READ AND WRITE” for clarity and to match setup terminology._ | ## Review instructions 1. **Before:** Open the [Scoped OAuth tester](https://api.supabase.green/v1/oauth/authorize?response_type=code&client_id=a3999bfe-cfc7-4584-9c5a-ab6828d35aa3&redirect_uri=http%3A%2F%2Flocalhost%3A8765%2Foauth%2Fcallback) and leave consent open. 2. **After:** Open the [deploy preview consent screen](https://studio-staging-git-dnywh-oauth-permission-labels-supabase.vercel.app/dashboard/authorize?auth_id=606dbb8e-60ea-4155-bb36-70a7d31378dd). **What to check** 1. Open consent for a test app that requests database read/write, environment read, and projects read access. 2. Check the small **Read and write** and **Read only** headings. Hover or Tab to Database management and Environment. Each definition should appear above its dotted-underlined label. 3. Optionally open an existing Pipeline and hover over an annotated status label to check the shared underline. |
||
|
|
9f896fec79 |
Add blog post: Introducing Supabase Knowledge Base (#53763)
## 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? Adds a new `apps/www` blog post, "Introducing Supabase Knowledge Base," for the [supabase.com/kb](https://supabase.com/kb) launch. The post explains why applied answers (migrations, troubleshooting, FAQs, tutorials, and community guides) now have their own home next to the docs, how coding agents can read /kb, and how the community can contribute. Resolves DOCS-1721. ## What is the current behavior? No blog post exists for /kb yet. Anthony Lio, Jeremias Menichelli, Kody Jackson, and Aleksi Immonen don't have author entries in `apps/www/lib/authors.json`. ## What is the new behavior? - New post at `apps/www/_blog/2026-11-23-introducing-supabase-knowledge-base.mdx` - New author entries for `anthony_lio`, `jeremias_menichelli`, `kody_jackson`, and `aleksi_immonen` in `apps/www/lib/authors.json` - New assets under `apps/www/public/images/blog/2026-11-23-introducing-supabase-knowledge-base/`: the `og.png`/`thumb.png` hero images (a capture of the /kb landing page, 2400x1260) and `kb-blog-hero.mp4`, a short demo of the landing page and a search - "Start here" section uses a two-column layout on desktop (links on the left, demo video on the right) that stacks on mobile Check the preview: [Introducing Supabase Knowledge Base](https://zone-www-dot-com-git-nikrichers-docs-1721-write-045ba3-supabase.vercel.app/blog/introducing-supabase-knowledge-base) ## Remaining work before merge - [ ] Confirm the publish date with Marketing (MARKET-2253), then rename the post file and image folder if it changes - [ ] Marketing +1 review per the Blog Post Process (post in `#team-marketing`) ## Additional context - Content is adapted from an internal Notion draft (Product for Docs). - The post doesn't link the Rundowns topic, which is hidden from /kb navigation on purpose (#51139). ### Test plan - [ ] `pnpm run dev:www` and confirm `/blog/introducing-supabase-knowledge-base` renders: title, description, all six author bylines/positions, date, hero image, video, the two-column "Start here" section, og:image meta tag - [ ] Confirm `/blog` index card shows the new post with the thumb image - [ ] Confirm `/blog/authors/anthony_lio`, `/blog/authors/jeremias_menichelli`, `/blog/authors/kody_jackson`, and `/blog/authors/aleksi_immonen` render 🤖 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: Jeremias Menichelli <jmenichelli@gmail.com> |
||
|
|
0af0e9aed4 |
docs(storage): explain which operations need policies on storage.buckets (#53769)
## Problem The Storage access control guide only mentions policies on `storage.objects`. A reader securing a private bucket can't tell whether those policies are enough or whether `storage.buckets` needs its own policies, and the private-bucket read pattern is hard to find among examples that look like public-bucket examples. Related to [FDBKIN-5913](https://linear.app/supabase/issue/FDBKIN-5913/clarify-documentation-for-securing-private-storage-buckets-with-rls) Closes [DOCS-1727](https://linear.app/supabase/issue/DOCS-1727/explain-which-storage-operations-need-policies-on-storagebuckets) ## Solution The "Access policies" section of `/guides/storage/security/access-control` now states that policies on `storage.objects` control every file operation in both private and public buckets, and names the two cases where Storage skips the check: public URLs of public buckets, and signed URLs. A short table lists the bucket operations that need policies on `storage.buckets`, with the permissions each needs on both tables. The section also points to the existing per-user `SELECT` example as the pattern for private-bucket reads. Existing text and the API reference link stay as they were. Checks: Prettier on the changed file, and `pnpm turbo run lint --filter='[origin/master]'` (0 errors). Facts were checked against the per-method RLS notes in `apps/docs/spec/supabase_py_v2.yml` and `supabase_kt_v1.yml`, and against `supabase/storage`, where object routes look up the bucket as superuser (`src/http/routes/object/getObject.ts`, `src/storage/object.ts`, `src/storage/uploader.ts`), and public and signed-URL downloads bypass RLS (`getPublicObject.ts`, `getSignedObject.ts`, `uploadSignedObject.ts`). The docs tests need Docker, so they did not run. How to verify on the preview, at `/docs/guides/storage/security/access-control`: 1. "Access policies" says `storage.objects` policies control every file operation in private and public buckets, and that file operations need no policy on `storage.buckets`. 2. A table lists create, retrieve, list, update, delete, and empty a bucket, with the permissions on `storage.buckets` and `storage.objects` for each. 3. The "Policy examples" link goes to the section with the "Individual user Access" policy, and the "public bucket" link goes to the Access model section of Buckets fundamentals. 4. The admonition link to the API reference still opens the createBucket reference. ## Second reader Verdict: ready, no blockers. - Fixed: the "Empty a bucket" row was incomplete without the sentence after the table, so the table now has a `storage.objects` column. - Fixed: the vague "manage buckets" now reads "call bucket methods". - Fixed: the exceptions are a separate paragraph, reworded so that Storage, not the policies, does the checking. - Fixed: the public-bucket exception now links to Buckets fundamentals. - Left: moving the API reference admonition next to the table. The brief keeps existing text in place. - Left: linking each table row to its reference page. The table stays short, and the existing admonition links to the reference. - Left as follow-ups outside this change: the frontmatter `description` and `sidebar_label` mention only uploads, the "here" link text, stray spaces before periods, "incredibly powerful", "easy", and missing periods in two admonitions. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
698bb077cf |
docs(storage): list signed URLs in the Storage overview's key features (#53766)
## Problem The Key features list on the Storage overview didn't mention signed URLs. A reader who scans it to see what Storage can do finds no way to share files from private buckets, so they could conclude that Storage can't do it. Related to [FDBKIN-26964](https://linear.app/supabase/issue/FDBKIN-26964/improve-documentation-and-discovery-for-storage-signed-urls) Closes [DOCS-1724](https://linear.app/supabase/issue/DOCS-1724) ## Solution The Storage overview (`/guides/storage`) now lists signed URLs as a key feature. The new item says that files in private buckets can be shared with time-limited signed URLs, without making the buckets public, and links to the Signing URLs section of the Serving assets page. It sits next to Fine-grained Access Control and uses the same format as the other items. The other items are unchanged. ## Checks I ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'`, and Prettier on the changed file. All passed. I skipped the docs tests because they need Docker. I checked the claims against the `### Signing URLs` section of `serving/downloads.mdx` (`createSignedUrl(path, expiresIn)`, anchor `#signing-urls`) and against `createSignedUrl` and `createSignedUrls` in `apps/docs/spec/supabase_js_v2.yml`. ## Second reader Verdict: ready. No blockers. - Nit: "private buckets … the bucket" mixed plural and singular. Fixed: it now says "the buckets". - Nit, optional: the bold label and the link text both say "signed URLs". I kept it, because other items in the list repeat their label the same way. - Outside the scope of this PR, left as is: marketing words ("robust", "lightning-fast") and missing hyphens ("Multi Protocol", "S3 compatible") in the existing overview text, and an inconsistent "Private buckets" list on the Serving assets page. ## How to verify 1. On the preview, open `/docs/guides/storage`. The Key features list has a **Signed URLs** item that says files in private buckets can be shared with time-limited signed URLs, without making the buckets public. 2. Click the link in that item. It opens `/docs/guides/storage/serving/downloads#signing-urls` and lands on the Signing URLs heading. 3. The other Key features items read the same as on production. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
a30c99d09d |
docs(platform): say that PrivateLink doesn't carry Data API or client library traffic (#53767)
## Problem The PrivateLink page said PrivateLink doesn't support "API, Storage, Auth, or Realtime". Readers couldn't tell that "API" meant the Data API, so they couldn't tell whether requests from `supabase-js` and the other client libraries go over the private connection. Related to [FDBKIN-15262](https://linear.app/supabase/issue/FDBKIN-15262/clarify-in-docs-what-traffic-is-routed-through-privatelink) Closes [DOCS-1725](https://linear.app/supabase/issue/DOCS-1725) ## Solution The PrivateLink page now names the Data API (REST and GraphQL) and links to its guide. It also says that the client libraries call the project URL over the public internet, not PrivateLink. A backend whose database traffic must stay private should connect to Postgres directly or through the dedicated pooler. "How PrivateLink works" and the "Service Scope" limitation now say the same thing. Only that existing text changed, and the page has no new section. ## How to verify On the preview, open `/docs/guides/platform/privatelink`: 1. "How PrivateLink works" says PrivateLink carries only Postgres connections on ports `5432` and `6543`. It also says the client libraries call the Data API, Auth, Storage, and Realtime at `https://<project_ref>.supabase.co` over the public internet. 2. The same section says what to do when a backend's database traffic must stay private. 3. The "Service Scope" bullet under "Limitations" says the same thing. 4. Both "Data API" links open `/docs/guides/api`. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'`, and Prettier on the changed file. All passed. I skipped the `docs` tests because they need Docker. I checked the facts against the page's own setup steps (the endpoint is a database host on ports `5432` and `6543`), the Studio PrivateLink form (each connection targets a database), and `guides/api.mdx`, which gives the Data API URL as `https://<project_ref>.supabase.co/rest/v1/`. ## Second reader Verdict: ready, no blockers. I fixed these nits: - The project URL was stated twice in a row. I merged the two sentences. - The new host clause covered the PrivateLink endpoint option but not the VPC Lattice service network option. I dropped it, because the setup steps already cover hostnames. - "If your backend's traffic must stay private" promised too much, because Auth, Storage, and Realtime can't go private. It now says "database traffic". - I made the run-on sentence in the "Service Scope" bullet easier to read. These are left as they were: - The reader suggested `/docs/guides/database/connecting-to-postgres#data-apis-and-client-libraries` as the link target. I kept `/docs/guides/api`, the Data API's own guide. - These problems are on the page but outside this change: "organisation level" spelling, "e.g.", the missing period on "Feature Evolution", a note written as a numbered step, and Edge Functions missing from the list of public services. Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
78870669cd |
docs: say where to create the env file in the Vite quickstarts (#53768)
## Problem The React, Vue, SolidJS and Refine quickstarts tell the reader to create an env file but not where. The next step creates `src/lib`, so a reader can put the file in `src/`. Vite loads env files only from the project root by default, so `import.meta.env.VITE_SUPABASE_URL` then comes back `undefined`. Related to [FDBKIN-25261](https://linear.app/supabase/issue/FDBKIN-25261/clarify-env-file-placement-in-the-react-quickstart-guide) Closes [DOCS-1726](https://linear.app/supabase/issue/DOCS-1726/say-where-to-create-the-env-file-in-the-vite-based-quickstarts) ## Solution The env step of each of these four quickstarts now says to create the file in the root of the project, next to `package.json`. It reuses the "in the root of your project" wording that the TanStack and Expo quickstarts already use, and `package.json` gives the reader a concrete landmark that rules out `src/`. Only that one sentence changes on each page. ## How to verify On the docs preview: 1. `/docs/guides/getting-started/quickstarts/reactjs`, step 6: the first sentence says to create `.env.local` in the root of your project, next to `package.json`. 2. `/docs/guides/getting-started/quickstarts/vue`, step 6: same for `.env.local`. 3. `/docs/guides/getting-started/quickstarts/solidjs`, step 6: same for `.env.local`. 4. `/docs/guides/getting-started/quickstarts/refine`, step 5: same for `.env`. 5. No other text on these pages changes. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'` (0 errors), and Prettier on the four changed files; all pass. Checked against Vite's `envDir` option (defaults to the project root) and confirmed each page scaffolds a Vite app. Skipped the docs unit tests: they need Docker. ## Second reader Verdict: ready, no blockers. One nit: "project" could be read as the Supabase project, since the same sentence mentions the project Connect panel. Kept the wording, because "next to `package.json`" settles it and it matches the sibling quickstarts. Pre-existing issues it noted outside this change: "populate with" missing "it" on the Vue and SolidJS pages, missing end punctuation on the React sentence, and the same missing location in several framework tutorials and the Astro and Nuxt quickstarts. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
77011f0ed6 |
docs: enable pgvector in the extensions schema in the Next.js vector search guide (#53772)
## Problem The Next.js vector search guide enables pgvector with `with schema public`, but the later SQL declares columns and function parameters as `extensions.vector(1536)`. A reader who copies the guide's SQL into one migration gets `ERROR: type "extensions.vector" does not exist` at the `nods_page_section` table, so `supabase start` fails. Related to [FDBKIN-11272](https://linear.app/supabase/issue/FDBKIN-11272/fix-outdated-langchain-sql-guide-using-non-existent-extensionsvector) Closes [DOCS-1730](https://linear.app/supabase/issue/DOCS-1730/enable-pgvector-in-the-extensions-schema-in-the-nextjs-vector-search) ## Solution The "Enable the pgvector extension" step now installs pgvector in the `extensions` schema, so the `vector` type is where the rest of the guide's SQL expects it. This also avoids the Security Advisor's extension-in-public lint and matches the other pgvector pages, which already use `with schema extensions`. The `extensions.vector` references stay as they are. How to verify on the preview: 1. On `/docs/guides/ai/examples/nextjs-vector-search`, the "Enable the pgvector extension" step shows `create extension if not exists vector with schema extensions;`. 2. Copying every SQL block of the guide, in order, into one migration runs without `type "extensions.vector" does not exist`. ## Checks Ran the page's three SQL blocks in document order in PGlite with pgvector, after creating an `extensions` schema, an `anon` role, and a `"$user", public, extensions` search path. Before the change they fail with `type "extensions.vector" does not exist`. After it they all run, pgvector sits in `extensions`, and `match_page_sections` returns an inserted 1536-dimension row. Also ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'` (warnings only, none from this page), and Prettier on the changed file. Skipped the `docs` package tests: they need Docker. ## Second reader Verdict: ready. No blockers, no nits. Noted outside this change, left as follow-ups: - The page's Dashboard tab runs Studio's OpenAI Vector Search quickstart, which still installs pgvector in `public`, so the two tabs now use different schemas. The fix for that belongs in the Studio snippet. - Two steps of the SQL tab are both numbered `step={3}`. - Line 12 says "Store you embeddings". - The page uses "we/our" in places, against the style guide's voice. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
9b1af5be91 |
docs(kb): define what belongs in /kb versus /docs (#53875)
## Problem `apps/kb/README.md` explains how the knowledge base is built, but it does not say which content belongs in `/kb` and which belongs in `/docs`. Contributors can add product reference that `/docs` already owns, or miss the decision rule for guides, FAQs, community guides, and troubleshooting. ## Solution **Scope rule for knowledge base content.** This adds a "What belongs in /kb versus /docs" section to `apps/kb/README.md`. ## Review instructions 1. Open `apps/kb/README.md` and read "What belongs in /kb versus /docs". 2. Confirm `/kb` is applied decisions and `/docs` is product truth. 3. Confirm the table covers `guides`, `faqs`, `community-guides`, and `troubleshooting`. 4. Confirm the tip points authors at `/docs`, `/kb`, and `/blog` before they add a page. ## 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.~~ --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Quintin Willison <q@qwuk.net> |
||
|
|
2259562227 |
chore: add redirects for consolidated kb guides on functions limits (#53778)
Add redirects for the following two kb guides that were deleted: `/edge-function-wall-clock-time-limit-reached-Nk38bW` `/edge-function-cpu-limits` These deleted guides redirect to `/edge-function-limits` in the kb. Content from the deleted guides were consolidated into this new guide. ## 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) |
||
|
|
6649b95e87 |
docs: add the explainer template to the style guide (#53751)
## Problem The style guide's template router has only the how-to guide template. Concept pages have no structure to follow, so explainers vary widely and many mix in procedures. Closes DOCS-1610 ## Solution - Add `apps/docs/style-guide/templates/explainer.md`, 88 lines. - Change the explainer row in the document-type table from _Instructions_ to _Procedures past two steps_, to match the tiny-procedure rule. - Add a heading rule to the _versus_ entry in `WORD_LIST.md`. - Add title rules to `03-page-structure.md`: name the product when the noun alone is ambiguous, and avoid placeholder words like _Fundamentals_. Add a Sidebar label section, since `sidebar_label` wasn't documented. - Add its row to the [Choose a template](https://github.com/supabase/supabase/blob/docs/explainer-template/apps/docs/style-guide/03-page-structure.md#choose-a-template) router in `03-page-structure.md`. Key choices: - **Three required parts**: the value statement with an optional cross-reference, the only text before the first heading; a first H2 that says what the concept is; and `## Related resources`. Process, Structure, and `Limits` or `Trade-offs` are optional, because most existing concept pages, such as `platform/regions` and `storage/buckets/fundamentals`, have no Process to write. - **Tiny procedures stay inline**: a one- or two-step action that illustrates the concept can sit in the section it qualifies. A longer procedure, or one with prerequisites, moves to a how-to guide. - **Cross-references by page type**: each section says where to link, such as a how-to for a task stage and a reference for a part's details. The value statement ends with `For how to <task>, see <guide>` when a how-to applies. - **Optional Mermaid diagram**: it requires `accTitle`, `accDescr` naming the nodes and connections, and a takeaway in the prose beside it, per [Diagrams](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/02-elements.md#diagrams). - **Worked example**: a cut-down `auth/architecture.mdx` that shows every slot. Its Process section is illustrative. The skills reach templates through the router, so no skill file changes. ### Learnings from the first rework These refinements come from reworking ten explainers in #53755 and #53757: - **No concept heading.** All five pages define the concept in their opening paragraph, so a `## What <concept> is` heading would repeat it. Later reversed: see Engagement rules. - **One H2 per part.** `auth/architecture` gives each layer its own section, and other pages link to them. The template now allows a parts table followed by one H2 per part. - **Linked headings keep their text** in whichever slot they fill, such as `## Public vs private buckets` as Trade-offs. - **Principles have a home**, such as "treat the schema as read-only": in Limits or Trade-offs, or as an admonition that leads with its impact. - **Related resources can repeat the how-to link** from the value statement. Every page did, and the link-once rule contradicted the example. - **When to use.** An optional `## When to use <concept>` section answers the reader question's "when do I use it?" Two pages had one and no slot fit. - **Bigger Process and Parts.** A Process can take one H2 per stage, for `realtime/architecture`. A concept with two independent sets of parts, such as index types and distance operators, gets one section for each. ### Engagement rules These rules make explainer sections easier to skim, from a read of the reworked Auth architecture page: - **Each part leads with its job**, then says when the reader works with it. History goes last or is cut. - **A Process follows one real case** with real names, such as the endpoint a sign-in calls. - **A diagram stays on the concept**, or the prose names the path that matters. - **Only the value statement before the first heading.** The concept opener slot is gone. The page opens with what the reader can decide and an optional cross-reference to a sister page, and the first H2 says what the concept is, so the definition sits under a heading a reader can scan to. - **Comparison headings are `X vs Y`.** Most existing guide headings already use it, such as `## JSON vs JSONB`. `WORD_LIST.md` now says so under _versus_, and prose keeps _versus_. - **Tables and lists come first.** Comparisons on shared attributes go in a table and parallel facts go in a list, with prose kept for the reasoning that connects them. - **One optional everyday-life analogy**, such as a music festival for Auth. It's framed as a comparison, with _like_ or _similar to_, because no analogy is exact. It names only the one or two pieces that connect it, so the reader gets a mental model rather than a second explanation, and it comes after the literal explanation, so it doesn't conflict with [Avoid idioms and colloquialisms](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/01-voice-and-tone.md#avoid-idioms-and-colloquialisms). To read the whole stack in one diff: ```bash git diff master...docs/explainer-rework-batch-2 ``` ### Preview The style guide isn't served on the docs site, so these link to the rendered files on the branch. | File | Preview | | --- | --- | | Explainer template | [`templates/explainer.md`](https://github.com/supabase/supabase/blob/docs/explainer-template/apps/docs/style-guide/templates/explainer.md) | | Template router | [`03-page-structure.md`](https://github.com/supabase/supabase/blob/docs/explainer-template/apps/docs/style-guide/03-page-structure.md#choose-a-template) | ## Review instructions 1. Open `apps/docs/style-guide/templates/explainer.md` and check that it is 90 lines or fewer. 2. In `03-page-structure.md`, check that the explainer row in **Choose a template** links to the new file. 3. Pick a concept page, such as `content/guides/platform/regions.mdx`, and check that the template fits it without padding. ## 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) |
||
|
|
50d2f79b2a |
docs(auth): edit the Email Templates page and note that confirmations must be on (#53774)
Part of DOCS-1634
## Problem
The Email Templates page never says the confirmation email is sent only
when email confirmations are on. A reader who customizes the template
with confirmations off never sees it sent. The rest of the page also had
loose wording, the Management API example sat under the local
development section, and two variable descriptions were wrong.
## Solution
One commit per change type:
1. **Addition:** a paragraph stating that confirmations must be on,
where to turn them on in hosted and local projects, and what happens
when they are off. Checked against `spec/cli_v1_config.yaml`
(`auth.email.enable_confirmations`, default `false`) and the testing
guide.
2. **Style:** active voice, word list terms (`sign-up`, `for example`),
and the email prefetching workarounds rewritten as two numbered
procedures. No moves.
3. **Structure:** moves only, plus one link-text update.
- Move the Management API example under **Hosted projects**.
- Move **Customization** above **Limitations**, and **Mobile deep
linking** to the end.
- Rename **Terminology** to **Template variables**, and the title to
sentence case. The heading keeps the `#terminology` anchor, which the
`review-the-docs` skill links to.
4. **Technical:** fix `{{. ConfirmationURL }}` to `{{ .ConfirmationURL
}}` in the `{{ .Token }}` row, and "old phone address" to "old phone
number" in the `{{ .OldPhone }}` row.
The sidebar label in `NavigationMenu.constants.ts` stays "Email
Templates".
## Review instructions
1. Review the PR commit by commit.
2. Open `/docs/guides/auth/auth-email-templates` on the preview.
3. Check the confirmations paragraph appears after the security
notifications sentence, and its links resolve.
4. Check the Management API example is under **Hosted projects**.
## 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)
|
||
|
|
676d216c81 |
feat(studio): add events for saved views (#53856)
## Problem Studio tracks PostHog telemetry for most user-facing interactions, but the saved-views feature added in #53630 (moving saved views from a toolbar dropdown into the filter sidebar) shipped with no tracking. There's no way to measure whether people discover the new Views panel, how often they create/apply/manage views, or how they respond to the "this view has been modified" prompt. ## Solution Added six PostHog events covering the saved-views lifecycle, following the existing `unified_logs_*` naming convention (matching the pre-existing `unified_logs_row_clicked` event): - `unified_logs_views_panel_opened` — opening the panel from the sidebar entry or mobile drawer (`surface` property) - `unified_logs_view_applied` — applying a preset or saved view (`viewType`, and `trigger: 'select' | 'reset'` to distinguish a row click from discarding edits via "Reset") - `unified_logs_view_created` — creating a view, with `source: 'new' | 'save_as_new' | 'duplicate'` to distinguish entry points - `unified_logs_view_updated` — renaming (`updateType: 'name'`) or updating a view's filters from the modified-view popover (`updateType: 'filters'`) - `unified_logs_view_removed` — deleting a view - `unified_logs_view_update_prompt_closed` — dismissing the "this view has been modified" popover without updating/saving/resetting Key choice: similar actions were consolidated into one event with a distinguishing property rather than one event per button, per the telemetry-standards convention (e.g. rename and filter-update both fire `unified_logs_view_updated` rather than two separate events). The internal re-apply that happens right after duplicating a view is not tracked as a separate `view_applied` event, to avoid double-counting against `view_created`. Event interfaces were added to `packages/common/telemetry-constants.ts` and registered in the `TelemetryEvent` union; `track()` calls were wired into the relevant handlers in `UnifiedLogs.tsx`. ## Review instructions 1. Enable the Unified Logs feature preview and the `logsSavedViews` flag, then open **Logs**. 2. With PostHog dev tools / network tab open, click the **Saved views** sidebar entry and confirm `unified_logs_views_panel_opened` fires with `surface: 'sidebar'`. 3. Save the current filters as a new view and confirm `unified_logs_view_created` fires with `source: 'new'`. 4. Click another view row to apply it — confirm `unified_logs_view_applied` fires with `trigger: 'select'`. 5. Change a filter on the active view, then click **Reset** in the modified-view popover — confirm `unified_logs_view_applied` fires with `trigger: 'reset'`. 6. Modify filters again and click **Update view** — confirm `unified_logs_view_updated` fires with `updateType: 'filters'`. 7. Rename a view via the row's ⋮ menu — confirm `unified_logs_view_updated` fires with `updateType: 'name'`. 8. Duplicate a view — confirm `unified_logs_view_created` fires with `source: 'duplicate'`. 9. Delete a view — confirm `unified_logs_view_removed` fires. 10. Modify the active view again and dismiss the popover with the X — confirm `unified_logs_view_update_prompt_closed` fires. |
||
|
|
76bef22903 |
chore: Add Mandy Raff to humans.txt (#53874)
## Problem Describe what went wrong or what need emerged to justify this bug fix, feature, or change. Link any relevant issues here. ## Solution Provide a brief description of the change and the key choices you made when architecting the solution. Feel free to include screenshots if it includes visual changes. <!-- ## 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: - [ ] 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) |
||
|
|
20d24cc793 |
chore: update cli reference doc (#53843)
Updates the CLI reference from the supabase/cli release workflow. Generated by `scripts/generate-docs-spec.ts` in supabase/cli — edit the command tree or the content under `apps/cli/docs/` there rather than this file. Generate `apps/docs/spec/common-cli-sections.json` content with `pnpm docs:sidebar` from `apps/cli` in supabase/cli and copy it here; missing entries silently drop pages. Sidebar fixes can be committed directly onto this branch; later releases add commits on top instead of rewriting it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
548abae3e9 |
fix(auth): open matching logs from Overview API errors FE-5191 (#53854)
## Problem On Auth Overview, following a failed sign-in from the Auth API Errors table opens a legacy text search. That search can miss the requests behind the count or include requests with a different method or status. ## Fix Open unified logs for the current project with the gateway source, HTTP method, path, and status from the selected row. Use the start and end timestamps of the query that produced the count. Closes [FE-5191](https://linear.app/supabase/issue/FE-5191). ## How to test 1. Open Authentication → Overview on a project with Auth API errors. 2. Follow the logs link on a failed sign-in row such as `POST /auth/v1/token`. 3. Check the project, API Gateway source, method, path, and HTTP status in Logs. The time range should match the 24-hour window used to fetch the row, even if the page has been open for a while. ## Compatibility and verification Explicit legacy Logs preferences still open the legacy gateway view. In unified logs, existing Path equals and Path does not equal filters now compare the complete path on both backends. Use Contains or Does not contain for substring matching. All 211 focused tests passed with retries disabled, along with Studio typecheck and formatting. Restoring the old substring predicates made the exact-path tests fail on both backends. Verified the click-through on the Studio staging preview for `c9186d34c0`. A `POST /auth/v1/signup` row with status 401 opened unified logs on the same project with the four expected filters. The time window was exactly 24 hours and the visible results matched the row. The component regression covers `POST /auth/v1/token` on both analytics backends. |
||
|
|
4439db9aa6 |
fix: broken links from the Web 404 Review, week of 2026-11-09 (#53436)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1794794072393559?thread_ts=1794794072.393559&cid=C076KTY11DF)_ ## Problem **Before:** Two URLs returned 404. `/partners/startups` had no page or redirect, even though the startups program lives at `/solutions/startups` (and `/startups` already redirects there). In the Python reference, two "redirect URLs and wildcards" links were written without a leading slash, so the browser resolved them relative to the reference page and sent readers to `/docs/reference/python/docs/guides/auth/redirect-urls`, which doesn't exist. **After:** `/partners/startups` permanently redirects to `/solutions/startups`. Both Python reference links point to `/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls`, matching the other links to that page in the same spec. ## Solution One commit per fix, so either can be dropped by reverting its commit: - `/partners/startups` (www): added a permanent redirect to `/solutions/startups` in `apps/www/lib/redirects.js`, next to the existing `/startups` redirect. Redirects run before the `app/partners/[slug]` route, so that route doesn't intercept it. - `/docs/reference/python/docs/guides/auth/redirect-urls` (docs): made the two relative links in `apps/docs/spec/supabase_py_v2.yml` absolute, in the `sign_in_with_oauth()` and `reset_password_for_email()` entries. ## Review instructions 1. Open each path below on the matching Vercel preview. 2. Confirm it lands where described and tick the box. ## To test - [ ] Open `/partners/startups` on the www preview: it redirects to `/solutions/startups`. - [ ] Open `/docs/reference/python/auth-signinwithoauth` and `/docs/reference/python/auth-resetpasswordforemail` on the docs preview: the "redirect URLs and wildcards" links go to `/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls`. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) ## Linear - fixes GROWTH-1502 --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSBbkSPecZj1bHzV9jJ)_ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
0ee83da5e5 | chore(self-hosted): update 2026-11-23 - 0.8.5 (#53866) self-hosted/v0.8.5 | ||
|
|
fb3ed7ee3c |
fix(studio): treat WebKit's CORS-denied module load as a chunk-load error (#53532)
## Problem When a lazily loaded module chunk fails an access-control check in Safari/WebKit (including every iOS browser) — for example, when a corporate proxy, VPN, or captive portal redirects a chunk request cross-origin, or a cross-origin response lacks CORS headers — WebKit's `ScriptModuleLoader` does not throw `"Importing a module script failed."` Instead it rejects the dynamic `import()` with `TypeError: Cross-origin script load denied by Cross-Origin Resource Sharing policy.` and caches the failed module fetch in the document's module map. `isChunkLoadError` in `apps/studio/lib/chunk-load-error.ts` did not recognize this message. The global error boundary and router error component therefore skipped the guarded auto-reload, showed the error page immediately, and reported the error without the `chunkLoadError` tag. ## Solution Add WebKit's access-control module load error message to `CHUNK_LOAD_ERROR_PATTERNS`. Because WebKit only emits this message from `ScriptModuleLoader` (never for `fetch()` or XHR) and Studio only uses dynamic `import()` for internal chunks, it gets the same handling as other chunk-load failures: - one guarded page reload under the existing time window and per-tab cap - if the error recurs inside the window, it falls through to the error UI and is reported with the `chunkLoadError` tag Unit tests cover the new message and verify that a generic CORS-denied `fetch` error is still not treated as a chunk-load error. ## Review instructions This change has no UI. Check it with: 1. `pnpm --filter studio exec vitest run lib/chunk-load-error.test.ts components/ui/ErrorBoundary/useChunkLoadReload.test.tsx` (50 passed). 2. `pnpm --filter studio exec tsc --noEmit` and ESLint on the changed files. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) [FE-4940](https://linear.app/supabase/issue/FE-4940/typeerror-cross-origin-script-load-denied-by-cross-origin-resource) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
08becca4e4 |
chore(mobile app listicle) - split out rest and graphql data apis (#53642)
split out rest and graphql data apis on mobile app listicle |
||
|
|
c0ae88e2b6 |
feat(docs) - add techarticle schema to mgmt api (#53646)
## Context Missing `TechArticle` schemas from Mgmt API docs. ## Preview links [preview url](https://docs-git-kody-devrel-878-mgmt-api-structured-data-supabase.vercel.app/docs/reference/api/introduction) [validation](https://validator.schema.org/#url=https%3A%2F%2Fdocs-git-kody-devrel-878-mgmt-api-structured-data-supabase.vercel.app%2Fdocs%2Freference%2Fapi%2Fintroduction) **Screenshot** <img width="1024" height="670" alt="image" src="https://github.com/user-attachments/assets/cc3578ff-330f-461b-bf5d-c4b29053fbba" /> |
||
|
|
dcd494e101 |
chore(www) - allow indexing of 2 solutions pages (#53644)
## Problem Several pages seem to have indadvertant `noindex, no-follow` robots declarations via meta tags. ## Solution Removes these. ## Preview <img width="1024" height="670" alt="image" src="https://github.com/user-attachments/assets/e0d6e42d-673b-40d4-b9b9-99b0307a1f62" /> https://zone-www-dot-com-git-kody-devrel-877-index-solu-b2f540-supabase.vercel.app/solutions/hackathon --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
ebdbe95c1b |
chore(docs,www) - remove dupe h1s (#53645)
## Problem Dupe h1's in blog and docs ## Solution Removes them. ## Preview links TBD |
||
|
|
079d9905bd |
content(kb) - astro auth listicle (#53481)
## Context Astro auth listicle. Similar in structure to #53468 and #53480. ## Preview links https://kb-git-kody-devrel-854-astro-auth-listicle-supabase.vercel.app/kb/guides/best-astro-authentication-providers |
||
|
|
ca8ee0b93e |
docs(auth): document dedicated scope for SAML providers (#53859)
## What Documents the SAML \`dedicated_scope\` option added in [supabase/auth#2893](https://github.com/supabase/auth/pull/2893) and exposed in the CLI in [supabase/cli#7665](https://github.com/supabase/cli/pull/7665). Some identity providers, notably Microsoft Entra, don't allow the same entity ID in more than one application, so a project could connect only one such app. A provider with a dedicated scope gets its own entity ID, metadata URL, and ACS URL scoped to its provider ID. ## Changes - `auth-sso-saml.mdx`: new "Use a dedicated scope for a connection" section with the URL comparison, the `--dedicated-scope` flag, which commands print the dedicated URLs, and a setup procedure for identity providers (such as Okta) that need the URLs when the app is created. The shared-URL table now links to it. - `cli_v1_commands.yaml`: adds `--dedicated-scope` to `supabase sso add`. ## Needs review - The Entra-specific flow isn't verified. The procedure follows the Okta workflow generically; it's unclear whether Entra rejects a second app created with the shared entity ID. - "Remove and add the connection again" to change scope is inferred, because `sso update` doesn't accept the flag. - No minimum CLI or Auth version is stated. - The generated Management API reference isn't updated, since the published spec doesn't document `dedicated_scope` yet. - The self-hosted SAML page isn't checked. - Not run: docs build, link and anchor checks, `test-the-docs`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
ba7d7727c2 |
chore(deps): bump ip-address to 10.7.6 (#53858)
## Problem `pnpm audit` reports eight advisories against `ip-address@10.2.0` (one high, seven moderate), covering SSRF and trust-boundary bypasses and a parsing denial of service. Studio pulls it in through `@modelcontextprotocol/sdk` > `express-rate-limit`. Docs and the UI library pull it in through `socks`. ## Solution Bump `ip-address` to 10.7.6 in the lockfile only. `scripts/bump-package.ts ip-address 10.7.4` moved the `socks` path. The `express-rate-limit` path stayed on 10.2.0 because the existing scoped override `express-rate-limit>ip-address: ^10.1.1` still accepted the locked version. `pnpm update ip-address --recursive --depth Infinity` re-resolved that path within the same override range. The lockfile now has a single `ip-address@10.7.6`. No `package.json` or `pnpm-workspace.yaml` changes, and `express-rate-limit`, `socks` and `@modelcontextprotocol/sdk` keep their versions. ## Review instructions 1. Run `pnpm install --frozen-lockfile`. It succeeds. 2. Run `pnpm why ip-address --recursive`. It shows only `ip-address@10.7.6`. 3. Run `pnpm audit --json`. It reports no advisories for `ip-address`. Checks run: `pnpm install --frozen-lockfile`, `pnpm why` for `ip-address`, `express-rate-limit`, `socks` and `@modelcontextprotocol/sdk` (unchanged versions), `pnpm audit --json`, and `pnpm turbo run typecheck --filter=studio` (9/9 tasks pass). ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) [FE-5181](https://linear.app/supabase/issue/FE-5181/bump-a-single-vulnerable-dependency) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
601cb1fe0f |
fix(studio): keep inline editor results on expand (#53790)
## TL;DR fixes the inline sql editor dropping its results when opened in the full sql editor ## prob/sol expanding only passed the sql along, so the full editor opened on `Click Run to execute your query` and the query had to be run again ps: now they end up carrying the inline results over to the new snippet on expand, so they show w/o another run | before | after | | ------ | ----- | | <video src="https://github.com/user-attachments/assets/586a5aa3-3793-4e9c-ac51-a63a076e6fdd" controls></video> | <video src="https://github.com/user-attachments/assets/c17200df-2ea7-4da4-a39d-a33dea87561c" controls></video> | ## ref - closes: https://github.com/supabase/supabase/issues/53779 |
||
|
|
623d08c7ff |
changing pgmq repo address to current repo (#38921)
## 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? referenced old pgmq repo from tembo ## What is the new behavior? now points to [pgmq](https://github.com/pgmq/pgmq) --------- Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
899e18527b |
fix(studio): use local dirname in vitest config to avoid Vite deprecation warning (#53210)
## Problem
`apps/studio` is configured as an ES module (`"type": "module"` in
`package.json`). In native Node ESM, the CommonJS global `__dirname` is
not defined.
In `apps/studio/vitest.config.ts`, line 9 explicitly creates a standard
ESM directory reference:
```typescript
const dirname = fileURLToPath(new URL('.', import.meta.url))
```
which is properly used in `setupFiles` (lines 27–29). However, line 18
accidentally used `__dirname` for the `@ui` path alias:
```typescript
alias: {
'@ui': resolve(__dirname, './../../packages/ui/src'),
}
```
This triggers Vite's native loader deprecation warning on every test
run:
```text
(!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
- `__dirname` (vitest.config.ts:18:22). Use `import.meta.dirname` instead
```
## Solution
Replace `__dirname` with `dirname` on line 18 to use the variable
already declared at the top of the file. This aligns with the rest of
the configuration, silences the deprecation warning, and ensures
compatibility with Vite's upcoming native config loader.
## Review instructions
1. Run Vitest in `apps/studio`:
```bash
pnpm --filter studio test
```
2. Verify that the tests run without printing the `configLoader:
'native'` warning for `vitest.config.ts:18:22`.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
|
||
|
|
a9d1e91bb6 |
chore: remove slack notification for ratchet baselines reaching 0 (#53855)
## Problem The weekly ESLint ratchet workflow posts a Slack message to #team-frontend when a rule's baseline drops to 0. That follow-up is no longer needed because this behavior is now built into Tedd. ## Solution Remove the Slack notification step from `.github/workflows/studio-lint-ratchet-decrease.yml`, along with the step outputs that only existed to feed it: - The `id: decrease-baselines` on the baseline update step. - The `changed` and `pr_url` outputs written to `$GITHUB_OUTPUT`, including the `changed=false` output in the no-op branch. - The "Notify #team-frontend about rules that hit a zero baseline" step, which computed zero-baseline rules from `apps/studio/.github/eslint-rule-baselines.json` and posted to `SLACK_DASHBOARD_WEBHOOK_URL`. The baseline update and PR creation/comment logic is unchanged. ## Review instructions 1. Confirm the workflow still runs the "Decrease ESLint ratchet baselines and open PR" step and that the no-change path still exits 0. 2. Confirm no remaining references to `steps.decrease-baselines` or `SLACK_DASHBOARD_WEBHOOK_URL` in this workflow. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
31f9125e22 |
fix(logs): open related timeline events in Overview FE-5160 (#53850)
## Problem Selecting a related event in the Logs Timeline updated the panel header, but users still had to switch to Overview to inspect the event. ## Fix Open the selected event’s Overview and move focus to its tab. Returning to Timeline shows the original request with the inspected event highlighted. Addresses the Timeline interaction reported in [FE-5160](https://linear.app/supabase/issue/FE-5160). The issue also tracks missing Auth events in unfiltered results. ## How to test 1. Open a log with a related event and select Timeline. 2. Click a related event. Check that Overview opens with that event’s details. 3. Return to Timeline and use Enter on a different event. Check its Overview and keyboard focus. ## Verification Verified on the Studio staging preview for commit `96ba43278c`: clicking a related runtime event opened its Overview. Returning to Timeline highlighted that event. Pressing Enter on another event opened its details with focus on the Overview tab. All 37 focused Timeline and user-detail tests passed locally. The updated regression test failed against the previous behavior. Studio typecheck, changed-file ESLint, and Prettier passed. |
||
|
|
9102a31451 |
chore(studio): graduate import/no-anonymous-default-export to error (#53791)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C063LNYJJKS/p1795307074102889)_ Before: `import/no-anonymous-default-export` was tracked in the Studio ESLint ratchet and ran as a warning, so new anonymous default exports could slip in. After: Studio has no violations of this rule, so it is no longer ratcheted and any new anonymous default export fails lint as an error. This graduates `import/no-anonymous-default-export` out of the ratchet and sets it to `error` in Studio's ESLint config. How: removed the rule from `apps/studio/scripts/ratchet-rules.json` and from both sections of `apps/studio/.github/eslint-rule-baselines.json`, and set it to `error` in `apps/studio/eslint.config.cjs`. I set it in the Studio config rather than the shared `eslint-config-supabase`, since `www` (25) and `docs` (1) still have violations. `eslint .` in `apps/studio` reports 0 errors and 0 violations of this rule, and a throwaway anonymous default export is flagged as an error. `lint:ratchet` passes. The bot's baseline PR (#53117) also edits this rule's entries in the baselines file, so one of the two will need a rebase. --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
b103d6098b |
docs(platform): post-restore reconfiguration partial for migration and clone guides (#53782)
Move the list of items that a restore doesn't carry over into a single `restore-manual-configurations` partial, rendered as a caution admonition, and include it on the clone, backup-restore, and dashboard-restore pages. - Add the partial with links for transferring Storage objects and Edge Functions. - Replace the inline lists in clone-project and dashboard-restore. - Move compute size, disk, SSL, and network restrictions into the "What will be transferred?" list on the clone page. ## Problem - Inconsistent usage of steps that require reconfiguration after migration/cloning ## Solution - Consolidate to a partial and add it to one migration guide that didn't have instructions previously ## Review instructions - Doc only contents so should be sufficient to review from source - Notable changes - Previously [Backup and Restore using the CLI](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore) did not have any notice of this - Removed mention of storage and bucket configuration as that is stored in the database <img width="2840" height="1026" alt="Screen Capture 2026-11-23 at 17 19 34@2x" src="https://github.com/user-attachments/assets/b2e8af76-2c1c-4581-9b61-099773976211" /> - Document some differences between the clone and non cloning options - database extension - compute instance size, disk attributes, SSL enforcement settings, and network restrictions - Removed mention of database extensions in [Restore to a new project](https://supabase.com/docs/guides/platform/clone-project) as it is inconsistent with admonition later on in the doc: `Restore to a new project is a binary restore: it copies the entire database, including any enabled extensions` ## Preview [Backup Dashboard backup](https://supabase.com/docs/guides/platform/migrating-within-supabase/dashboard-restore) <img width="1410" height="664" alt="Screen Capture 2026-11-23 at 17 00 24@2x" src="https://github.com/user-attachments/assets/c73f6592-899f-4727-98c2-6bd17b894953" /> [Backup and Restore using the CLI](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore) <img width="1404" height="671" alt="Screen Capture 2026-11-23 at 17 00 41@2x" src="https://github.com/user-attachments/assets/d5beb415-f023-4910-a942-5a3486ee8b58" /> [Restore to a new project](https://supabase.com/docs/guides/platform/clone-project) <img width="1396" height="616" alt="Screen Capture 2026-11-23 at 17 01 02@2x" src="https://github.com/user-attachments/assets/00b19cdf-113d-4994-be09-24ddaf13a3f5" /> ## 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 `/review-the-docs` - [ ] 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: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
649f2b04f7 |
chore: More prominent Nano -> Micro upgrade badge if available (#53847)
Use a more prominent badge for the Compute Size if a Free Upgrade is available, aligned with the Upgrade available banner (same badge with same animation). |
||
|
|
9b5c1ebf0d |
docs(cli): document converting config back to TOML with --to toml (#53736)
## Problem CLI 3.3.0 added `supabase config convert --to toml` (supabase/cli#7741), a supported way to go from `config.jsonc` / `config.json` back to `config.toml`. The docs only cover converting to JSONC. The Branching troubleshooting page only offers a manual git restore for going back. ## Solution - `config-formats.mdx`: a new "Convert back to TOML" section. It covers what the command carries over, the `.bak` backup, the refusal when `config.toml` already exists, `--dry-run` and undo, and the optional reason prompt / `--reason` flag that's sent as telemetry. - `deployment/branching/troubleshooting.mdx`: "Wrong config file used" now points at `--to toml` first and keeps the git restore for CLIs earlier than 3.3.0. ## Review instructions 1. Open the Config formats and Branching troubleshooting pages on the preview. 2. Check the "Convert back to TOML" section and the link to it from the troubleshooting page. ## 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) |
||
|
|
8728c41ad3 |
feat(studio): raise passkey relying party origins limit to 10 (#53735)
Raises the relying party origins limit in the Passkeys settings form and the passkeys guide from 5 to 10. |
||
|
|
286dc37677 |
chore: Free Micro Upgrade banner less permanently dismissible (#53838)
We want more customers to upgrade their instances to Micro on paid plans. - Only dismiss for 7 days at a time per project - Render it if available, not only when there's a performance related reason |
||
|
|
c3a7e1019e | chore(api-types): sync types with production OpenAPI specs (#53839) | ||
|
|
764c676951 |
Joshenlim/fe 5170 deprecate pagelayout component (#53836)
## Context Final piece to the housekeeping for removing the deprecated `PageLayout` component. Moves off the organization and project home routes to the new layout components and deletes the `PageLayout` component within studio |
||
|
|
9495de919f |
Update Kris Talajic title to Growth Lead (#53821)
## Problem Kris Talajic's title in `authors.json` is "Growth Lead, East". His correct title is "Growth Lead". It shows up on the Spago dinner go page and on blog bylines. ## Solution Changes `position` to "Growth Lead" for `kris_talajic` in `apps/www/lib/authors.json`. ## Review instructions 1. Open the Vercel preview at `/go/aws-reinvent/spago-dinner`. 2. Confirm the host card reads "Growth Lead, Supabase". ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
6b39c131af |
Update Kris Talajic title to Growth Lead, East (#53817)
Updates Kris Talajic's `position` in `apps/www/lib/authors.json` from "Sales Lead, East" to "Growth Lead, East". This surfaces on the AWS re:Invent Spago dinner page (`/go/aws-reinvent/spago-dinner`) hosts section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Wendie Cheung <wendie@Wendies-MacBook-Pro.local> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
98876d2e90 |
Joshenlim/fe 5167 refactor pagelayout for branching pages (#53717)
## Context Just some housekeeping to move off old layout components - this PR targets the branching pages, specifically Branching Branching -> Merge requests Branching -> Merge Just need to make sure that these pages still render fine |
||
|
|
f5ac51d4c6 |
Joshenlim/fe 5168 refactor pagelayout for advisor database (#53718)
## Context Just some housekeeping to move off old layout components - this PR targets the database + advisor pages, specifically Advisor -> Settings (Rules), this is behind a feature preview Database -> Tables Database -> Publications Just need to make sure that these pages still render fine |
||
|
|
6ed17bf700 |
docs(csharp): update SDK reference with latest changes (#53720)
Updates the .NET/C# SDK reference with latest changes |
||
|
|
4a73166675 |
Add support for downloading edge functions when file size exceeds max cap (#53709)
## Context Just creating a separate PR cause I messed up the [previous one](https://github.com/supabase/supabase/pull/53453) with a bad merge 🫠 Also changed the implementation to no longer use `@deno/eszip`. For edge functions, functions which exceed 5MB cannot be fetched and displayed in the dashboard editor (API will return a 507). The CTA we give to users is to download the function via the CLI, but this PR explores allowing users to download their edge functions via the browser still, by calling `/v1/functions/slug/body` without the `multi-part/data` header. This returns the function in a raw eszip stream which we're then parsing using a custom reader We'll do this via the "Download as ZIP" CTA here - but this way of downloading only kicks in if the GET Edge Function body endpoint returns a 507. Otherwise it'll just be status quo where we bundle the files that were already fetched to render in the browser into a ZIP file. <img width="343" height="186" alt="image" src="https://github.com/user-attachments/assets/4ffc9fee-7e6d-46a6-bdbe-294610abc802" /> Also updated the warning for 507s: - To use a normal admonition instead of `AlertError` since its technically not an issue - To avoid rendering the API error message in this case specifically as the API message contains "Use multipart instead" which isn't relevant to the dashboard from a user's POV <img width="500" alt="image" src="https://github.com/user-attachments/assets/8242a875-f142-419d-81f0-0dbc30807f87" /> ## To test - [ ] Upload an edge function of size larger than 5MB to a staging project via the CLI - [ ] Verify that there's an Admonition for the large function instead of an error - [ ] Verify that you can still download the edge function via the Download button (Which triggers a POST /body request without multipart) |
||
|
|
c9a25cf11f |
Joshenlim/fe 5172 deprecate old table component (#53728)
## Context More housekeeping - deprecates the old Table component in favor of the Table component under `ui` JFYI also realised as part of this that the following 2 routes are unreachable from the dashboard and hence am opting to deprecate them with a redirect - /logs/explorer/recent - /logs/explorer/saved ## Areas affected to check - [ ] Integrations -> Webhooks <img width="600" alt="image" src="https://github.com/user-attachments/assets/58523cdb-6219-49be-9d2f-5bc26ae03d7f" /> - [ ] Database -> Column Privileges <img width="600" alt="image" src="https://github.com/user-attachments/assets/98bea654-24ac-4646-9c65-5bc4f18565e9" /> - [ ] Observability -> API <img width="600" alt="image" src="https://github.com/user-attachments/assets/a6512c6f-bd04-4d25-8e3c-99c85883434a" /> - [ ] Observability -> Storage - Its a table under "Request caching" which I don't have data for 😅 🙏 - [ ] Observability -> Database <img width="600" alt="image" src="https://github.com/user-attachments/assets/4f0ba203-64b3-41f7-971e-974e232bdedd" /> - [ ] Table Editor -> Project API Docs -> Column list <img width="600" alt="image" src="https://github.com/user-attachments/assets/6358e7a8-5770-46f9-a5a2-4851855ae97f" /> - [ ] Table Editor -> Project API Docs -> RPC parameters list <img width="600" alt="image" src="https://github.com/user-attachments/assets/5e45a1d6-cd29-451c-bf00-5d806ef37cec" /> |
||
|
|
3cfd882683 |
Joshenlim/fe 5169 refactor pagelayout for storage functions (#53719)
## Context Just some housekeeping to move off old layout components - this PR targets the Storage + Edge Function + Wildcard pages, specifically: Project wildcard route (/project/_) Organization wildcard route (/org/_) Storage -> Analytics Buckets Storage -> Vector Buckets Edge Function -> New function Just need to make sure that these pages still render fine |