Files
Showy/docs-vault/Navigation.md
T

26 lines
755 B
Markdown

# Navigation
## Overview
Breadcrumb-style navigation for detail pages. Pages use linked text segments separated by `/`.
## Patterns
### SeasonPage
`Title / Season x`
- "Title" links to `/entry/:entryId`
- "Season x" is the current page (non-linked, bold)
- Entry title fetched from `useLibraryStore`
### EpisodePage
`Title / Season x / Episode x`
- "Title" links to `/entry/:entryId`
- "Season x" links to `/entry/:entryId/season/:seasonId`
- "Episode x" is the current page (non-linked, bold)
- Uses `useSeason()` hook to get `season_number` (not the DB `seasonId`)
- Entry title fetched from `useLibraryStore`
## Width Constraints
Detail pages (EntryDetailsPage, [[SeasonPage]], [[EpisodePage]]) use `mx-auto max-w-4xl` for consistent max width.