[priority: medium] Add DebugName wrappers to remaining 56 components missing Show Component Names support #183
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?
Description
Following the fix for DisciplinesTab (issue #178), a full audit reveals the DebugName "Show Component Names" debug flag is inconsistently implemented across the codebase. Many top-level tab files, sub-tabs, section components, and standalone UI components are missing the
DebugNamewrapper.The pattern is simple and well-defined — see
debug-context.tsxfor the component, andCraftingTab.tsxas a reference implementation:Scope
✅ Already fixed (10 tabs + 2 app files)
AchievementsTab.tsx,AttunementsTab.tsx,CraftingTab.tsx,DebugTab.tsx,DisciplinesTab.tsx,EquipmentTab.tsx,GolemancyTab.tsx,GuardianPactsTab.tsx,PrestigeTab.tsx,SpireSummaryTab.tsxapp/components/LeftPanel.tsx,app/components/GrimoireTab.tsx❌ Top-level tab files missing (4 files)
src/components/game/tabs/ActivityLog.tsxsrc/components/game/tabs/SpellsTab.tsxsrc/components/game/tabs/StatsTab.tsxsrc/components/game/tabs/guardian-pacts-components.tsx❌ Tab sub-components missing
CraftingTab/ (3 files)
5.
src/components/game/tabs/CraftingTab/EnchanterSubTab.tsx6.
src/components/game/tabs/CraftingTab/FabricatorSubTab.tsx7.
src/components/game/tabs/CraftingTab/MaterialRecipeCard.tsxDebugTab/ sections (7 files)
8.
src/components/game/tabs/DebugTab/AchievementDebugSection.tsx9.
src/components/game/tabs/DebugTab/AttunementDebugSection.tsx10.
src/components/game/tabs/DebugTab/DisciplineDebugSection.tsx11.
src/components/game/tabs/DebugTab/ElementDebugSection.tsx12.
src/components/game/tabs/DebugTab/GameStateDebugSection.tsx13.
src/components/game/tabs/DebugTab/GolemDebugSection.tsx14.
src/components/game/tabs/DebugTab/PactDebugSection.tsx15.
src/components/game/tabs/DebugTab/SpireDebugSection.tsxEquipmentTab/ (3 files)
16.
src/components/game/tabs/EquipmentTab/EquipmentEffectsSummary.tsx17.
src/components/game/tabs/EquipmentTab/EquipmentSlotGrid.tsx18.
src/components/game/tabs/EquipmentTab/InventoryList.tsxSpireCombatPage/ (6 files)
19.
src/components/game/tabs/SpireCombatPage/RoomDisplay.tsx20.
src/components/game/tabs/SpireCombatPage/SpireActivityLog.tsx21.
src/components/game/tabs/SpireCombatPage/SpireCombatControls.tsx22.
src/components/game/tabs/SpireCombatPage/SpireCombatPage.tsx23.
src/components/game/tabs/SpireCombatPage/SpireHeader.tsx24.
src/components/game/tabs/SpireCombatPage/SpireManaDisplay.tsxStatsTab/ (7 files)
25.
src/components/game/tabs/StatsTab/CombatStatsSection.tsx26.
src/components/game/tabs/StatsTab/DisciplineStatsSection.tsx27.
src/components/game/tabs/StatsTab/ElementStatsSection.tsx28.
src/components/game/tabs/StatsTab/LoopStatsSection.tsx29.
src/components/game/tabs/StatsTab/ManaStatsSection.tsx30.
src/components/game/tabs/StatsTab/PactStatusSection.tsx31.
src/components/game/tabs/StatsTab/StudyStatsSection.tsx❌ Standalone game components missing (17 files)
src/components/game/ActionButtons.tsxsrc/components/game/ActivityLogPanel.tsxsrc/components/game/AttunementStatus.tsxsrc/components/game/GameToast.tsxsrc/components/game/ManaDisplay.tsxsrc/components/game/TimeDisplay.tsxsrc/components/game/UpgradeDialog.tsxsrc/components/game/crafting/EnchantmentApplier.tsxsrc/components/game/crafting/EnchantmentDesigner.tsxsrc/components/game/crafting/EnchantmentPreparer.tsxsrc/components/game/crafting/EquipmentCrafter.tsxsrc/components/game/crafting/EnchantmentDesigner/DesignForm.tsxsrc/components/game/crafting/EnchantmentDesigner/EffectSelector.tsxsrc/components/game/crafting/EnchantmentDesigner/EquipmentTypeSelector.tsxsrc/components/game/crafting/EnchantmentDesigner/SavedDesigns.tsxsrc/components/game/LootInventory/BlueprintsSection.tsxsrc/components/game/LootInventory/EquipmentItem.tsxsrc/components/game/LootInventory/EssenceItem.tsxsrc/components/game/LootInventory/MaterialItem.tsxsrc/components/game/debug/AttunementDebug.tsxsrc/components/game/debug/ElementDebug.tsxsrc/components/game/debug/GameStateDebug.tsxsrc/components/game/debug/GolemDebug.tsxsrc/components/game/debug/PactDebug.tsxsrc/app/page.tsx❌ Dialog/overlay content (excluded from fix)
These are already wrapped at the page/tab level and don't need individual DebugName wrappers:
src/app/components/GameOverScreen.tsx(full-screen overlay)Task
Add
DebugNameimport and wrapper to all listed files. The wrapper name should match the component/function name (e.g.,<DebugName name="EnchanterSubTab">).Verification
[ComponentName]labels appear on all componentsnpx tsc --noEmitto confirm no regressionsStarting bulk DebugName wrapper additions across 56 files. Will process in parallel batches for efficiency.
Added DebugName wrappers to all 56 remaining components. All files pass pre-commit hooks (file size, typecheck, lint). Commit pushed: 59 files changed, 779 insertions(+), 537 deletions(-).