BUG: shell.jsx Jobs nav badge hardcoded to "3" — always shows "3" regardless of actual job count #82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:31Expected: The badge should display a live count of pending/running/failed jobs, e.g. derived from
window.ZAMPP_DATA?.JOBS?.lengthor fetched from the/api/v1/jobsendpoint.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 likequeued/processing/failed) or poll the jobs endpoint. For consistency with the Dashboard card, you could count jobs withstatus IN ('queued','processing','failed').