fix(gate-5): WCAG AA — zinc-400 italic for low-score badge per [uiux-agent] review

This commit is contained in:
molecule-ai[bot] 2026-04-17 19:23:51 +00:00 committed by GitHub
parent cdc51d4d30
commit 1e9fd37460

View File

@ -433,12 +433,12 @@ function MemoryEntryRow({
? "text-blue-500"
: entry.similarity_score >= 0.5
? "text-zinc-400"
: "text-zinc-600",
: "text-zinc-400 italic",
].join(" ")}
title={`Similarity: ${(entry.similarity_score * 100).toFixed(1)}%`}
data-testid="similarity-badge"
>
{Math.round(entry.similarity_score * 100)}%
{entry.similarity_score < 0.5 ? "~" : ""}{Math.round(entry.similarity_score * 100)}%
</span>
)}
<span className="text-[9px] text-zinc-600 shrink-0">