清理死代码:移除 14 个孤立组件/模块,Koyfin 品牌改为 PolyWeather

删除的文件:
- ContinentGroupHeader, AiPinnedForecastView, DataFreshnessBar, MarketDecisionLine
- opportunity-ai-meta/evidence-summary/v4-decision/v4-risk
- HeaderBar, IntradaySignalScene, MapCanvas, PolyWeatherDashboard
- ScanFilterPanel, WeatherAuraLayer

修改:
- decisionClass 死函数移除
- KoyfinWeatherTerminal → PolyWeatherTerminal
- Koyfin-style grid → Multi-panel grid
- 欢迎覆盖层 CSS 清理
This commit is contained in:
2569718930@qq.com
2026-05-25 02:59:47 +08:00
parent 8849ef8fe6
commit f8133d6003
6 changed files with 1707 additions and 2259 deletions
@@ -184,7 +184,7 @@ const TERM = {
tsData: { en: "Data", zh: "数据" },
tsAccess: { en: "Access", zh: "访问权限" },
tsLayout: { en: "Layout", zh: "布局" },
tsLayoutValue: { en: "Koyfin-style grid", zh: "Koyfin 风格网格" },
tsLayoutValue: { en: "Multi-panel grid", zh: "多面板网格" },
tsDataLive: { en: "live", zh: "实时" },
tsAccessPaid: { en: "paid", zh: "付费" },
} as const;
@@ -209,16 +209,6 @@ function decisionLabel(row?: ScanOpportunityRow | null) {
return "Monitor";
}
function decisionClass(label: string) {
if (label === "Approve" || label === "Tradable") {
return "border-emerald-200 bg-emerald-50 text-emerald-700";
}
if (label === "Veto" || label === "Downgrade") {
return "border-red-200 bg-red-50 text-red-700";
}
return "border-amber-200 bg-amber-50 text-amber-700";
}
function SparkArea({
color = "#2563eb",
data,
@@ -476,7 +466,7 @@ function GroupedMarketTable({
);
}
function KoyfinWeatherTerminal({
function PolyWeatherTerminal({
generatedText,
isEn,
locale,
@@ -1318,7 +1308,7 @@ function ScanTerminalScreen() {
}
return (
<KoyfinWeatherTerminal
<PolyWeatherTerminal
generatedText={generatedText || ""}
isEn={isEn}
locale={locale}