Skip to content

Route books list to v2 and tighten step-run invalidation#58

Merged
nicpottier merged 2 commits intomainfrom
nicpottier/books-link-v2
Feb 17, 2026
Merged

Route books list to v2 and tighten step-run invalidation#58
nicpottier merged 2 commits intomainfrom
nicpottier/books-link-v2

Conversation

@nicpottier
Copy link
Contributor

This routes book cards and edit actions on the home page directly to the v2 step UI at the extract step. It also refactors step-run invalidation logic into a pure helper, keeps React state updaters side-effect free, and removes stale steps-status invalidations. Metadata completion now refreshes book/list queries immediately, and UI-step completion invalidates only the relevant query keys plus step-status. Added tests for the new invalidation-key behavior alongside existing step-range tests.

…runs

- Book cards on home page now navigate to /books/$label/v2/extract
- Invalidate relevant TanStack Query caches as each UI step completes,
  not just when the entire run finishes — fixes stale data (e.g. empty
  rendered HTML) that required a manual refresh to appear
@nicpottier nicpottier merged commit 1a29a3a into main Feb 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant