Team-name links to team pages, court timing and next-up per court, desk link in footer

Every team name on the board links to /t/<slug>/teams/<id>. Court cards show
average game time, minutes played and the next match predicted for that court
with its expected ready time; the queue shows clock times too. Team schedules
show scores from the team's own perspective. Release 0.3.1.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MB7nCCAscYsb3zzkT6LHZi
This commit is contained in:
2026-09-04 01:48:54 +00:00
co-authored by Claude Fable 5.1
parent 62efa4d127
commit 1956d25061
8 changed files with 63 additions and 12 deletions
+3 -2
View File
@@ -54,8 +54,9 @@ if (STAGE !== 'pool') {
}
}
const live = engine.courts.filter(c => c.matchId).map(c => t.match(c.matchId));
if (live[0]) live[0].live = [14, 11];
if (live[1]) live[1].live = [7, 9];
if (live[0]) { live[0].live = [14, 11]; live[0].startedAt = Date.now() - 9 * 60_000; }
if (live[1]) { live[1].live = [7, 9]; live[1].startedAt = Date.now() - 5 * 60_000; }
for (const c of engine.courts) if (c.matchId) c.startedAt = t.match(c.matchId).startedAt;
t.banner = 'Demo tournament — scores are simulated';
engine.now = () => Date.now(); t.now = engine.now;
registry.persist(t.slug);