feat: add more profile stats and auto-populate edit modal

Exposes four new stats on public profiles (bosses defeated, quests
completed, adventurers recruited, achievements unlocked) with
corresponding visibility toggles. The edit modal now auto-populates
the character name, bio, and settings from the server on open.
This commit is contained in:
2026-03-06 14:14:45 -08:00
committed by Naomi Carrigan
parent 7e04daa073
commit 653c36c886
5 changed files with 158 additions and 79 deletions
+4
View File
@@ -75,6 +75,10 @@ export interface PublicProfileResponse {
prestigeCount: number;
totalGoldEarned: number;
totalClicks: number;
bossesDefeated: number;
questsCompleted: number;
adventurersRecruited: number;
achievementsUnlocked: number;
createdAt: number;
}
@@ -3,6 +3,10 @@ export interface ProfileSettings {
showTotalClicks: boolean;
showPrestige: boolean;
showGuildFounded: boolean;
showBossesDefeated: boolean;
showQuestsCompleted: boolean;
showAdventurersRecruited: boolean;
showAchievementsUnlocked: boolean;
}
export const DEFAULT_PROFILE_SETTINGS: ProfileSettings = {
@@ -10,4 +14,8 @@ export const DEFAULT_PROFILE_SETTINGS: ProfileSettings = {
showTotalClicks: true,
showPrestige: true,
showGuildFounded: true,
showBossesDefeated: true,
showQuestsCompleted: true,
showAdventurersRecruited: true,
showAchievementsUnlocked: true,
};