fix issue

This commit is contained in:
Marshal
2026-07-31 17:54:10 +00:00
parent b74b51dcc1
commit 6a4067ec42
6 changed files with 160 additions and 34 deletions

View File

@@ -147,6 +147,12 @@ export function useBookingWindowSocket(enabled: boolean = true) {
void qc.invalidateQueries({
queryKey: QUERY_KEYS.TRAIN_SCHEDULING.batchBoardDetail(event.scheduleId),
});
// Same for the schedule detail page (workspace tab countdown reads
// windowPhase/paymentPhaseEndsAt from it) — without this the page shows
// the OLD phase's expired countdown through the whole import cycle.
void qc.invalidateQueries({
queryKey: QUERY_KEYS.TRAIN_SCHEDULING.scheduleById(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