mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 11:20:37 +09:00
fix: show "Unlimited budget" when budget is $0
When budgetCents is 0 (no budget set), the UI now shows "Unlimited budget" instead of misleading "0% of $0.00 budget" throughout: - Dashboard: metric card shows "Unlimited budget" instead of percentage - Companies: shows "Unlimited budget" label instead of "/ $0.00" - Costs: hides utilization percent and progress bar, shows "Unlimited budget" - Inbox: suppresses budget utilization alert when no budget is set Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a621b55e90
commit
b49fc7451a
4 changed files with 31 additions and 24 deletions
|
|
@ -247,12 +247,11 @@ export function Companies() {
|
|||
<div className="flex items-center gap-1.5">
|
||||
<DollarSign className="h-3.5 w-3.5" />
|
||||
<span>
|
||||
{formatCents(company.spentMonthlyCents)} /{" "}
|
||||
{formatCents(company.budgetMonthlyCents)}
|
||||
{formatCents(company.spentMonthlyCents)}
|
||||
{company.budgetMonthlyCents > 0
|
||||
? <> / {formatCents(company.budgetMonthlyCents)} <span className="text-xs">({budgetPct}%)</span></>
|
||||
: <span className="text-xs ml-1">Unlimited budget</span>}
|
||||
</span>
|
||||
{company.budgetMonthlyCents > 0 && (
|
||||
<span className="text-xs">({budgetPct}%)</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex items-center gap-1.5 ml-auto">
|
||||
<Calendar className="h-3.5 w-3.5" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue