Bug: Stats tab doesn't list disciplines or perks #146
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?
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) referenceuseDisciplineStore,ALL_DISCIPLINES, or any discipline/perk data. There is noDisciplineStatsSectioncomponent.Fix Required
DisciplineStatsSectioncomponent insrc/components/game/tabs/StatsTab/StatsTab.tsxuseDisciplineStorefrom@/lib/game/stores/discipline-sliceandALL_DISCIPLINESfrom@/lib/game/data/disciplinesAffected Files
src/components/game/tabs/StatsTab.tsx— add new sectionsrc/components/game/tabs/StatsTab/DisciplineStatsSection.tsx— to be createdStarting work on #146 — Stats tab missing disciplines/perks. Will add discipline and perks sections to the Stats tab.
Fixed #146 — Stats tab now lists disciplines and perks.
Changes:
DisciplineStatsSection.tsx— shows all disciplines with XP, active/paused status, stat bonus effects, and unlocked perk descriptionsStatsTab.tsxbetween Study Stats and Element StatscomputeDisciplineEffects()for effect values andgetUnlockedPerks()for perk descriptionsAll 902 tests pass. Committed and pushed as
32cebad.