Add room invites, moderation, and sync acknowledgements #2
Reference in New Issue
Block a user
Delete Branch "toxic/feature/room-invites-chat-moderation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary:%0A- add room-scoped invite code creation and revocation for room managers%0A- add audited room chat deletion for room managers%0A- add admin ban and remove-friendship user actions%0A- add Socket.IO acknowledgements and sync health status in the room header%0A- update agent handoff notes%0A%0AVerification:%0A- npm run typecheck%0A- npm run test%0A- git diff --check
Review finding:
src/components/room-console.tsxaround the sharedemit()helper:setSyncHealth("pending")runs before checking whethersocketRef.currentexists or is connected. If a user clicks a queue/playback/chat action while the socket is disconnected, optional chaining skips the emit and no acknowledgement callback can ever fire, leaving the UI stuck atsync pendingwith no actionable error. Please guard!socketRef.current?.connectedand setfailed/a clear error before entering the ack path, or disable realtime action controls while disconnected.I am not merging this PR until that behavior is handled.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.