BillTracker/client/lib
null dd5bf92fc1 fix(money): manual payment path flags suspected dupes (409) w/o losing legit ones (Track A)
The deliberate manual POST /payments had no dedupe guard (double-submit
made a second payment), but silently deduping it like the auto paths
would lose a legitimately-identical same-day payment — a money bug. So
the server returns 409 DUPLICATE_SUSPECTED (existing payment attached),
and a shared client helper (client/lib/paymentActions.ts, used by the
tracker inline cell, partial-payment dialog, and bill modal) turns it
into an 'add anyway?' toast that resends with allow_duplicate. Automated
one-click paths keep deduping silently (a repeat there is a retry).

Dropped a now-unused api import in PaymentLedgerDialog (Track E sweep).
Server suite 188 green; typecheck/lint/build clean; probe 17/17.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 11:51:06 -05:00
..
billDrafts.ts refactor(ts): HealthPage → TypeScript + export makeBillDraft's SourceBill return 2026-07-04 22:19:39 -05:00
billingSchedule.ts refactor(ts): convert pure lib utilities to TypeScript (TS7) 2026-07-03 21:59:16 -05:00
cashflowUtils.test.js feat(cashflow): safe-to-spend projection with timeline, vitest setup, package upgrades 2026-06-12 01:32:28 -05:00
cashflowUtils.ts refactor(ts): convert pure lib utilities to TypeScript (TS7) 2026-07-03 21:59:16 -05:00
money.test.js fix(bill-modal): correctness + toast fallbacks + validator consolidation (BM1) 2026-07-03 18:32:25 -05:00
money.ts feat(ts): branded Cents/Dollars money types — first TS conversion (T2) 2026-07-03 21:36:24 -05:00
money.type-test.ts feat(ts): branded Cents/Dollars money types — first TS conversion (T2) 2026-07-03 21:36:24 -05:00
paymentActions.ts fix(money): manual payment path flags suspected dupes (409) w/o losing legit ones (Track A) 2026-07-05 11:51:06 -05:00
reorder.ts refactor(ts): convert pure lib utilities to TypeScript (TS7) 2026-07-03 21:59:16 -05:00
trackerTableColumns.ts refactor(ts): convert pure lib utilities to TypeScript (TS7) 2026-07-03 21:59:16 -05:00
trackerUtils.test.js feat(cashflow): safe-to-spend projection with timeline, vitest setup, package upgrades 2026-06-12 01:32:28 -05:00
trackerUtils.ts refactor(ts): convert MobileTrackerRow to TSX (B5) 2026-07-04 19:36:01 -05:00
utils.test.js fix(qa): seed demo data amounts, bill amount validation, negative USD format, a11y aria-labels, Playwright E2E setup (batch 0.41.0 QA) 2026-07-02 20:36:09 -05:00
utils.ts refactor(ts): convert all UI primitives + ThemeContext to TSX (B2) 2026-07-03 22:57:22 -05:00
version.ts refactor(ts): convert small hooks + version to TypeScript (TS8) 2026-07-03 22:01:30 -05:00