generated from nhcarrigan/template
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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user