From 44b74ff4170090673b6eeacd8c528e0abf47b7aa Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Mon, 1 Dec 2025 19:52:06 +0900
Subject: (김준회) deprecated code 정리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../vendor-response/vendor-responses-table.tsx     | 152 ---------------------
 1 file changed, 152 deletions(-)
 delete mode 100644 lib/b-rfq/vendor-response/vendor-responses-table.tsx

(limited to 'lib/b-rfq/vendor-response/vendor-responses-table.tsx')

diff --git a/lib/b-rfq/vendor-response/vendor-responses-table.tsx b/lib/b-rfq/vendor-response/vendor-responses-table.tsx
deleted file mode 100644
index 02a5fa59..00000000
--- a/lib/b-rfq/vendor-response/vendor-responses-table.tsx
+++ /dev/null
@@ -1,152 +0,0 @@
-// lib/vendor-responses/table/vendor-responses-table.tsx
-"use client"
-
-import * as React from "react"
-import { type DataTableAdvancedFilterField, type DataTableFilterField, type DataTableRowAction } from "@/types/table"
-import { useDataTable } from "@/hooks/use-data-table"
-import { DataTable } from "@/components/data-table/data-table"
-import { DataTableAdvancedToolbar } from "@/components/data-table/data-table-advanced-toolbar"
-import { Button } from "@/components/ui/button"
-import { useRouter } from "next/navigation"
-import { getColumns } from "./vendor-responses-table-columns"
-import { VendorRfqResponseSummary } from "../validations"
-
-interface VendorResponsesTableProps {
-  promises: Promise<[{ data: VendorRfqResponseSummary[], pageCount: number, totalCount: number }]>;
-}
-
-export function VendorResponsesTable({ promises }: VendorResponsesTableProps) {
-  const [{ data, pageCount, totalCount }] = React.use(promises);
-  const router = useRouter();
-
-  console.log(data, "vendor responses data")
-  
-  // 선택된 행 액션 상태
-  
-  // 테이블 컬럼 정의
-  const columns = React.useMemo(() => getColumns({
-    router,
-  }), [router]);
-  
-  // 상태별 응답 수 계산 (전체 상태 기준)
-  const statusCounts = React.useMemo(() => {
-    return {
-      NOT_RESPONDED: data.filter(r => r.overallStatus === "NOT_RESPONDED").length,
-      RESPONDED: data.filter(r => r.overallStatus === "RESPONDED").length,
-      REVISION_REQUESTED: data.filter(r => r.overallStatus === "REVISION_REQUESTED").length,
-      WAIVED: data.filter(r => r.overallStatus === "WAIVED").length,
-    };
-  }, [data]);
-
-  
-  // 필터 필드
-  const filterFields: DataTableFilterField<VendorRfqResponseSummary>[] = [
-    {
-      id: "overallStatus",
-      label: "전체 상태",
-      options: [
-        { label: "미응답", value: "NOT_RESPONDED", count: statusCounts.NOT_RESPONDED },
-        { label: "응답완료", value: "RESPONDED", count: statusCounts.RESPONDED },
-        { label: "수정요청", value: "REVISION_REQUESTED", count: statusCounts.REVISION_REQUESTED },
-        { label: "포기", value: "WAIVED", count: statusCounts.WAIVED },
-      ]
-    },
-
-
-  ];
-  
-  // 고급 필터 필드
-  const advancedFilterFields: DataTableAdvancedFilterField<VendorRfqResponseSummary>[] = [
-
-    {
-      id: "overallStatus",
-      label: "전체 상태",
-      type: "multi-select",
-      options: [
-        { label: "미응답", value: "NOT_RESPONDED" },
-        { label: "응답완료", value: "RESPONDED" },
-        { label: "수정요청", value: "REVISION_REQUESTED" },
-        { label: "포기", value: "WAIVED" },
-      ],
-    },
-    {
-      id: "rfqType",
-      label: "RFQ 타입",
-      type: "multi-select",
-      options: [
-        { label: "초기 RFQ", value: "INITIAL" },
-        { label: "최종 RFQ", value: "FINAL" },
-      ],
-    },
-    {
-      id: "responseRate",
-      label: "응답률",
-      type: "number",
-    },
-    {
-      id: "completionRate",
-      label: "완료율",
-      type: "number",
-    },
-    {
-      id: "requestedAt",
-      label: "요청일",
-      type: "date",
-    },
-    {
-      id: "lastRespondedAt",
-      label: "최종 응답일",
-      type: "date",
-    },
-  ];
-  
-  // useDataTable 훅 사용
-  const { table } = useDataTable({
-    data,
-    columns,
-    pageCount,
-    filterFields,
-    enablePinning: true,
-    enableAdvancedFilter: true,
-    enableColumnResizing: true,
-    columnResizeMode: 'onChange',
-    initialState: {
-      sorting: [{ id: "updatedAt", desc: true }],
-      columnPinning: { right: ["actions"] },
-    },
-    getRowId: (originalRow) => String(originalRow.id),
-    shallow: false,
-    clearOnDefault: true,
-    defaultColumn: {
-      minSize: 50,
-      maxSize: 500,
-    },
-  });
-  
-  return (
-    <div className="w-full">
-      <div className="flex items-center justify-between py-4">
-        <div className="flex items-center space-x-2">
-          <span className="text-sm text-muted-foreground">
-            총 {totalCount}개의 응답 요청
-          </span>
-        </div>
-      </div>
-      
-      <div className="overflow-x-auto">
-        <DataTable
-          table={table}
-          className="min-w-full"
-        >
-          <DataTableAdvancedToolbar
-            table={table}
-            filterFields={advancedFilterFields}
-            shallow={false}
-          >
-            {/* 추가적인 액션 버튼들을 여기에 추가할 수 있습니다 */}
-          </DataTableAdvancedToolbar>
-        </DataTable>
-      </div>
-    </div>
-  );
-}
\ No newline at end of file
-- 
cgit v1.2.3

