mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +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.
155 lines
6.3 KiB
TypeScript
155 lines
6.3 KiB
TypeScript
import { isFeatureEnabled } from 'common/enabled-features'
|
|
|
|
import type { NavMenuConstant } from '@/components/Navigation/Navigation.types'
|
|
|
|
const {
|
|
docsFrameworkQuickstarts: frameworkQuickstartsEnabled,
|
|
docsMobileTutorials: mobileTutorialsEnabled,
|
|
docsWebApps: webAppsEnabled,
|
|
sdkCsharp: sdkCsharpEnabled,
|
|
sdkDart: sdkDartEnabled,
|
|
sdkKotlin: sdkKotlinEnabled,
|
|
sdkPython: sdkPythonEnabled,
|
|
sdkSwift: sdkSwiftEnabled,
|
|
} = isFeatureEnabled([
|
|
'docs:framework_quickstarts',
|
|
'docs:mobile_tutorials',
|
|
'docs:web_apps',
|
|
'sdk:csharp',
|
|
'sdk:dart',
|
|
'sdk:kotlin',
|
|
'sdk:python',
|
|
'sdk:swift',
|
|
])
|
|
|
|
const jsOnly =
|
|
!sdkCsharpEnabled && !sdkDartEnabled && !sdkKotlinEnabled && !sdkPythonEnabled && !sdkSwiftEnabled
|
|
|
|
export const start: NavMenuConstant = {
|
|
icon: 'getting-started',
|
|
title: 'Start',
|
|
url: '/guides/getting-started',
|
|
items: [
|
|
{ name: 'The Supabase way to build', url: '/guides/getting-started/the-supabase-way-to-build' },
|
|
{ name: 'Architecture', url: '/guides/getting-started/architecture' },
|
|
{ name: 'API keys', url: '/guides/getting-started/api-keys' },
|
|
{
|
|
name: 'Migrate from legacy API keys',
|
|
url: '/guides/getting-started/migrating-to-new-api-keys',
|
|
},
|
|
{
|
|
name: 'Framework quickstarts',
|
|
enabled: frameworkQuickstartsEnabled,
|
|
items: [
|
|
{
|
|
name: 'JavaScript and TypeScript',
|
|
id: 'start-javascript-and-typescript',
|
|
items: [
|
|
{ name: 'React', url: '/guides/getting-started/quickstarts/reactjs' },
|
|
{ name: 'Next.js', url: '/guides/getting-started/quickstarts/nextjs' },
|
|
{ name: 'TanStack Start', url: '/guides/getting-started/quickstarts/tanstack' },
|
|
{ name: 'Astro', url: '/guides/getting-started/quickstarts/astrojs' },
|
|
{ name: 'Vue', url: '/guides/getting-started/quickstarts/vue' },
|
|
{ name: 'Nuxt', url: '/guides/getting-started/quickstarts/nuxtjs' },
|
|
{ name: 'SvelteKit', url: '/guides/getting-started/quickstarts/sveltekit' },
|
|
{ name: 'SolidJS', url: '/guides/getting-started/quickstarts/solidjs' },
|
|
{ name: 'RedwoodJS', url: '/guides/getting-started/quickstarts/redwoodjs' },
|
|
{ name: 'Refine', url: '/guides/getting-started/quickstarts/refine' },
|
|
{ name: 'Hono', url: '/guides/getting-started/quickstarts/hono' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Mobile',
|
|
items: [
|
|
{ name: 'iOS SwiftUI', url: '/guides/getting-started/quickstarts/ios-swiftui' },
|
|
{ name: 'Android Kotlin', url: '/guides/getting-started/quickstarts/kotlin' },
|
|
{
|
|
name: 'Expo React Native',
|
|
url: '/guides/getting-started/quickstarts/expo-react-native',
|
|
},
|
|
{ name: 'Flutter', url: '/guides/getting-started/quickstarts/flutter' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Python, PHP, Ruby, and Java',
|
|
enabled: !jsOnly,
|
|
items: [
|
|
{ name: 'Flask (Python)', url: '/guides/getting-started/quickstarts/flask' },
|
|
{ name: 'Reflex (Python)', url: '/guides/getting-started/quickstarts/reflex' },
|
|
{ name: 'Laravel PHP', url: '/guides/getting-started/quickstarts/laravel' },
|
|
{ name: 'Ruby on Rails', url: '/guides/getting-started/quickstarts/ruby-on-rails' },
|
|
{ name: 'Spring Boot', url: '/guides/getting-started/quickstarts/spring-boot' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Web app tutorials',
|
|
id: 'start-web-app-tutorials',
|
|
enabled: webAppsEnabled,
|
|
items: [
|
|
{ name: 'Next.js', url: '/guides/getting-started/tutorials/with-nextjs' },
|
|
{ name: 'React', url: '/guides/getting-started/tutorials/with-react' },
|
|
{ name: 'Vue 3', url: '/guides/getting-started/tutorials/with-vue-3' },
|
|
{ name: 'Nuxt 3', url: '/guides/getting-started/tutorials/with-nuxt-3' },
|
|
{ name: 'Angular', url: '/guides/getting-started/tutorials/with-angular' },
|
|
{ name: 'RedwoodJS', url: '/guides/getting-started/tutorials/with-redwoodjs' },
|
|
{ name: 'SolidJS', url: '/guides/getting-started/tutorials/with-solidjs' },
|
|
{ name: 'Svelte', url: '/guides/getting-started/tutorials/with-svelte' },
|
|
{ name: 'SvelteKit', url: '/guides/getting-started/tutorials/with-sveltekit' },
|
|
{ name: 'Refine', url: '/guides/getting-started/tutorials/with-refine' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Mobile tutorials',
|
|
enabled: mobileTutorialsEnabled,
|
|
items: [
|
|
{
|
|
name: 'Flutter',
|
|
url: '/guides/getting-started/tutorials/with-flutter',
|
|
enabled: sdkDartEnabled,
|
|
},
|
|
{
|
|
name: 'Expo React Native',
|
|
url: '/guides/getting-started/tutorials/with-expo-react-native',
|
|
},
|
|
{
|
|
name: 'Android Kotlin',
|
|
url: '/guides/getting-started/tutorials/with-kotlin',
|
|
enabled: sdkKotlinEnabled,
|
|
},
|
|
{ name: 'Ionic React', url: '/guides/getting-started/tutorials/with-ionic-react' },
|
|
{ name: 'Ionic Vue', url: '/guides/getting-started/tutorials/with-ionic-vue' },
|
|
{ name: 'Ionic Angular', url: '/guides/getting-started/tutorials/with-ionic-angular' },
|
|
{
|
|
name: 'Swift',
|
|
url: '/guides/getting-started/tutorials/with-swift',
|
|
enabled: sdkSwiftEnabled,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Migrate to Supabase',
|
|
items: [
|
|
{ name: 'Overview', url: 'https://supabase.com/kb/topics/migration' },
|
|
{
|
|
name: 'From another Postgres host',
|
|
items: [
|
|
{ name: 'Heroku', url: 'https://supabase.com/kb/guides/migrate-from-heroku' },
|
|
{ name: 'Render', url: 'https://supabase.com/kb/guides/migrate-from-render' },
|
|
{ name: 'Amazon RDS', url: 'https://supabase.com/kb/guides/migrate-from-amazon-rds' },
|
|
{ name: 'Postgres', url: 'https://supabase.com/kb/guides/migrate-from-postgres' },
|
|
{
|
|
name: 'Vercel Postgres',
|
|
url: 'https://supabase.com/kb/guides/migrate-from-vercel-postgres',
|
|
},
|
|
{ name: 'Neon', url: 'https://supabase.com/kb/guides/migrate-from-neon' },
|
|
],
|
|
},
|
|
{ name: 'MySQL', url: 'https://supabase.com/kb/guides/migrate-from-mysql' },
|
|
{ name: 'MSSQL', url: 'https://supabase.com/kb/guides/migrate-from-mssql' },
|
|
],
|
|
},
|
|
],
|
|
}
|