mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Addresses the deeper issues left open by the previous cleanup pass: the jukebox downloaded the whole track catalog on mount and re-derived every facet client-side, and the view had grown to hold all of that state plus eight screens' worth of markup. Backend — close the gaps that forced the client-side grouping: - filter tracks by the owning game's genre and by a year range - facet games, platforms and game genres, so each sidebar is a paginated server query with counts instead of a grouping over the full catalog - a stats endpoint for the home cards' totals - game genres are counted per rom then folded in Python, mirroring how the ROM filters aggregate their JSON arrays Frontend: - Jukebox becomes a shell over HomeMode / BrowseMode / SessionMode; the five browse dimensions share one component and differ only by the facet they load and the filter they pass - the soundtrack panel takes one normalized PanelTrack[] instead of a rom-or-catalog prop union, and moves to components/Soundtrack/ - its track list is virtualised, so rows (and their menus) scale with the viewport rather than the library - favorites move into a store, ending the four-way hand-fanned copies - new composables for rom soundtracks, delete confirmation and URL state - CardRow moves to shared/; platform and jukebox tiles share one Tile composite instead of two copies of the same chrome Also fixes a viewer-permission test that the jukebox's PLAYLIST_EDIT action key had been failing since it was added. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>