feat: implement interactive temperature chart dashboard with runway trend visualization and multi-source data collection support

This commit is contained in:
2569718930@qq.com
2026-05-27 01:16:49 +08:00
parent c4119c1aab
commit 2670e2f8ee
13 changed files with 308 additions and 52 deletions
@@ -6,9 +6,11 @@ import { temp } from "@/components/dashboard/scan-terminal/utils";
export function ModelCurvesSummary({
isEn,
activeSeries,
tempSymbol,
}: {
isEn: boolean;
activeSeries: EvidenceSeries[];
tempSymbol: string;
}) {
const modelSeries = activeSeries.filter((s) => s.key.startsWith("model_curve_"));
if (!modelSeries.length) return null;
@@ -25,7 +27,7 @@ export function ModelCurvesSummary({
<span key={s.key} className="inline-flex items-center gap-1.5 font-mono">
<span className="h-2 w-2 rounded-full shrink-0" style={{ backgroundColor: s.color }} />
<span className="text-slate-700 font-bold">{s.label}</span>
<span className="text-slate-500">{temp(stats.latest)}</span>
<span className="text-slate-500">{temp(stats.latest, tempSymbol)}</span>
</span>
);
})}