[High] [Task] Remove the Spells tab #320
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Spells tab (
SpellsTab.tsx) is the default tab shown to new players but is essentially useless:learned/activeSpellstate exists but there's no in-game mechanic to learn new spells from this tabuseState('spells')in page.tsx) confuses new playersFiles
src/components/game/tabs/SpellsTab.tsx— the tab componentsrc/components/game/tabs/index.ts— barrel exportsrc/app/page.tsx— tab trigger, TabsContent, lazy import, and default statePlan
TabTriggers()inpage.tsxTabsContent value="spells"block inpage.tsxSpellsTabinpage.tsxtabs/index.tssrc/components/game/tabs/SpellsTab.tsxactiveTabstate from'spells'to'disciplines'(or another useful tab)Notes
SPELLS_DEF,spellsstore state) should be kept — spells still exist as enchantmentsStarting work on removing the Spells tab. Will follow the plan: remove tab trigger, TabsContent, lazy import, barrel re-export, delete SpellsTab.tsx, and change default tab.
✅ Spells tab removed successfully.
Changes made:
Spell data (SPELLS_DEF, spells store state) preserved — spells still exist as enchantments.
All 58 test files (1069 tests) passed. Pre-commit checks passed. Committed and pushed.