Commit Graph

15 Commits

Author SHA1 Message Date
zetaloop a0b61fbc44 refactor(dashboard): fetch current player via /players/me 2026-05-03 07:58:04 +08:00
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 1f20198f23 fix(api): remove unused listOrdersByConsumer helper
The function performed client-side filtering on top of listOrders
but was never called by any page. listPlayersByShop is kept as-is
since the backend has no dedicated shop players endpoint.
2026-05-01 17:33:29 +08:00
zetaloop cd469d3d54 refactor(notifications): fetch from backend API instead of local generation
Rewrite store/notifications.ts to fetch via listNotifications
API and remove local generateId-based notification creation.
The store now acts as a simple cache with fetch/invalidate methods.
Header unread count reads from this API-backed cache.
2026-05-01 17:33:05 +08:00
zetaloop be7f957ca4 feat(api): add post creation client 2026-04-25 14:55:30 +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 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 d7cc6b0141 feat(api): add account mutation clients 2026-04-25 14:13:45 +08:00
zetaloop 05c5d05148 refactor(api): update barrel exports 2026-03-01 22:51:03 +08:00
zetaloop f5df00df4e refactor(auth): align auth UI and mock auth API 2026-02-28 07:26:05 +08:00
zetaloop 77d23d0c9d refactor(community): extract comment store and post/comment API adapters 2026-02-23 11:04:40 +08:00
zetaloop 8ce3b8a8b5 feat(auth): add pending action queue and api auth wrapper 2026-02-22 08:29:18 +08:00
zetaloop 7bcb73f139 refactor(data): add mock API adapters, id utility, and toast feedback 2026-02-22 08:02:48 +08:00