[priority: 4] Recreate Debug Tab — Modular Debugging Functions #92
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?
Summary
Recreate the Debug tab that was deleted in commit
fe0f2a0. This tab should provide useful debugging functions organized in a modular, extensible structure with sub-folders.Context
src/components/game/debug/:debug-context.tsx— Debug context provider withshowComponentNamestoggleGameStateDebug.tsx— Game reset, mana add, time control, quick actionsAttunementDebug.tsx— Attunement debuggingElementDebug.tsx— Element debuggingGolemDebug.tsx— Golem debuggingPactDebug.tsx— Pact debuggingDebugNamecomponent wraps components to show their names whenshowComponentNamesis toggledlayout.tsxviaDebugProviderRequirements
src/components/game/tabs/DebugTab.tsxas the main debug tab containerDebugTab/subdirectory for modularitysrc/components/ui/src/components/game/tabs/index.tsbarrel exportsrc/app/page.tsxwith lazy loading patternDebugNamewrapperArchitecture Notes
DebugTab/subdirectory with separate section componentssrc/components/game/debug/where possibleStarting work on Debug Tab recreation. Will create modular DebugTab with collapsible sections.
Debug Tab recreated and committed. Summary of what was built:
New files created:
src/components/game/tabs/DebugTab.tsx— Main container with collapsible sections, warning banner, DebugName wrappersrc/components/game/tabs/DebugTab/GameStateDebugSection.tsx— Reset game, mana add/fill, time control, pause, quick actionssrc/components/game/tabs/DebugTab/DisciplineDebugSection.tsx— Activate/deactivate all, add XP, pause/resumesrc/components/game/tabs/DebugTab/AttunementDebugSection.tsx— Unlock all, add XP per attunementsrc/components/game/tabs/DebugTab/ElementDebugSection.tsx— Unlock all elements, add elemental manasrc/components/game/tabs/DebugTab/GolemDebugSection.tsx— Enable/disable all golemssrc/components/game/tabs/DebugTab/PactDebugSection.tsx— Sign all pacts, clear all, force sign individualsrc/components/game/tabs/DebugTab/SpireDebugSection.tsx— Jump to floor, reset HP, toggle spire modesrc/components/game/tabs/DebugTab/AchievementDebugSection.tsx— Unlock all, reset allsrc/components/game/tabs/DebugTab.test.ts— 45 tests (module exports, store interactions, displayNames, file sizes)Modified files:
src/components/game/tabs/index.ts— Added DebugTab barrel exportsrc/app/page.tsx— Added lazy-loaded DebugTab with tab triggerArchitecture: