From a5480ec7f7b2ad7cdbca40565e690a484fc55a45 Mon Sep 17 00:00:00 2001
From: Ryan <7389646+ryanbarlow97@users.noreply.github.com>
Date: Sun, 19 Jul 2026 00:04:09 +0100
Subject: [PATCH] feat(client): shareable player profile modal
(#modal=profile&publicID=x) (#4639)
## Description:
Add player profile (stats only for now):
and clans modal:
with dedicated url:
## 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
## Please put your Discord username so you can be contacted if a bug or
regression is found:
w.o.n
Co-authored-by: Claude Fable 5
---
index.html | 5 +
resources/lang/en.json | 7 +
src/client/AccountModal.ts | 23 ++-
src/client/Api.ts | 38 ++++
src/client/ClanModal.ts | 26 +++
src/client/LangSelector.ts | 1 +
src/client/Main.ts | 5 +
src/client/PlayerProfileModal.ts | 121 ++++++++++++
src/client/components/clan/ClanDetailView.ts | 12 +-
src/client/components/clan/ClanShared.ts | 25 ++-
tests/client/PlayerProfileModal.test.ts | 189 +++++++++++++++++++
11 files changed, 441 insertions(+), 11 deletions(-)
create mode 100644 src/client/PlayerProfileModal.ts
create mode 100644 tests/client/PlayerProfileModal.test.ts
diff --git a/index.html b/index.html
index 1edcbad0d..8d363cc4a 100644
--- a/index.html
+++ b/index.html
@@ -272,6 +272,11 @@
inline
class="hidden w-full h-full page-content relative z-50"
>
+
-