Files
Mana-Loop/docs/context-legacy-store-cleanup.md
T
n8n-gitea e4fb66df9f
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m43s
fix: Spire tab maxFloorReached undefined error
2026-05-08 13:24:37 +02:00

1.5 KiB

Context: Legacy Store Reference Cleanup

Problem Statement

Remaining references to the old legacy store (store.ts pattern) need to be identified and replaced with modular store imports from src/lib/game/stores/.

Legacy Store Locations to Check

  • src/lib/game/store.ts - Main legacy store (to be deprecated)
  • src/lib/game/store/ - Legacy store slices
  • Any file importing from these legacy paths

Required Actions

  1. Search entire codebase for imports from:

    • src/lib/game/store
    • src/lib/game/store.ts
    • Any reference to legacy store patterns
  2. Replace with modular store imports:

    • useGameStore from src/lib/game/stores/gameStore
    • useManaStore from src/lib/game/stores/manaStore
    • useCombatStore from src/lib/game/stores/combatStore
    • useSkillStore from src/lib/game/stores/skillStore
    • usePrestigeStore from src/lib/game/stores/prestigeStore
    • useUiStore from src/lib/game/stores/uiStore

Architecture Rules (from AGENTS.md)

  • NEVER use legacy store pattern
  • All state management must use modular Zustand stores in src/lib/game/stores/
  • Use barrel exports from src/lib/game/stores/index.ts
  • All .ts and .tsx files in src/
  • Focus on src/components/game/ and src/lib/game/

Expected Outcome

  • Zero references to legacy store in codebase
  • All imports use modular store pattern
  • No functional changes (only import path updates)
  • List of fixed files added to commit message