Skip to content

Commit 2e14852

Browse files
author
Dylan Huang
committed
move created at to beginning of table
1 parent eecbbc1 commit 2e14852

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

vite-app/src/components/EvaluationRow.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ export const EvaluationRow = observer(
402402
<ExpandIcon rolloutId={rolloutId} />
403403
</TableCell>
404404

405+
{/* Created */}
406+
<TableCell className="py-3 text-xs">
407+
<RowCreated created_at={row.created_at} />
408+
</TableCell>
409+
405410
{/* Name */}
406411
<TableCell className="py-3 text-xs">
407412
<RowName name={row.eval_metadata?.name} />
@@ -461,11 +466,6 @@ export const EvaluationRow = observer(
461466
<TableCell className="py-3 text-xs">
462467
<RowScore score={row.evaluation_result?.score} />
463468
</TableCell>
464-
465-
{/* Created */}
466-
<TableCell className="py-3 text-xs">
467-
<RowCreated created_at={row.created_at} />
468-
</TableCell>
469469
</TableRowInteractive>
470470

471471
{/* Expanded Content Row */}

vite-app/src/components/EvaluationTable.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,14 @@ export const EvaluationTable = observer(() => {
165165
<TableHead>
166166
<tr>
167167
<TableHeader className="w-8">&nbsp;</TableHeader>
168+
<SortableTableHeader
169+
sortField="created_at"
170+
currentSortField={state.sortField}
171+
currentSortDirection={state.sortDirection}
172+
onSort={handleSort}
173+
>
174+
Created
175+
</SortableTableHeader>
168176
<SortableTableHeader
169177
sortField="$.eval_metadata.name"
170178
currentSortField={state.sortField}
@@ -245,14 +253,6 @@ export const EvaluationTable = observer(() => {
245253
>
246254
Score
247255
</SortableTableHeader>
248-
<SortableTableHeader
249-
sortField="created_at"
250-
currentSortField={state.sortField}
251-
currentSortDirection={state.sortDirection}
252-
onSort={handleSort}
253-
>
254-
Created
255-
</SortableTableHeader>
256256
</tr>
257257
</TableHead>
258258

0 commit comments

Comments
 (0)