You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(dashboard): Active Commitments card shows estimated savings as '/mo committed' #1709
committed_monthly is built in calculateCommitmentMetrics (internal/api/handler_dashboard.go:718-733) as the sum of aggregateActiveCommitmentsPerService (:640-650), which adds up each active purchase's EstimatedSavings: monthly savings, not the monthly cost of the commitments.
So the main page states a savings figure as if it were commitment spend. For a typical commitment the two differ several-fold, and a reader comparing it with their bill gets the wrong idea of how much is committed.
Expected
Either:
relabel the detail line to say what it is (for example "$X/mo estimated savings"), and consider renaming the API field (committed_monthly) so future readers don't repeat the mistake; or
if the card is meant to show committed spend, compute it from the commitments' cost (upfront amortized plus recurring) instead.
Actual
"$X/mo committed" shows the active commitments' estimated monthly savings.
Activity
fix(dashboard): call the Active Commitments figure estimated savings (L…