fix: Activity should log partial payment amount #141

Merged
shad0w merged 3 commits from claude/issue-140 into master 2026-06-28 01:41:19 +00:00
Owner

Automated fix by Claude Code for #140.

Closes #140

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

Automated fix by Claude Code for #140. Closes #140 Review, merge, then create a release tag (vX.Y.Z) to deploy.
shad0w added 1 commit 2026-06-27 18:54:40 +00:00
feat(activity): show partial payment amount in PO timeline
All checks were successful
PR checks / checks (pull_request) Successful in 53s
PR checks / integration (pull_request) Successful in 31s
3335977773
The PO Activity timeline rendered every partial payment as the generic
"Partial payment confirmed". markPaid() already persists the instalment
amount on the PARTIAL_PAYMENT_CONFIRMED action's metadata
(metadata.paymentAmount), so surface it: the row now reads
"Partial payment of <amount> confirmed" using the PO's own currency.

Falls back to the plain label when paymentAmount is missing or
non-numeric (older audit rows) so historical POs never render NaN.

Extracted ACTION_LABELS + the new actionLabel() helper into
lib/po-activity.ts so the label logic is unit-testable without pulling
the server-only PoDetail component (and its storage/auth imports) into
jsdom.

Fixes #140
shad0w added 1 commit 2026-06-27 19:54:03 +00:00
Merge remote-tracking branch 'origin/master' into pr141-fix
All checks were successful
PR checks / checks (pull_request) Successful in 52s
PR checks / integration (pull_request) Successful in 32s
65be4ef330
# Conflicts:
#	App/components/po/po-detail.tsx
shad0w added 1 commit 2026-06-27 21:04:29 +00:00
Merge remote-tracking branch 'origin/master' into pr141-fix
All checks were successful
PR checks / checks (pull_request) Successful in 54s
PR checks / integration (pull_request) Successful in 32s
9f681ace89
# Conflicts:
#	App/components/po/po-detail.tsx
shad0w merged commit 0fdda87381 into master 2026-06-28 01:41:19 +00:00
Sign in to join this conversation.
No description provided.