Show stage-aware + consistency-adjusted profit target on dashboards
State API now returns effectiveProfitTarget = max(stage profit target, maxDay/consistency). When a big day forces the consistency rule, this reflects the actual amount needed to complete the stage — not just the base profit target. Main dashboard and account detail page now display this instead of the raw cfg.profitTarget. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
9928f1cabd
commit
8204cd138b
+1
-1
@@ -135,7 +135,7 @@ function AccountRow({ account, firm, hideDead, privacy }: { account: AccountStat
|
||||
</td>
|
||||
<td className="px-4 py-3 text-slate-600 tabular-nums">
|
||||
<div className="flex flex-col">
|
||||
<span>${cfg?.profitTarget?.toLocaleString() ?? '—'}</span>
|
||||
<span>${(account.effectiveProfitTarget ?? cfg?.profitTarget ?? 0).toLocaleString(undefined, { maximumFractionDigits: 2 })}</span>
|
||||
{account.dailyTarget && (
|
||||
<span className="text-xs text-slate-400">${fmt(account.dailyTarget.amount)} today</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user