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
@@ -74,6 +74,30 @@ export const ProfilePage = ({ discordId }: ProfilePageProps): React.JSX.Element
label: "Total Clicks",
date: false,
},
s.showBossesDefeated && {
icon: "💀",
value: String(profile.bossesDefeated),
label: "Bosses Defeated",
date: false,
},
s.showQuestsCompleted && {
icon: "📜",
value: String(profile.questsCompleted),
label: "Quests Completed",
date: false,
},
s.showAdventurersRecruited && {
icon: "⚔️",
value: formatNumber(profile.adventurersRecruited),
label: "Adventurers Recruited",
date: false,
},
s.showAchievementsUnlocked && {
icon: "🏆",
value: String(profile.achievementsUnlocked),
label: "Achievements Unlocked",
date: false,
},
s.showGuildFounded && {
icon: "📅",
value: memberSince,