# Sub-Task 1: Spire UI Fixes (Bugs 1, 2, 3) ## Scope - **Components affected**: - `components/SpireModeUI.tsx` (Floor health display, Climb Down button, activity log) - `components/SpireTab.tsx` (Redesign as Spire Stats, move ClimbSpireButton here) - Spire state management (hooks/context for spire floor tracking, health, combat state) - **Files potentially affected**: - `store/spireSlice.ts` or similar state management for spire - `types/spire.ts` if type definitions need updates ## Acceptance Criteria 1. **Bug 1**: Floor health display in SpireModeUI updates reactively after every spell cast (verify by casting spells in spire and observing health change immediately) 2. **Bug 2**: "Climb Down" button triggers floor-by-floor combat downward; player can only exit spire after reaching and clearing bottom floor (verify by climbing down multiple floors, confirm exit only at bottom) 3. **Bug 3**: - SpireTab redesigned as "Spire Stats" view (no longer shows misleading Current Floor stat) - ClimbSpireButton moved from SpireModeUI to SpireTab - Activity log moved from SpireTab to SpireModeUI 4. No regressions in other spire functionality ## Dependencies - None (can be executed first) ## Estimated Complexity - Medium (3 linked UI components + state management)