From b37b65511805e377336c871e865b46c07a1ddb7f Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Sun, 14 Jun 2026 09:19:58 -0700 Subject: [PATCH] Confirm hand refresh visually in Deep Upkeep After a resting Deep player confirms their hand refresh, replace the discard/keep drag editor with a confirmation panel showing the freshly drawn hand and a "Waiting for the rest of the crew" message, instead of re-rendering the editable drag UI (which made it look like nothing happened). Also stops nagging "please complete your Hand Refresh" once they're done. Visible whenever they remain in deep_upkeep waiting on other resting Deep players. Co-Authored-By: Claude Opus 4.8 --- TODO.md | 2 +- frontend/src/components/UpkeepPhase.svelte | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index c04750c..43cf658 100644 --- a/TODO.md +++ b/TODO.md @@ -8,7 +8,7 @@ - [x] **Teaching mode**. The creator/admin should have an option to seed themselves as the player who is forced to be the Deep for the first scene -- [ ] Visual feedback confirming hand refresh in Deep Upkeep +- [x] Visual feedback confirming hand refresh in Deep Upkeep - [ ] On the screen after pirat rank up voting, it should display the winner diff --git a/frontend/src/components/UpkeepPhase.svelte b/frontend/src/components/UpkeepPhase.svelte index bd6a1d5..513c7d7 100644 --- a/frontend/src/components/UpkeepPhase.svelte +++ b/frontend/src/components/UpkeepPhase.svelte @@ -254,6 +254,19 @@ {#if state.game.phase === 'between_scenes'}

Voting is currently in progress. Hand refresh will begin after voting concludes.

+ {:else if state.game.phase === 'deep_upkeep' && state.player.is_ready} + +
+

✔️ Hand refreshed! You're holding {hand.length} card{hand.length === 1 ? '' : 's'} for the next scene.

+
+
+ {#each hand as card} + + {:else} +

No cards in hand.

+ {/each} +
+

Waiting for the rest of the crew to finish upkeep...

{:else if state.game.phase === 'deep_upkeep'}

Your Hand Size Limit: {maxHandSize} cards.
@@ -332,7 +345,7 @@

{#if state.game.phase === 'deep_upkeep'} - {#if state.player.role === 'deep'} + {#if state.player.role === 'deep' && !state.player.is_ready}

⚠️ Please complete your Hand Refresh above to proceed to the next scene.

{:else}