mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 00:19:08 +00:00
Closes DOCS-1473 Closes DOCS-1578 ## Problem The [tree test results on the live trees](https://app.notion.com/p/40e5004b775f811b91bed8f7c76ac7f6) found four tasks where agents look in a different place from where Option 1 puts the page: - **Shared responsibility:** agents look in Security and compliance. The page is under Deploy to production, and every arm failed the task. - **RLS testing:** agents look in Local Development and CLI. The page is under Database. - **Project transfer:** with two levels visible, agents open Team, because the task is about organizations. - **Leaked API key:** with two levels visible, agents see Start's "API keys" and choose it. The rotation page sits a level deeper, under Security and compliance. ## Solution Revises four Option 1 placements and labels. Option 1 only. Today's nav, page content, and URLs don't change. No subheads. | Task | Change | | --- | --- | | Shared responsibility | Moved from Deploy to production to Security and compliance › Compliance. The `docs:compliance` flag moves to the SOC 2, HIPAA, and GDPR items so the page shows in every build. | | RLS testing | New Testing group under Local Development and CLI, with Overview, Test RLS policies with pgTAP, Testing your database, and pgTAP advanced guide. Database's Testing group goes away. | | Project transfer | "Projects, compute and scaling" becomes "Projects, organizations and compute", in the sidebar and the top nav. "Transfer Project" becomes "Transfer to another organization". | | Leaked API key | Start's "API keys and key rotation" becomes an "API keys" group with two pages: API keys, and Rotate a leaked API key. The rotation page moves out of Security and compliance. | Each page keeps one home. Every level stays at 7 items or fewer, 5 levels at most, and labels at 35 characters or fewer. In the tree test on this preview, all four tasks now pass with no wrong turns at two levels. Set-aside tasks score 83% against Option 1's 71% at two levels, and the same within noise at one level. ## Preview links | Site | Live | Preview | Search for | | --- | --- | --- | --- | | Docs | Not live until supabase/supabase#52735 merges | [/docs/nav-tree.json](https://docs-git-docs-ia-option-1-placement-revisions-supabase.vercel.app/docs/nav-tree.json?docs-ia-mvp-v1=option-1) | Rotate a leaked API key | ## Additional context - **The leaked-key move trades views.** With two levels visible, as in the top nav dropdown, agents choose the rotation page in 3 of 3 runs, up from 0. With one level at a time, as on mobile, they look in Security and compliance first and find it in 0 of 3, down from 3. A follow-up link from the Security and compliance hub to the rotation page would help one-level readers without listing the page twice. - **Set-aside tasks:** the shared responsibility and project transfer cases are set-aside tasks. A gain on either can't count as unseen-task evidence. Only a fresh holdout set can confirm it. ## Review instructions 1. Open `/docs/nav-tree.json?docs-ia-mvp-v1=option-1` on the preview. Check that each moved page appears once, under its new parent. 2. Open `/docs/nav-tree.json` without the parameter. Check that it matches supabase/supabase#52737's. 3. Open `/docs?docs-ia-mvp-v1=option-1` on the preview and hover Start. Check that API keys shows as a group with Rotate a leaked API key inside. ## 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)
90 lines
3.0 KiB
TypeScript
90 lines
3.0 KiB
TypeScript
import { isFeatureEnabled } from 'common/enabled-features'
|
|
|
|
import type { NavMenuConstant } from '@/components/Navigation/Navigation.types'
|
|
|
|
const { docsLocalDevelopment: localDevelopmentEnabled, docsPgtap: pgTapEnabled } = isFeatureEnabled(
|
|
['docs:local_development', 'docs:pgtap']
|
|
)
|
|
|
|
export const localDevelopment: NavMenuConstant = {
|
|
icon: 'dev-cli',
|
|
title: 'Local Development and CLI',
|
|
url: '/guides/local-development',
|
|
items: [
|
|
{ name: 'Install and run the CLI', url: '/guides/local-development/cli/getting-started' },
|
|
{ name: 'Local development workflow', url: '/guides/local-development/cli-workflows' },
|
|
{
|
|
name: 'Schemas and migrations',
|
|
items: [
|
|
{ name: 'Database migrations', url: '/guides/local-development/database-migrations' },
|
|
{
|
|
name: 'Declarative database schemas',
|
|
url: '/guides/local-development/declarative-database-schemas',
|
|
},
|
|
{ name: 'Diff engines', url: '/guides/local-development/diff-engines' },
|
|
{ name: 'Seeding your database', url: '/guides/local-development/seeding-your-database' },
|
|
{
|
|
name: 'Restoring downloaded backup',
|
|
url: '/guides/local-development/restoring-downloaded-backup',
|
|
enabled: localDevelopmentEnabled,
|
|
},
|
|
{ name: 'Generate TypeScript types', url: '/guides/api/rest/generating-types' },
|
|
{ name: 'Generate Python types', url: '/guides/api/rest/generating-python-types' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Local environment setup',
|
|
items: [
|
|
{
|
|
name: 'Running multiple local projects',
|
|
url: '/guides/local-development/running-multiple-local-projects',
|
|
},
|
|
{
|
|
name: 'Docker and native runtimes',
|
|
url: '/guides/local-development/docker-and-native-runtimes',
|
|
},
|
|
{
|
|
name: 'Managing configuration and secrets',
|
|
url: '/guides/local-development/managing-config',
|
|
},
|
|
{
|
|
name: 'Customizing email templates',
|
|
url: '/guides/local-development/customizing-email-templates',
|
|
enabled: localDevelopmentEnabled,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Testing',
|
|
items: [
|
|
{
|
|
name: 'Overview',
|
|
url: '/guides/local-development/testing/overview',
|
|
enabled: localDevelopmentEnabled,
|
|
},
|
|
{
|
|
name: 'Test RLS policies with pgTAP',
|
|
url: '/guides/database/postgres/testing-row-level-security',
|
|
},
|
|
{ name: 'Testing your database', url: '/guides/database/testing' },
|
|
{
|
|
name: 'pgTAP advanced guide',
|
|
url: '/guides/local-development/testing/pgtap-extended',
|
|
enabled: pgTapEnabled,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'CLI reference',
|
|
items: [
|
|
{
|
|
name: 'CLI configuration',
|
|
url: '/guides/local-development/cli/config',
|
|
enabled: localDevelopmentEnabled,
|
|
},
|
|
{ name: 'CLI commands', url: '/reference/cli' },
|
|
],
|
|
},
|
|
],
|
|
}
|