Commit graph

5 commits

Author SHA1 Message Date
Afra ‌
f18778c5f3 fix: use real logotype-winsoo.svg asset in auth header banner instead of a hand-drawn placeholder icon 2026-08-17 14:23:43 +03:30
Afra ‌
c290575be7 feat: real design system tokens + C01/C02/C03 login-OTP flow per winofyfrontenddoc.md
Replaces placeholder colors/type-scale with the documented Figma design
system (§1), and rebuilds login as three screens matching the doc exactly:
role selection, phone entry, and 6-box OTP verification with countdown
resend. Fixes a real bug along the way: normalizeIranianPhone stripped
Persian-digit keyboard input entirely instead of converting it (\D matches
non-ASCII digits too) -- added toLatinDigits/toPersianDigits and verified
the round-trip in isolation.
2026-08-17 14:10:27 +03:30
Afra ‌
d000df2e41 feat: customer shopping flow (store/product pages, cart, addresses, checkout, order tracking); auth calls Gooyal directly from browser 2026-08-17 10:19:59 +03:30
Afra ‌
6a44887111 feat: auth flow (Gooyal OTP/OAuth2) + customer home page against live staging API
- Session stored as an encrypted (JWE) httpOnly cookie; access/refresh tokens
  never reach the client, client_secret never leaves the server.
- winofyFetch: server-side API client matching FRONTEND_GUIDE.md's plain-success
  / wrapped-error (§4.1-4.2) convention, with auto token refresh.
- Login page (phone -> OTP) wired to Gooyal accounts staging; request_otp
  verified working end-to-end. Token exchange returns invalid_client with the
  client_id/secret currently on hand — needs a fix from whoever issued them.
- proxy.ts (Next 16's renamed middleware) gates seller/cart/checkout/orders
  routes, verified redirecting unauthenticated requests to /login.
- Customer home page renders real store/category data fetched live from
  winofy-staging.winsoo.ir.
2026-08-15 14:56:52 +03:30
Afra ‌
4e1b6f8bad Initial commit from Create Next App 2026-08-15 14:44:07 +03:30