From f4b1a770184e8647e0b3042a52a1bcc6f9cf00ce Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Wed, 12 Nov 2025 17:49:57 +0900
Subject: (김준회) SWP: 파일 업로드시 Stage 검증 추가, DOC_CLASS 관리 단순화
 (코드 제거), DOC_CLASS 추가시 검증(A-Z0-9) 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../table/document-class-table-columns.tsx         | 43 +++++++---------------
 1 file changed, 14 insertions(+), 29 deletions(-)

(limited to 'lib/docu-list-rule/document-class/table/document-class-table-columns.tsx')

diff --git a/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx b/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx
index 8c391def..9d8d91e0 100644
--- a/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx
+++ b/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx
@@ -106,44 +106,29 @@ export function getColumns({ setRowAction, onDetail }: GetColumnsProps): ColumnD
   // 3) 데이터 컬럼들
   // ----------------------------------------------------------------
   const dataColumns: ColumnDef<typeof documentClasses.$inferSelect>[] = [
-    {
-      accessorKey: "code",
-      enableResizing: true,
-      header: ({ column }) => (
-        <DataTableColumnHeaderSimple column={column} title="코드" />
-      ),
-      meta: {
-        excelHeader: "코드",
-        type: "text",
-      },
-      cell: ({ row }) => row.getValue("code") ?? "",
-      minSize: 80
-    },
     {
       accessorKey: "value",
       enableResizing: true,
       header: ({ column }) => (
-        <DataTableColumnHeaderSimple column={column} title="값" />
+        <DataTableColumnHeaderSimple column={column} title="클래스" />
       ),
       meta: {
-        excelHeader: "값",
+        excelHeader: "클래스",
         type: "text",
       },
-      cell: ({ row }) => row.getValue("value") ?? "",
-      minSize: 80
-    },
-    {
-      accessorKey: "description",
-      enableResizing: true,
-      header: ({ column }) => (
-        <DataTableColumnHeaderSimple column={column} title="설명" />
-      ),
-      meta: {
-        excelHeader: "설명",
-        type: "text",
+      cell: ({ row }) => {
+        const value = row.getValue("value") as string
+        const description = row.getValue("description") as string
+        return (
+          <div className="flex items-center gap-2">
+            <span className="font-mono font-bold text-lg">{value}</span>
+            {description && (
+              <span className="text-muted-foreground text-sm">- {description}</span>
+            )}
+          </div>
+        )
       },
-      cell: ({ row }) => row.getValue("description") ?? "",
-      minSize: 80
+      minSize: 250
     },
 
     {
-- 
cgit v1.2.3

