From c7eca269f482d4ded7871a1e6c54f44cd77ad33b Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Mon, 2 Feb 2026 11:56:01 -0600 Subject: [PATCH] Fix jobs dashboard showing misleading completion message The dashboard was showing "All jobs completed successfully" whenever there were no failed tasks, even if there were pending or in-progress jobs. Now shows: - "All jobs completed" only when pending=0 and in_progress=0 - "Jobs are processing. No failures yet." when jobs are in queue --- frontend/src/pages/AdminJobsPage.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/AdminJobsPage.tsx b/frontend/src/pages/AdminJobsPage.tsx index c8ac839..2ef85b9 100644 --- a/frontend/src/pages/AdminJobsPage.tsx +++ b/frontend/src/pages/AdminJobsPage.tsx @@ -192,9 +192,9 @@ function AdminJobsPage() { {totalJobs === 0 ? (

No cache jobs yet. Jobs are created when packages are downloaded through the PyPI proxy.

- ) : failedTasks.length === 0 ? ( + ) : failedTasks.length === 0 && cacheStatus?.pending === 0 && cacheStatus?.in_progress === 0 ? (

All jobs completed successfully.

- ) : ( + ) : failedTasks.length > 0 ? ( <>

Failed Tasks

@@ -236,6 +236,8 @@ function AdminJobsPage() {
+ ) : ( +

Jobs are processing. No failures yet.

)} )}