feat(web): partner itinerary payments, documents and cancel (#52, PR C) #160

Merged
amiryahaya merged 1 commit from feat/partner-web-52 into main 2026-11-04 18:51:10 +01:00
Owner

#52 PR C: partner web, ADR 0034

  • Itinerary detail page: Pay from wallet, Pay with M-Pesa (KES, also on a processing sale after a dismissed prompt), Receipt and Tickets PDF downloads (bearer token, saved as files), Cancel itinerary with a confirm dialog. Buttons follow make_payment / itinerary.view; the server checks again.
  • Fixed texts for insufficient_funds, ticket_used, ticket_expired, not_cancellable, not_payable, bad phone at the phone field.
  • ADR 0034, CLAUDE.md section, spec/e2e mock extended.

Tests: vitest 147 pass, tsc clean, scripts/web-e2e.sh partner pass. No Go code changed (last make cover: 91.4%, min 80%).
Review: dual pass; Must fix (stuck M-Pesa sale, PDF popup blocked) and the should-fix items applied.

Not done / [verify]

  • Wallet balance is not shown on the page; no polling after M-Pesa (Reload button).
  • Open owner items are listed in ADR 0034.

🤖 Generated with Claude Code

## #52 PR C: partner web, ADR 0034 - Itinerary detail page: Pay from wallet, Pay with M-Pesa (KES, also on a `processing` sale after a dismissed prompt), Receipt and Tickets PDF downloads (bearer token, saved as files), Cancel itinerary with a confirm dialog. Buttons follow `make_payment` / `itinerary.view`; the server checks again. - Fixed texts for `insufficient_funds`, `ticket_used`, `ticket_expired`, `not_cancellable`, `not_payable`, bad phone at the phone field. - ADR 0034, CLAUDE.md section, spec/e2e mock extended. **Tests:** vitest 147 pass, `tsc` clean, `scripts/web-e2e.sh partner` pass. No Go code changed (last `make cover`: 91.4%, min 80%). **Review:** dual pass; Must fix (stuck M-Pesa sale, PDF popup blocked) and the should-fix items applied. ### Not done / [verify] - Wallet balance is not shown on the page; no polling after M-Pesa (Reload button). - Open owner items are listed in ADR 0034. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(web): partner itinerary payments, documents and cancel (#52)
All checks were successful
ci / changes (pull_request) Successful in 27s
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 5m27s
ci / ci-gate (pull_request) Successful in 9s
13d474f8b0
Pay per sale (wallet, M-Pesa), receipt and ticket PDFs, cancel with refund,
ADR 0034 and the CLAUDE.md section.

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!160
No description provided.