enhance train scheduling and booking management

This commit is contained in:
Marshal
2026-07-07 21:42:59 +00:00
parent 87a95b37bf
commit 518eec6286
7 changed files with 763 additions and 9 deletions

View File

@@ -130,6 +130,13 @@ export function useBookingWindowSocket(enabled: boolean = true) {
},
);
// Refresh the batch-board DETAIL for the schedule that transitioned so the
// Priority Tracking tab reranks + updates its countdowns immediately (the
// detail is a different shape from the list — invalidate, don't patch).
void qc.invalidateQueries({
queryKey: QUERY_KEYS.TRAIN_SCHEDULING.batchBoardDetail(event.scheduleId),
});
// Always refresh the batch board (different shape, not patched). When the
// schedule wasn't in any window list either, refresh those too so a newly
// announced window surfaces. Both debounced — no per-push stampede.