26 Commits

Author SHA1 Message Date
zetaloop cf0fea9926 refactor(orders): replace local state machine with minimal cache
Strip store/orders.ts to a thin local cache with setOrders and
updateOrder only. Remove all client-side state transition logic,
actor validation, chat sync, notification generation, and wallet
integration — these are now handled by the backend API.

Fix components/order-actions.tsx and stores that depended on
the removed order store methods (markDisputed, autoTimeout*).
2026-05-01 17:32:06 +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 b50464c854 fix(shop): use backend shop in navigation 2026-04-25 15:04:56 +08:00
zetaloop ffb420f7e7 fix(pages): scope order views to the active role 2026-04-24 09:06:31 +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 9739c94bdc feat(orders): migrate orders to backend API 2026-02-28 18:13:42 +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 b57fe7f9dd style(order): apply proto2 surfaces 2026-02-25 05:19:13 +08:00
zetaloop 1dfcd3927d fix(dashboard): scope owner and service views by resolved shop 2026-02-23 11:04:08 +08:00
zetaloop d0d21fa935 chore(copy): rename consumer label to 客户
Unify user-facing role terminology by replacing 消费者 with 客户 while keeping role keys unchanged. This aligns account settings, header role switch, global role labels, and order list role text.
2026-02-22 10:34:55 +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 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 e2e0b5a06a fix: restore search mixed results and order entry links 2026-02-21 15:42:33 +08:00
zetaloop 7ed7bad975 refactor: rewrite and expand mock data into modular files 2026-02-21 00:24:03 +08:00
zetaloop 977d19ed5c feat: add executable actions to order flow 2026-02-20 22:45:38 +08:00
zetaloop fd58b81318 feat: add role-based tabs and filtering to order list 2026-02-20 22:44:14 +08:00
zetaloop 9267df9ea1 refactor: extract shared constants to lib/constants.ts 2026-02-20 20:39:14 +08:00
zetaloop a4e05cf482 chore: clean up placeholder comments and over-engineering 2026-02-20 20:20:22 +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