fix: On manager dashboard, overhaul approved spend card #51

Merged
shad0w merged 1 commit from claude/issue-50 into master 2026-06-20 20:35:54 +00:00
Owner

Automated fix by Claude Code for #50.

Closes #50

Review, merge, then create a release tag (vX.Y.Z) to deploy.

Automated fix by Claude Code for #50. Closes #50 Review, merge, then create a release tag (vX.Y.Z) to deploy.
shad0w added 1 commit 2026-06-20 20:32:53 +00:00
feat(dashboard): compact INR formatting for Total Approved Spend card
All checks were successful
PR checks / checks (pull_request) Successful in 31s
defd6e7a18
Overhaul the manager dashboard "Total Approved Spend" stat card per the
reporter's request:

- Swap the DollarSign lucide icon for IndianRupee (rupee symbol).
- Render the amount in the Indian short scale (lakh/crore) via a new
  `formatCompactINR` helper, e.g. ₹2 Cr, ₹49 L, ₹75 K, instead of the full
  ₹49,00,000.00.

`formatCompactINR` rounds to at most 2 decimals, trims trailing zeros, keeps
the ₹ prefix and sign. The DollarSign icon is retained for the Accounts
"Payment Queue Value" card; the precise `formatCurrency` is kept for tables.
Adds unit tests covering crore/lakh/thousand/sub-thousand, boundaries, zero,
string input, negatives and non-finite input.

Fixes #50

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
shad0w merged commit 9d08ca1990 into master 2026-06-20 20:35:54 +00:00
Sign in to join this conversation.
No description provided.