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
+8 -11
View File
@@ -151,6 +151,14 @@ export function SubmissionPanel({
>
AI 生成 Description
</Button>
<Button
theme="solid"
loading={busy === "check"}
disabled={!!busy || running || conflict || !data.can_check}
onClick={() => void check()}
>
平台检查
</Button>
{data.model && <span className="muted">模型:{data.model}</span>}
</div>
{conflict && (
@@ -197,16 +205,6 @@ export function SubmissionPanel({
</p>
</section>
))}
<div className="inline-actions">
<Button
theme="solid"
loading={busy === "check"}
disabled={!!busy || running || conflict || !data.can_check}
onClick={() => void check()}
>
平台检查
</Button>
</div>
{data.job && (
<div role="status">
<p>
@@ -218,7 +216,6 @@ export function SubmissionPanel({
{data.job.error && (
<Banner type="danger" description={data.job.error} />
)}
<Button onClick={onTask}>查看后台任务</Button>
</div>
)}
</div>
+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 &&