🟡 DisciplinesTab: tab filtering broken — all attunements render simultaneously #56

Closed
opened 2026-05-18 17:06:38 +02:00 by Anexim · 2 comments
Owner

File: src/components/game/tabs/DisciplinesTab.tsx, lines 207-232

The grid renders cards from all attunementTabs simultaneously. The visibility check:

const isVisible = attunementTabs.find((t) => t.label === tab.label)?.items === tab.items;

compares array references, which is always true since it's the same array. There is no actual tab filtering — all discipline cards from all attunements are always shown.

Impact: The attunement tab bar is purely decorative. Users see all disciplines from all attunements at once regardless of which tab is selected.

Fix: Track the selected tab in state and filter the rendered cards to only show disciplines from the selected attunement.

**File:** `src/components/game/tabs/DisciplinesTab.tsx`, lines 207-232 The grid renders cards from **all** `attunementTabs` simultaneously. The visibility check: ```ts const isVisible = attunementTabs.find((t) => t.label === tab.label)?.items === tab.items; ``` compares array references, which is always `true` since it's the same array. There is no actual tab filtering — all discipline cards from all attunements are always shown. **Impact:** The attunement tab bar is purely decorative. Users see all disciplines from all attunements at once regardless of which tab is selected. **Fix:** Track the selected tab in state and filter the rendered cards to only show disciplines from the selected attunement.
Anexim added the ai:todo label 2026-05-18 17:06:38 +02:00
n8n-gitea was assigned by Anexim 2026-05-18 17:06:38 +02:00
Author
Owner

[priority: 4] BROKEN FEATURE — DisciplinesTab tab filtering broken, all attunements render simultaneously.

[priority: 4] BROKEN FEATURE — DisciplinesTab tab filtering broken, all attunements render simultaneously.
Author
Owner

Verified fixed. The DisciplinesTab now tracks activeAttunement state and renders only activeTab?.items instead of all attunement tabs simultaneously. The tab bar correctly filters discipline cards by selected attunement.

Verified fixed. The DisciplinesTab now tracks `activeAttunement` state and renders only `activeTab?.items` instead of all attunement tabs simultaneously. The tab bar correctly filters discipline cards by selected attunement.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#56