M007 S02: No notification when opening is invalidated — suggestion just disappears #8

Closed
opened 2026-05-15 19:19:45 +00:00 by Mark · 0 comments
Owner

Severity: LOW
File: src/pages/CasualDuel.tsx:878

Problem

When an opening is invalidated (opponent deviated beyond assumptions), the OpeningSuggestion component disappears because the render condition checks !activeOpeningState.invalidated. The player sees the suggestion bar vanish with no explanation of why.

Fix

Show a toast or brief overlay when invalidation happens: "Opening disrupted — opponent deviated." Options:

  1. Check invalidation state in the handleCommit flow and show a toast
  2. Render a brief "Opening disrupted" message in place of the suggestion bar for one turn
  3. Use a brief status message that auto-dismisses
**Severity:** LOW **File:** src/pages/CasualDuel.tsx:878 ## Problem When an opening is invalidated (opponent deviated beyond assumptions), the OpeningSuggestion component disappears because the render condition checks `!activeOpeningState.invalidated`. The player sees the suggestion bar vanish with no explanation of why. ## Fix Show a toast or brief overlay when invalidation happens: "Opening disrupted — opponent deviated." Options: 1. Check invalidation state in the handleCommit flow and show a toast 2. Render a brief "Opening disrupted" message in place of the suggestion bar for one turn 3. Use a brief status message that auto-dismisses
Mark closed this issue 2026-05-16 17:23:30 +00:00
Sign in to join this conversation.
No description provided.