mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Part of DOCS-1738 ## Problem People who tried the Option 1 navigation couldn't find some pages in the nav: - **Preview branches on Vercel:** five of eight readers struggled. The item sat two rows below Vercel Marketplace and started with "Preview", so a scan for "Vercel" stopped too early. - **Rotate a leaked API key:** readers looked under Security and compliance. The nav listed it under Start, inside API keys. - **Pause a paid-plan project:** the page sat inside organization transfers. - **Start:** API keys came before the quickstarts and tutorials that new readers come to Start for. - **Realtime:** readers expected it next to Database, Auth and Storage, in the home page's order. The nav put it inside "REST, GraphQL and Realtime". - **Auth sign-in providers:** about 20 OAuth providers filled the Auth sidebar, above the other sign-in methods. - **Observability:** Logs and monitoring kept the layout from before the Observability regroup in #50074. It also left out the Observability overview and Logs in the CLI. ## Solution - **Vercel.** The item becomes "Vercel preview branches" and sits next to Vercel Marketplace. The Marketplace page and Deploy to production link to it. Those two page edits ship to all readers, not only Option 1. - **Rotate a leaked API key.** The item moves to Security and compliance. The API keys page already links to it. - **Paid-plan pausing.** The item moves next to Free project pausing. - **Start order.** Quickstarts and tutorials come first. API keys and the legacy-key migration follow. - **Realtime.** Realtime gets its own sidebar and sits after Storage in Products. The APIs sidebar becomes "REST and GraphQL APIs". Products now has 8 items, one over the proposal's 7-item rule, by decision. - **Observability groups.** Logs and monitoring uses today's task groups: Read project data, Detect and diagnose, Agent prompts, and Configure and export. It lists the overview and Logs in the CLI again. The label stays "Logs and monitoring". Metrics API and Platform webhooks keep their own groups. - **Auth SDK entries.** "Server SDK" and "Middleware SDK" become "Server SDK reference" and "Middleware SDK reference", so readers know the link leaves the guides. The Self-hosting reference entries already use that pattern. - **Sign-in options.** "Social sign-in (OAuth)" and "Other sign-in methods" merge into one "Sign-in options" group. The providers sit in a collapsible "Social sign-in (OAuth)" group inside it. The level-size allowlist follows the new path. ## Manual testing 1. Open [Broadcast with Option 1 on the preview](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/realtime/broadcast?docs-ia-mvp-v1=option-1). The sidebar header reads "Realtime", with a button back to Products. 2. Open [Vercel Marketplace with Option 1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace?docs-ia-mvp-v1=option-1). The sidebar lists "Vercel preview branches" under Vercel Marketplace, and the page links to Preview branches on Vercel. 3. Open [Logs in the CLI with Option 1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/observability/cli-logs?docs-ia-mvp-v1=option-1). The sidebar lists it under Logs and monitoring > Read project data. 4. Run `pnpm run -F docs test:local:unwatch features/IaNav components/Navigation`. Expect all tests to pass. 5. Open [Vercel Marketplace without the flag](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace). The page links to Preview branches on Vercel.
75 lines
2.5 KiB
TypeScript
75 lines
2.5 KiB
TypeScript
import type { NavMenuConstant } from '@/components/Navigation/Navigation.types'
|
|
|
|
export const apis: NavMenuConstant = {
|
|
icon: 'rest',
|
|
title: 'REST and GraphQL APIs',
|
|
url: '/guides/api',
|
|
items: [
|
|
{
|
|
name: 'Data API (REST)',
|
|
items: [
|
|
{ name: 'Quickstart', url: '/guides/api/quickstart' },
|
|
{ name: 'Client libraries', url: '/guides/api/rest/client-libs' },
|
|
{
|
|
name: 'Security',
|
|
items: [
|
|
{ name: 'Securing your API', url: '/guides/api/securing-your-api' },
|
|
{
|
|
name: 'Custom claims and RBAC',
|
|
url: '/guides/api/custom-claims-and-role-based-access-control-rbac',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Tools',
|
|
items: [
|
|
{ name: 'Autogenerated documentation', url: '/guides/api/rest/auto-generated-docs' },
|
|
{ name: 'SQL to REST API translator', url: '/guides/api/sql-to-rest' },
|
|
{ name: 'SQL to JavaScript API', url: '/guides/api/sql-to-api' },
|
|
{
|
|
name: 'Query plans with explain()',
|
|
url: '/guides/api/query-plans',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Routes and schemas',
|
|
items: [
|
|
{ name: 'Creating API routes', url: '/guides/api/creating-routes' },
|
|
{ name: 'Using custom schemas', url: '/guides/api/using-custom-schemas' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Error codes and handling',
|
|
items: [
|
|
{ name: 'Error codes', url: '/guides/api/rest/postgrest-error-codes' },
|
|
{
|
|
name: 'supabase-js errors',
|
|
url: '/guides/api/handling-errors-in-supabase-js',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'GraphQL API',
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/graphql' },
|
|
{ name: 'API', url: '/guides/graphql/api' },
|
|
{ name: 'Views', url: '/guides/graphql/views' },
|
|
{ name: 'Functions', url: '/guides/graphql/functions' },
|
|
{ name: 'Computed fields', url: '/guides/graphql/computed-fields' },
|
|
{ name: 'Configure and customize', url: '/guides/graphql/configuration' },
|
|
{ name: 'Security', url: '/guides/graphql/security' },
|
|
{
|
|
name: 'Integrations',
|
|
items: [
|
|
{ name: 'With Apollo', url: '/guides/graphql/with-apollo' },
|
|
{ name: 'With Relay', url: '/guides/graphql/with-relay' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|