brackt/app/components/league
Chris Parsons faecfd8ecc
Rename queue page to Set Pre-Draft Queue, remove VORP, fix re-add race condition (#436)
* Rename queue page to Set Pre-Draft Queue, remove VORP, fix re-add race condition

- Rename page title, h1, button, error message, and tests from
  "Pre-Draft Rankings" to "Set Pre-Draft Queue"
- Remove VORP values and "Sorted by VORP" labels from the all-players list
- Fix bug where removing a player then immediately re-adding would fail
  with "already in queue": track in-flight removes in a ref and guard
  handleAdd against firing while a remove is still in-flight

https://claude.ai/code/session_01TGAV9A2c72PNkL1ffY7Xeq

* Address code review findings on Set Pre-Draft Queue page

- Rename component function from PreDraftRankings to SetPreDraftQueue
- Guard handleRemove against temp IDs — items added optimistically but
  not yet written to the DB have no server-side record to delete; skip
  the API call and just drop them from local state
- Surface a toast when handleAdd is blocked by a pending remove instead
  of silently no-oping
- Group both refs before their shared useEffect for readability
- Drop justify-between from the All Players desktop heading (sole child)
- Update test describe blocks to "Set Pre-Draft Queue Access"

https://claude.ai/code/session_01TGAV9A2c72PNkL1ffY7Xeq

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-05-15 18:47:36 -07:00
..
__tests__ Improve draft info panel formatting (#428) 2026-05-14 23:42:04 -07:00
settings Simplify sports season display and add local timezone hints (#434) 2026-05-15 16:04:07 -07:00
CommissionersPanel.stories.tsx Migrate auth from Clerk to BetterAuth (#354) 2026-04-29 10:03:50 -07:00
CommissionersPanel.tsx Migrate auth from Clerk to BetterAuth (#354) 2026-04-29 10:03:50 -07:00
CreateLeagueCard.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
CreateLeagueCard.tsx New design (#309) 2026-04-23 13:14:55 -07:00
DraftInfoCard.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
DraftInfoCard.tsx Rename queue page to Set Pre-Draft Queue, remove VORP, fix re-add race condition (#436) 2026-05-15 18:47:36 -07:00
DraftSpeedPicker.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
DraftSpeedPicker.tsx Extract chess clock presets to shared constant (#432) 2026-05-15 14:02:49 -07:00
LeagueAvatar.stories.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
LeagueAvatar.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
LeagueRow.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
LeagueRow.tsx Show commish-only leagues in a separate dashboard section, fixes #336 (#412) 2026-05-11 23:57:04 -07:00
MyLeaguesCard.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
MyLeaguesCard.tsx Show commish-only leagues in a separate dashboard section, fixes #336 (#412) 2026-05-11 23:57:04 -07:00
OvernightPauseSettings.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
OvernightPauseSettings.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
ReviewSection.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
ReviewSection.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
ScoringPresetPicker.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
ScoringPresetPicker.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
SportIcon.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
SportIcon.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
SportsSeasonsSummary.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
SportsSeasonsSummary.tsx Use sport icons in league views (#394) 2026-05-07 23:06:49 -07:00
StandingsPreview.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
StandingsPreview.tsx Fix avatar display bugs in navbar, standings, and draft views (#387) 2026-05-06 17:03:34 -07:00
StatHelpers.tsx Add opencode oxlint plugin and UI refinements (#323) 2026-04-24 11:11:20 -07:00
StepperInput.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
StepperInput.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
TeamsPanel.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
TeamsPanel.tsx Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
TimerModeSelector.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
TimerModeSelector.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
TimezonePromptBanner.tsx Add overnight pause for draft timers (#335) 2026-04-26 22:31:52 -07:00
TimezoneSelect.tsx Add overnight pause for draft timers (#335) 2026-04-26 22:31:52 -07:00
WizardAuthForm.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
WizardAuthForm.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
WizardStepper.stories.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00
WizardStepper.tsx Extract reusable league wizard components; wire settings page (#350) 2026-04-28 22:24:13 -07:00