1.2 KiB
1.2 KiB
Work Plan - Lobby & Chat UI Overhaul and Notifications
Request
- Lobby/Chat Sidebar: Refactor to be collapsible on the right edge.
- Add floating/modal panel for Lobby and Chat content.
- Remove fixed right column layout.
- Notifications: Implement toast notifications for player events (Join, Leave, Disconnect).
- Add setting to Enable/Disable notifications (persisted).
- Deck Builder: Update "Full Card" display trigger to new slider range (50% = 130px).
Changes
-
DeckBuilderView.tsx:
- Updated
useArtCroplogic:cardWidth < 130(was 200).
- Updated
-
GameRoom.tsx:
- Refactored layout: Added
activePanelstate. - Created
useEffecthook withprevPlayersRefto detect changes and trigger toasts. - Added "Notifications On/Off" toggle in Lobby panel.
- Implemented floating side panel UI for desktop.
- Updated mobile view (kept separate mobile tab logic but ensured layout stability).
- Refactored layout: Added
-
Toast.tsx:
- Added
'warning'type support for amber-colored alerts (Player Left).
- Added
Verification
- Verified
refbased diffing logic for notifications. - Verified persistence of notification settings in
localStorage. - checked
Toasttype definition update.