From 900cc094e00890de1ef89be4153d6b9981bca069 Mon Sep 17 00:00:00 2001 From: "andrii.dudar" Date: Fri, 11 Oct 2024 17:21:35 +0200 Subject: [PATCH] [OPIK-260] [FE] Show by default updated_at column in Projects table (#371) --- .../pages/ProjectsPage/ProjectsPage.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/opik-frontend/src/components/pages/ProjectsPage/ProjectsPage.tsx b/apps/opik-frontend/src/components/pages/ProjectsPage/ProjectsPage.tsx index 4147b250e..7462e3bac 100644 --- a/apps/opik-frontend/src/components/pages/ProjectsPage/ProjectsPage.tsx +++ b/apps/opik-frontend/src/components/pages/ProjectsPage/ProjectsPage.tsx @@ -35,12 +35,6 @@ export const DEFAULT_COLUMNS: ColumnData[] = [ label: "Name", type: COLUMN_TYPE.string, }, - { - id: "created_at", - label: "Created", - type: COLUMN_TYPE.time, - accessorFn: (row) => formatDate(row.created_at), - }, { id: "last_updated_at", label: "Last updated", @@ -48,9 +42,19 @@ export const DEFAULT_COLUMNS: ColumnData[] = [ accessorFn: (row) => formatDate(row.last_updated_trace_at ?? row.created_at), }, + { + id: "created_at", + label: "Created", + type: COLUMN_TYPE.time, + accessorFn: (row) => formatDate(row.created_at), + }, ]; -export const DEFAULT_SELECTED_COLUMNS: string[] = ["name", "created_at"]; +export const DEFAULT_SELECTED_COLUMNS: string[] = [ + "name", + "last_updated_at", + "created_at", +]; const ProjectsPage: React.FunctionComponent = () => { const navigate = useNavigate();