Files
Showy/docs-vault/Navigation.md
T

1.9 KiB

title, tags
title tags
Navigation
frontend
navigation
breadcrumbs
ux

Navigation

Sidebar

The Sidebar component provides the main navigation:

Link Page
Home /
Search /search
Library /library
Watchlist /watchlist
Collections /collections
Calendar /calendar
People /people
Media /media
Dashboard /dashboard
Settings /settings

Breadcrumb Patterns

Detail pages use breadcrumb-style navigation with linked text segments separated by /.

SeasonPage

Title / Season x
  • Title → links to /entry/:entryId
  • Season x → current page (non-linked, bold, text-foreground font-medium)
  • Entry title from useLibraryStore((s) => s.entries.get(entryId)?.title)
  • Season number from season.season_number

EpisodePage

Title / Season x / Episode x
  • Title → links to /entry/:entryId
  • Season x → links to /entry/:entryId/season/:seasonId
  • Episode x → current page (non-linked, bold)
  • Entry title from Stores
  • Season number from useSeason() hook → season.season_number

[!warning] Season Number vs Season ID Always use season.season_number for display (0 = Specials, 1 = Season 1, etc.). The seasonId URL parameter is the database ID, not the display number. The S##E## badge on EpisodePage uses season.season_number padded to 2 digits.

Width Constraints

Detail pages use mx-auto max-w-4xl for consistent max width:

  • EntryDetailsPage
  • SeasonPage
  • EpisodePage

Entry Details Hierarchy

/entry/:id                    → EntryDetailsPage (entry detail)
    ↓ Season card click
/entry/:id/season/:seasonId   → SeasonPage (episode list)
    ↓ Episode click
/entry/:id/season/:seasonId/episode/:episodeId → EpisodePage (episode detail)

See Also