Plan 5: Simplify diff/change fetching and watcher invalidation
Refactor revision diff and changed-file payloads out of TanStack DB collections and into TanStack Query resources:
- replace unified diff/change DB collections with Query-backed hooks in useRevisionData
- use canonical query keys for revision diff and revision changed-file payloads
- keep batch IPC prefetching, but write fetched payloads directly into Query cache
- update DiffPanel to consume diff payloads from the same Query key it retries/refetches
- remove obsolete per-revision and unified diff/change collection modules and exports
- keep watcher invalidation focused on Query prefixes plus operation/revision collections
- update data-loading tests to assert Query-cache prefetch behavior instead of collection creation
Validation:
- cd apps/desktop && bun run typecheck
- cd apps/desktop && bun run lint
- cd apps/desktop && bun run test
- cd apps/desktop && bun run build