Fix snake draft Discord pick numbering and small UX tweaks #2

Merged
chrisp merged 3 commits from chore/draft-ux-tweaks into main 2026-05-22 04:18:12 +00:00
Owner

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

  • Discord: in a snake draft, verify pick #22 of 13 shows "Round 2, Pick 9" in Discord
  • League card: dashboard with a draft-in-progress league — click name → league homepage, click Enter Draft → draft room
  • Overnight pause: pause a draft overnight — cell shows "🌙 Pause" on one line, "Resumes X:XX" below
  • Queue/Picks: open draft room and confirm queue items and recent picks visually pop from the sidebar background
  • Unit tests: npm run test:run passes (13 discord tests)
## 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)
chrisp added 1 commit 2026-05-22 04:02:40 +00:00
Fix snake draft Discord pick numbering and small UX tweaks
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Successful in 1m36s
🚀 Deploy / ʦ TypeScript (pull_request) Failing after 1m16s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 48s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
172302cad6
- Discord 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") — fixes confusing numbers on even rounds
- Remove unused pickInRound param from notifyPickMadeOnDiscord; add
  regression test for the 13-team snake draft case
- League name in draft-in-progress card is now a link to the league
  homepage alongside the existing Enter Draft button
- Overnight pause cell label shortened to "🌙 Pause" (resumesAt line
  below it already provides the time context)
- Queue and recent picks items use bg-card instead of bg-muted for
  better visual separation from the panel background

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chrisp added 1 commit 2026-05-22 04:06:37 +00:00
Fix queue/picks item background and top-align pick number badge
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Successful in 1m37s
🚀 Deploy / ʦ TypeScript (pull_request) Failing after 1m13s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 47s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
f3c1ad52ec
bg-card and bg-muted resolve to the same hex value, so swap to
bg-white/[0.06] for a visible lift against the sidebar background.
Also top-aligns the pick number badge in recent picks items.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chrisp added 1 commit 2026-05-22 04:11:43 +00:00
Fix calculatePickInfo return type to include rawPickInRound
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 1m31s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 2m19s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 55s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
94ae720b08
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chrisp merged commit 841760541d into main 2026-05-22 04:18:12 +00:00
chrisp deleted branch chore/draft-ux-tweaks 2026-05-22 04:18:12 +00:00
Sign in to join this conversation.
No description provided.