Bug: Stats tab doesn't list disciplines or perks #146

Closed
opened 2026-05-27 10:22:51 +02:00 by Anexim · 2 comments
Owner

Bug Description

The Stats tab (src/components/game/tabs/StatsTab.tsx) does not display any information about disciplines or unlocked perks. Players cannot see an overview of their discipline progress or earned perks in the Stats tab.

Root Cause

None of the StatsTab sub-components (ManaStatsSection, CombatStatsSection, ElementStatsSection, LoopStatsSection, PactStatusSection, StudyStatsSection) reference useDisciplineStore, ALL_DISCIPLINES, or any discipline/perk data. There is no DisciplineStatsSection component.

Fix Required

  1. Create a new DisciplineStatsSection component in src/components/game/tabs/StatsTab/
  2. Wire it into StatsTab.tsx
  3. Display: active disciplines with XP, unlocked perks with descriptions, discipline stat bonuses
  4. Import useDisciplineStore from @/lib/game/stores/discipline-slice and ALL_DISCIPLINES from @/lib/game/data/disciplines

Affected Files

  • src/components/game/tabs/StatsTab.tsx — add new section
  • New file: src/components/game/tabs/StatsTab/DisciplineStatsSection.tsx — to be created
## Bug Description The Stats tab (`src/components/game/tabs/StatsTab.tsx`) does not display any information about disciplines or unlocked perks. Players cannot see an overview of their discipline progress or earned perks in the Stats tab. ## Root Cause None of the StatsTab sub-components (`ManaStatsSection`, `CombatStatsSection`, `ElementStatsSection`, `LoopStatsSection`, `PactStatusSection`, `StudyStatsSection`) reference `useDisciplineStore`, `ALL_DISCIPLINES`, or any discipline/perk data. There is no `DisciplineStatsSection` component. ## Fix Required 1. Create a new `DisciplineStatsSection` component in `src/components/game/tabs/StatsTab/` 2. Wire it into `StatsTab.tsx` 3. Display: active disciplines with XP, unlocked perks with descriptions, discipline stat bonuses 4. Import `useDisciplineStore` from `@/lib/game/stores/discipline-slice` and `ALL_DISCIPLINES` from `@/lib/game/data/disciplines` ## Affected Files - `src/components/game/tabs/StatsTab.tsx` — add new section - New file: `src/components/game/tabs/StatsTab/DisciplineStatsSection.tsx` — to be created
Anexim added the ai:todo label 2026-05-27 10:22:51 +02:00
n8n-gitea was assigned by Anexim 2026-05-27 10:22:52 +02:00
Author
Owner

Starting work on #146 — Stats tab missing disciplines/perks. Will add discipline and perks sections to the Stats tab.

Starting work on #146 — Stats tab missing disciplines/perks. Will add discipline and perks sections to the Stats tab.
Author
Owner

Fixed #146 — Stats tab now lists disciplines and perks.

Changes:

  • Created DisciplineStatsSection.tsx — shows all disciplines with XP, active/paused status, stat bonus effects, and unlocked perk descriptions
  • Wired it into StatsTab.tsx between Study Stats and Element Stats
  • Uses computeDisciplineEffects() for effect values and getUnlockedPerks() for perk descriptions
  • Only shows disciplines that have XP or are currently active

All 902 tests pass. Committed and pushed as 32cebad.

Fixed #146 — Stats tab now lists disciplines and perks. **Changes:** - Created `DisciplineStatsSection.tsx` — shows all disciplines with XP, active/paused status, stat bonus effects, and unlocked perk descriptions - Wired it into `StatsTab.tsx` between Study Stats and Element Stats - Uses `computeDisciplineEffects()` for effect values and `getUnlockedPerks()` for perk descriptions - Only shows disciplines that have XP or are currently active All 902 tests pass. Committed and pushed as 32cebad.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#146