mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Problem Legacy Studio page chrome (`PageLayout`, `Scaffold*`, in-header breadcrumbs/tabs) is still easy to reach for new work. #53356 deprecated a few of those APIs; the rest still lacked `@deprecated` notices. ## Solution Add `@deprecated` JSDoc on the remaining Studio page-chrome helpers and strengthen the existing `PageHeaderBreadcrumb` / `PageHeaderNavigationTabs` notices, with site-relative `/design-system/docs/...` links. Also point Nav Menu docs at `PageNav` instead of `PageLayout`. ## Review instructions 1. Skim JSDoc on `apps/studio/components/layouts/Scaffold.tsx` and `PageLayout/PageHeader.tsx`. 2. Confirm `PageHeaderBreadcrumb` and `PageHeaderNavigationTabs` in `packages/ui-patterns/src/PageHeader/index.tsx` point at `/design-system/docs/fragments/...`. ## 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) <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-1c9eee9e-93f6-4914-9d1d-76a7bbd511be?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-1c9eee9e-93f6-4914-9d1d-76a7bbd511be&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Danny White <dnywh@users.noreply.github.com>
40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
---
|
|
title: Navigation
|
|
description: Navigation patterns help users understand where they are and where they can go next.
|
|
---
|
|
|
|
Supabase has a necessarily complex navigation system to handle multiple products and levels of hierarchy. This page introduces those general patterns, best practices, and the components involved.
|
|
|
|
## Components
|
|
|
|
### [Nav Menu](../components/nav-menu)
|
|
|
|
A horizontal list of related views inside [Page Nav](../fragments/page-nav), below
|
|
[Page Breadcrumbs](../fragments/page-breadcrumbs) and outside [Page Header](../fragments/page-header).
|
|
Activating a NavMenu item should trigger a URL change. See [Layout patterns](./layout).
|
|
|
|
### [Skip To Content](../fragments/skip-to-content)
|
|
|
|
Keyboard-accessible skip link for apps with persistent header and sidebar chrome. Hidden until focused via Tab, then slides into view so users can jump past navigation to the main landmark. See [Accessibility](../accessibility#jumping-ahead) for broader context.
|
|
|
|
## Page titles
|
|
|
|
Browser page titles should follow a consistent most-specific-first structure so tabs and browser history are easier to scan:
|
|
|
|
`Entity | Section | Surface | Project | Org | Supabase`
|
|
|
|
Examples:
|
|
|
|
- `users | Table Editor | My Project | My Org | Supabase`
|
|
- `Backups | Database | My Project | My Org | Supabase`
|
|
|
|
Implementation notes (Studio):
|
|
|
|
- Use the shared title formatter in `apps/studio/lib/page-title.ts`
|
|
- Prefer `ProjectLayout` for project-scoped pages
|
|
- Prefer a layout's explicit `title` prop when a wrapper layout exposes one
|
|
- Use `browserTitle.section` when rendering `ProjectLayout` directly
|
|
- Use `browserTitle.entity` for the most specific resource (table/function/query) when available
|
|
- Use `product` as the single source of truth for the project-level surface segment
|
|
- Avoid assembling `document.title` ad hoc in individual pages/layouts
|