From fa851a4143ccc73ebdb6877291c3739bdf4326d1 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Tue, 31 Mar 2026 03:38:55 -0700 Subject: [PATCH] feat: display all rating systems on player profile page --- src/app/players/[id]/profile/page.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/app/players/[id]/profile/page.tsx b/src/app/players/[id]/profile/page.tsx index 7992f20..cda36da 100644 --- a/src/app/players/[id]/profile/page.tsx +++ b/src/app/players/[id]/profile/page.tsx @@ -20,6 +20,11 @@ export default async function PlayerProfilePage({ params }: PageProps) { const player = await prisma.player.findUnique({ where: { id: playerId }, + include: { + eloRating: true, + openSkillRating: true, + glicko2Rating: true, + }, }) if (!player) { @@ -115,12 +120,16 @@ export default async function PlayerProfilePage({ params }: PageProps) {

{player.currentElo}

-

Total Games

-

{totalGames}

+

OpenSkill Rating

+

+ {player.openSkillRating?.rating?.toFixed(1) || 'N/A'} +

-

Win Rate

-

{winRate}%

+

Glicko2 Rating

+

+ {player.glicko2Rating?.rating?.toFixed(1) || 'N/A'} +

Best Partner