diff --git a/frontend-sba/REFACTORING_PLAN.json b/frontend-sba/REFACTORING_PLAN.json index 25ba790..6071821 100644 --- a/frontend-sba/REFACTORING_PLAN.json +++ b/frontend-sba/REFACTORING_PLAN.json @@ -2,11 +2,11 @@ "meta": { "version": "1.0.0", "created": "2025-12-26", - "lastUpdated": "2026-01-13", + "lastUpdated": "2026-01-14", "totalEstimatedHours": 52.75, "criticalBlockersHours": 6.5, - "totalTasks": 47, - "completedTasks": 5 + "totalTasks": 48, + "completedTasks": 6 }, "categories": { "critical": "Must fix before any production use", @@ -126,6 +126,26 @@ "estimatedHours": 1, "notes": "Works in conjunction with HIGH-001 error boundary" }, + { + "id": "HIGH-003", + "name": "Fix isMyTurn during resolution phase", + "description": "isMyTurn returned false during resolution phase (dice rolling, outcome submission), preventing either player from seeing the dice roller or submitting outcomes. The batting team should have control during resolution since they read their card.", + "category": "high", + "priority": 5, + "completed": true, + "tested": true, + "dependencies": [], + "files": [ + { + "path": "pages/games/[id].vue", + "lines": [489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516], + "issue": "isMyTurn only checked decision phases, returned false during resolution" + } + ], + "suggestedFix": "Add fallback in isMyTurn computed: when not in a decision phase, give batting team control since they read their card and submit outcomes.", + "estimatedHours": 0.5, + "notes": "Discovered during integration testing. Critical bug - prevented gameplay from progressing past decisions." + }, { "id": "MED-001", "name": "Simplify SSR client checks in WebSocket composable",