diff --git a/orchestrator/src/client/pages/OrchestratorPage.test.tsx b/orchestrator/src/client/pages/OrchestratorPage.test.tsx index 1716f67..a47fcf0 100644 --- a/orchestrator/src/client/pages/OrchestratorPage.test.tsx +++ b/orchestrator/src/client/pages/OrchestratorPage.test.tsx @@ -932,6 +932,7 @@ describe("OrchestratorPage", () => { pressKey("r"); await waitFor(() => { + expect(toast.message).toHaveBeenCalledWith("Moving job to Ready..."); // Mock useOrchestratorData returns selectedJob as job-1 always expect(api.processJob).toHaveBeenCalledWith("job-1"); }); diff --git a/orchestrator/src/client/pages/OrchestratorPage.tsx b/orchestrator/src/client/pages/OrchestratorPage.tsx index 52900f3..de86dc3 100644 --- a/orchestrator/src/client/pages/OrchestratorPage.tsx +++ b/orchestrator/src/client/pages/OrchestratorPage.tsx @@ -464,6 +464,7 @@ export const OrchestratorPage: React.FC = () => { shortcutActionInFlight.current = true; const jobId = selectedJob.id; + toast.message("Moving job to Ready..."); api .processJob(jobId) diff --git a/orchestrator/src/client/pages/orchestrator/useBulkJobSelection.ts b/orchestrator/src/client/pages/orchestrator/useBulkJobSelection.ts index b76bbc5..42a2401 100644 --- a/orchestrator/src/client/pages/orchestrator/useBulkJobSelection.ts +++ b/orchestrator/src/client/pages/orchestrator/useBulkJobSelection.ts @@ -112,6 +112,10 @@ export function useBulkJobSelection({ const selectedAtStartSet = new Set(selectedAtStart); try { setBulkActionInFlight(action); + if (action === "move_to_ready") { + toast.message("Moving jobs to Ready..."); + } + const result = await api.bulkJobAction({ action, jobIds: selectedAtStart,