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>
This commit is contained in:
1 parent
4303b33677
commit
3448142242
9 files changed
+710
-3
No files matched your search
@@ -74,7 +74,24 @@ Detail pages use `mx-auto max-w-4xl` for consistent max width:
|
||||
/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
|
||||
|
||||
- [[Routing]] — All routes
|
||||
- [[Pages]] — Page components
|
||||
- [[Components#Command Palette]] — Palette implementation details
|
||||
Reference in new issue
Block a user