feat(web): partner wallet, top-up and sales report (#53, PR C) #163

Merged
amiryahaya merged 3 commits from feat/partner-web-wallet-53 into main 2026-11-05 14:12:21 +01:00
Owner

Closes #53 (PR C of 3: partner web, docs).

What

  • apps/partner /o/:orgId/wallet: balances, M-Pesa top-up (idempotency key per amount and phone, 3 s poll capped at 2 min), statement with load more.
  • /o/:orgId/reports/sales: filters, per-currency totals, Excel download.
  • Itinerary page: wallet balance beside Pay from wallet for ewallet.view holders; refreshed after pay and cancel.
  • ADR 0035, CLAUDE.md section, spec corrections.

Checks

  • Web: 168 unit tests, tsc, scripts/web-e2e.sh partner 49 passed (2 skipped, existing).
  • make lint clean. make cover: 91.4% (minimum 80%; no Go code changed in this PR).
  • Dual-pass review: Pass 1 ponytail (no Must fix), Pass 2 correctness (no Critical); the stale balance and key-reuse findings fixed test-first.

🤖 Generated with Claude Code

Closes #53 (PR C of 3: partner web, docs). ## What - `apps/partner` `/o/:orgId/wallet`: balances, M-Pesa top-up (idempotency key per amount and phone, 3 s poll capped at 2 min), statement with load more. - `/o/:orgId/reports/sales`: filters, per-currency totals, Excel download. - Itinerary page: wallet balance beside Pay from wallet for `ewallet.view` holders; refreshed after pay and cancel. - ADR 0035, CLAUDE.md section, spec corrections. ## Checks - Web: 168 unit tests, `tsc`, `scripts/web-e2e.sh partner` 49 passed (2 skipped, existing). - `make lint` clean. `make cover`: **91.4%** (minimum 80%; no Go code changed in this PR). - Dual-pass review: Pass 1 ponytail (no Must fix), Pass 2 correctness (no Critical); the stale balance and key-reuse findings fixed test-first. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(web): refresh the wallet balance after paying or cancelling; key-reuse and 503 tests (#53)
All checks were successful
ci / changes (pull_request) Successful in 14s
ci / api (pull_request) Has been skipped
ci / clients (pull_request) Has been skipped
ci / web-ticket (pull_request) Has been skipped
ci / web-admin (pull_request) Has been skipped
ci / web-partner (pull_request) Successful in 3m30s
ci / ci-gate (pull_request) Successful in 4s
a2bf453155
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/kws!163
No description provided.