Plot live chart observations immediately

This commit is contained in:
2569718930@qq.com
2026-06-10 12:56:43 +08:00
parent 98026e510a
commit 93fe7a9b69
4 changed files with 184 additions and 8 deletions
@@ -94,6 +94,11 @@ export async function runTests() {
chartSource.includes("setHourly(data)"),
"visible chart fallback must refresh the full city detail payload at the current chart resolution when SSE patches stop",
);
assert(
chartSource.includes("PROBABILITY_REFRESH_AFTER_PATCH_MS = DASHBOARD_REFRESH_POLICY_MS.metar") &&
!chartSource.includes("PROBABILITY_REFRESH_AFTER_PATCH_MS = 60_000"),
"live observation patches should update the plotted line immediately and throttle heavy probability/detail refreshes to METAR cadence",
);
assert(
chartLogicSource.includes("HOURLY_FORCE_REFRESH_DEDUP_MS") &&
chartLogicSource.includes("maxAgeMs: HOURLY_FORCE_REFRESH_DEDUP_MS") &&