Remove EV column from available participants table (#5)
* Hide EV column from draft board available participants table https://claude.ai/code/session_016oJK1gmWZ48YWEZmVqm6f9 * 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 --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2d6dd6ec9f
commit
03fdba3022
2 changed files with 1 additions and 16 deletions
|
|
@ -6,7 +6,6 @@ interface AvailableParticipantsSectionProps {
|
|||
participants: Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
expectedValue: number;
|
||||
sport: {
|
||||
id: string;
|
||||
name: string;
|
||||
|
|
@ -117,7 +116,6 @@ export function AvailableParticipantsSection({
|
|||
<tr>
|
||||
<th className="text-left p-3 font-semibold">Participant</th>
|
||||
<th className="text-left p-3 font-semibold">Sport</th>
|
||||
<th className="text-right p-3 font-semibold">EV</th>
|
||||
{hasTeam && (
|
||||
<th className="text-right p-3 font-semibold">Queue</th>
|
||||
)}
|
||||
|
|
@ -127,7 +125,7 @@ export function AvailableParticipantsSection({
|
|||
{participants.length === 0 ? (
|
||||
<tr>
|
||||
<td
|
||||
colSpan={hasTeam ? 4 : 3}
|
||||
colSpan={hasTeam ? 3 : 2}
|
||||
className="text-center py-8 text-muted-foreground"
|
||||
>
|
||||
No participants found
|
||||
|
|
@ -192,9 +190,6 @@ export function AvailableParticipantsSection({
|
|||
<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>
|
||||
{hasTeam && (
|
||||
<td className="p-3 text-right">
|
||||
<div className="flex gap-2 justify-end items-center">
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue