Files
Showy/docs-vault/Navigation.md
Mohammed AbadandCopilot 3448142242 feat(frontend): add Spotlight-style command palette with recent tracking
- Add CommandPalette component with keyboard navigation (arrows, Enter, Shift+Enter, Esc)
- Add useCommandPaletteStore Zustand store with localStorage-persisted recently viewed
- Show two distinct sections: Library results and TMDB Results (no duplicates)
- Exclude library entries from TMDB Results section by TMDB ID index
- Add "View all" links: Library section → /library, TMDB section → /search
- Persist non-library TMDB entries in localStorage for recently viewed support
- Register global Ctrl+P / Cmd+P / slash shortcuts in AppLayout
- Track entry visits in EntryDetailsPage for recently viewed
- Track TMDB preview visits in TmdbPreviewPage for recently viewed
- Updated related docs files

Co-authored-by: Copilot <copilot@github.com>
2026-05-04 08:33:27 +01:00

2.4 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)

Command Palette

A global Spotlight-style command palette (Ctrl+P / /) is available on every page. See Components#Command Palette for full details.

Quick navigation commands

Command Destination
Go to Library /library
Go to Watchlist /watchlist
Go to Statistics /dashboard
Go to Calendar /calendar
Go to People /people
Go to Settings /settings
Go to Favorites /library?filter=favorites

See Also