style: color local correlation and group platform check actions

This commit is contained in:
yuxuanhui
2026-09-12 23:02:42 +08:00
parent f3eb239e1a
commit 7547dbc565
2 changed files with 20 additions and 11 deletions
+12
View File
@@ -622,6 +622,18 @@ export function AlphaPage({
return value ? (
<span
title={`计算于 ${formatTime(value.calculated_at, account?.timezone)}`}
style={{
color:
value.stale ||
value.max_correlation === null ||
!Number.isFinite(value.max_correlation)
? "var(--semi-color-text-2)"
: value.max_correlation > 0.75
? "var(--semi-color-danger)"
: value.max_correlation >= 0.7
? "rgb(var(--semi-yellow-7))"
: "var(--semi-color-success)",
}}
>
{value.stale ? "待重算" : correlationLabels[value.status]}
{value.max_correlation !== null &&