UI: surface buying/selling suggestion and execution plan in portfolio and stock detail (show last saved suggestion)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
2026-05-16 15:27:41 +02:00
parent 329b83a17c
commit 0e8339d614
2 changed files with 34 additions and 1 deletions
+7 -1
View File
@@ -352,8 +352,14 @@ export default function Analyze() {
{stock.analysis.action.toUpperCase()}
</span>
<div className="text-xs text-gray-500">
Confidence: {(stock.analysis.confidence * 100).toFixed(0)}%
{stock.analysis.confidence ? `Confidence: ${(stock.analysis.confidence * 100).toFixed(0)}%` : "Saved suggestion"}
</div>
{stock.analysis.executionPlan && (
<div className="text-xs text-gray-700 mt-1">
{stock.analysis.executionPlan.amount != null && (<div>Amount: <strong>{stock.analysis.executionPlan.amount}</strong></div>)}
{stock.analysis.executionPlan.takeProfit != null && (<div>Take profit: <strong>${stock.analysis.executionPlan.takeProfit}</strong></div>)}
</div>
)}
</div>
) : stock.loading ? (
<span className="text-blue-600">Analyzing...</span>