From 106938c395bb7241cda8dc9157aafe6041a21001 Mon Sep 17 00:00:00 2001 From: Ryan <7389646+ryanbarlow97@users.noreply.github.com> Date: Sun, 1 Feb 2026 22:58:54 +0000 Subject: [PATCH] Add Ranked 1v1 Leaderboard (#3008) If this PR fixes an issue, link it below. If not, delete these two lines. Resolves #(issue number) @wraith4081 's pr updates the stats modal to show both 1v1 and clan stats - [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 regression is found: w.o.n --------- Co-authored-by: Wraith <54374743+wraith4081@users.noreply.github.com> Co-authored-by: iamlewis --- index.html | 14 +- package-lock.json | 38 +- package.json | 1 + resources/lang/en.json | 18 +- src/client/Api.ts | 81 ++++ src/client/JoinPrivateLobbyModal.ts | 6 +- src/client/LangSelector.ts | 5 +- src/client/LeaderboardModal.ts | 133 +++++ src/client/Main.ts | 4 +- src/client/StatsModal.ts | 417 ---------------- src/client/components/DesktopNavBar.ts | 4 +- src/client/components/MobileNavBar.ts | 4 +- .../leaderboard/LeaderboardClanTable.ts | 385 +++++++++++++++ .../leaderboard/LeaderboardPlayerList.ts | 453 ++++++++++++++++++ .../components/leaderboard/LeaderboardTabs.ts | 75 +++ src/core/ApiSchemas.ts | 46 ++ tests/client/LeaderboardModal.test.ts | 383 +++++++++++++++ tests/client/StatsModal.test.ts | 140 ------ 18 files changed, 1622 insertions(+), 585 deletions(-) create mode 100644 src/client/LeaderboardModal.ts delete mode 100644 src/client/StatsModal.ts create mode 100644 src/client/components/leaderboard/LeaderboardClanTable.ts create mode 100644 src/client/components/leaderboard/LeaderboardPlayerList.ts create mode 100644 src/client/components/leaderboard/LeaderboardTabs.ts create mode 100644 tests/client/LeaderboardModal.test.ts delete mode 100644 tests/client/StatsModal.test.ts diff --git a/index.html b/index.html index ae29615c7..112333cbf 100644 --- a/index.html +++ b/index.html @@ -133,14 +133,14 @@