From 10f90dc68dec42e9a64e081cc0dce6a484447290 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 29 Jul 2025 11:48:59 +0000
Subject: (대표님, 박서영, 최겸) document-list-only, gtc, vendorDocu,
 docu-list-rule
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../status/gtc-documents-table-columns.tsx         | 35 ++++++++++++++--------
 1 file changed, 22 insertions(+), 13 deletions(-)

(limited to 'lib/gtc-contract/status/gtc-documents-table-columns.tsx')

diff --git a/lib/gtc-contract/status/gtc-documents-table-columns.tsx b/lib/gtc-contract/status/gtc-documents-table-columns.tsx
index cd02a3e5..89415284 100644
--- a/lib/gtc-contract/status/gtc-documents-table-columns.tsx
+++ b/lib/gtc-contract/status/gtc-documents-table-columns.tsx
@@ -24,7 +24,7 @@ import { type GtcDocumentWithRelations } from "@/db/schema/gtc"
 
 interface GetColumnsProps {
   setRowAction: React.Dispatch<React.SetStateAction<DataTableRowAction<GtcDocumentWithRelations> | null>>
-  router: AppRouterInstance // ← 추가
+  router: AppRouterInstance
 }
 
 /** GTC Documents 테이블 컬럼 정의 (그룹 헤더 제거) */
@@ -75,12 +75,13 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef
       accessorKey: "project",
       header: ({ column }) => <DataTableColumnHeaderSimple column={column} title="프로젝트" />,
       cell: ({ row }) => {
-        const project = row.original.project
-        if (!project) return <span className="text-muted-foreground">-</span>
+        const projectName = row.original.projectName
+        const projectCode = row.original.projectCode
+        if (!projectName) return <span className="text-muted-foreground">-</span>
         return (
           <div className="flex flex-col min-w-0">
-            <span className="font-medium truncate">{project.name}</span>
-            <span className="text-xs text-muted-foreground">{project.code}</span>
+            <span className="font-medium truncate">{projectName}</span>
+            <span className="text-xs text-muted-foreground">{projectCode}</span>
           </div>
         )
       },
@@ -195,6 +196,10 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef
         setRowAction({ row, type: "createRevision" })
       }
 
+      const handleClone = () => {
+        setRowAction({ row, type: "clone" })
+      }
+
       return (
         <DropdownMenu>
           <DropdownMenuTrigger asChild>
@@ -206,26 +211,30 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef
               <Ellipsis className="size-4" aria-hidden />
             </Button>
           </DropdownMenuTrigger>
-          <DropdownMenuContent align="end" className="w-48">
+          <DropdownMenuContent align="end" className="w-44">
             <DropdownMenuItem onSelect={handleViewDetails}>
-              <Eye className="mr-2 h-4 w-4" />
-              상세
+              {/* <Eye className="mr-2 h-4 w-4" /> */}
+              상세보기
             </DropdownMenuItem>
 
             <DropdownMenuSeparator />
 
             <DropdownMenuItem onSelect={() => setRowAction({ row, type: "update" })}>
-              수정 
+              수정하기
             </DropdownMenuItem>
 
             <DropdownMenuItem onSelect={handleCreateNewRevision}>
-              새 리비전 생성
+              리비전 생성하기
+            </DropdownMenuItem>
+
+            <DropdownMenuItem onSelect={handleClone}>
+              복제하기
             </DropdownMenuItem>
 
             <DropdownMenuSeparator />
             <DropdownMenuItem onSelect={() => setRowAction({ row, type: "delete" })}>
-              삭제
-              <DropdownMenuShortcut>⌘⌫</DropdownMenuShortcut>
+              삭제하기
+              {/* <DropdownMenuShortcut>⌘⌫</DropdownMenuShortcut> */}
             </DropdownMenuItem>
           </DropdownMenuContent>
         </DropdownMenu>
@@ -241,4 +250,4 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef
     ...auditColumns,
     actionsColumn,
   ]
-}
+}
\ No newline at end of file
-- 
cgit v1.2.3

