Skip to content

Add lobby leave with empty auto-delete - #6

Merged
devteapot merged 1 commit into
mainfrom
feature/lobby-leave-auto-delete
Aug 7, 2026
Merged

Add lobby leave with empty auto-delete#6
devteapot merged 1 commit into
mainfrom
feature/lobby-leave-auto-delete

Conversation

@devteapot

Copy link
Copy Markdown
Owner

Summary

  • Add leave_lobby reducer that removes membership and deletes the lobby when the last player leaves (including Pending/Provisioning orphans).
  • Expose action: "leave" on the Vercel lobbies API and a LEAVE button in the lobby UI.
  • Reopen Full lobbies to Open when a non-last member leaves.

Test plan

  • cargo test --manifest-path modules/lobby/Cargo.toml
  • Create a lobby as sole member → Leave → lobby disappears → create again succeeds
  • Two members: one leaves → lobby stays Open; last leaves → lobby deleted
  • Republish of-lobby and deploy Vercel before checking production

Allow players to leave and remove the lobby when the last member exits so orphan Pending rows cannot block create_lobby.
@cursor

cursor Bot commented Aug 7, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@devteapot
devteapot merged commit 608ce3a into main Aug 7, 2026
1 check passed
@devteapot
devteapot deleted the feature/lobby-leave-auto-delete branch August 7, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant