feat(ui): AI 결과 배지 3단계 — 정확/적중/빗나감

스코어까지 맞으면 '정확 ✓'(강조), 승패만 맞으면 '적중 ✓', 그 외 '빗나감'.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
HyeongBaeYangandClaude Opus 4.8 committed 2026-06-12 10:25:56 +09:00
1 parent 7a2affe10a
commit 86290a7c69
2 files changed
+14 -4

No files matched your search

+11 -4
View File
@@ -261,13 +261,20 @@ export default function Arena({
</div>
<div className="mt-3 flex flex-col gap-1.5">
{predictions.map((p) => {
const hit = p.outcome === match.result!.outcome;
const r = match.result!;
const exact = p.scoreA === r.scoreA && p.scoreB === r.scoreB;
const outcomeHit = p.outcome === r.outcome;
// 3단계: 정확(스코어까지) / 적중(승패만) / 빗나감
const label = exact ? t.exactHit : outcomeHit ? t.hit : t.miss;
const cls = exact
? "rounded bg-[var(--green)]/15 px-1.5 py-0.5 font-extrabold text-[var(--green)]"
: outcomeHit
? "font-bold text-[var(--green)]"
: "text-white/45";
return (
<div key={p.model} className="flex items-center justify-between text-[13px]">
<span className="font-bold text-white/85">{p.model}</span>
<span className={hit ? "font-bold text-[var(--green)]" : "text-white/45"}>
{hit ? t.hit : t.miss}
</span>
<span className={cls}>{label}</span>
</div>
);
})}