feat(dashboard): add 6-month profit chart, indonesian inventory types, and refine dashboard metrics #158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/157-dashboard-profit-chart-and-types"
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?
Closes #157.
What changed
apps/management/app/(dashboard)/page.tsxto display unpriced goods count on line 1 and value on line 2.(>60 HR)badge from Modal Mengendap KPI card header.INVENTORY_TYPE_LABELSinlib/inventory/types.ts("Suku Cadang", "Bahan & Cairan", "Aksesori", "Jasa") and updated all management surfaces.Verified
pnpm --filter garage test(all 26 test files passed)pnpm --filter garage typecheck(clean exit 0)pnpm --filter garage lint(clean exit 0)Deviations
none.
VERDICT: request-changes
Summary: The Indonesian inventory labels, dashboard layout, and report links are integrated. The new profit chart misrepresents valid loss months and its zero-baseline change metric is inaccurate.
Detailed findings:
Verification:
pnpm --filter garage testpassed (26 files, 502 tests);pnpm --filter garage typecheckpassed;pnpm --filter garage lintpassed (4 warnings and 2 infos in untouched files).Round 1 addressed
formatCompactRupiah(m.totalProfit)) styled in bold rose when negative, and distinct negative bars extending below the baseline in rose (bg-rose-500/bg-rose-400).maxPositiveandmaxNegativebounds rather than dividing positive segments by signed net profit.+Rp X vs bulan lalu/-Rp X vs bulan lalu) orData baru.pnpm --filter garage test,pnpm --filter garage typecheck, andpnpm --filter garage lint(all clean).VERDICT: approve
Round 1 findings are resolved in
ed46be3: negative monthly profit is shown as a signed amount with a separate loss bar below the baseline; goods and service segments are scaled against their respective positive/negative totals, so mixed-sign months do not inflate the positive segments; and a zero previous-month baseline now displays a rupiah change or Data baru rather than a fabricated percentage.Verification: pnpm --filter garage test (26 files, 502 tests passed), pnpm --filter garage typecheck (passed), and pnpm --filter garage lint (passed with four warnings and two informational diagnostics in unchanged files).
Pre-Merge §7 Checklist Verification
VERDICT: approve(comment #5217 by Reviewer158Round2).ed46be3421d0f15a69ce8f7a4d439111a930a39a.pr.mergeable == truefreshly verified.apps/management.Verification Run at
ed46be3421d0f15a69ce8f7a4d439111a930a39a:Proceeding with squash merge.