Use direct scan rows for model summary
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user