From edc3e20a9f8fd67a9a8043061c8109c800a47361 Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Sun, 22 Feb 2026 19:52:59 +0100 Subject: [PATCH] =?UTF-8?q?Improve=201vs1=20ranked=20leaderboard=20?= =?UTF-8?q?=E2=9C=A8=20(#3270)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: The two tables look much more similar now And you can see the player names now Before: https://github.com/user-attachments/assets/59f94e1a-5909-4d13-8ff3-bd36775f4ae6 After: https://github.com/user-attachments/assets/51234d14-20c2-4b14-a7cc-ceef7cf9a8fd ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin --- .../leaderboard/LeaderboardClanTable.ts | 365 +++++++++--------- .../leaderboard/LeaderboardPlayerList.ts | 178 +++++---- .../components/leaderboard/LeaderboardTabs.ts | 2 +- 3 files changed, 286 insertions(+), 259 deletions(-) diff --git a/src/client/components/leaderboard/LeaderboardClanTable.ts b/src/client/components/leaderboard/LeaderboardClanTable.ts index dd78a8bd6..da2664c89 100644 --- a/src/client/components/leaderboard/LeaderboardClanTable.ts +++ b/src/client/components/leaderboard/LeaderboardClanTable.ts @@ -195,189 +195,208 @@ export class LeaderboardClanTable extends LitElement { const maxGames = Math.max(...clans.map((c) => c.games), 1); return html` -
| - ${translateText("leaderboard_modal.rank")} - | -- ${translateText("leaderboard_modal.clan")} - | -
+
+
+
+
+ |
+
+ ${clan.games.toLocaleString()}
+
+
+
+
+
+ ${clan.weightedWins.toLocaleString(undefined, {
+ maximumFractionDigits: 1,
+ })}
+ |
+
+ ${clan.weightedLosses.toLocaleString(undefined, {
+ maximumFractionDigits: 1,
+ })}
+ |
+
+ |
+
+ ${clan.weightedWLRatio.toLocaleString(undefined, {
+ maximumFractionDigits: 2,
+ })}
+ ${translateText("leaderboard_modal.ratio")}
+
+ |
|---|