diff --git a/web/src/App.tsx b/web/src/App.tsx index a05f654..44637fb 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -2838,6 +2838,9 @@ function PieChart({ slices }: { slices: { label: string; value: number }[] }) { function AnalysisResult({ data }: { data: Json }) { const rows = Array.isArray(data.holdings) ? data.holdings : []; + const summary = asJson(data.summary) ?? {}; + const largest = asJson(summary.largest_position); + const pnlPositive = (Number(summary.unrealized_pnl) || 0) >= 0; const slices = rows .map((row) => ({ label: String(row.name || row.ticker_or_fund_code || "?"), @@ -2846,6 +2849,29 @@ function AnalysisResult({ data }: { data: Json }) { .filter((s) => s.value > 0); return ( + {Object.keys(summary).length > 0 && ( +
+

サマリー

+
+ + + + + + + {largest && ( + + )} +
+
+ )} {slices.length > 0 && ( <>

ポートフォリオ構成比(評価額)