From 63e233bd8de62dae8f85835976d0198fd317837b Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 13 Mar 2026 19:03:11 +0100 Subject: [PATCH] Switch side panel to stat block when advancing turns Previously the import/sources view would stay open when navigating to the next combatant. Now advancing turns clears those modes so the active creature's stat block is shown. Co-Authored-By: Claude Opus 4.6 --- apps/web/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index c94768d..68a978d 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -259,6 +259,8 @@ export function App() { const active = encounter.combatants[encounter.activeIndex]; if (!active?.creatureId || !isLoaded) return; setSelectedCreatureId(active.creatureId as CreatureId); + setBulkImportMode(false); + setSourceManagerMode(false); }, [encounter.activeIndex, encounter.combatants, isLoaded]); const isEmpty = encounter.combatants.length === 0;