From 3dcd967949d65b15a6338e408de04542e75eedd0 Mon Sep 17 00:00:00 2001 From: n8n-gitea Date: Tue, 19 May 2026 11:44:25 +0200 Subject: [PATCH] refactor: consolidate all tab components into src/components/game/tabs/ --- docs/circular-deps.txt | 4 ++-- docs/dependency-graph.json | 6 +++++- docs/project-structure.txt | 18 +++++++++--------- src/components/game/index.ts | 6 +++--- src/components/game/{ => tabs}/SpellsTab.tsx | 0 src/components/game/{ => tabs}/StatsTab.tsx | 0 .../{ => tabs}/StatsTab/CombatStatsSection.tsx | 0 .../StatsTab/ElementStatsSection.tsx | 0 .../{ => tabs}/StatsTab/LoopStatsSection.tsx | 0 .../{ => tabs}/StatsTab/ManaStatsSection.tsx | 0 .../{ => tabs}/StatsTab/PactStatusSection.tsx | 0 .../{ => tabs}/StatsTab/StudyStatsSection.tsx | 0 src/components/game/tabs/index.ts | 4 ++-- 13 files changed, 21 insertions(+), 17 deletions(-) rename src/components/game/{ => tabs}/SpellsTab.tsx (100%) rename src/components/game/{ => tabs}/StatsTab.tsx (100%) rename src/components/game/{ => tabs}/StatsTab/CombatStatsSection.tsx (100%) rename src/components/game/{ => tabs}/StatsTab/ElementStatsSection.tsx (100%) rename src/components/game/{ => tabs}/StatsTab/LoopStatsSection.tsx (100%) rename src/components/game/{ => tabs}/StatsTab/ManaStatsSection.tsx (100%) rename src/components/game/{ => tabs}/StatsTab/PactStatusSection.tsx (100%) rename src/components/game/{ => tabs}/StatsTab/StudyStatsSection.tsx (100%) diff --git a/docs/circular-deps.txt b/docs/circular-deps.txt index 8af0497..e8cf1d1 100644 --- a/docs/circular-deps.txt +++ b/docs/circular-deps.txt @@ -1,8 +1,8 @@ # Circular Dependencies -Generated: 2026-05-18T19:03:47.952Z +Generated: 2026-05-19T09:19:14.412Z Found: 3 circular chain(s) — these MUST be fixed before modifying involved files. -1. Processed 120 files (1.2s) (28 warnings) +1. Processed 121 files (1.2s) (28 warnings) 2. 1) data/equipment/index.ts > data/equipment/utils.ts 3. 2) data/golems/index.ts > data/golems/utils.ts diff --git a/docs/dependency-graph.json b/docs/dependency-graph.json index 38aeece..51e2f5a 100644 --- a/docs/dependency-graph.json +++ b/docs/dependency-graph.json @@ -1,6 +1,6 @@ { "_meta": { - "generated": "2026-05-18T19:03:46.609Z", + "generated": "2026-05-19T09:19:12.922Z", "description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.", "usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry." }, @@ -434,10 +434,14 @@ "crafting-slice.ts", "crafting-utils.ts", "stores/combatStore.ts", + "stores/craftingStore.types.ts", "stores/manaStore.ts", "stores/uiStore.ts", "types.ts" ], + "stores/craftingStore.types.ts": [ + "types.ts" + ], "stores/discipline-slice.ts": [ "data/disciplines/base.ts", "data/disciplines/enchanter.ts", diff --git a/docs/project-structure.txt b/docs/project-structure.txt index 5497ef1..e92c3bc 100644 --- a/docs/project-structure.txt +++ b/docs/project-structure.txt @@ -65,13 +65,6 @@ Mana-Loop/ │ │ │ │ ├── MaterialItem.tsx │ │ │ │ ├── icons.ts │ │ │ │ └── types.ts -│ │ │ ├── StatsTab/ -│ │ │ │ ├── CombatStatsSection.tsx -│ │ │ │ ├── ElementStatsSection.tsx -│ │ │ │ ├── LoopStatsSection.tsx -│ │ │ │ ├── ManaStatsSection.tsx -│ │ │ │ ├── PactStatusSection.tsx -│ │ │ │ └── StudyStatsSection.tsx │ │ │ ├── crafting/ │ │ │ │ ├── EnchantmentDesigner/ │ │ │ │ │ ├── DesignForm.tsx @@ -95,16 +88,23 @@ Mana-Loop/ │ │ │ │ └── index.tsx │ │ │ ├── shared/ │ │ │ ├── tabs/ +│ │ │ │ ├── StatsTab/ +│ │ │ │ │ ├── CombatStatsSection.tsx +│ │ │ │ │ ├── ElementStatsSection.tsx +│ │ │ │ │ ├── LoopStatsSection.tsx +│ │ │ │ │ ├── ManaStatsSection.tsx +│ │ │ │ │ ├── PactStatusSection.tsx +│ │ │ │ │ └── StudyStatsSection.tsx │ │ │ │ ├── ActivityLog.tsx │ │ │ │ ├── DisciplinesTab.tsx +│ │ │ │ ├── SpellsTab.tsx +│ │ │ │ ├── StatsTab.tsx │ │ │ │ └── index.ts │ │ │ ├── ActionButtons.tsx │ │ │ ├── ActivityLogPanel.tsx │ │ │ ├── AttunementStatus.tsx │ │ │ ├── GameToast.tsx │ │ │ ├── ManaDisplay.tsx -│ │ │ ├── SpellsTab.tsx -│ │ │ ├── StatsTab.tsx │ │ │ ├── TimeDisplay.tsx │ │ │ ├── UpgradeDialog.tsx │ │ │ ├── index.ts diff --git a/src/components/game/index.ts b/src/components/game/index.ts index 7568ae9..94ad30f 100755 --- a/src/components/game/index.ts +++ b/src/components/game/index.ts @@ -1,9 +1,9 @@ // ─── Game Components Index ────────────────────────────────────────────────────── // Re-exports all game tab components for cleaner imports -// Tab components -export { SpellsTab } from './SpellsTab'; -export { StatsTab } from './StatsTab'; +// Tab components (consolidated in tabs/ subfolder) +export { SpellsTab } from './tabs/SpellsTab'; +export { StatsTab } from './tabs/StatsTab'; // UI components export { ActionButtons } from './ActionButtons'; diff --git a/src/components/game/SpellsTab.tsx b/src/components/game/tabs/SpellsTab.tsx similarity index 100% rename from src/components/game/SpellsTab.tsx rename to src/components/game/tabs/SpellsTab.tsx diff --git a/src/components/game/StatsTab.tsx b/src/components/game/tabs/StatsTab.tsx similarity index 100% rename from src/components/game/StatsTab.tsx rename to src/components/game/tabs/StatsTab.tsx diff --git a/src/components/game/StatsTab/CombatStatsSection.tsx b/src/components/game/tabs/StatsTab/CombatStatsSection.tsx similarity index 100% rename from src/components/game/StatsTab/CombatStatsSection.tsx rename to src/components/game/tabs/StatsTab/CombatStatsSection.tsx diff --git a/src/components/game/StatsTab/ElementStatsSection.tsx b/src/components/game/tabs/StatsTab/ElementStatsSection.tsx similarity index 100% rename from src/components/game/StatsTab/ElementStatsSection.tsx rename to src/components/game/tabs/StatsTab/ElementStatsSection.tsx diff --git a/src/components/game/StatsTab/LoopStatsSection.tsx b/src/components/game/tabs/StatsTab/LoopStatsSection.tsx similarity index 100% rename from src/components/game/StatsTab/LoopStatsSection.tsx rename to src/components/game/tabs/StatsTab/LoopStatsSection.tsx diff --git a/src/components/game/StatsTab/ManaStatsSection.tsx b/src/components/game/tabs/StatsTab/ManaStatsSection.tsx similarity index 100% rename from src/components/game/StatsTab/ManaStatsSection.tsx rename to src/components/game/tabs/StatsTab/ManaStatsSection.tsx diff --git a/src/components/game/StatsTab/PactStatusSection.tsx b/src/components/game/tabs/StatsTab/PactStatusSection.tsx similarity index 100% rename from src/components/game/StatsTab/PactStatusSection.tsx rename to src/components/game/tabs/StatsTab/PactStatusSection.tsx diff --git a/src/components/game/StatsTab/StudyStatsSection.tsx b/src/components/game/tabs/StatsTab/StudyStatsSection.tsx similarity index 100% rename from src/components/game/StatsTab/StudyStatsSection.tsx rename to src/components/game/tabs/StatsTab/StudyStatsSection.tsx diff --git a/src/components/game/tabs/index.ts b/src/components/game/tabs/index.ts index 32d7a8b..36a5d4d 100644 --- a/src/components/game/tabs/index.ts +++ b/src/components/game/tabs/index.ts @@ -2,5 +2,5 @@ // Re-exports all existing tab components for lazy loading from page.tsx export { DisciplinesTab } from './DisciplinesTab'; -export { SpellsTab } from '../SpellsTab'; -export { StatsTab } from '../StatsTab'; +export { SpellsTab } from './SpellsTab'; +export { StatsTab } from './StatsTab';