navidrome/ui
Deluan dab37f6a89 fix(ui): load user libraries on app init so NowPlaying filters correctly
The NowPlaying panel filters entries by the user's accessible libraries via
useSelectedLibraries(). That selector reads userLibraries from the store, but
the data was only fetched by LibrarySelector, which is rendered solely when the
sidebar is open. On first load with the sidebar closed, userLibraries was empty,
so getNowPlaying was called without a musicFolderId and the server returned
entries from all libraries until a later refresh.

Extract the loading logic into a useUserLibraries hook and call it from Layout,
so the libraries are always loaded regardless of sidebar state. LibrarySelector
now reuses the same hook instead of duplicating the fetch.

Signed-off-by: Deluan <deluan@navidrome.org>
2026-06-20 00:11:54 -04:00
..
bin fix(ui): service worker crashing on precacheAndRoute (#3528) 2024-12-08 17:43:34 -05:00
build ci: create versions with goreleaser 2020-01-26 20:09:25 -05:00
public fix(ui): Fix Nautiline theme font and width on mobile devices (#5590) 2026-06-10 16:47:54 -04:00
src fix(ui): load user libraries on app init so NowPlaying filters correctly 2026-06-20 00:11:54 -04:00
.eslintignore test: update test command to run without watch mode 2025-05-24 22:58:04 -04:00
.eslintrc build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
.gitignore fix(ui): PWA not updating properly in new Vite config (#3493) 2024-11-30 10:33:16 -05:00
embed.go feat(subsonic): add structured sidecar lyrics support with OpenSubsonic v2 karaoke cues and agent layers (#5076) 2026-06-19 12:00:58 -04:00
index.html feat(plugins): add JSONForms-based plugin configuration UI (#4911) 2026-01-19 20:51:00 -05:00
package-lock.json chore(deps-dev): bump vite from 7.3.1 to 7.3.2 in /ui (#5321) 2026-04-07 19:07:46 -04:00
package.json chore(deps-dev): bump vite from 7.3.1 to 7.3.2 in /ui (#5321) 2026-04-07 19:07:46 -04:00
prettier.config.js build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
tsconfig.app.json build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
tsconfig.json build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
tsconfig.node.json build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
vite.config.js feat(plugins): add JSONForms-based plugin configuration UI (#4911) 2026-01-19 20:51:00 -05:00