Refactor: Resolve Structural Inconsistencies and Dead Code #18
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?
Overview
A full audit of the codebase revealed three categories of problems:
Each section below names the exact files involved, what is wrong, and what needs to change. Import paths that need updating are called out explicitly.
Part 1 — Broken Barrel Exports (Fix First — Causes Runtime Errors)
1A.
src/components/game/index.tsEvery export in this file is either pointing at a path that doesn't exist or at the wrong location.
Summary Checklist
</html> </html>Starting work on structural refactor. Will use parallel sub-agents to investigate and fix all checklist items.
Completed: Structural Refactor
All checklist items from the issue have been resolved. Here's a summary of what was done:
Part 1 — Broken Barrel Exports ✅
src/components/game/index.ts— corrected all broken export paths, removed SkillsTab/SpireTab, fixed SpellsTab/StatsTab pathsuseSkillStoreandSkillStatefromstores/index.tstypes/index.ts— removed./skillsblock and duplicate./gameblocktabs/index.tsbarrel; fixed all lazy imports inpage.tsxPart 2 — Scattered Remnants ✅
store/andstore-modules/directories; redirected remaining callerstabs/with barrel exportapp/components/StudyProgress.tsxandUpgradeDialog.tsxfromshared/components/game/stats/directory (dead code)lib/game/attunements/directory (dead code)formatting.tsintoutils/formatting.tsstudy-slice.tsandnavigation-slice.tsPart 3 — Skill System Ghost Code ✅
Part 4 — Import Paths ✅
Part 5 — Effects & Debug ✅
dynamic-compute,upgrade-effects,special-effectsintoeffects/directorydebug-contextintocomponents/game/debug/effects.ts.fixand rootcomputed-stats.tsshimStats