diff --git a/src/components/frontend/qualification/AimTrainerLeaderboard.tsx b/src/components/frontend/qualification/AimTrainerLeaderboard.tsx index 3f3a861..d4e3c14 100644 --- a/src/components/frontend/qualification/AimTrainerLeaderboard.tsx +++ b/src/components/frontend/qualification/AimTrainerLeaderboard.tsx @@ -15,6 +15,7 @@ import { type LeaderboardRow = { readonly id: number; + readonly userId: number | null; readonly name: string; readonly gamesPlayed: number; readonly bestScore: number; @@ -24,9 +25,9 @@ type LeaderboardRow = { }; function rankClass(index: number): string { - if (index === 0) return "font-bold text-primary"; - if (index === 1) return "font-semibold text-foreground"; - if (index === 2) return "font-semibold text-muted-foreground"; + if (index === 0) return "font-bold text-amber-400"; + if (index === 1) return "font-semibold text-slate-300"; + if (index === 2) return "font-semibold text-amber-700"; return "text-muted-foreground"; } @@ -77,6 +78,7 @@ export function AimTrainerLeaderboard({ const aimTrainer = profile.aimTrainer; return { id: profile.id, + userId, name, gamesPlayed: aimTrainer?.gamesPlayed ?? 0, bestScore: aimTrainer?.[tier.scoreField] ?? 0, @@ -111,7 +113,7 @@ export function AimTrainerLeaderboard({
-
@@ -121,7 +123,7 @@ export function AimTrainerLeaderboard({ className="border-b border-border px-4 py-2 text-xs text-muted-foreground" aria-live="polite" > - {activeTrainees.length}{" "} + {activeTrainees.length}{" "} {activeTrainees.length === 1 ? "trainee is" : "trainees are"} on the line {activeTrainees.length > 0 && ( @@ -190,9 +192,9 @@ export function AimTrainerLeaderboard({ unranked )} - {activeTrainees.some((trainee) => trainee.id === row.id) && ( + {row.userId !== null && activeTrainees.some((trainee) => trainee.id === row.userId) && (