fix: Spire tab maxFloorReached undefined error
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m43s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m43s
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# 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`
|
||||
|
||||
## Files to Search
|
||||
- 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
|
||||
Reference in New Issue
Block a user