긴장도 미산출 케이스에 이유 표시 — 첫 제안가 ≤ 목표가면 산식 정의역 밖
엔진은 initial > target일 때만 긴장도·페르소나를 계산(분모 = 초기제안가 − 목표가). 해당 세션에서는 무정보 '—' 대신 산출되지 않는 이유를 캡션으로 안내 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UFZ7JWdwCaQAwNYJErL8pP
This commit is contained in:
1 parent
956f241f88
commit
b7cc25681e
1 file changed
+12
@@ -65,6 +65,11 @@ export function Dashboard({
|
||||
const indicator = meta?.indicator_value ?? null
|
||||
const zone = meta?.persona != null ? PERSONA_ZONE[meta.persona] ?? null : null
|
||||
|
||||
// 긴장도 산식의 분모는 (첫 제안가 − 목표가) — 첫 제안이 이미 목표가 이하면
|
||||
// 척도가 정의되지 않아 엔진이 계산을 건너뛴다. 이때는 이유를 보여준다.
|
||||
const tensionUndefined = tension == null && demoCase != null && rounds.length > 0
|
||||
&& rounds[0].price <= demoCase.target
|
||||
|
||||
return (
|
||||
<aside className="flex flex-col gap-4 min-[960px]:min-h-0 min-[960px]:overflow-y-auto">
|
||||
<Panel title="협상 진행">
|
||||
@@ -203,6 +208,13 @@ export function Dashboard({
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
{tensionUndefined && (
|
||||
<p className="-mt-2 text-xs leading-relaxed text-base-content/45">
|
||||
첫 제안가가 이미 목표가 이하라 이 협상에서는 긴장도·페르소나가
|
||||
산출되지 않아요. (긴장도는 첫 제안가~목표가 구간에서의 위치입니다)
|
||||
</p>
|
||||
)}
|
||||
</dl>
|
||||
) : (
|
||||
<p className="text-[13px] leading-relaxed text-base-content/55">
|
||||
|
||||
Reference in new issue
Block a user