证据面板加载态立即显示 DEB + AI 预测中占位卡片
此前 AI 预测卡片需等流式 SSE 返回后才显示,loading 期间整个双卡片 区域消失。现在:DEB 卡片立即显示,AI 侧显示"预测中…"呼吸动画占位, 流式返回后自动替换为真实预测值。
This commit is contained in:
@@ -99,6 +99,14 @@ export function AiEvidencePanel({
|
||||
</span>
|
||||
{aiRangeText ? <em>{aiRangeText}</em> : null}
|
||||
</div>
|
||||
) : aiForecast.status === "loading" && hasDebPrediction ? (
|
||||
<div className="scan-ai-prediction-card ai pending">
|
||||
<small>{isEn ? "AI predicted high" : "AI 预测最高温"}</small>
|
||||
<strong>{isEn ? "..." : "…"}</strong>
|
||||
<span className="scan-ai-confidence low">
|
||||
{isEn ? "Predicting" : "预测中"}
|
||||
</span>
|
||||
</div>
|
||||
) : null}
|
||||
{hasDebPrediction ? (
|
||||
<div className="scan-ai-prediction-card deb">
|
||||
@@ -110,6 +118,23 @@ export function AiEvidencePanel({
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
) : hasDebPrediction ? (
|
||||
<div className="scan-ai-prediction-dual">
|
||||
<div className="scan-ai-prediction-card deb">
|
||||
<small>{isEn ? "DEB fusion" : "DEB 融合"}</small>
|
||||
<strong>{formatTemperatureValue(debPrediction!, tempSymbol, { digits: 1 })}</strong>
|
||||
<span className="scan-ai-confidence neutral">
|
||||
{isEn ? "Reference" : "参考"}
|
||||
</span>
|
||||
</div>
|
||||
<div className="scan-ai-prediction-card ai pending">
|
||||
<small>{isEn ? "AI predicted high" : "AI 预测最高温"}</small>
|
||||
<strong>{isEn ? "..." : "…"}</strong>
|
||||
<span className="scan-ai-confidence low">
|
||||
{isEn ? "Predicting" : "预测中"}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{aiForecast.status === "loading" ? (
|
||||
|
||||
Reference in New Issue
Block a user