From 06c2481fe78a0bd0f28246cb8596fe0d8fc0551c Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Thu, 18 Jun 2026 18:43:20 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20negodata/front:=20=EC=84=B8=EC=85=98?= =?UTF-8?q?=EC=83=81=ED=83=9C=20=EB=9D=BC=EB=B2=A8=EC=9D=84=20SHARED=5FENU?= =?UTF-8?q?MS.md=205-state=EB=A1=9C=20=EC=A0=95=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SESSION_STATUS_LABEL 옛 3-state(1협상중·2협상종료·3협상거부) → 정본 5-state (1협상생성·2협상중·3협상완료·4미참여·5협상거부, 서버 /v1/enums·백엔드 SessionStatus 미러) - 코드→라벨 단일 진입점 sessionStatusLabel() 추가, 드로어 인라인 매핑 제거 - '협상종료' 표기 → '협상완료'(DONE) 통일, ChatSession status 유니온 정렬 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../quotations/components/QuotationDetailDrawer.tsx | 7 ++++--- negodata/front/src/features/quotations/types.ts | 13 ++++++++++++- negodata/front/src/types.ts | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/negodata/front/src/features/quotations/components/QuotationDetailDrawer.tsx b/negodata/front/src/features/quotations/components/QuotationDetailDrawer.tsx index 82d0145..3673674 100644 --- a/negodata/front/src/features/quotations/components/QuotationDetailDrawer.tsx +++ b/negodata/front/src/features/quotations/components/QuotationDetailDrawer.tsx @@ -29,6 +29,7 @@ import { normalizeQuotationStatus, buildBidSummary, mapServerSessionView, + sessionStatusLabel, mapServerCardView, } from '../types'; @@ -459,7 +460,7 @@ export function QuotationDetailDrawer({ { const isSelected = sd.session_id === effectiveSessionId; const name = partners.find((p) => p.id === sd.supplier_id)?.name || sd.supplier_id; - const statusLabel = sd.status === 2 ? '협상종료' : sd.status === 3 ? '협상거부' : '협상중'; + const statusLabel = sessionStatusLabel(sd.status); return (