From 51183350202e0341177594d9efd76ebd8d9b1ce5 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 7 Feb 2026 23:36:07 -0600 Subject: [PATCH] CLAUDE: Update RunnersOnBase tests for new horizontal layout - Replace .border-l-4.border-gray-600 checks with .catcher-pill - Update isExpanded prop references to isSelected - Adjust expanded view tests for new side-by-side layout - matchup-card-blue = runner full card - matchup-card = catcher full card - Fix deselection test to check isSelected prop (Transition keeps DOM during animation) All 15 RunnersOnBase tests passing All 16 RunnerCard tests passing --- frontend-sba/components/Game/RunnerCard.vue | 149 ++------ .../components/Game/RunnersOnBase.vue | 205 +++++++---- .../unit/components/Game/RunnerCard.spec.ts | 326 ++---------------- .../components/Game/RunnersOnBase.spec.ts | 47 +-- 4 files changed, 225 insertions(+), 502 deletions(-) diff --git a/frontend-sba/components/Game/RunnerCard.vue b/frontend-sba/components/Game/RunnerCard.vue index c2c1cce..1a6f2eb 100644 --- a/frontend-sba/components/Game/RunnerCard.vue +++ b/frontend-sba/components/Game/RunnerCard.vue @@ -1,73 +1,37 @@ @@ -79,7 +43,7 @@ import { useGameStore } from '~/store/game' interface Props { base: '1B' | '2B' | '3B' runner: LineupPlayerState | null - isExpanded: boolean + isSelected: boolean teamColor: string } @@ -125,63 +89,20 @@ function handleClick() { diff --git a/frontend-sba/components/Game/RunnersOnBase.vue b/frontend-sba/components/Game/RunnersOnBase.vue index c608098..dc9bd7e 100644 --- a/frontend-sba/components/Game/RunnersOnBase.vue +++ b/frontend-sba/components/Game/RunnersOnBase.vue @@ -1,83 +1,69 @@