feat: players page redesign — deltas, KPI tiles, sparklines, expanded row #9

Merged
shcizo merged 27 commits from feat/shared-visual-layer-topbar-4 into main 2026-05-21 16:14:01 +02:00
Showing only changes of commit cc223a4b8a - Show all commits
+1 -4
View File
@@ -3,14 +3,11 @@ let pendingPlayerData = null;
let openPdgaNumber = null;
// ── Delta-pill helper ─────────────────────────────
// Returns { text, cls, html } — use .text/.cls to update existing DOM elements
// safely; .html is available for insertion contexts.
function renderDeltaPill(value, extraClass) {
if (value == null) return null;
const cls = value > 0 ? 'up' : value < 0 ? 'down' : 'flat';
const text = value > 0 ? '+' + value : String(value);
const extra = extraClass ? ' ' + extraClass : '';
return { text, cls, html: `<span class="delta-pill ${cls}${extra}">${text}</span>` };
return { text, cls };
}
function setupTooltipsAfterSwap() {