brackt/app/components/draft
Chris Parsons 0ba6a2a408 Add auto-start draft at scheduled time (#437)
Commissioners can now opt in to having a draft start automatically at
its scheduled draftDateTime rather than requiring a manual "Start Draft"
click. The 1-second timer loop checks for eligible seasons each tick and
calls the new shared startDraft() service, which is also used by the
existing commissioner HTTP route.

- Add autoStartDraft boolean to seasons table (migration 0108)
- Extract core start logic into app/services/draft-autostart.ts so both
  the API route and the timer can call it without AsyncLocalStorage
- Add checkAndAutoStartDrafts() to the timer tick; disables autoStartDraft
  and stops retrying if no draft order is set at fire time
- Guard against null draftDateTime in both the timer query (isNotNull)
  and server actions (autoStartDraft forced false when datetime is null)
- Add "Auto-start at scheduled time" checkbox to league creation wizard
  (step 3) and league settings, gated on date+time being set
- Show countdown + "Start Now" button in draft room when auto-start is
  scheduled; reuses the existing nowForPauseCheck 1-second ticker
- Show orange warning banner on league homepage to commissioners when
  auto-start is within 1 hour and no draft order has been configured

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 23:31:51 -07:00
..
AuthRecoveryOverlay.tsx fix: prevent silent logout during long-running draft sessions (#49) 2026-03-01 19:33:03 -08:00
AvailableParticipantsSection.tsx Add electric flash + fade animation for draft picks, fixes #381 (#407) 2026-05-10 23:17:29 -07:00
CommissionerAutodraftDialog.stories.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
CommissionerAutodraftDialog.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
CommissionerDraftControls.stories.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
CommissionerDraftControls.tsx Add auto-start draft at scheduled time (#437) 2026-05-16 23:31:51 -07:00
ConnectionOverlay.tsx Show "Syncing Draft State..." overlay during draft reconnection (#361) 2026-04-30 20:33:00 -07:00
DraftGridSection.tsx Add electric flash + fade animation for draft picks, fixes #381 (#407) 2026-05-10 23:17:29 -07:00
DraftPickCell.stories.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
DraftPickCell.tsx Add overnight pause for draft timers (#335) 2026-04-26 22:31:52 -07:00
DraftSummaryView.tsx Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
MiniDraftGrid.stories.tsx Add commish right-click context menus to MiniDraftGrid team headers (#327) 2026-04-25 07:42:43 -07:00
MiniDraftGrid.tsx Add overnight pause for draft timers (#335) 2026-04-26 22:31:52 -07:00
ParticipantSelectionDialog.tsx Show why a participant is ineligible to draft (#378) 2026-05-04 21:54:14 -07:00
picks-utils.ts New design (#309) 2026-04-23 13:14:55 -07:00
QueueSection.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
QueueSection.tsx Add pre-draft queue builder so users can rank players before draft order is set (#435) 2026-05-15 17:26:36 -07:00
RecentPicksFeed.tsx Mobile draft room improvements: watchlist, collapsible picks feed, autodraft controls (#355) 2026-04-29 11:49:26 -07:00
RecentPicksSection.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
RollbackConfirmDialog.stories.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
RollbackConfirmDialog.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
SidebarRecentPicks.tsx New design (#309) 2026-04-23 13:14:55 -07:00
TeamRosterView.tsx New design (#309) 2026-04-23 13:14:55 -07:00
TeamsDraftedGrid.tsx Fix oxlint warnings: no-shadow, consistent-function-scoping, no-non-null-assertion, and others (#196) 2026-03-21 10:59:51 -07:00
TimeBankAdjustmentDialog.stories.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
TimeBankAdjustmentDialog.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00