Extract shared UI primitives and a single money formatter #43
Loading…
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?
Small presentational components (
Metric,Field,Check,Panel,Summary,ChartTooltip) are re-declared per tab (~13 files), andMetrichas already forked into three prop APIs (warn/accent/positive). Money formatting is inconsistent: whole dollars in most tabs (BackupTab.jsx:333,DispatchImpactCard.jsx:122,RatePlanTable.jsx:142,QuotesTab.jsx:590etc.) versus two-decimal inUsageImpactExplorer.jsx:443-459,BatteriesTab.jsx:101,OvernightFocusCards.jsx:93for comparable figures.Create
src/components/ui/with unified primitives (toneprop covering warn/accent/positive) andsrc/lib/format.jsformatMoney. Migrate call sites opportunistically — the formatter first, since it changes user-visible numbers' consistency immediately.Acceptance criteria
(Audit finding F-23, 2026-07-16 — Severity: Low, Confidence: High)