Commit Graph

216 Commits

Author SHA1 Message Date
zetaloop 33f8f82e07 fix(shop): manage staff through backend 2026-04-25 14:49:44 +08:00
zetaloop fc0b754056 fix(shop): persist settings through backend 2026-04-25 14:49:36 +08:00
zetaloop 358bfc7ac9 feat(api): add shop management clients 2026-04-25 14:49:25 +08:00
zetaloop e559204347 feat(services): manage services through backend 2026-04-25 14:31:04 +08:00
zetaloop 074ad8f35b test(api): set server origin for API tests 2026-04-25 14:24:27 +08:00
zetaloop 874ee5cb9a fix(wallet): persist balance actions through backend 2026-04-25 14:22:45 +08:00
zetaloop e4a57b54ca feat(wallet): add balance mutation clients 2026-04-25 14:22:37 +08:00
zetaloop 2661cfcd8a fix(account): submit verification through backend 2026-04-25 14:17:51 +08:00
zetaloop e3572bf86b fix(account): persist profile actions through backend 2026-04-25 14:13:55 +08:00
zetaloop d7cc6b0141 feat(api): add account mutation clients 2026-04-25 14:13:45 +08:00
zetaloop 70230483f8 fix(api): skip unavailable backend routes 2026-04-25 14:04:53 +08:00
zetaloop 54cd6d29fe chore: bunp dependencies 2026-04-25 03:08:29 +08:00
zetaloop 8813f7493f fix(search): move router updates out of state updaters 2026-04-24 09:19:38 +08:00
zetaloop adfded0e40 fix(api): resolve server-side api urls from request context 2026-04-24 09:19:28 +08:00
zetaloop 774c62ec1c fix(lint): avoid effect self-references in async loaders 2026-04-24 09:06:55 +08:00
zetaloop d59f7c6dc8 fix(auth): preserve backend roles on login 2026-04-24 09:06:44 +08:00
zetaloop ffb420f7e7 fix(pages): scope order views to the active role 2026-04-24 09:06:31 +08:00
zetaloop 3b82602c38 fix(api): align list defaults with backend page limits 2026-04-24 08:55:48 +08:00
zetaloop ff03532da4 feat: restore auth state from backend session on app load
Call GET /api/v1/users/me on startup to rehydrate Zustand auth store
from the existing JToken cookie, so login survives page refresh.
2026-04-24 05:07:44 +08:00
zetaloop 2ab075d173 fix(api): propagate requestId for register and reset-password
Backend requires X-Request-Id header from the verification code send
response. Wire requestId through email/auth-extra API returns, register
and forgot-password pages, and auth API request headers.
2026-04-24 05:06:03 +08:00
zetaloop e5fa8aa38b chore: bump major dependencies
typescript 5.9.3 → 6.0.3, lucide-react 0.575.0 → 1.8.0,
@types/node 20.19.39 → 25.6.0, shadcn 3.8.5 → 4.4.0.
All verified with typecheck and lint — no breaking changes.
2026-04-23 21:42:22 +08:00
zetaloop d13dae0f97 chore: bump dependencies
react 19.2.3 → 19.2.5, react-dom 19.2.3 → 19.2.5,
next 16.1.6 → 16.2.4, @tanstack/react-query 5.99.2 → 5.100.0
2026-04-23 21:32:41 +08:00
zetaloop ffc94f2846 chore: update dev setup to use docker compose backend
Default backend URL changed from port 8080 (kubectl port-forward)
to 18080 (docker compose Envoy Gateway). README updated to reflect
the deploy/dev workflow.
2026-04-23 21:23:51 +08:00
zetaloop 4d8877f588 fix(pages): adapt all pages to backend-aligned types
Replace removed fields with available data sources throughout UI:
- order pages: use service.title instead of consumer/player names
- chat: look up sender from session.participants, remove readonly
- community: simplify post cards, keep pinned icon
- post detail: keep pinned/linkedOrderId display
- shop rules: use string commissionValue
- dashboard: parse string amounts for income display
- dispute/review: remove initiator/avatar references
2026-04-23 21:15:28 +08:00
zetaloop 12284290cc refactor(store): adapt Zustand stores to backend-aligned types
- orders: remove name fields from creation, keep dispatchMode logic
- chat: remove readonly/senderName/senderAvatar references
- reviews: remove fromUserAvatar/toUserId, simplify participant check
- disputes: remove initiatorId/initiatorName from creation
- posts: remove authorRole/quotedPostId, keep linkedOrderId as number
- comments: remove postId from creation
- wallet: use string amounts
2026-04-23 21:15:11 +08:00
zetaloop 4037816998 fix(api): align API layer with backend response formats
- wallet: parse {balance: string} response
- favorites: addFavorite returns void (EmptyResp)
- services: handle paginated response from listServicesByPlayer
- files: use query param ?key= instead of path param /:id
- search: remove unsupported selectedGames/minRating params
2026-04-23 21:14:57 +08:00
zetaloop ca4bef959f refactor(types): align entity types with backend API responses
Adjust all entity types to match actual backend response shapes.
String-typed numeric fields (Shop.rating, Shop.commissionValue,
WalletTransaction.amount) now correctly typed as strings.
Post.linkedOrderId changed from SnowflakeId to number (backend int64).
Removed fields absent from backend: Order consumer/player/shopName,
Review fromUserAvatar/toUserId, Dispute initiatorId/initiatorName,
Post authorRole/quotedPostId, Comment postId, ChatSession
readonly/lastMessageAt, ChatMessage senderName/senderAvatar.
Added Player.gender field.
2026-04-23 21:14:46 +08:00
zetaloop d0985a91b8 chore: bump depencencies 2026-04-23 02:58:47 +08:00
zetaloop aae83bce44 fix(lint): resolve floating promise warnings 2026-03-01 22:53:48 +08:00
zetaloop 05c5d05148 refactor(api): update barrel exports 2026-03-01 22:51:03 +08:00
zetaloop 83ea3fea97 feat(wallet): migrate to backend API 2026-03-01 22:48:10 +08:00
zetaloop ae239f3037 feat(notifications): migrate to backend API 2026-03-01 22:44:35 +08:00
zetaloop 236c1a24da feat(comments): migrate to backend API 2026-03-01 22:40:29 +08:00
zetaloop 505d9c0168 feat(favorites): migrate to backend API 2026-03-01 22:36:50 +08:00
zetaloop eba8fc7e65 fix(home): load catalog client-side 2026-03-01 22:33:42 +08:00
zetaloop 6ee14f6eef test: decouple unit tests from mock fixtures 2026-03-01 22:30:05 +08:00
zetaloop 9e64fb1201 refactor(mock): remove lib/mock fixtures and empty stores 2026-03-01 22:26:50 +08:00
zetaloop d4e2c13a03 chore(guard): add no-mock regression checks 2026-03-01 22:21:49 +08:00
zetaloop e2671638e6 feat(chat): migrate chat to backend API 2026-03-01 17:03:30 +08:00
zetaloop f189ec9846 feat(disputes): migrate disputes and reviews to backend API 2026-03-01 16:25:33 +08:00
zetaloop 9739c94bdc feat(orders): migrate orders to backend API 2026-02-28 18:13:42 +08:00
zetaloop e94a7e68ff feat(posts): wire community pages to backend posts API 2026-02-28 17:25:57 +08:00
zetaloop bffd8b4968 fix(api): resolve server-side relative URLs 2026-02-28 16:56:46 +08:00
zetaloop 536465aa54 feat(users): fetch user by id from backend 2026-02-28 16:42:33 +08:00
zetaloop f1ae3e04bb feat(catalog): fetch players, services, shops 2026-02-28 16:37:15 +08:00
zetaloop f4365668ab feat(games): fetch games from backend 2026-02-28 16:23:30 +08:00
zetaloop 6dd21e1090 feat(files): fetch file blob by id 2026-02-28 16:10:50 +08:00
zetaloop 5797a8bdeb feat(auth): hook up verification code sending 2026-02-28 15:45:05 +08:00
zetaloop cee3bd3719 feat(auth): wire verification code endpoints 2026-02-28 15:39:48 +08:00
zetaloop f085a49d87 fix(api): surface non-json error messages 2026-02-28 14:27:43 +08:00