feat: implement ScanTerminalDashboard with KPI bar and opportunity table components

This commit is contained in:
2569718930@qq.com
2026-04-25 06:52:17 +08:00
parent d5fb40a544
commit 4410cebce7
3 changed files with 18 additions and 16 deletions
@@ -319,13 +319,13 @@ function getOpportunityStrength(edgePercent?: number | null, locale = "zh-CN") {
const normalized = Number.isFinite(edge) ? edge : 0;
if (normalized >= 20) {
return {
label: locale === "en-US" ? "Strong" : "强机会",
label: locale === "en-US" ? "High confidence" : "高胜率",
tone: "strong",
};
}
if (normalized >= 10) {
return {
label: locale === "en-US" ? "Medium" : "中机会",
label: locale === "en-US" ? "Medium confidence" : "中等胜率",
tone: "medium",
};
}