"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
fix(frontend): stop Alpha Zoo headline rendering the count twice (#286) (#287)
Haozhe Wu86b98214ec77
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.jsonindex 7ba7de11e..c0a147219 100644--- a/frontend/src/i18n/locales/en.json+++ b/frontend/src/i18n/locales/en.json@@ -350,6 +350,7 @@"alphaZoo": {"title": "Alpha Zoo","prebuiltAlpha": "{{count}} pre-built quant alphas across 4 zoos",+ "prebuiltAlphaLoading": "Pre-built quant alphas across 4 zoos","browseDesc": "Browse formula-driven cross-sectional signals from Qlib, the Kakushadze 101 set, GTJA 191, and the academic anomaly literature. Click any alpha to read its formula and source code, or run a bench to score the whole zoo on a universe and period.","search": "Search","searchPlaceholder": "Filter by id or nickname…",diff --git a/frontend/src/i18n/locales/zh-CN.json b/frontend/src/i18n/locales/zh-CN.jsonindex 932aa5875..998aea925 100644--- a/frontend/src/i18n/locales/zh-CN.json+++ b/frontend/src/i18n/locales/zh-CN.json@@ -350,6 +350,7 @@"alphaZoo": {"title": "Alpha 动物园","prebuiltAlpha": "{{count}} 个预构建量化 Alpha,覆盖 4 个动物园",+ "prebuiltAlphaLoading": "预构建量化 Alpha,覆盖 4 个动物园","browseDesc": "浏览来自 Qlib、Kakushadze 101 公式集、GTJA 191 以及学术异象文献的公式驱动截面信号。点击任意 Alpha 查看公式和源码,或运行基准测试在特定市场和时间段上评分整个动物园。","search": "搜索","searchPlaceholder": "按 ID 或昵称筛选…",diff --git a/frontend/src/pages/AlphaZoo.tsx b/frontend/src/pages/AlphaZoo.tsxindex 427cb01f5..8ccf9eed6 100644--- a/frontend/src/pages/AlphaZoo.tsx+++ b/frontend/src/pages/AlphaZoo.tsx@@ -215,7 +215,9 @@ function BrowseView() {<Layers className="h-3.5 w-3.5" aria-hidden="true" /> Alpha Zoo</div><h1 className="text-2xl md:text-3xl font-bold tracking-tight">- {total > 0 ? total : 452} {i18n.t("alphaZoo.prebuiltAlpha", { count: total > 0 ? total : 452 })}+ {loading+ ? i18n.t("alphaZoo.prebuiltAlphaLoading")+ : i18n.t("alphaZoo.prebuiltAlpha", { count: total })}</h1><p className="text-sm text-muted-foreground max-w-2xl">Browse formula-driven cross-sectional signals from Qlib, the