fix: persist enchantment design state across tab navigation
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m2s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m2s
- EnchantmentDesigner now reads selection state directly from useCraftingStore instead of receiving it as props, so state survives tab unmount/remount - EnchanterSubTab no longer uses local useState for selectedEquipmentType, selectedEffects, designName, selectedDesign — all sourced from store - Removed unused EnchantmentDesignerProps interface from types - All 1158 existing tests pass, no new type errors introduced Fixes #366
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"_meta": {
|
||||
"generated": "2026-06-11T07:08:57.908Z",
|
||||
"generated": "2026-06-11T09:37:21.146Z",
|
||||
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
||||
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
||||
},
|
||||
@@ -492,6 +492,11 @@
|
||||
],
|
||||
"data/guardian-encounters.ts": [
|
||||
"data/guardian-data.ts",
|
||||
"data/guardian-procedural.ts",
|
||||
"types.ts"
|
||||
],
|
||||
"data/guardian-procedural.ts": [
|
||||
"data/guardian-encounters.ts",
|
||||
"types.ts",
|
||||
"utils/guardian-utils.ts"
|
||||
],
|
||||
@@ -532,6 +537,7 @@
|
||||
"effects/upgrade-effects.ts",
|
||||
"stores/attunementStore.ts",
|
||||
"stores/combatStore.ts",
|
||||
"stores/craftingStore.ts",
|
||||
"stores/gameStore.ts",
|
||||
"stores/manaStore.ts",
|
||||
"stores/prestigeStore.ts",
|
||||
@@ -613,6 +619,8 @@
|
||||
"crafting-design.ts",
|
||||
"crafting-utils.ts",
|
||||
"effects/discipline-effects.ts",
|
||||
"effects/special-effects.ts",
|
||||
"effects/upgrade-effects.ts",
|
||||
"stores/combatStore.ts",
|
||||
"stores/crafting-equipment-tick.ts",
|
||||
"stores/crafting-initial-state.ts",
|
||||
@@ -790,7 +798,6 @@
|
||||
"crafting-prep.ts",
|
||||
"effects/discipline-effects.ts",
|
||||
"effects/upgrade-effects.types.ts",
|
||||
"stores/craftingStore.ts",
|
||||
"stores/tick-pipeline.ts"
|
||||
],
|
||||
"stores/pipelines/equipment-crafting.ts": [
|
||||
|
||||
Reference in New Issue
Block a user