16 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 8e02c8ca97 feat(ui): refine order chat pages 2026-04-25 21:15:43 +08:00
zetaloop 42d7c50dc0 fix(orders): load shop dispatch rules 2026-04-25 15:05:03 +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 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 629a121272 refactor(order): move auto-dispatch to store with role-based action visibility 2026-02-23 11:10:20 +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 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 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 977d19ed5c feat: add executable actions to order flow 2026-02-20 22:45:38 +08:00