[priority: high] Discipline tab doesn't show component names when "Show Component Names" debug flag is on #178
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
Every game tab in Mana Loop supports a "Show Component Names" debug flag (persisted to localStorage) that wraps the tab in a
<DebugName>component, showing small yellow labels with component names in the top-left of each section. The DisciplinesTab is the only tab that does not implement this.Root Cause
src/components/game/tabs/DisciplinesTab.tsxis missing:DebugNamefrom@/components/game/debug/debug-context<DebugName name="DisciplinesTab">Every other tab (CraftingTab, AttunementsTab, EquipmentTab, PrestigeTab, etc.) follows this pattern.
Affected Files
src/components/game/tabs/DisciplinesTab.tsx— missingDebugNameimport and wrapper around root<div>at line ~261Reproduction
Expected Behavior
DisciplinesTab should show "DisciplinesTab" label (and optionally individual discipline card labels) when the debug flag is enabled.
Fix Applied
Added
DebugNamewrapper toDisciplinesTab.tsx:import { DebugName } from '@/components/game/debug/debug-context';<div className="mt-6">with<DebugName name="DisciplinesTab">...</DebugName>This follows the exact same pattern used by every other tab (CraftingTab, AttunementsTab, EquipmentTab, PrestigeTab, etc.).
All pre-commit checks passed. File size: 315 lines (under 400 limit).