[chore] negodata: enum 주석 영문값 보강 + 견적상태 3종 정리 + 대시보드 정비

- enum DDL 주석에 영문값 보강(status/role/delivery/usage_type/qt_type/supplier_type)
- 견적상태 3종(생성/진행중/마감)으로 정리(ON_HOLD 제거), 배송 PARTNER→SUPPLIER
- 대시보드 손질, 관련 테스트·negosium 견적유형 주석 동반

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8 committed 2026-06-30 17:25:38 +09:00
1 parent 615167ad41
commit f19c6f57ea
36 files changed
+758 -247

No files matched your search

@@ -97,7 +97,6 @@ export function SessionsStatusTab({
<Table className="w-full text-left text-xs border-collapse font-mono min-w-[1350px]">
<TableHeader className="bg-muted text-muted-foreground text-[10px] border-b border-border">
<TableRow>
<TableHead className="p-3 font-semibold">세션 ID</TableHead>
<TableHead className="p-3 font-semibold font-sans">협력사</TableHead>
<TableHead className="p-3 font-semibold font-sans">협상 URL</TableHead>
<TableHead className="p-3 font-semibold text-center font-sans">초청메일</TableHead>
@@ -115,14 +114,13 @@ export function SessionsStatusTab({
<TableBody className="divide-y divide-border">
{sessionViews.length === 0 && (
<TableRow>
<TableCell colSpan={13} className="p-12 text-center text-muted-foreground">
<TableCell colSpan={12} className="p-12 text-center text-muted-foreground">
참여 중인 협상 세션이 없습니다. (리스트가 비어 있습니다)
</TableCell>
</TableRow>
)}
{sessionViews.map((sess) => (
<TableRow key={sess.session_id} className="hover:bg-muted/30 transition-colors text-[11px]">
<TableCell className="p-3 text-muted-foreground font-mono">{sess.session_id}</TableCell>
<TableCell className="p-3 font-bold text-foreground font-sans">
<div className="flex items-center gap-2">
<span>{sess.supplier_name}</span>
@@ -51,7 +51,7 @@ const QSTATUS_TONE: Record<QuotationStatus, { box: string; dot: string }> = {
box: 'bg-amber-100 text-amber-800 border-amber-300 dark:bg-amber-950/40 dark:text-amber-300 dark:border-amber-700/50',
dot: 'bg-amber-500',
},
[QuotationStatus.ACTIVE]: {
[QuotationStatus.IN_PROGRESS]: {
box: 'bg-emerald-100 text-emerald-800 border-emerald-300 dark:bg-emerald-950/40 dark:text-emerald-300 dark:border-emerald-700/50',
dot: 'bg-emerald-500',
},
@@ -59,10 +59,6 @@ const QSTATUS_TONE: Record<QuotationStatus, { box: string; dot: string }> = {
box: 'bg-blue-100 text-blue-800 border-blue-300 dark:bg-blue-950/40 dark:text-blue-300 dark:border-blue-700/50',
dot: 'bg-blue-500',
},
[QuotationStatus.ON_HOLD]: {
box: 'bg-rose-100 text-rose-800 border-rose-300 dark:bg-rose-950/40 dark:text-rose-300 dark:border-rose-700/50',
dot: 'bg-rose-500',
},
};
const QSTATUS_FALLBACK = { box: 'bg-zinc-100 text-zinc-800 border-zinc-300', dot: 'bg-zinc-500' };
@@ -26,12 +26,10 @@ const statusBadgeClass = (status?: number | null) => {
switch (status) {
case QuotationStatus.CREATED:
return 'bg-yellow-50 text-yellow-700 border-yellow-300';
case QuotationStatus.ACTIVE:
case QuotationStatus.IN_PROGRESS:
return 'bg-emerald-50 text-emerald-700 dark:bg-emerald-950/25 dark:text-emerald-400 border-emerald-300/40';
case QuotationStatus.CLOSED:
return 'bg-blue-50 text-blue-700 border-blue-300';
case QuotationStatus.ON_HOLD:
return 'bg-red-50 text-red-700 border-red-300';
default:
return 'bg-zinc-100 text-zinc-600';
}
@@ -53,7 +51,7 @@ export function QuotationTable({ data, products, onOpenDetail, onFilterChain, fo
const productName = product?.name ?? est.productName; // 목록에 없으면 서버 조인 상품명으로 폴백
return (
<div>
<Typography as="span" variant="link" className="block text-sm font-bold">
<Typography as="span" variant="small" className="block font-bold">
{est.title}
</Typography>
<Typography as="span" variant="small" className="mt-0.5 flex items-center gap-1.5 text-[10px] font-mono text-muted-foreground">
@@ -118,13 +118,12 @@ function formatDueDate(end?: string | null): string {
return toKstDateTime(end) ?? end;
}
export type QtStatusKey = '견적생성' | '견적진행중' | '견적마감' | '협상보류';
export type QtStatusKey = '견적생성' | '견적진행중' | '견적마감';
export const QUOTATION_STATUS_LABEL: Record<QuotationStatus, QtStatusKey> = {
[QuotationStatus.CREATED]: '견적생성',
[QuotationStatus.ACTIVE]: '견적진행중',
[QuotationStatus.IN_PROGRESS]: '견적진행중',
[QuotationStatus.CLOSED]: '견적마감',
[QuotationStatus.ON_HOLD]: '협상보류',
};
export const quotationStatusLabel = (s?: number | null): string =>
s != null ? QUOTATION_STATUS_LABEL[s as QuotationStatus] ?? String(s) : '';