feat(club-002): club PWA: join flow, digital card and installable shell

This commit is contained in:
Deploy
2026-08-26 19:21:49 +02:00
parent b2ccc70dc6
commit c263b44355
20 changed files with 1059 additions and 100 deletions

View File

@@ -0,0 +1,22 @@
# CLUB-002 — Documentation notes
## New storefront routes
- `/club`
- `/club/join`
- `/club/card`
- `/manifest.webmanifest`
## New same-origin proxy
- `GET/POST/PATCH /api/club/[...path]`
- Forwards Club requests to backend `/club/*`
- Preserves incoming cookies and forwards backend `set-cookie`
## User-facing behavior
- Customers can activate an anonymous Club identity from the storefront without a separate login flow.
- After join, the browser keeps the `mdv_club` cookie and the Club card can be reopened later from the same device.
- The Club card shows member code, current balance and recent ledger movements.
- The storefront now exposes install metadata for a standalone Club PWA shell.
## Scope reminder
- CLUB-002 is frontend/PWA only.
- TPV scan semantics, recoveries and account linking stay in later Club phases.