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:
@@ -31,6 +31,11 @@ export function buildRouter({ registry, auth, store }) {
|
||||
if (state.phase === 'checkin' && q(req).get('new')) return send.html(res, pub.registeredPage(state, team, origin(req)));
|
||||
send.html(res, pub.boardPage(state, { teamId: team.id }));
|
||||
});
|
||||
r.get('/t/:slug/teams/:id', (req, res, { slug, id }) => {
|
||||
const it = item(slug);
|
||||
if (!it.t.teams.has(id)) throw new HttpError(404, 'No such team');
|
||||
send.html(res, pub.boardPage(publicState(it), { teamId: id }));
|
||||
});
|
||||
r.post('/t/:slug/register', async (req, res, { slug }) => {
|
||||
const it = item(slug);
|
||||
const body = await readBody(req);
|
||||
|
||||
Reference in New Issue
Block a user