feat(dashboard): refine chart mobile prices, align baseline, and replace fourth metric with purchases #159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Acceptance Criteria
1. Chart Price Formatting on Mobile (Image #1)
apps/management/app/(dashboard)/page.tsx, format the price labels above the 6 chart bars compactly so they never collide or overflow horizontally on narrow mobile screens (320px–400px width).rb) without decimals (e.g.683 rborRp 683 rb),0orRp 0for zero.Jt) with 1 decimal place (e.g.1,2 JtorRp 1,2 Jt).< sm), show compact format (text-[9px] sm:text-xs) without overlapping neighboring columns.2. Desktop Baseline and Current Month Alignment (Image #2)
apps/management/app/(dashboard)/page.tsx, remove the separate card/ring elevation on the current month column (bg-zinc-50/70 ring-1 ring-zinc-200/80or similar).text-orange-600) and aKiniindicator badge, keeping the bar itself seamlessly grounded on the baseline.3. Replace Fourth Metric Card with Stock Purchases
apps/management/app/(dashboard)/page.tsx, replace the fourth KPI card ("LABA BERSIH OPERASIONAL") with "TOTAL BELANJA STOK (PEMBELIAN)".formatCompactRupiah(monthPurchaseTotal)).X nota pembelian • Y SKU masuk).bg-blue-500) and invoice/shopping icon (Invoice01Iconor similar).4. Verification
pnpm --filter garage test && pnpm --filter garage typecheck && pnpm --filter garage lint.