Repository navigation
feat(game): roster lifecycle controls & optional game completion deadline (PR 4/6) - #49
Open
TimerErTim-Agent wants to merge 1 commit into
Conversation
Implements full roster lifecycle management and the optional game completion deadline: - Add LeaveGame (auto-transfers host; reverts Drafting to Lobby below 3 players), KickPlayer (cleans authored/targeted drafts; reverts below 3), TransferHost, AbandonGame (Completed without Gold Medal), and late-join into Active play dealing starter-deck boards. - Add optional ends_at game deadline with FinishExpiredGames scheduler job (most filled tiles wins, ties broken by earliest latest capture, 0 captures draws without Gold Medal) and cutoff check on capture submission. - Add NearBingoReached notifications and live in-app notification toasts in AppShell. - Add UI controls for endsAt, Lobby/Drafting/Active roster actions, CompletedPhase deadline/draw/abandoned banners, and Active late-join copy.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #48 (PR 3/6). Resolves part of #43.
Summary
Abandonedand no Gold Medal); latecomers can join an active game and receive a starter-deck board.endsAt): Optional deadline configurable on create or in Lobby settings; enforced on capture submission and completed automatically by the scheduler (run_finish_expired_games), awarding victory by most filled tiles (tie-breaking on earliest latest capture, drawing with no Gold Medal on 0 captures).NearBingoReachedwhen a capture puts a player one tile away from Bingo, renderNearBingo/DraftReminderinbox entries, and trigger live in-app toasts on newly arriving unread notifications.Verification
cargo fmt --all && mise run ciexited 0 (unit, conformance, scheduler, migration v0007, E2E + OpenAPI spec validation, Vitest, Biome, TypeScript, and Next/Rust builds).