feat: implement live temperature threshold charting component with SSE patch support and data collection logic

This commit is contained in:
2569718930@qq.com
2026-05-27 08:42:08 +08:00
parent 65fe2d7361
commit bbd7c768f8
9 changed files with 380 additions and 77 deletions
@@ -117,7 +117,7 @@ export function LiveTemperatureThresholdChart({
const latestPatch = useLatestPatch(city);
const resyncVersion = useSseResyncVersion();
const timeframe = "1D";
const [viewMode, setViewMode] = useState<"auto" | "full">("auto");
const [viewMode, setViewMode] = useState<"auto" | "full">("full");
const [userToggledKeys, setUserToggledKeys] = useState<Record<string, boolean>>({});
const [liveTemp, setLiveTemp] = useState<number | null>(null);
const [isHourlyLoading, setIsHourlyLoading] = useState(false);