- 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>
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
// Inbox server state is managed by TanStack Query.
|
|
// See core/inbox/ for queries, mutations, and WS updaters.
|
|
export {
|
|
inboxKeys,
|
|
inboxListOptions,
|
|
deduplicateInboxItems,
|
|
useMarkInboxRead,
|
|
useArchiveInbox,
|
|
useMarkAllInboxRead,
|
|
useArchiveAllInbox,
|
|
useArchiveAllReadInbox,
|
|
useArchiveCompletedInbox,
|
|
} from "@core/inbox";
|