Add visual feedback for Move to Ready action (#165)

* feat(orchestrator): add visual feedback when moving jobs to Ready

- Added `toast.message("Moving job to Ready...")` in `OrchestratorPage.tsx` for single item keyboard shortcut action.
- Added `toast.message("Moving jobs to Ready...")` in `useBulkJobSelection.ts` for bulk `move_to_ready` action.
- Updated `OrchestratorPage.test.tsx` to verify the toast notification.

This addresses the issue where pressing 'R' provided no visual feedback until the action completed.

* fix(orchestrator): remove accidental db files

Removed `orchestrator/data/jobs.db`, `orchestrator/data/jobs.db-shm`, and `orchestrator/data/jobs.db-wal` which were accidentally created during testing.

* fix(orchestrator): remove accidental root sqlite.db

Removed `orchestrator/sqlite.db` which was also accidentally created.
This commit is contained in:
Shaheer Sarfaraz 2026-02-15 18:44:28 +00:00 committed by GitHub
parent f8b5dc2f42
commit e6563e74c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View File

@ -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");
});

View File

@ -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)

View File

@ -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,