brackt/app/components/draft
Chris Parsons 190a6e1fe7
Add electric flash + fade animation for draft picks, fixes #381 (#407)
When a pick is made the picked player's row flashes teal (--electric)
then fades out over 750ms. Works correctly with the TanStack Virtual
list by keeping the row in filteredParticipants during the animation
via animatingOutParticipantIds, then removing it after 650ms.

Key design decisions:
- Animation state lives in AvailableParticipantsSection (internal
  useState + timers); the draft room passes a pickAnimationSignal
  {id, seq} rather than the Set, so memo only breaks on each pick,
  not on the 650ms cleanup
- displayDrafted freezes row content (badges, buttons) during the
  animation to prevent height shifts
- Per-ID independent timers via Map ref support rapid autodraft picks
  running concurrently without cancellation
- Timers are cleared on unmount in both the draft room and component
- prefers-reduced-motion: skips the color flash, plain opacity fade only
- Removes "Draft Grid" heading from DraftGridSection (visual cleanup)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 23:17:29 -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 Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -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 New design (#309) 2026-04-23 13:14:55 -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