정보 위계 정리 — 밀도 완화를 위한 3단 타입 체계

- 상품 정보: 가격 2행만 1차 강조, 거래 조건 4종은 구분선 아래 2×2 보조 그리드로 강등
- 가격 라운드: 행당 강조를 %(파랑) 하나로 — 카드 칩은 회색으로
- 엔진 판단: 현재 협상 카드를 패널 주인공으로 승격, 긴장도 구간명을 값에 병기해
  라벨 행·설명 캡션 제거, 게이지·바 두께 축소
- 협상 진행: 완료 단계 라벨 감쇄 — 현재 단계만 강조

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:47:54 +09:00
1 parent cf23ca264a
commit 956f241f88
2 files changed
+59 -52

No files matched your search

+24 -16
View File
@@ -73,30 +73,38 @@ export function CasePanel({
<section className="rounded-box bg-base-100 p-5">
<h2 className="text-[13px] font-semibold text-base-content/55">상품 정보</h2>
<p className="mt-2 text-[15px] font-bold">{selected.item_name}</p>
{/* 1차 정보: 가격 두 줄만 강조 */}
<dl className="mt-3 flex flex-col gap-2 text-[13px]">
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/50">기존 공급가</dt>
<dd className="num font-semibold">{selected.item_price.toLocaleString()}원</dd>
<dt className="text-base-content/45">기존 공급가</dt>
<dd className="num text-sm font-semibold">{selected.item_price.toLocaleString()}원</dd>
</div>
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/50">인터넷 최저가</dt>
<dd className="num font-semibold">{selected.card_data.internet_min_price.toLocaleString()}원</dd>
<dt className="text-base-content/45">인터넷 최저가</dt>
<dd className="num text-sm font-semibold">{selected.card_data.internet_min_price.toLocaleString()}원</dd>
</div>
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/50">공급 유형</dt>
<dd className="font-medium">{DIST_LABEL[selected.dist]}</dd>
</dl>
{/* 2차 정보: 거래 조건은 한 단계 가라앉힌 보조 그리드 */}
<dl className="mt-3 grid grid-cols-2 gap-x-3 gap-y-2.5 border-t border-base-300/60 pt-3">
<div>
<dt className="text-[11px] text-base-content/40">공급 유형</dt>
<dd className="mt-0.5 text-[13px] font-medium text-base-content/75">{DIST_LABEL[selected.dist]}</dd>
</div>
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/50">협력사 유형</dt>
<dd className="font-medium">{PARTNER_LABEL[selected.partners_yn]}</dd>
<div>
<dt className="text-[11px] text-base-content/40">협력사 유형</dt>
<dd className="mt-0.5 text-[13px] font-medium text-base-content/75">{PARTNER_LABEL[selected.partners_yn]}</dd>
</div>
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/50">거래 기간</dt>
<dd className="num font-medium">{selected.card_data.trading_period}년</dd>
<div>
<dt className="text-[11px] text-base-content/40">거래 기간</dt>
<dd className="num mt-0.5 text-[13px] font-medium text-base-content/75">{selected.card_data.trading_period}년</dd>
</div>
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/50">응답률 / VOC</dt>
<dd className="num font-medium">{selected.card_data.response_rate}% / {selected.card_data.voc_count}건</dd>
<div>
<dt className="text-[11px] text-base-content/40">응답률 / VOC</dt>
<dd className="num mt-0.5 text-[13px] font-medium text-base-content/75">
{selected.card_data.response_rate}% / {selected.card_data.voc_count}건
</dd>
</div>
</dl>
</section>
+35 -36
View File
@@ -84,8 +84,8 @@ export function Dashboard({
state === 'current'
? 'font-bold text-primary'
: state === 'done'
? 'font-medium text-base-content/80'
: 'text-base-content/40'
? 'text-base-content/55'
: 'text-base-content/35'
}`}
>
{s}
@@ -125,7 +125,7 @@ export function Dashboard({
</span>
)}
{r.card && (
<span className="num shrink-0 rounded-full bg-primary/10 px-1.5 py-px font-mono text-[11px] font-semibold text-primary">
<span className="num shrink-0 rounded-full bg-base-200 px-1.5 py-px font-mono text-[11px] font-medium text-base-content/55">
{r.card}
</span>
)}
@@ -138,28 +138,30 @@ export function Dashboard({
<Panel title="엔진 판단">
{meta ? (
<dl className="flex flex-col gap-4 text-[15px]">
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/55">협상 카드</dt>
<dd>
<span className="badge badge-soft badge-primary num font-mono text-[13px] font-semibold">
<dl className="flex flex-col gap-4">
{/* 이 패널의 주인공 — 지금 발동 중인 협상 카드 */}
<div>
<dt className="text-[11px] text-base-content/40">현재 협상 카드</dt>
<dd className="mt-1">
<span className="num inline-block rounded-field bg-primary/10 px-3 py-1.5 font-mono text-base font-bold text-primary">
{meta.card_id ?? '—'}
</span>
</dd>
</div>
<div>
<div className="flex items-center justify-between">
<dt className="text-base-content/55">가격 지표</dt>
<dd className="num text-sm font-medium">
<div className="flex items-baseline justify-between">
<dt className="text-[13px] text-base-content/45">가격 지표</dt>
<dd className="num text-sm">
{indicator != null ? (
<>
{indicator} <span className="text-base-content/45">/ 99 · {meta.indicator_range}</span>
<span className="font-semibold">{indicator}</span>
<span className="text-xs text-base-content/40"> / 99 · {meta.indicator_range}</span>
</>
) : '—'}
</dd>
</div>
<div className="mt-2 h-1.5 rounded-full bg-base-200">
<div className="mt-1.5 h-1 rounded-full bg-base-200">
<div
className="h-full rounded-full bg-primary transition-[width] duration-500 motion-reduce:transition-none"
style={{ width: `${indicator ?? 0}%` }}
@@ -168,41 +170,38 @@ export function Dashboard({
</div>
<div>
<div className="flex items-center justify-between">
<dt className="text-base-content/55">협상 긴장도</dt>
<dd className="num text-sm font-medium">{tension != null ? tension.toFixed(2) : '—'}</dd>
<div className="flex items-baseline justify-between">
<dt className="text-[13px] text-base-content/45">협상 긴장도</dt>
<dd className="num text-sm">
{tension != null ? (
<>
<span className="font-semibold">{tension.toFixed(2)}</span>
{zone != null && <span className="text-xs text-warning"> · {ZONE_LABELS[zone]}</span>}
</>
) : '—'}
</dd>
</div>
<div className="mt-2 flex gap-1" aria-hidden>
<div className="mt-1.5 flex gap-1" aria-hidden>
{ZONE_LABELS.map((_, i) => (
<div
key={i}
className={`h-1.5 flex-1 rounded-full transition-colors ${
className={`h-1 flex-1 rounded-full transition-colors ${
zone === i ? 'bg-warning' : 'bg-base-200'
}`}
/>
))}
</div>
<div className="mt-1.5 flex text-[11px]" aria-hidden>
{ZONE_LABELS.map((l, i) => (
<span
key={l}
className={`flex-1 text-center ${zone === i ? 'font-semibold text-warning' : 'text-base-content/40'}`}
>
{l}
</span>
))}
</div>
<div className="mt-2.5 flex items-center justify-between gap-2">
<span className="text-[13px] text-base-content/55">적용 페르소나</span>
</div>
<div className="flex items-center justify-between gap-2">
<dt className="text-[13px] text-base-content/45">적용 페르소나</dt>
<dd>
{meta.persona ? (
<span className="badge badge-soft badge-warning text-[13px] font-semibold">{meta.persona}</span>
<span className="badge badge-soft badge-warning text-xs font-semibold">{meta.persona}</span>
) : (
<span className="text-base-content/45">—</span>
<span className="text-sm text-base-content/45">—</span>
)}
</div>
<p className="mt-2 text-xs leading-relaxed text-base-content/45">
긴장도 구간에 따라 협상 말투(페르소나)가 정해집니다.
</p>
</dd>
</div>
</dl>
) : (