5 Commits
Author SHA1 Message Date
anthony lio 02e61b9cda fix(docs): layout v2 reference fixtures (#54233)
## Problem

- after #53761 the option-1 sidebar reference list has no row for
server, middleware and tanstack db
- list marks no row as current on a library page, for example on
`/reference/javascript/select`
- management api intro shows its endpoint list in the right rail and its
toc in an extra column inside the content

## Solution

- adds the server, middleware and tanstack db rows with the new and
experimental badges of the current nav
- fixes the reference list so it marks the library of the current page
- changes the management api to open as its own sidebar level with the
endpoint list on the left
- moves the toc, the links and the feedback of the management api intro
into the right rail + removes the rail on endpoint pages
- adds the "on this page" menu to the management api intro below `lg`
- adds the reference library column to the option-1 nav size allowlist
because it is a list of peer libraries

| before | after |
| -------|------|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/3a216c0b-31c1-4629-82a1-0590c7e639ae"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/c53afc0e-8d15-45d7-9dc8-320443761ed2"
/> |

| before | after |
| -------|------|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/5dc79bb9-b160-44e6-a3c5-39182fb71d4f"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/9e0dff3c-5261-4c70-b1f1-f74314231a08"
/> |

<!--
## 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/reference?docs-ia-mvp-v1=option-1](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference?docs-ia-mvp-v1=option-1)
and do all steps in the same tab because the flag override lasts only
for the tab
2. make sure that the reference list shows server and middleware
3. open
[/docs/reference/javascript/select](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference/javascript/select)
and make sure that the sidebar marks only the javascript row
4. click `Management API` in the sidebar and make sure that the sidebar
shows `< Management API` with the endpoint list
5. make sure that the right rail shows the toc, the additional links and
the feedback buttons
6. open
[/docs/guides/database/overview](https://docs-ivb0vb1qq-supabase.vercel.app/docs/guides/database/overview)
and make sure that the sidebar and the right rail did not change

## 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)
2026-11-30 20:19:04 +00:00
Miranda Limonczenko 7636e18f8d docs: shorten and sentence-case the Option 1 sidebar labels (#53880)
Part of DOCS-1737

## Problem

People who tried the Option 1 navigation reported labels that wrap onto
two lines, such as "Architecture, limits and pricing". The old
35-character limit let that label through at 32 characters.

They also reported labels that aren't in sentence case, such as
"Framework Quickstarts" and "ORM Quickstarts". The docs style guide asks
for sentence case.

## Solution

- **28-character limit, enforced.** A new test in `option1.test.ts`
fails on any Option 1 sidebar label over 28 characters. 97 labels were
over the limit. They're shortened.
- **Sentence case.** About 120 more labels are recased. Proper nouns and
product feature names keep their capitals, such as Edge Functions, Row
Level Security and Auth Hooks. "Self-Hosting" becomes "Self-hosting" in
the top nav and the sidebar title.
- **Parallel Start labels.** "Web app demos" becomes "Web app
tutorials", to match "Mobile tutorials".
- **Build becomes Products.** The tree test ran each candidate label
against the shipped Option 1 tree, with 93 tasks and 3 runs each.
Products raised direct success from 51% to 59%, and first clicks on the
right section from 78% to 88%.
- **Test fixtures.** `DocsSidebarNav.test.tsx` and the level-size
allowlist reference labels by name, so they change too.


## Manual testing

1. Open [Getting started with Option 1 on the
preview](https://docs-git-docs-nav-label-casing-supabase.vercel.app/docs/guides/getting-started?docs-ia-mvp-v1=option-1).
The sidebar shows "Framework quickstarts" and "Web app tutorials".
2. Run `pnpm run -F docs test:local:unwatch features/IaNav
components/Navigation`. Expect all tests to pass.
2026-11-30 11:00:01 -08:00
46727fa89b docs: add guide for managing remote config as code (#50353)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Docs. A new guide for `supabase config diff`, `config pull`, and `config
push`, written for CLI v3. Relates to MARKET-1590.

## What is the current behavior?

The CLI reference lists the three commands, but no guide explains the
workflow. The Select 2026 recap blog tells users to run `config pull`
with nothing to link to.

## What is the new behavior?

- New guide at `/docs/guides/local-development/config-as-code`, in the
nav after "Managing config and secrets".
- Covers diff (labels, `--exit-code` for CI), pull (preview, git check,
where values go), push (one consent question, `--yes` for CI and agents,
the `init` defaults risk), and what push can and cannot write.
- Links to `local-and-hosted-projects` and `migrating-to-v3` for the
shared v3 target and consent rules.

## Additional context

All behavior claims are checked against `supabase/cli` `v3.4.0`.

**Related:** #50594 by @Sweta0519 adds a `config push` section to
`managing-config.mdx`. This guide includes its `[group-write]` and
`init` defaults points, with credit. It might be good to ask if we can
shrink #50594 to a short pointer to this guide, so the two do not repeat
each other.

**Needs review:** one inline `NEEDS REVIEW` comment. "The Dashboard
stays editable" is product intent from the PRFAQ, not confirmed in
platform code.

**Verified:** MDX compiles, internal links and anchors resolve, and the
preview page returns 200 and shows in the nav.

| Before (net-new page) | [After (PR
preview)](https://docs-git-nikrichers-market-1590-launch-config-d-a8be81-supabase.vercel.app/docs/guides/local-development/config-as-code)
|
| ------------------------------ | --- |
| _No production URL, new page._ |
![config-as-code-after](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr50353/config-as-code-after-v3-865d0b89.png)
|

🤖 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>
2026-11-27 13:01:58 -06:00
Miranda Limonczenko 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.
2026-10-28 16:03:11 +00:00
Miranda Limonczenko 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`.
2026-10-28 08:47:54 -07:00