데모 콘솔 디자인 개편 — 미니멀 라이트 테마·컴포넌트 라이브러리 도입·제안가 추이 차트

- 연회색 바탕 위 무보더 흰 카드, 단일 파랑 악센트, 숫자 tabular-nums 통일
- 가격 트랙 → 제안가 추이 영역 차트(기준선 3종 점선·라벨 자동 스태거·합의가 종점 연결)
- 채팅 말풍선·버튼·배지·진행표시를 컴포넌트 라이브러리 기반으로 재작성
- 완료 배너에 최종 합의가·절감률 강조, 로딩·빈·오류 상태 문구 정비

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UFZ7JWdwCaQAwNYJErL8pP
This commit is contained in:
민헌andClaude Fable 5 committed 2026-08-31 14:04:05 +09:00
1 parent 156ce3817d
commit 66c0429ea2
10 files changed
+382 -246

No files matched your search

+21 -20
View File
@@ -10,10 +10,10 @@ export function CasePanel({
onStart: (c: DemoCase) => void
}) {
return (
<aside className="flex flex-col gap-3 min-[960px]:min-h-0 min-[960px]:overflow-y-auto">
<section className="rounded-xl border border-line bg-panel p-4">
<h2 className="text-xs font-semibold uppercase tracking-wider text-muted">협상 케이스</h2>
<ul className="mt-3 flex flex-col gap-2">
<aside className="flex flex-col gap-4 min-[960px]:min-h-0 min-[960px]:overflow-y-auto">
<section className="rounded-box bg-base-100 p-5">
<h2 className="text-xs font-semibold text-base-content/55">협상 케이스</h2>
<ul className="mt-3 flex flex-col gap-1.5">
{cases.map((c) => {
const active = started && c.id === selected.id
return (
@@ -22,27 +22,28 @@ export function CasePanel({
type="button"
disabled={busy}
onClick={() => onStart(c)}
className={`w-full rounded-lg border px-3 py-2.5 text-left transition-colors focus-visible:ring-2 focus-visible:ring-blue focus-visible:outline-none ${
active
? 'border-blue bg-blue-soft'
: 'border-line bg-panel hover:border-muted'
aria-pressed={active}
className={`w-full cursor-pointer rounded-field p-3 text-left transition-colors focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none ${
active ? 'bg-primary/8 ring-1 ring-primary/30' : 'hover:bg-base-200'
} ${busy ? 'opacity-60' : ''}`}
>
<div className="flex items-center justify-between gap-2">
<span className="text-sm font-semibold">{c.item_name}</span>
<span className="shrink-0 rounded bg-paper px-1.5 py-0.5 text-[11px] text-muted">{c.label}</span>
<span className={`text-sm font-bold ${active ? 'text-primary' : ''}`}>{c.item_name}</span>
<span className="shrink-0 rounded-full bg-base-200 px-2 py-0.5 text-[10px] font-medium text-base-content/55">
{c.label}
</span>
</div>
<div className="mt-1 font-mono text-xs text-muted">
기존 공급가 {c.item_price.toLocaleString()}원
<div className="num mt-1 text-xs text-base-content/55">
기존 공급가 <span className="font-semibold text-base-content/80">{c.item_price.toLocaleString()}원</span>
</div>
{active && (
<dl className="mt-2 grid grid-cols-2 gap-x-2 gap-y-1 border-t border-line pt-2 text-[11px]">
<dt className="text-muted">공급 유형</dt>
<dd className="text-right">{DIST_LABEL[c.dist]} · {c.partners_yn}</dd>
<dt className="text-muted">거래 기간</dt>
<dd className="text-right font-mono">{c.card_data.trading_period}년</dd>
<dt className="text-muted">응답률 / VOC</dt>
<dd className="text-right font-mono">{c.card_data.response_rate}% / {c.card_data.voc_count}건</dd>
<dl className="mt-2.5 grid grid-cols-2 gap-x-2 gap-y-1 border-t border-primary/15 pt-2.5 text-[11px]">
<dt className="text-base-content/50">공급 유형</dt>
<dd className="text-right font-medium">{DIST_LABEL[c.dist]} · {c.partners_yn}</dd>
<dt className="text-base-content/50">거래 기간</dt>
<dd className="num text-right font-medium">{c.card_data.trading_period}년</dd>
<dt className="text-base-content/50">응답률 / VOC</dt>
<dd className="num text-right font-medium">{c.card_data.response_rate}% / {c.card_data.voc_count}건</dd>
</dl>
)}
</button>
@@ -51,7 +52,7 @@ export function CasePanel({
})}
</ul>
{!started && (
<p className="mt-3 text-xs leading-relaxed text-muted">
<p className="mt-3 text-xs leading-relaxed text-base-content/50">
케이스를 선택하면 협상이 시작됩니다. 챗봇은 구매 담당자(MD) 역할이고,
당신은 공급사로서 가격 제안에 응답합니다.
</p>