Fixes #220 When standard draft mode was added, the chess clock increment was accidentally restricted to owner-only picks. Commissioner, admin, and auto-picks stopped earning the increment, causing teams that timed out to freeze at 0s and instant-autopick every subsequent round. Fix: - make-pick: all pick types earn the increment in chess clock mode - force-manual-pick: same; deduplicate standard/chess-clock branches into a single update with mode-selected SQL; remove now-unused timerSnapshot query - draft-utils executeAutoPick: restore increment for chess clock auto-picks; add missing seed insert when no timer row exists - server/timer.ts: fix fallback initialization to use draftIncrementTime in standard mode (was always using draftInitialTime) - leagues/$leagueId.tsx: show Draft Timer Mode in League Info panel Tests: - Update draft.make-pick.timer-mode to cover owner/commissioner/admin in both modes (commissioner section previously asserted frozen bank) - Add draft.force-manual-pick.timer-mode for commissioner/admin force picks in both modes - Add executeAutoPick.timer for timer-triggered auto-picks in both modes - Update draft.force-manual-pick to reflect new chess clock behavior - Replace fragile toHaveBeenCalledTimes(2) assertions with toHaveBeenCalledWith checks on the timer set call Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||