1.5 KiB
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
-
Search entire codebase for imports from:
src/lib/game/storesrc/lib/game/store.ts- Any reference to legacy store patterns
-
Replace with modular store imports:
useGameStorefromsrc/lib/game/stores/gameStoreuseManaStorefromsrc/lib/game/stores/manaStoreuseCombatStorefromsrc/lib/game/stores/combatStoreuseSkillStorefromsrc/lib/game/stores/skillStoreusePrestigeStorefromsrc/lib/game/stores/prestigeStoreuseUiStorefromsrc/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
Files to Search
- All
.tsand.tsxfiles insrc/ - Focus on
src/components/game/andsrc/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