style: color local correlation and group platform check actions
This commit is contained in:
@@ -151,6 +151,14 @@ export function SubmissionPanel({
|
|||||||
>
|
>
|
||||||
AI 生成 Description
|
AI 生成 Description
|
||||||
</Button>
|
</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>}
|
{data.model && <span className="muted">模型:{data.model}</span>}
|
||||||
</div>
|
</div>
|
||||||
{conflict && (
|
{conflict && (
|
||||||
@@ -197,16 +205,6 @@ export function SubmissionPanel({
|
|||||||
</p>
|
</p>
|
||||||
</section>
|
</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 && (
|
{data.job && (
|
||||||
<div role="status">
|
<div role="status">
|
||||||
<p>
|
<p>
|
||||||
@@ -218,7 +216,6 @@ export function SubmissionPanel({
|
|||||||
{data.job.error && (
|
{data.job.error && (
|
||||||
<Banner type="danger" description={data.job.error} />
|
<Banner type="danger" description={data.job.error} />
|
||||||
)}
|
)}
|
||||||
<Button onClick={onTask}>查看后台任务</Button>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -622,6 +622,18 @@ export function AlphaPage({
|
|||||||
return value ? (
|
return value ? (
|
||||||
<span
|
<span
|
||||||
title={`计算于 ${formatTime(value.calculated_at, account?.timezone)}`}
|
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.stale ? "待重算" : correlationLabels[value.status]}
|
||||||
{value.max_correlation !== null &&
|
{value.max_correlation !== null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user