Commit Graph

23 Commits

Author SHA1 Message Date
zetaloop a3f0b49112 feat(chat): implement WebSocket chat client with useChatSocket hook
Replace the stubbed chat API with a real WebSocket hook that
connects to /ws/chat and supports DM creation, messaging,
session join/leave, and history retrieval. Keep REST stub
functions for backward compatibility with existing pages
that require listChatSessions/getChatSessionById imports.
2026-05-01 17:33:29 +08:00
zetaloop 58dc001146 feat(ui): unify content shell layout 2026-04-26 01:53:15 +08:00
zetaloop 8e02c8ca97 feat(ui): refine order chat pages 2026-04-25 21:15:43 +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 cc24a0cbc3 refactor(errors): migrate decisions to {code,msg} 2026-02-28 07:21:51 +08:00
zetaloop c55d533925 refactor(shadow): introduce shadow-card utility and extend tailwind-merge 2026-02-25 19:31:39 +08:00
zetaloop 2d42473910 chore(format): add prettier-plugin-organize-imports and sort imports 2026-02-25 15:34:33 +08:00
zetaloop f8659b5ebc style(cards): normalize card list layout and padding across pages 2026-02-25 15:01:15 +08:00
zetaloop 807c329e87 chore(format): run prettier 2026-02-25 05:37:27 +08:00
zetaloop b57fe7f9dd style(order): apply proto2 surfaces 2026-02-25 05:19:13 +08:00
zetaloop 90f1245ff1 fix(chat): surface PolicyDecision feedback on send failure 2026-02-23 11:09:55 +08:00
zetaloop 4fce328ef1 fix(ui): unify layout wrappers and simplify player/shop detail pages 2026-02-23 11:05:29 +08:00
zetaloop 8e62b15403 refactor(api): add adapter layer for order/chat/review/dispute writes 2026-02-23 11:04:16 +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 ea822aaa8d feat(chat): add image messages and enforce readonly sessions 2026-02-22 08:17:09 +08:00
zetaloop 312061330c refactor(auth): unify current user state usage across UI 2026-02-22 08:03:09 +08:00
zetaloop 02269dd9c3 feat: wire order and chat state flow 2026-02-22 06:40:40 +08:00
zetaloop 7ed7bad975 refactor: rewrite and expand mock data into modular files 2026-02-21 00:24:03 +08:00
zetaloop 36b7c435f5 fix: resolve chat current user from auth store instead of hardcoded participants[0] 2026-02-20 22:36:18 +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