Clean up dead expectedValue references after hiding EV column

- Remove expectedValue from AvailableParticipantsSection interface
- Remove EV column from Force Manual Pick commissioner dialog
- Remove expectedValue from participants loader SELECT and parsing step
- Retain ORDER BY expectedValue for default sort order

https://claude.ai/code/session_016oJK1gmWZ48YWEZmVqm6f9
This commit is contained in:
Claude 2026-02-20 01:02:17 +00:00
parent d40a0a0413
commit c9072e9c0b
No known key found for this signature in database
2 changed files with 0 additions and 11 deletions

View file

@ -6,7 +6,6 @@ interface AvailableParticipantsSectionProps {
participants: Array<{
id: string;
name: string;
expectedValue: number;
sport: {
id: string;
name: string;

View file

@ -123,7 +123,6 @@ export async function loader(args: any) {
.select({
id: schema.participants.id,
name: schema.participants.name,
expectedValue: schema.participants.expectedValue,
sport: schema.sports,
})
.from(schema.participants)
@ -145,11 +144,6 @@ export async function loader(args: any) {
asc(schema.participants.name)
);
// Parse decimal expectedValue (Drizzle returns strings for decimal columns)
availableParticipants = availableParticipants.map((p: any) => ({
...p,
expectedValue: parseFloat(p.expectedValue) || 0,
}));
}
// Load user's team queue if they have a team
@ -1016,7 +1010,6 @@ export default function DraftRoom() {
Participant
</th>
<th className="text-left p-3 font-semibold">Sport</th>
<th className="text-right p-3 font-semibold">EV</th>
<th className="text-right p-3 font-semibold">Action</th>
</tr>
</thead>
@ -1059,9 +1052,6 @@ export default function DraftRoom() {
<td className="p-3 text-muted-foreground">
{participant.sport.name}
</td>
<td className="p-3 text-right font-mono font-semibold">
{participant.expectedValue ? participant.expectedValue.toFixed(1) : "—"}
</td>
<td className="p-3 text-right">
<Button
size="sm"