quintodrome/ui/src/layout
Deluan Quintão a30fa478ac
feat(ui): reset activity panel error icon to normal state when clicked (#4379)
* ui: reset activity icon after viewing error

* refactor: improve ActivityPanel error acknowledgment logic

Replaced boolean errorAcknowledged state with acknowledgedError string state to track which specific error was acknowledged. This prevents icon flickering when error messages change and simplifies the logic by removing the need for useEffect.

Key changes:
- Changed from errorAcknowledged boolean to acknowledgedError string state
- Added derived isErrorVisible computed value for cleaner logic
- Removed useEffect dependency on scanStatus.error changes
- Updated handleMenuOpen to store actual error string instead of boolean flag
- Fixed test mock to return proper error state matching test expectations

This change addresses code review feedback and follows React best practices by using derived state instead of imperative effects.
2025-07-23 19:43:42 -04:00
..
ActivityPanel.jsx feat(ui): reset activity panel error icon to normal state when clicked (#4379) 2025-07-23 19:43:42 -04:00
ActivityPanel.test.jsx feat(ui): reset activity panel error icon to normal state when clicked (#4379) 2025-07-23 19:43:42 -04:00
AppBar.jsx fix(ui): update title attribute for info icon in AppBar component 2025-06-13 17:36:38 -04:00
AppBar.test.jsx feat(ui): add EnableNowPlaying configuration (default true) (#4219) 2025-06-13 00:06:08 -04:00
DynamicMenuIcon.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
DynamicMenuIcon.test.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
index.js Clear play queue on login and logout 2020-06-19 11:32:23 -04:00
Layout.jsx feat(ui): Allow drag-and-drop song title from player to sidebar playlist (#2435) 2024-10-02 13:10:24 -04:00
Login.jsx feat(Insights): add anonymous usage data collection (#3543) 2024-12-17 17:10:55 -05:00
Logout.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
Menu.jsx feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
Notification.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
NowPlayingPanel.jsx fix(ui): keep the NowPlayingPanel badge in sync. 2025-06-29 11:35:10 -04:00
NowPlayingPanel.test.jsx fix(ui): keep the NowPlayingPanel badge in sync. 2025-06-29 11:35:10 -04:00
PersonalMenu.jsx fix(ui): minor icon inconsistencies and "no missing files" translation (#3837) 2025-03-16 19:39:19 -04:00
PlaylistsSubMenu.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
SubMenu.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
Themes.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
useInitialScanStatus.jsx fix(ui): improve scan status handling (again) (#4115) 2025-05-24 21:26:05 -04:00
UserMenu.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
useScanElapsedTime.jsx fix(ui): improve scan status handling (again) (#4115) 2025-05-24 21:26:05 -04:00
useScanElapsedTime.test.jsx fix(ui): improve scan status handling (again) (#4115) 2025-05-24 21:26:05 -04:00