feat(ticket): ticket portal redesign, Clear booking look and phone flow #166

Merged
amiryahaya merged 17 commits from claude/ticket-portal-responsive-902bec into main 2026-11-06 01:23:48 +01:00
Owner

Redesign of the consumer ticket portal (web/apps/ticket) to the owner's chosen mockup B, "Clear booking": the same colours, a less cartoonish look, and a phone-first booking flow.

Spec: docs/superpowers/specs/2026-11-06-ticket-portal-redesign-design.md · Plan: docs/superpowers/plans/2026-11-06-ticket-portal-redesign.md

What changes

  • Look: Barlow Semi Condensed Bold titles, Atkinson Hyperlegible body, #efece3 page background with white surfaces, 8–12px radii, green rectangular buttons; tokens on :root, a test checks every token is used.
  • Header: logo, cart link with count, desktop nav; below 1024px a Menu button opens a panel (signed-in links do not fit one row on a tablet).
  • Home: search-first (park, date, who is going), photo park cards (rows with a 112px image on phones), a "How your visit works" band.
  • Park page: citizen / resident / visitor switch, − / + steppers per ticket, one fixed bottom "Add to cart" bar at every width (count only, no browser totals). Adds go through the new CartProvider.addMany (server cart, one write).
  • Cart, checkout, orders, profile: restyled; prices still come only from the server.
  • My tickets: wallet-pass cards, Upcoming / Past (by check-out date, Nairobi), state shown in words, per-person Show QR, and a tickets PDF button (receipt stays email-only).
  • Accessibility: 44px targets, --focus ring, busy controls use aria-disabled so focus is kept, singular wording for one, no horizontal overflow at 320px or 200% text.

Rulings to check (each cheap to undo)

  1. Phone header below 1024px, not 768.
  2. Desktop Add bar fixed at the bottom like phones.
  3. Upcoming until the check-out date.
  4. Busy cart buttons ignore taps instead of being disabled.
  5. Singular messages for a count of 1.
  6. First park photo is the hero; the strip shows the rest.
  7. Added @vitest/coverage-v8 (same version as vitest) and a cover script to the ticket app.

Tests

  • Unit: 364 passed, typecheck clean. Coverage (ticket app): 99.85% lines (97.46% statements, 96.29% branches).
  • e2e: scripts/web-e2e.sh ticket 313 passed, 62 skipped, twice, no flakes. New: phone journey (journey.auth.spec.ts), a11y, cart and checkout in the layout loop.
  • Reviews: per-task reviews plus the dual-pass whole-branch review (ponytail, then superpowers); all must-fix items addressed in 93e71a1 and re-checked.

Known gaps

  • No signed-in e2e project at 1024–1279px (the 200%-text overflow check runs at 320 and 768).
  • A vehicle ticket with an empty holder_name gets the button name "Show QR for ".

🤖 Generated with Claude Code

Redesign of the consumer ticket portal (`web/apps/ticket`) to the owner's chosen mockup B, "Clear booking": the same colours, a less cartoonish look, and a phone-first booking flow. Spec: `docs/superpowers/specs/2026-11-06-ticket-portal-redesign-design.md` · Plan: `docs/superpowers/plans/2026-11-06-ticket-portal-redesign.md` ## What changes - **Look:** Barlow Semi Condensed Bold titles, Atkinson Hyperlegible body, `#efece3` page background with white surfaces, 8–12px radii, green rectangular buttons; tokens on `:root`, a test checks every token is used. - **Header:** logo, cart link with count, desktop nav; below 1024px a Menu button opens a panel (signed-in links do not fit one row on a tablet). - **Home:** search-first (park, date, who is going), photo park cards (rows with a 112px image on phones), a "How your visit works" band. - **Park page:** citizen / resident / visitor switch, − / + steppers per ticket, one fixed bottom "Add to cart" bar at every width (count only, no browser totals). Adds go through the new `CartProvider.addMany` (server cart, one write). - **Cart, checkout, orders, profile:** restyled; prices still come only from the server. - **My tickets:** wallet-pass cards, Upcoming / Past (by check-out date, Nairobi), state shown in words, per-person Show QR, and a tickets PDF button (receipt stays email-only). - **Accessibility:** 44px targets, `--focus` ring, busy controls use `aria-disabled` so focus is kept, singular wording for one, no horizontal overflow at 320px or 200% text. ## Rulings to check (each cheap to undo) 1. Phone header below 1024px, not 768. 2. Desktop Add bar fixed at the bottom like phones. 3. Upcoming until the check-out date. 4. Busy cart buttons ignore taps instead of being disabled. 5. Singular messages for a count of 1. 6. First park photo is the hero; the strip shows the rest. 7. Added `@vitest/coverage-v8` (same version as vitest) and a `cover` script to the ticket app. ## Tests - Unit: 364 passed, typecheck clean. **Coverage (ticket app): 99.85% lines** (97.46% statements, 96.29% branches). - e2e: `scripts/web-e2e.sh ticket` 313 passed, 62 skipped, twice, no flakes. New: phone journey (`journey.auth.spec.ts`), a11y, cart and checkout in the layout loop. - Reviews: per-task reviews plus the dual-pass whole-branch review (ponytail, then superpowers); all must-fix items addressed in 93e71a1 and re-checked. ## Known gaps - No signed-in e2e project at 1024–1279px (the 200%-text overflow check runs at 320 and 768). - A vehicle ticket with an empty `holder_name` gets the button name "Show QR for ". 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ticket rows get - / + steppers; one Add to cart bar (count and day, never a
price) sends every counted row in one cart write. The bar is fixed on phones
with its measured height reserved below the page, and sits at the foot of the
tickets panel from 1024px. AddToCart is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bar is fixed to the viewport at every width (content on the page
container), so it is on screen after the first +; the sticky desktop panel
ends above it. noArithmetic now covers ProductList and src/park. Changing a
count clears the last result note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phone journey (auth-360), axe scans for home, park with the bar, cart and checkout,
cart and checkout in the layout loop, coverage script, and the Add to cart bar now
measures its height before first paint (fixes a flaky addbar test at 200% text).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ticket): final review fixes for the redesign
All checks were successful
ci / changes (pull_request) Successful in 16s
ci / api (pull_request) Has been skipped
ci / clients (pull_request) Has been skipped
ci / web-partner (pull_request) Successful in 4m14s
ci / web-admin (pull_request) Successful in 4m42s
ci / web-ticket (pull_request) Successful in 5m32s
ci / ci-gate (pull_request) Successful in 5s
93e71a10b6
Phone header up to 1024px (one row signed in, no overflow at 200 % text at 768),
image-left park rows below 768px, green How your visit works band with icons,
master ticket state in words, ticket PDF saved even after unmount, focus kept on
busy controls (aria-disabled), singular copy for one ticket/gate/person, Show QR
named per holder, decorative hero alt, focus rings on --focus, dead CSS, tokens
and the TicketQr enabled prop removed.

Co-Authored-By: Claude Opus 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!166
No description provided.