From 78ff3c159b2a2dcf13a43dfa50ffe0a25dbc37c5 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 25 May 2026 03:59:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=B7=B2=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E9=9D=A2=E6=9D=BF=EF=BC=9A=E5=B7=A6=E5=88=97?= =?UTF-8?q?=E4=BB=85=E4=BF=9D=E7=95=99=E5=A4=A9=E6=B0=94=E5=90=88=E7=BA=A6?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC+=E6=97=B6=E5=8C=BATab=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除 activeNavKey='signals' 分支、approveRows 计算、Approved Signals 面板和 TERM key。时区Tab切换直接过滤下方城市列表。 --- .../dashboard/ScanTerminalDashboard.tsx | 134 ++++-------------- 1 file changed, 29 insertions(+), 105 deletions(-) diff --git a/frontend/components/dashboard/ScanTerminalDashboard.tsx b/frontend/components/dashboard/ScanTerminalDashboard.tsx index ebd3dcee..9a60911b 100644 --- a/frontend/components/dashboard/ScanTerminalDashboard.tsx +++ b/frontend/components/dashboard/ScanTerminalDashboard.tsx @@ -110,7 +110,6 @@ const TERM = { signal: { en: "Signal", zh: "信号" }, searchPlaceholder: { en: "Search city, contract, station, or signal", zh: "搜索城市、合约、站点或信号" }, weatherContracts: { en: "Weather Contracts", zh: "天气合约" }, - approvedSignals: { en: "Approved Signals", zh: "已确认信号" }, selectedContractMonitor: { en: "Selected Contract Monitor", zh: "选中合约监控" }, probabilityDistribution: { en: "Probability Distribution", zh: "概率分布" }, marketList: { en: "Market List", zh: "市场列表" }, @@ -377,12 +376,6 @@ function PolyWeatherTerminal({ return rows.filter((row) => String(row.trading_region).toLowerCase() === selectedRegionKey); }, [rows, selectedRegionKey]); - const approveRows = useMemo(() => { - return filteredRegionRows - .filter((row) => ["Approve", "Tradable"].includes(decisionLabel(row))) - .slice(0, 8); - }, [filteredRegionRows]); - const watchRows = useMemo(() => { return filteredRegionRows .filter((row) => decisionLabel(row) === "Watch" || !row.tradable) @@ -618,109 +611,40 @@ function PolyWeatherTerminal({ })} - {activeNavKey === "signals" ? ( - <> - -
- {approveRows.map((row) => ( - - ))} - {approveRows.length === 0 && ( -
- {isEn ? "No approved signals in this timezone" : "该时区暂无已确认信号"} -
- )} + +
+
+
+ {t("rows", isEn)}
- - - -
- +
{filteredRegionRows.length}
+
+
+
+ {t("avgEdge", isEn)}
- - - ) : ( - <> - -
-
-
- {t("rows", isEn)} -
-
{filteredRegionRows.length}
-
-
-
- {t("avgEdge", isEn)} -
-
- {pct(avgEdge)} -
-
-
-
- {t("liquidity", isEn)} -
-
- {money(totalLiquidity)} -
-
+
+ {pct(avgEdge)}
-
- +
+
+
+ {t("liquidity", isEn)}
- - - -
- {(approveRows.length ? approveRows : rows.slice(0, 5)).map((row) => ( - - ))} +
+ {money(totalLiquidity)}
- - - )} +
+
+
+ +
+
{/* Column 2 */}