From ac6ab78ccdaf5f640a96212832e1186396961a68 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 8 Apr 2026 20:13:16 -0400 Subject: [PATCH] Lista osp muestra status de guardado (borrador, publicado) --- .../components/training-tables/columns.tsx | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/apps/web/feactures/training/components/training-tables/columns.tsx b/apps/web/feactures/training/components/training-tables/columns.tsx index 582c945..5d84779 100644 --- a/apps/web/feactures/training/components/training-tables/columns.tsx +++ b/apps/web/feactures/training/components/training-tables/columns.tsx @@ -22,18 +22,9 @@ export function columns({ apiUrl }: ColumnsProps): ColumnDef[] { accessorKey: 'ospType', header: 'Tipo', }, - { - accessorKey: 'created_at', - header: 'Fecha de creación', - cell: ({ row }) => { - // console.log(row.getValue('created_at')); - const date = row.getValue('created_at') as string; - return date ? new Date(date).toLocaleString() : 'N/A'; - }, - }, { accessorKey: 'currentStatus', - header: 'Estatus', + header: 'Estatus OSP', cell: ({ row }) => { const status = row.getValue('currentStatus') as string; return ( @@ -43,6 +34,16 @@ export function columns({ apiUrl }: ColumnsProps): ColumnDef[] { ); }, }, + { + accessorKey: 'created_at', + header: 'Fecha de creación', + cell: ({ row }) => { + // console.log(row.getValue('created_at')); + const date = row.getValue('created_at') as string; + return date ? new Date(date).toLocaleString() : 'N/A'; + }, + }, + { accessorKey: 'visitDate', header: 'Fecha Visita', @@ -51,6 +52,18 @@ export function columns({ apiUrl }: ColumnsProps): ColumnDef[] { return date ? new Date(date).toLocaleString() : 'N/A'; }, }, + { + accessorKey: 'surveyStatus', + header: '', + cell: ({ row }) => { + const status = row.getValue('surveyStatus') as string; + return ( + + {status} + + ); + }, + }, { id: 'actions', header: 'Acciones',