Use direct scan rows for model summary

This commit is contained in:
2569718930@qq.com
2026-06-30 18:23:05 +08:00
parent 35a9d8e943
commit a2f169f008
5 changed files with 67 additions and 22 deletions
@@ -250,9 +250,12 @@ export function runTests() {
);
assert(
dashboardSource.includes("<ModelSummaryDashboard") &&
dashboardSource.includes("rows={rows}") &&
dashboardSource.includes("generatedText={generatedText}"),
"terminal model summary view must use existing scan rows instead of fetching city detail",
dashboardSource.includes("rows={modelSummaryRows}") &&
dashboardSource.includes("cacheScope: \"model-summary\"") &&
dashboardSource.includes("modelSummary: true") &&
dashboardSource.includes("hasTerminalForecastRows(rows)") &&
dashboardSource.includes("generatedText={modelSummaryGeneratedText}"),
"terminal model summary view must use direct scan terminal rows without city fallback rows",
);
assert(
modelSummarySource.includes("MODEL_SUMMARY_MODEL_COLUMNS") &&
@@ -178,7 +178,7 @@ export function runTests() {
assert(
scanQuerySource.includes("MAX_STALE_SCAN_CACHE_MS") &&
scanQuerySource.includes("allowStale") &&
scanQuerySource.includes("setCachedRows(readScanCache(tradingRegion || \"\", { allowStale: true }))"),
scanQuerySource.includes("setCachedRows(readScanCache(tradingRegion || \"\", cacheScope, { allowStale: true }))"),
"terminal data hook must render stale scan rows immediately while revalidating the first-screen API",
);
assert(