Commit Graph

34 Commits

Author SHA1 Message Date
zetaloop 8b71e7e70e feat(ui): refine order detail pages 2026-04-25 21:23:55 +08:00
zetaloop 874ee5cb9a fix(wallet): persist balance actions through backend 2026-04-25 14:22:45 +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 aae83bce44 fix(lint): resolve floating promise warnings 2026-03-01 22:53:48 +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 f1ae3e04bb feat(catalog): fetch players, services, shops 2026-02-28 16:37:15 +08:00
zetaloop bce99c4c54 refactor(order): createPaidOrder uses id references 2026-02-28 07:25:52 +08:00
zetaloop cc24a0cbc3 refactor(errors): migrate decisions to {code,msg} 2026-02-28 07:21:51 +08:00
zetaloop 2d42473910 chore(format): add prettier-plugin-organize-imports and sort imports 2026-02-25 15:34:33 +08:00
zetaloop 7bf1338b39 style(pages): extend proto2 styling to core flows 2026-02-25 04:45:57 +08:00
zetaloop 8e62b15403 refactor(api): add adapter layer for order/chat/review/dispute writes 2026-02-23 11:04:16 +08:00
zetaloop 385dac2d49 refactor(order): rewrite store around state machine transitions 2026-02-23 11:04:00 +08:00
zetaloop 6517018a9c refactor(order): add transition evaluator and timer constants 2026-02-23 11:03:31 +08:00
zetaloop 519fb92c34 refactor(react-hooks): enable stricter effect rules
Turn on react-hooks/set-state-in-effect and react-hooks/incompatible-library, then remove effect-driven local state sync patterns across affected pages. Keep behavior stable by deriving values from source state, remounting tab state by role key, and replacing useForm watch with useWatch.
2026-02-22 10:03:00 +08:00
zetaloop c9dbf5037e refactor(auth): support async deferred actions for login gating
Allow deferred login actions to return promises and execute them safely without violating lint rules. Also initialize order detail timer state without impure render-time Date.now calls so React hook purity checks pass.
2026-02-22 09:50:48 +08:00
zetaloop acb04a02e7 fix(order): stabilize zustand selector snapshots
Move filter-based derivations out of Zustand selectors in order/chat/review detail pages so snapshots stay stable under useSyncExternalStore checks. Add evidence-backed comments referencing React useSyncExternalStore guidance and Zustand issues #1936/#3155 to document the regression trigger.
2026-02-22 09:05:04 +08:00
zetaloop 4beb610f23 refactor(pages): migrate app data reads to api adapters 2026-02-22 08:30:21 +08:00
zetaloop dc629c9472 feat(wallet): add runtime balance flow and role-gated order posting 2026-02-22 08:17:31 +08:00
zetaloop a7d56240ff feat(order): add sealed review reveal, timeout rules, and dispatch behavior 2026-02-22 08:16:35 +08:00
zetaloop 7bcb73f139 refactor(data): add mock API adapters, id utility, and toast feedback 2026-02-22 08:02:48 +08:00
zetaloop 02269dd9c3 feat: wire order and chat state flow 2026-02-22 06:40:40 +08:00
zetaloop 1ff499720f fix: complete disputed order flow and wallet entry 2026-02-21 15:43:21 +08:00
zetaloop 7ed7bad975 refactor: rewrite and expand mock data into modular files 2026-02-21 00:24:03 +08:00
zetaloop a5780c8393 feat: add interactive dispute evidence upload and sealed review mechanism 2026-02-20 22:47:33 +08:00
zetaloop 977d19ed5c feat: add executable actions to order flow 2026-02-20 22:45:38 +08:00
zetaloop 4cc4383603 feat: add auth guards to protected routes and extend requireAuth coverage 2026-02-20 22:38:29 +08:00
zetaloop ed3858cff3 fix: sidebar mobile responsive and footer link clickability 2026-02-20 20:36:27 +08:00
zetaloop 922d656056 feat: order cancel button and reorder link on order detail page 2026-02-20 18:50:53 +08:00
zetaloop 10abe5309e feat: order creation page and link from player detail service cards 2026-02-20 18:37:33 +08:00
zetaloop 3fdd917672 fix: broken route links — dispute notification, chat hardcoding, dead sidebar link 2026-02-20 17:41:02 +08:00
zetaloop 6ae5e533c1 feat: search, player detail, shop detail, order flow, chat, review, and dispute pages 2026-02-20 15:10:31 +08:00
zetaloop 3093da1665 feat: route structure, providers, layouts, and placeholder pages 2026-02-20 12:43:34 +08:00