brackt/app/components/draft
chrisp 841760541d
All checks were successful
🚀 Deploy / 🧪 Test (push) Successful in 1m27s
🚀 Deploy / ʦ TypeScript (push) Successful in 1m16s
🚀 Deploy / 🔍 Lint (push) Successful in 1m55s
🚀 Deploy / 🐳 Build (push) Successful in 14m23s
🚀 Deploy / 🚀 Deploy (push) Successful in 10s
Fix snake draft Discord pick numbering and small UX tweaks (#2)
## Summary

- **Discord snake draft fix**: pick notifications now show the sequential pick-in-round (e.g. "Round 2, Pick 9") rather than the snake-adjusted slot position ("Round 2, Pick 5"). Also removes the now-unused \`pickInRound\` param from \`notifyPickMadeOnDiscord\` and adds a regression test for the 13-team case.
- **League card**: league name in draft-in-progress cards is now a link to the league homepage (the Enter Draft button still goes to the draft room).
- **Overnight pause label**: shortened to "🌙 Pause" — the "Resumes 4:00 AM" line below already provides context, so "Overnight" was just causing wrapping.
- **Queue & Picks backgrounds**: items use \`bg-card\` instead of \`bg-muted\` for better visual separation from the panel background.

## Test plan

- [x] Discord: in a snake draft, verify pick #22 of 13 shows "Round 2, Pick 9" in Discord
- [x] League card: dashboard with a draft-in-progress league — click name → league homepage, click Enter Draft → draft room
- [x] Overnight pause: pause a draft overnight — cell shows "🌙 Pause" on one line, "Resumes X:XX" below
- [x] Queue/Picks: open draft room and confirm queue items and recent picks visually pop from the sidebar background
- [x] Unit tests: `npm run test:run` passes (13 discord tests)

Co-authored-by: Chris Parsons <chrisparsons1127@gmail.com>
Reviewed-on: #2
2026-05-22 04:18:11 +00:00
..
AuthRecoveryOverlay.tsx fix: resolve all 48 WCAG 2.2 AA accessibility issues (#439) 2026-05-17 20:11:38 -07:00
AvailableParticipantsSection.tsx fix: resolve all 48 WCAG 2.2 AA accessibility issues (#439) 2026-05-17 20:11:38 -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) (#438) 2026-05-16 23:37:29 -07:00
ConnectionOverlay.tsx fix: resolve all 48 WCAG 2.2 AA accessibility issues (#439) 2026-05-17 20:11:38 -07:00
DraftGridSection.tsx Fix draft room Summary tab layout and board scroll clipping (#452) 2026-05-19 23:31:40 -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 Fix snake draft Discord pick numbering and small UX tweaks (#2) 2026-05-22 04:18:11 +00:00
DraftSummaryView.tsx Fix draft Summary tab showing wrong avatar for teams without custom logos (#453) 2026-05-20 00:02:19 -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 fix: resolve all 48 WCAG 2.2 AA accessibility issues (#439) 2026-05-17 20:11:38 -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 Fix snake draft Discord pick numbering and small UX tweaks (#2) 2026-05-22 04:18:11 +00:00
RecentPicksFeed.tsx fix: resolve all 48 WCAG 2.2 AA accessibility issues (#439) 2026-05-17 20:11:38 -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 Fix snake draft Discord pick numbering and small UX tweaks (#2) 2026-05-22 04:18:11 +00: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 fix: resolve all 48 WCAG 2.2 AA accessibility issues (#439) 2026-05-17 20:11:38 -07:00