Skip to content

Commit

Permalink
[OPIK-260] [FE] Show by default updated_at column in Projects table (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andriidudar authored Oct 11, 2024
1 parent 5f457b7 commit 900cc09
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,26 @@ export const DEFAULT_COLUMNS: ColumnData<Project>[] = [
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",
type: COLUMN_TYPE.time,
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();
Expand Down

0 comments on commit 900cc09

Please sign in to comment.