feat(web): ticket storefront browse, modern look and Playwright tests (#39, #40) #121

Merged
amiryahaya merged 16 commits from feat/39-storefront-browse into main 2026-10-29 04:28:23 +01:00
Owner

Slice 1 of the public ticket site: part of #39 (shell) and #40 (browse). Login, cart, checkout and tickets are later slices; #39 and #40 stay open.

What

  • web/apps/ticket: park list; park page with visit date, currency selector and the priced tickets grouped by category. Public, no login. Money stays a decimal string; the default visit day is today in Africa/Nairobi; API text is rendered as plain text; server error text is never shown.
  • Look: the "modern" option chosen by the owner (CSS tokens, self-hosted Figtree, no third-party request). Responsive from 320 px to wide desktop (cards 1/1/2/3 columns; two-column park page with a sticky, scrolling Tickets panel from 1024 px). 44 px touch targets, visible focus ring, text-zoom safe.
  • Tests: vitest (93) with a typed fake fetch, and Playwright e2e (Chromium; 5 viewports, API mocked in the test, axe scan, layout, journey): 98 run, 37 skipped by design. New web CI steps install the browser and run the e2e; failure reports upload as artifacts.
  • createKwsClient takes an optional fetch (tests inject one).
  • Docs: spec and plan under docs/superpowers/, web/README.md, one CLAUDE.md line.

Review

Dual pass on the whole branch (ponytail + correctness), then a second dual pass on the look and Playwright work, each with scoped re-checks of the fixes. No critical findings; all important ones fixed.

Calls made by the author (owner to check)

  • Shown products: park_entry and vehicle (vehicles last group); master never. Park text omits park_fees, vehicle_fees, payment_method, entry_gates.
  • Park list loads one image request per card (N+1 accepted for now).
  • Site calls the API on its own origin (the API has no CORS); production must serve the site and /v1 from one host with an index.html fallback (#57, documented in web/README.md).
  • --control-border (#8d9183) is a small palette adjustment: the mockup's border was 1.6:1, WCAG wants 3:1.
  • The date field resets to the URL date on blur when the typed value is invalid.

Coverage

make cover: 91.3% total (minimum 80%). No Go code changed.

Not verified

Forgejo runner behaviour of playwright install --with-deps and upload-artifact@v3 (the e2e steps move to their own job if the install fails); Safari and Firefox; real phones and screen readers; the Dart client generation after the earlier move.

🤖 Generated with Claude Code

Slice 1 of the public ticket site: part of #39 (shell) and #40 (browse). Login, cart, checkout and tickets are later slices; #39 and #40 stay open. ## What - `web/apps/ticket`: park list; park page with visit date, currency selector and the priced tickets grouped by category. Public, no login. Money stays a decimal string; the default visit day is today in `Africa/Nairobi`; API text is rendered as plain text; server error text is never shown. - Look: the "modern" option chosen by the owner (CSS tokens, self-hosted Figtree, no third-party request). Responsive from 320 px to wide desktop (cards 1/1/2/3 columns; two-column park page with a sticky, scrolling Tickets panel from 1024 px). 44 px touch targets, visible focus ring, text-zoom safe. - Tests: vitest (93) with a typed fake fetch, and Playwright e2e (Chromium; 5 viewports, API mocked in the test, axe scan, layout, journey): 98 run, 37 skipped by design. New `web` CI steps install the browser and run the e2e; failure reports upload as artifacts. - `createKwsClient` takes an optional `fetch` (tests inject one). - Docs: spec and plan under `docs/superpowers/`, `web/README.md`, one CLAUDE.md line. ## Review Dual pass on the whole branch (ponytail + correctness), then a second dual pass on the look and Playwright work, each with scoped re-checks of the fixes. No critical findings; all important ones fixed. ## Calls made by the author (owner to check) - Shown products: `park_entry` and `vehicle` (vehicles last group); `master` never. Park text omits `park_fees`, `vehicle_fees`, `payment_method`, `entry_gates`. - Park list loads one image request per card (N+1 accepted for now). - Site calls the API on its own origin (the API has no CORS); production must serve the site and `/v1` from one host with an `index.html` fallback (#57, documented in `web/README.md`). - `--control-border` (#8d9183) is a small palette adjustment: the mockup's border was 1.6:1, WCAG wants 3:1. - The date field resets to the URL date on blur when the typed value is invalid. ## Coverage `make cover`: 91.3% total (minimum 80%). No Go code changed. ## Not verified Forgejo runner behaviour of `playwright install --with-deps` and `upload-artifact@v3` (the e2e steps move to their own job if the install fails); Safari and Firefox; real phones and screen readers; the Dart client generation after the earlier move. 🤖 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>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(web): Tickets panel is a Tab stop only where it scrolls (#39)
Some checks failed
ci / changes (pull_request) Successful in 12s
ci / clients (pull_request) Successful in 1m53s
ci / api (pull_request) Successful in 10m51s
ci / web (pull_request) Failing after 2m22s
ci / ci-gate (pull_request) Failing after 4s
ac69c2fde2
Plus two e2e tidy-ups from the Pass 1 re-check (journey skip, zoom runs table).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The runner's OS (Debian 11) is unsupported by Playwright, so its browsers cannot
be installed there. scripts/web-e2e.sh runs the tests in mcr.microsoft.com/playwright
(tag taken from the pinned version) with docker create/cp/start like generate-clients.sh,
and copies the report back on failure. detect-changes treats the script as a web change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(ci): e2e container gets host IPC, exact version guard, no duplicate build (#39)
Some checks failed
ci / changes (pull_request) Successful in 10s
ci / web (pull_request) Successful in 2m47s
ci / clients (pull_request) Successful in 3m25s
ci / api (pull_request) Failing after 21m28s
ci / ci-gate (pull_request) Failing after 3s
107dc9e27d
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
test(app): cache test matched a price by substring of a random uuid (#39)
All checks were successful
ci / changes (pull_request) Successful in 10s
ci / clients (pull_request) Successful in 2m50s
ci / web (pull_request) Successful in 8m24s
ci / api (pull_request) Successful in 19m41s
ci / ci-gate (pull_request) Successful in 3s
7e2a062dee
The check looked for "650" in the whole body, and a uuidv7 can contain it
(seen in CI: ...f2dd650afa6c), so the test failed before the write. Match the amount field.

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