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:
parent
d40a0a0413
commit
c9072e9c0b
2 changed files with 0 additions and 11 deletions
|
|
@ -6,7 +6,6 @@ interface AvailableParticipantsSectionProps {
|
||||||
participants: Array<{
|
participants: Array<{
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
expectedValue: number;
|
|
||||||
sport: {
|
sport: {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,6 @@ export async function loader(args: any) {
|
||||||
.select({
|
.select({
|
||||||
id: schema.participants.id,
|
id: schema.participants.id,
|
||||||
name: schema.participants.name,
|
name: schema.participants.name,
|
||||||
expectedValue: schema.participants.expectedValue,
|
|
||||||
sport: schema.sports,
|
sport: schema.sports,
|
||||||
})
|
})
|
||||||
.from(schema.participants)
|
.from(schema.participants)
|
||||||
|
|
@ -145,11 +144,6 @@ export async function loader(args: any) {
|
||||||
asc(schema.participants.name)
|
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
|
// Load user's team queue if they have a team
|
||||||
|
|
@ -1016,7 +1010,6 @@ export default function DraftRoom() {
|
||||||
Participant
|
Participant
|
||||||
</th>
|
</th>
|
||||||
<th className="text-left p-3 font-semibold">Sport</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>
|
<th className="text-right p-3 font-semibold">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
@ -1059,9 +1052,6 @@ export default function DraftRoom() {
|
||||||
<td className="p-3 text-muted-foreground">
|
<td className="p-3 text-muted-foreground">
|
||||||
{participant.sport.name}
|
{participant.sport.name}
|
||||||
</td>
|
</td>
|
||||||
<td className="p-3 text-right font-mono font-semibold">
|
|
||||||
{participant.expectedValue ? participant.expectedValue.toFixed(1) : "—"}
|
|
||||||
</td>
|
|
||||||
<td className="p-3 text-right">
|
<td className="p-3 text-right">
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue