multica/apps/web/features/workspace
Naiyuan Qing 1d812bd446 feat(core/inbox): migrate inbox to TanStack Query (Phase 2)
- Create core/inbox/ with queries, mutations, ws-updaters
- Migrate inbox page: useQuery + mutation hooks replace useInboxStore + api.*
- Migrate sidebar unread badge to read from TQ cache
- Delete useInboxStore (127 lines) — inbox has no client-only state
- Remove inbox deps from workspace store (hydrate + switch)
- Fix WS sync: use useQueryClient() instead of getQueryClient() singleton
  to ensure WS handlers write to the same QueryClient instance that
  components read from (singleton is unreliable under Next.js HMR)
- Add onInboxIssueStatusChanged for issue status sync in inbox items

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 16:56:47 +08:00
..
components feat: issue detail extraction, inbox enhancements, misc UI polish 2026-03-26 10:57:58 +08:00
hooks.ts feat(upload): add file upload UI — avatar, editor paste/drop, attachments 2026-03-31 15:17:54 +08:00
index.ts feat(ui): UI/UX polish — layout, sidebar, button, theme improvements 2026-03-25 18:53:14 +08:00
store.ts feat(core/inbox): migrate inbox to TanStack Query (Phase 2) 2026-04-07 16:56:47 +08:00