feat: implement ScanTerminalDashboard with AI-driven city forecast streaming and opportunity tracking

This commit is contained in:
2569718930@qq.com
2026-04-26 08:12:31 +08:00
parent 763f131850
commit 1595f4a92e
5 changed files with 115 additions and 31 deletions
@@ -1635,7 +1635,7 @@ function ScanTerminalScreen() {
useEffect(() => {
if (!activeDetailRow) return;
if (!store.cityDetailsByName[activeDetailRow.city]) {
if (!findDetailForCity(store.cityDetailsByName, activeDetailRow.city)) {
void store.ensureCityDetail(activeDetailRow.city, false, "panel").catch(() => {});
}
}, [activeDetailRow, store.cityDetailsByName, store.ensureCityDetail]);
@@ -1765,7 +1765,7 @@ function ScanTerminalScreen() {
const selectedCityKey = normalizeCityKey(store.selectedCity);
const rowCityKey = normalizeCityKey(cityName);
const hasCachedDetail =
Boolean(store.cityDetailsByName[cityName]) ||
Boolean(findDetailForCity(store.cityDetailsByName, cityName)) ||
Object.values(store.cityDetailsByName).some((detail) =>
rowMatchesCity(row, detail?.name || detail?.display_name || ""),
);