清理旧决策卡片、市场总览、跑道面板等已废弃组件

This commit is contained in:
2569718930@qq.com
2026-05-25 23:52:44 +08:00
parent 723c6dafc6
commit 9545725d7f
23 changed files with 4 additions and 2374 deletions
@@ -27,10 +27,6 @@ export function runTests() {
path.join(projectRoot, "components", "dashboard", "scan-terminal", "LiveTemperatureThresholdChart.tsx"),
"utf8",
);
const overviewApiSource = fs.readFileSync(
path.join(projectRoot, "..", "web", "services", "market_overview_api.py"),
"utf8",
);
assert(
querySource.includes("DASHBOARD_REFRESH_POLICY_MS.scanRows"),
@@ -42,10 +38,4 @@ export function runTests() {
!chartSource.includes("window.setInterval"),
"selected city detail chart should be on-demand and use model-layer cache instead of 60-second polling",
);
assert(
!overviewApiSource.includes("/chat/completions") &&
!overviewApiSource.includes("SCAN_CITY_AI_MODEL") &&
!overviewApiSource.includes("_scan_ai_api_key"),
"market overview must be deterministic and must not call AI providers",
);
}