1
0
Fork 0
Commit graph

1 commit

Author SHA1 Message Date
d9d4ef1c08 feat(polls): add the polls page with live tallies and tie decisions
`/polls` lists live polls first, then ones waiting on a decision, then closed
history; `/polls/[id]` is the vote surface. Both under Operations.

- Voting, the live tally and the superuser tie decision live in one client
  panel so the pages stay server components.
- The tally refreshes on a scoped 10s timer instead of joining the app-wide SSE
  bus: every game event currently makes each client re-render its whole layout,
  and a poll page does not need to be part of that fan-out.
- Anonymity is applied in the read model, not the view: counts always render,
  identities only for a public poll or a superuser.
- A pending tie shows its deadline and one Decide button per tied option; the
  service refuses a key outside the frozen tie set.
- The outcome line renders only for a settled poll, so a tied poll does not
  claim a decision it has not made.
2026-12-01 14:17:51 -05:00