From 2d4dbe82eb3d1c00725746c908a4fd6e8bbbfcf3 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 12 Feb 2026 14:44:46 -0600 Subject: [PATCH] CLAUDE: Compact defensive setup UI with glowing ring turn indicator - Rewrite DefensiveSetup as inline segmented controls (~120px vs ~340px) - Fix bug: read game state from useGameStore() instead of never-passed prop - Remove turn indicator banner from DecisionPanel (replaced by green glow ring) - Emoji fix: shield -> baseball glove - Confirm button matches Roll Dice style (full-width, prominent) - Infield options only show IF In/Corners when runner on 3rd - Outfield row only renders in walk-off scenarios - Hold pills only render for occupied bases - 20 tests rewritten with Pinia store integration Co-Authored-By: Claude Opus 4.6 --- .../components/Decisions/DecisionPanel.vue | 50 -- .../components/Decisions/DefensiveSetup.vue | 274 +++++------ .../Decisions/DefensiveSetup.spec.ts | 435 +++++++++++------- mockups/defensive-setup-compact.html | 387 ++++++++++++++++ mockups/turn-indicator-options.html | 257 +++++++++++ 5 files changed, 1049 insertions(+), 354 deletions(-) create mode 100644 mockups/defensive-setup-compact.html create mode 100644 mockups/turn-indicator-options.html diff --git a/frontend-sba/components/Decisions/DecisionPanel.vue b/frontend-sba/components/Decisions/DecisionPanel.vue index ce32737..e05e7b9 100644 --- a/frontend-sba/components/Decisions/DecisionPanel.vue +++ b/frontend-sba/components/Decisions/DecisionPanel.vue @@ -1,19 +1,5 @@