Stage 17 #5: hide finished games from your own lobby list #27
Reference in New Issue
Block a user
Delete Branch "feature/hide-finished-games"
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?
Lets a player remove a finished game from their own my games list. Per-account, finished-only, irreversible (the game stays for the other players; no un-hide).
UI: on a finished row, swipe-left (touch) or tap its kebab ⋮ (desktop) reveals a ❌ that hides it; active rows carry an inert › chevron only to keep the right-edge icons aligned. Optimistic removal + lobby-cache sync.
Backend: migration
00012game_hidden(account_id, game_id);ListGamesForAccountfilters the hidden set;POST /api/v1/user/games/:id/hide(seat + finished checks →ErrNotAPlayer/ErrGameActive).Gateway:
game.hideedge op (reusesGameActionRequest→Ack) +backendclient.HideGame.Tests: integration (active→
ErrGameActive, outsider→ErrNotAPlayer, per-account visibility, idempotent), gateway transcode round-trip, mock e2e (kebab → ❌). Also hardened a pre-existing chat-screen.backtransition flake surfaced by the new test's timing.Docs: ARCHITECTURE persistence list, FUNCTIONAL (+ _ru) lobby story, PLAN tracker.
Note: tapping ❌ hides immediately — the swipe/kebab reveal is the safeguard. Say the word if you'd prefer a hold-to-confirm on the ❌.