Skip to content

"Vibe-Trading: Your Personal Trading Agent"

docs(shannon): identify Gildata MCP service in portfolio page

tangwj4695853221e826720
diff --git a/frontend/src/components/charts/ShannonPortfolio.tsx b/frontend/src/components/charts/ShannonPortfolio.tsx
index 41f635402..682b2d696 100644
--- a/frontend/src/components/charts/ShannonPortfolio.tsx
+++ b/frontend/src/components/charts/ShannonPortfolio.tsx
@@ -90,7 +90,7 @@ export function ShannonPortfolio() {
const coveredWeight = (snapshot?.holdings ?? []).filter(h => includedCodes.has(h.code)).reduce((sum, h) => sum + (h.weight ?? 1 / requested), 0);
return <section className="space-y-6" aria-label={tr("香农持仓诊断", "Shannon portfolio diagnosis")}>
- <header className="space-y-2"><h2 className="text-xl font-semibold">{tr("持仓风格与风险", "Portfolio style and risk")}</h2><p className="text-sm text-muted-foreground">{tr("查看组合的风格倾向、个股特征,以及组合波动集中在哪些持仓。", "Explore portfolio style, individual stock characteristics and the holdings that contribute to portfolio volatility.")}</p></header>
+ <header className="space-y-2"><h2 className="text-xl font-semibold">{tr("持仓风格与风险", "Portfolio style and risk")}</h2><p className="text-sm text-muted-foreground">{tr("基于聚源 MCP 香农服务,查看组合的风格倾向、个股特征,以及组合波动集中在哪些持仓。", "Powered by the Gildata MCP Shannon service. Explore portfolio style, individual stock characteristics and the holdings that contribute to portfolio volatility.")}</p></header>
{configured === false ? <div className="rounded-xl border p-5 text-sm">{tr("配置聚源 Token 后可使用持仓诊断,原有相关性分析仍可正常使用。", "Configure a Gildata token to use diagnosis. The existing correlation analysis remains available.")}</div> : <div className="grid gap-5 rounded-xl border bg-card p-5 md:grid-cols-[1fr_17rem]">
<div><label htmlFor="shannon-holdings" className="text-sm font-medium">{tr("你的A股持仓", "Your A-share holdings")}</label><textarea id="shannon-holdings" className="mt-2 min-h-36 w-full rounded-lg border bg-background p-3 font-mono text-sm" value={text} onChange={e => { invalidate(); setText(e.target.value); }} placeholder={"600519.SH 40%\n300750.SZ 30%\n600036.SH 30%"} />
<p className="mt-2 text-xs leading-relaxed text-muted-foreground">{tr("每行一只,填写代码和权重。权重全部留空时按等权估算;自定义权重须全部填写且合计100%。仅支持A股股票,不自动剔除现金或其他资产。", "One stock per line: code and weight. Omit all weights for equal allocation, or enter all weights totaling 100%. A-share stocks only; cash and other assets are not silently excluded.")}</p>