Keep last round's summary visible until all bids are placed

The round summary used to disappear after a fixed 5 seconds. It is now
derived from the game state: the previous round's result is shown while
the new round is in bidding and hides once card play starts. This also
survives a page reload.

- Drop the client-side round timer from useWizard
- On narrow screens show the summary in the page flow so it does not
  cover the bid buttons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 10:40:13 +02:00
co-authored by Claude Opus 5.5
parent 21a2b044d9
commit 87151c2cc9
4 changed files with 17 additions and 29 deletions
+1 -3
View File
@@ -13,8 +13,7 @@ const STATUS_MESSAGES = {
} as const
function App() {
const { status, playerId, lobby, game, completedTrick, completedRound, toasts, dismissToast, actions } =
useWizard()
const { status, playerId, lobby, game, completedTrick, toasts, dismissToast, actions } = useWizard()
const lobbyCode = lobby?.code
// Keep the lobby code in the address bar so the URL can be shared as an invite link.
@@ -38,7 +37,6 @@ function App() {
game={game}
playerId={playerId}
completedTrick={completedTrick}
completedRound={completedRound}
actions={actions}
/>
)