feat: add statistics panel with all-time, current run, and progress stats

This commit is contained in:
2026-03-06 22:02:57 -08:00
committed by Naomi Carrigan
parent 5b4661b398
commit a7d4b72805
4 changed files with 176 additions and 3 deletions
+4 -1
View File
@@ -12,9 +12,10 @@ import { EquipmentPanel } from "./EquipmentPanel.js";
import { OfflineModal } from "./OfflineModal.js";
import { PrestigePanel } from "./PrestigePanel.js";
import { QuestPanel } from "./QuestPanel.js";
import { StatisticsPanel } from "./StatisticsPanel.js";
import { UpgradePanel } from "./UpgradePanel.js";
type Tab = "adventurers" | "upgrades" | "quests" | "bosses" | "equipment" | "achievements" | "prestige";
type Tab = "adventurers" | "upgrades" | "quests" | "bosses" | "equipment" | "achievements" | "prestige" | "statistics";
const TABS: { id: Tab; label: string }[] = [
{ id: "adventurers", label: "⚔️ Adventurers" },
@@ -24,6 +25,7 @@ const TABS: { id: Tab; label: string }[] = [
{ id: "equipment", label: "🗡️ Equipment" },
{ id: "achievements", label: "🏆 Achievements" },
{ id: "prestige", label: "⭐ Prestige" },
{ id: "statistics", label: "📊 Statistics" },
];
export const GameLayout = (): React.JSX.Element => {
@@ -98,6 +100,7 @@ export const GameLayout = (): React.JSX.Element => {
{activeTab === "equipment" && <EquipmentPanel />}
{activeTab === "achievements" && <AchievementPanel />}
{activeTab === "prestige" && <PrestigePanel />}
{activeTab === "statistics" && <StatisticsPanel />}
</div>
</main>
</div>