1.2 KiB
1.2 KiB
Sub-Task 6: CraftingTab Prepare/Apply Disenchant Consolidation (Bug 8)
Scope
- Components affected:
components/CraftingTab.tsx(Prepare and Apply phases)- Item state management (add "Ready for Enchantment" tag)
- Enchantment removal logic (disenchanting during Prepare step)
- Files potentially affected:
store/craftingSlice.tsor similar for crafting statetypes/items.ts(add "Ready for Enchantment" tag to item types)utils/craftingUtils.ts(disenchant logic, tag management)
Acceptance Criteria
- Prepare step button text: Shows "Start Preparation — this will remove existing enchantments" when item has existing enchantments; otherwise default text
- Prepare step outcome: After successful preparation, item receives "Ready for Enchantment" tag (verify via item state/UI)
- Apply phase restriction: Only items tagged "Ready for Enchantment" can have enchantments applied
- Disenchanting is fully consolidated into Prepare step (no separate disenchant UI)
Dependencies
- Sub-Task 5 (both modify CraftingTab, must run sequentially)
Estimated Complexity
- High (multi-phase UI + state management + tagging)