Skip to content

Commit 199c86c

Browse files
theo-learnerclaude
andcommitted
chore: remove Est. monthly savings row from Monthly Cost card
Redundant with the existing % comparison row (fixedCost - monthlyCost is self-evident). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 70e0dbf commit 199c86c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/app/page.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,8 +1478,6 @@ export default function Dashboard() {
14781478
: vcpu >= 4 ? { text: 'High Load', color: 'text-orange-500 bg-orange-50' }
14791479
: vcpu >= 2 ? { text: 'Moderate', color: 'text-amber-500 bg-amber-50' }
14801480
: { text: 'Optimized', color: 'text-emerald-600 bg-emerald-50' };
1481-
const estMonthlySavings = fixedCost - monthlyCost;
1482-
const isOverspend = estMonthlySavings < 0;
14831481
return (
14841482
<>
14851483
<div data-testid="monthly-cost">
@@ -1516,13 +1514,6 @@ export default function Dashboard() {
15161514
<span className="text-[9px] text-gray-400">$0</span>
15171515
<span className="text-[9px] text-gray-400">${fixedCost.toFixed(0)}</span>
15181516
</div>
1519-
{/* Est. Monthly Savings */}
1520-
<div className={`mt-2.5 flex items-center justify-between px-2.5 py-1.5 rounded-lg ${isOverspend ? 'bg-red-50' : 'bg-emerald-50'}`}>
1521-
<span className="text-[10px] text-gray-500">Est. monthly savings</span>
1522-
<span className={`text-[11px] font-bold tabular-nums ${isOverspend ? 'text-red-600' : 'text-emerald-600'}`}>
1523-
{isOverspend ? '-' : '+'}${Math.abs(estMonthlySavings).toFixed(0)}/mo
1524-
</span>
1525-
</div>
15261517
</div>
15271518
</>
15281519
);

0 commit comments

Comments
 (0)