Coalesce terminal chart detail loads

This commit is contained in:
2569718930@qq.com
2026-05-31 21:17:38 +08:00
parent 071d749ef0
commit 2d963c16f3
2 changed files with 8 additions and 6 deletions
@@ -131,6 +131,11 @@ export async function runTests() {
chartSource.includes("isChartVisible"),
"city detail prefetch should be gated to visible chart cards instead of every mounted slot",
);
assert(
chartSource.includes("DETAIL_LOAD_BATCH_DELAY_MS") &&
!chartSource.includes("slotIndex ? 300 + slotIndex * 250"),
"visible chart detail loads should enter the batch queue together instead of being staggered into single-city requests",
);
assert(
chartSource.includes("allowStale: true") &&
chartCanvasSourceIncludes(chartSource, "数据暂不可用") &&