Summary
After changing a version’s status, switching away and back can briefly show the old status; the React Query cache should update optimistically so the UI reflects the latest status immediately.

Details
We use React Query for client-side caching of version-related data. After a successful status mutation, cached queries for the affected version (or list keys that include it) should be updated optimistically so navigation between versions does not flash stale data.
Steps to reproduce
- Change a version’s status in the UI.
- Switch to a different version.
- Switch back to the version whose status was changed.
Expected vs actual
- Expected: Status immediately reflects the value the user set.
- Actual: Old status may still appear until the cache/backend eventually updates.
Likely area: status mutation handlers, queryClient.setQueryData / optimistic updates, and query keys for version metadata.
Acceptance criteria
Suggested labels
bug, Frontend
Summary
After changing a version’s status, switching away and back can briefly show the old status; the React Query cache should update optimistically so the UI reflects the latest status immediately.
Details
We use React Query for client-side caching of version-related data. After a successful status mutation, cached queries for the affected version (or list keys that include it) should be updated optimistically so navigation between versions does not flash stale data.
Steps to reproduce
Expected vs actual
Likely area: status mutation handlers,
queryClient.setQueryData/ optimistic updates, and query keys for version metadata.Acceptance criteria
Suggested labels
bug, Frontend