BUG: shell.jsx Jobs nav badge hardcoded to "3" — always shows "3" regardless of actual job count #82

Closed
opened 2026-05-25 18:45:39 -04:00 by zgaetano · 0 comments
Owner

Description

The Jobs item in the sidebar navigation has a badge with a hardcoded "3" that never reflects the actual job queue state.

File: services/web-ui/public/shell.jsx:31

{ id: "jobs", label: "Jobs", icon: "jobs", badge: { kind: "neutral", text: "3" } },

Expected: The badge should display a live count of pending/running/failed jobs, e.g. derived from window.ZAMPP_DATA?.JOBS?.length or fetched from the /api/v1/jobs endpoint.

Impact: The badge is misleading — users always see "3" next to Jobs regardless of how many jobs actually exist in the queue. When the queue is empty, "3" is still shown. When there are many jobs, only "3" is shown.

Suggested fix: Compute the badge text from window.ZAMPP_DATA.JOBS (filtered by non-terminal statuses like queued/processing/failed) or poll the jobs endpoint. For consistency with the Dashboard card, you could count jobs with status IN ('queued','processing','failed').

## Description The Jobs item in the sidebar navigation has a badge with a hardcoded **"3"** that never reflects the actual job queue state. **File:** `services/web-ui/public/shell.jsx:31` ```js { id: "jobs", label: "Jobs", icon: "jobs", badge: { kind: "neutral", text: "3" } }, ``` **Expected:** The badge should display a live count of pending/running/failed jobs, e.g. derived from `window.ZAMPP_DATA?.JOBS?.length` or fetched from the `/api/v1/jobs` endpoint. **Impact:** The badge is misleading — users always see "3" next to Jobs regardless of how many jobs actually exist in the queue. When the queue is empty, "3" is still shown. When there are many jobs, only "3" is shown. **Suggested fix:** Compute the badge text from `window.ZAMPP_DATA.JOBS` (filtered by non-terminal statuses like `queued`/`processing`/`failed`) or poll the jobs endpoint. For consistency with the Dashboard card, you could count jobs with `status IN ('queued','processing','failed')`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: WildDragonLLC/dragonflight#82
No description provided.