From b0a254b48161404d658d123c70fa8b3f54e46c32 Mon Sep 17 00:00:00 2001 From: Refactoring Agent <[email protected]> Date: Tue, 28 Apr 2026 15:18:16 +0200 Subject: [PATCH] Task10: Add activity log to SpireModeUI with event type styling - Updated SpireModeUI Activity Log in page.tsx to use activityLog state instead of log - Added ActivityLogEntry import from @/lib/game/types - Applied event type styling for: damage_dealt, enemy_defeated, floor_cleared, floor_transition, special_effect - Increased ScrollArea height from h-32 to h-48 for better visibility - Changed from store.log.slice(0, 20) to store.activityLog.slice(0, 50) - Added empty state message 'No activity yet...' - Added proper key usage with entry.id instead of array index --- src/app/page.tsx | 55 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 4379eb1..fce81ff 100755 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,7 @@ import { useEffect, useState, lazy, Suspense } from 'react'; import { useGameStore, useGameLoop, fmt, getFloorElement, computeMaxMana, computeRegen, computeClickMana, getMeditationBonus, getIncursionStrength, canAffordSpellCost } from '@/lib/game/store'; +import { ActivityLogEntry } from '@/lib/game/types'; import { getActiveEquipmentSpells, getTotalDPS } from '@/lib/game/computed-stats'; import { ELEMENTS, GUARDIANS, SPELLS_DEF, PRESTIGE_DEF, getStudySpeedMultiplier, getStudyCostMultiplier } from '@/lib/game/constants'; @@ -271,7 +272,9 @@ export default function ManaLoopGame() { disabled={store.isDescending} > - {store.isDescending ? 'Descending...' : 'Begin Descent'} + {store.isDescending ? 'Descending' : + store.climbDirection === 'up' ? 'Climbing' : + 'Begin Descent'} {store.currentFloor === 1 ? (