diff --git a/src/components/JobList/index.tsx b/src/components/JobList/index.tsx index 8fba7d1..54fba02 100644 --- a/src/components/JobList/index.tsx +++ b/src/components/JobList/index.tsx @@ -39,7 +39,7 @@ const columns: MRT_ColumnDef[] = [
{log_url? ( - + ) : null} {sentry_url ? ( @@ -47,7 +47,7 @@ const columns: MRT_ColumnDef[] = [ Sentry icon ) : null} diff --git a/src/components/RunList/index.tsx b/src/components/RunList/index.tsx index 1d09428..0ff6115 100644 --- a/src/components/RunList/index.tsx +++ b/src/components/RunList/index.tsx @@ -32,6 +32,20 @@ const NON_FILTER_PARAMS = [ ]; const columns: MRT_ColumnDef[] = [ + { + accessorKey: "name", + header: "link", + maxSize: 12, + enableColumnFilter: false, + enableColumnActions: false, + Cell: ({ row }) => { + return ( + + + + ); + }, + }, { header: "status", accessorKey: "status", @@ -40,25 +54,15 @@ const columns: MRT_ColumnDef[] = [ return row.original.status.replace("finished ", ""); }, filterSelectOptions: Object.values(RunStatuses), + size: 40, + enableColumnActions: false, }, { accessorKey: "user", header: "user", - size: 60, - enableColumnFilter: false, - }, - { - accessorKey: "name", - header: "link", - size: 30, + maxSize: 45, enableColumnFilter: false, - Cell: ({ row }) => { - return ( - - - - ); - }, + enableColumnActions: false, }, { id: "scheduled", @@ -66,7 +70,11 @@ const columns: MRT_ColumnDef[] = [ accessorFn: (row: Run) => formatDate(row.scheduled), filterVariant: 'date', sortingFn: "datetime", - size: 125, + Cell: ({ row }) => { + const date_: string[] = row.original.scheduled.split(" "); + return
{date_[0]}
{date_[1]}
+ }, + size: 50, }, { id: "started", @@ -95,7 +103,7 @@ const columns: MRT_ColumnDef[] = [ }, enableColumnFilter: false, sortingFn: "datetime", - size: 70, + size: 30, }, { accessorKey: "suite", @@ -115,8 +123,10 @@ const columns: MRT_ColumnDef[] = [ { accessorKey: "sha1", header: "hash", - size: 30, - maxSize: 50, + maxSize: 30, + Cell: ({ row }) => { + return row.original.sha1.slice(0, 8); + }, }, { accessorKey: "results.queued", @@ -133,25 +143,25 @@ const columns: MRT_ColumnDef[] = [ { accessorKey: "results.fail", header: "fail", - size: 40, + size: 30, enableColumnFilter: false, }, { accessorKey: "results.dead", header: "dead", - size: 40, + size: 30, enableColumnFilter: false, }, { accessorKey: "results.running", header: "running", - size: 40, + size: 30, enableColumnFilter: false, }, { accessorKey: "results.waiting", header: "waiting", - size: 40, + size: 30, enableColumnFilter: false, }, ];