feat(web): my tickets, QR, orders and profile (#42) #127
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/kws!127
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/42-my-tickets"
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?
What
Issue #42: the storefront's signed-in customer pages.
/tickets: tickets grouped by sale. Each sale shows the master QR or the individual QRs a visitor needs to enter, with a status per ticket (ready, not yet valid, expired, checked in/out, cancelled). Vehicle tickets are shown and labelled; the gate does not scan them yet (ADR 0019)./orders: order history, linking to the existing/orders/:id./profile: read-only account details (no edit API exists).GET /v1/me/ticketsnow returnsactivity_type(master|park_entry|vehicle) (OpenAPI, SQL, generated clients, live contract assertion).read(120/min, burst 250) forGET /v1/me/ticketsand.../{code}/qr, with the 429 in OpenAPI and ADR 0028. Burst 250 covers a 200-ticket sale (200 QRs + list + master).cache: "no-store"and the blob URL is created and revoked inside the component.e2e:idp, decodes the QR withjsqr), andapi/internal/sales/pgstore/qrflows_test.gofor the 12 QR flows.Reviews
Per-task reviews (7, all approved) and a whole-branch dual-pass review: Pass 1 ponytail (no Must fix), Pass 2 correctness (3 fix-before-merge items, all fixed and re-reviewed; burst 60 -> 250 after both passes flagged it).
Checks
make cover: 91.3% (minimum 80%)make lint: 0 issues;make contract: okscripts/web-e2e.sh: 207 passed / 58 skipped,e2e:idp8/8 (both run before the final commit, which changed only a rate-limit number, docs, a hoisted constant and comments)The 12 QR flows
9 of 12 were already covered by existing Go tests; 3 added in
qrflows_test.go. "Refunded" is covered through a late-paid cancelled sale.Known / accepted gaps
checked_inif a child is never scanned.nothing_to_scan.ErrExpired.nowis read once per render; all tickets of a sale show the buyer as holder name; no Nairobi-time note on check-in times.readclass numbers are [verify] defaults (#61)..account-namelink restyled.build:e2e-authhard-codes port 4174;e2e:idpis not in CI and leaves a completed sale per run.Not verified
Real phones, Safari/Firefox, Zitadel, the Dart client (CI checks it).
🤖 Generated with Claude Code