Add user stats feature with API and modal integration

Introduced an endpoint to fetch user stats and integrated it with a new StatsModal component in the frontend. Users can now view game statistics, including played games, wins, losses, and win rates, accessible from the user menu.
This commit is contained in:
2026-02-06 13:14:27 +01:00
parent bfb1df8e59
commit 59e224b4ca
6 changed files with 193 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ export default function WinnerBadge({ winner, winnerEmail }) {
{showEmail && (
<div style={{ fontSize: 12, opacity: 0.8, color: stylesTokens.textDim }}>
{winner.displayName}
{winner.display_name}
</div>
)}
</div>