From b0521bb7f3277bd2e27391c7293552b6ef44e647 Mon Sep 17 00:00:00 2001 From: Chris Parsons <438676+chrisparsons83@users.noreply.github.com> Date: Tue, 24 Feb 2026 10:37:21 -0800 Subject: [PATCH] feat: show sport name in draft queue items (#36) - Display sport name as muted subtitle under participant name to distinguish players across sports (e.g. Florida NCAAM vs Florida NCAAW) - Remove unused eligibility prop from QueueSection - Deduplicate double .find() per queue item into a single lookup Co-authored-by: Claude Sonnet 4.6 --- app/components/draft/QueueSection.tsx | 43 ++++++++----------- .../leagues/$leagueId.draft.$seasonId.tsx | 1 - 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/app/components/draft/QueueSection.tsx b/app/components/draft/QueueSection.tsx index a548575..6a1fec3 100644 --- a/app/components/draft/QueueSection.tsx +++ b/app/components/draft/QueueSection.tsx @@ -27,17 +27,8 @@ interface QueueSectionProps { availableParticipants: Array<{ id: string; name: string; + sport: { name: string }; }>; - eligibility: { - flexPicksUsed: number; - flexPicksAvailable: number; - picksBySport: Record; - sportAvailability: Record< - string, - { sportName: string; sportId: string } - >; - ineligibleReasons: Record; - } | null; seasonId: string; teamId: string; isMyTurn: boolean; @@ -55,11 +46,13 @@ function SortableQueueItem({ item, index, participantName, + sportName, onRemove, }: { item: { id: string; participantId: string }; index: number; participantName: string; + sportName?: string; onRemove: () => void; }) { const { @@ -104,6 +97,7 @@ function SortableQueueItem({ {index + 1}

{participantName}

+ {sportName &&

{sportName}

}