quintodrome/ui/src
Deluan Quintão 395a36e10f
fix(ui): fix library selection state for single-library users (#4686)
* fix: validate library selection state for single-library users

Fixes issues where users with a single library see no content when
selectedLibraries in localStorage contains library IDs they no longer
have access to (e.g., after removing libraries or switching accounts).

Changes:
- libraryReducer: Validate selectedLibraries when SET_USER_LIBRARIES
  is dispatched, filtering out invalid IDs and resetting to empty for
  single-library users (empty means 'all accessible libraries')
- wrapperDataProvider: Add defensive validation in getSelectedLibraries
  to check against current user libraries before applying filters
- Add comprehensive test coverage for reducer validation logic

Fixes #4553, #4508, #4569

* style: format code with prettier
2025-11-15 17:42:28 -05:00
..
actions feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
album test: mock formatFullDate for consistent test results 2025-11-13 18:46:06 -05:00
artist fix(server): headless library access improvements (#4362) 2025-07-20 15:58:21 -04:00
audioplayer fix(ui): allow scrolling in play queue by adding delay (#4562) 2025-11-01 20:47:03 -04:00
common chore(deps): update all dependencies (#4618) 2025-10-25 17:05:16 -04:00
dataProvider fix(ui): fix library selection state for single-library users (#4686) 2025-11-15 17:42:28 -05:00
dialogs refactor(ui): replace translation key with direct character for remove action 2025-07-12 16:55:21 -04:00
i18n feat(scanner): implement selective folder scanning and file system watcher improvements (#4674) 2025-11-14 22:15:43 -05:00
icons build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
layout feat(scanner): implement selective folder scanning and file system watcher improvements (#4674) 2025-11-14 22:15:43 -05:00
library fix(ui): add CreateButton back to LibraryListActions 2025-11-15 17:31:37 -05:00
missing feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
personal fix(ui): show last.fm api-key missing in a FormHelperText 2024-12-19 16:59:26 -05:00
player build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
playlist feat(ui): add Genre column as optional field in playlist table view 2025-07-29 20:54:04 -04:00
radio fix(ui): update titles for radios, shares and show pages (#4128) 2025-05-27 09:01:52 -04:00
reducers fix(ui): fix library selection state for single-library users (#4686) 2025-11-15 17:42:28 -05:00
share fix(ui): update titles for radios, shares and show pages (#4128) 2025-05-27 09:01:52 -04:00
song feat(ui): implement RecentlyAddedByModTime support for tracks (#4046) (#4279) 2025-06-30 09:14:35 -04:00
store feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
subsonic feat(scanner): implement selective folder scanning and file system watcher improvements (#4674) 2025-11-14 22:15:43 -05:00
themes fix(ui): adjust margins for bulk actions buttons in Spotify-ish and Ligera 2025-11-13 18:30:44 -05:00
transcoding fix(ui): minor icon inconsistencies and "no missing files" translation (#3837) 2025-03-16 19:39:19 -04:00
user feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
utils test: fix locale-dependent tests by making formatNumber locale-aware (#4619) 2025-11-06 14:34:00 -05:00
App.jsx feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
authProvider.js fix(ui): remove index.html from service worker cache after creating admin user (#3642) 2025-01-12 18:32:02 -05:00
config.js feat(ui): implement new event stream connection logic 2025-06-29 10:18:05 -04:00
consts.js feat(Insights): add anonymous usage data collection (#3543) 2024-12-17 17:10:55 -05:00
eventStream.js fix(ui): keep the NowPlayingPanel badge in sync. 2025-06-29 11:35:10 -04:00
eventStream.test.js chore(deps): update all dependencies (#4618) 2025-10-25 17:05:16 -04:00
hotkeys.js Change "Go to current song" hotkey. 2022-12-18 20:58:01 -05:00
index.css chore(deps): bump JS dependencies 2025-03-07 19:47:08 -05:00
index.jsx fix(ui): service worker does not load new version of ui (#3402) 2024-10-16 21:39:14 -04:00
routes.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
setupTests.js Use the default import path for jest-dom. 2024-01-17 17:07:43 -05:00
sw.js fix(ui): service worker crashing on precacheAndRoute (#3528) 2024-12-08 17:43:34 -05:00
useChangeThemeColor.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
vite-env.d.ts build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00