diff options
Diffstat (limited to 'lib/swp/table/swp-table-columns.tsx')
| -rw-r--r-- | lib/swp/table/swp-table-columns.tsx | 46 |
1 files changed, 16 insertions, 30 deletions
diff --git a/lib/swp/table/swp-table-columns.tsx b/lib/swp/table/swp-table-columns.tsx index 573acf1b..9954ab73 100644 --- a/lib/swp/table/swp-table-columns.tsx +++ b/lib/swp/table/swp-table-columns.tsx @@ -40,7 +40,7 @@ export const swpDocumentColumns: ColumnDef<SwpDocumentWithStats>[] = [ accessorKey: "DOC_TITLE", header: "문서제목", cell: ({ row }) => ( - <div className="max-w-md truncate" title={row.original.DOC_TITLE}> + <div className="max-w-md" title={row.original.DOC_TITLE}> {row.original.DOC_TITLE} </div> ), @@ -53,7 +53,7 @@ export const swpDocumentColumns: ColumnDef<SwpDocumentWithStats>[] = [ <div> <div className="font-medium">{row.original.PROJ_NO}</div> {row.original.PROJ_NM && ( - <div className="text-xs text-muted-foreground truncate max-w-[150px]"> + <div className="text-xs text-muted-foreground max-w-[150px]"> {row.original.PROJ_NM} </div> )} @@ -106,7 +106,7 @@ export const swpDocumentColumns: ColumnDef<SwpDocumentWithStats>[] = [ }, { accessorKey: "LTST_REV_NO", - header: "최신 REV", + header: "마지막 REV NO", cell: ({ row }) => row.original.LTST_REV_NO || "-", size: 80, }, @@ -123,22 +123,26 @@ export const swpDocumentColumns: ColumnDef<SwpDocumentWithStats>[] = [ size: 100, }, { - accessorKey: "sync_status", - header: "상태", + accessorKey: "LTST_ACTV_STAT", + header: "상태 (최신 액티비티)", cell: ({ row }) => { - const status = row.original.sync_status; - const color = - status === "synced" ? "bg-green-100 text-green-800" : - status === "pending" ? "bg-yellow-100 text-yellow-800" : - "bg-red-100 text-red-800"; - + const status = row.original.LTST_ACTV_STAT; + if (!status) return "-"; + + // 상태에 따른 색상 설정 (필요에 따라 조정 가능) + const color = + status === "Complete" ? "bg-green-100 text-green-800" : + status === "In Progress" ? "bg-blue-100 text-blue-800" : + status === "Pending" ? "bg-yellow-100 text-yellow-800" : + "bg-gray-100 text-gray-800"; + return ( <Badge variant="outline" className={color}> {status} </Badge> ); }, - size: 80, + size: 100, }, { accessorKey: "last_synced_at", @@ -250,24 +254,6 @@ export const swpRevisionColumns: ColumnDef<RevisionRow>[] = [ size: 100, }, { - accessorKey: "sync_status", - header: "상태", - cell: ({ row }) => { - const status = row.original.sync_status; - const color = - status === "synced" ? "bg-green-100 text-green-800" : - status === "pending" ? "bg-yellow-100 text-yellow-800" : - "bg-red-100 text-red-800"; - - return ( - <Badge variant="outline" className={color}> - {status} - </Badge> - ); - }, - size: 80, - }, - { accessorKey: "last_synced_at", header: "동기화", cell: ({ row }) => ( |
