style: color local correlation and group platform check actions
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user