diff --git a/src/app/(stats)/guild/[value]/_components/sidebar.tsx b/src/app/(stats)/guild/[value]/_components/sidebar.tsx
index d1354bc..a5b3758 100644
--- a/src/app/(stats)/guild/[value]/_components/sidebar.tsx
+++ b/src/app/(stats)/guild/[value]/_components/sidebar.tsx
@@ -78,6 +78,36 @@ export default function Sidebar({ guild }: SidebarProps) {
)
}
+ function Achievements() {
+ return (
+
+
Achievements
+
+
+
+
+ )
+ }
+
+ function GameExperience() {
+ return (
+
+
Experience
+ {guild.guildExpByGameType === undefined ?
No EXP in any games
: (
+
+ {Object.entries(guild.guildExpByGameType).map(g => {
+ const game = getGame(g[0])
+ if (!game) return null
+ return { name: game.name, val: g[1] }
+ }).filter(g => g !== null).sort().map((v, i) => {
+ return
+ })}
+
+ )}
+
+ )
+ }
+
return (
@@ -98,6 +128,10 @@ export default function Sidebar({ guild }: SidebarProps) {
+
+
+
+
)
diff --git a/src/lib/schema/guild.ts b/src/lib/schema/guild.ts
index 81d03dc..7f899a1 100644
--- a/src/lib/schema/guild.ts
+++ b/src/lib/schema/guild.ts
@@ -26,7 +26,13 @@ export const guildSchema = z.object({
description: z.string().optional(),
joinable: z.boolean().default(false),
publiclyListed: z.boolean().default(false),
- preferredGames: z.array(z.string()).optional()
+ preferredGames: z.array(z.string()).optional(),
+ achievements: z.object({
+ WINNERS: z.number().default(0),
+ EXPERIENCE_KINGS: z.number().default(0),
+ ONLINE_PLAYERS: z.number().default(0)
+ }),
+ guildExpByGameType: z.record(z.string(), z.number()).optional()
})
})