From 56531aedb7932216cb66fa95a05e0d04b37f8e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Thu, 23 Jul 2026 14:42:30 +0000 Subject: [PATCH] doc: header running + queued job indicators (3d) Co-Authored-By: Claude Opus 4.8 --- docs/jobs-unification.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/jobs-unification.md b/docs/jobs-unification.md index 1c4945d0..61092002 100644 --- a/docs/jobs-unification.md +++ b/docs/jobs-unification.md @@ -84,5 +84,9 @@ Favor power-user affordances over guardrails. See memory `sole-user-assume-compe - [x] `inline` flag plumbed (parser + list/detail endpoints); 3 quick tasks flagged. - [ ] 3c FileBrowser task action: `task.inline ? openModal : navigate('/jobs/new?...')`. Modal stays for inline tasks (not retired); shared input form used by both. - - [ ] 3d header running-jobs indicator (`GET /jobs?live=1`). + - [ ] 3d header job indicators — two always-present badges next to the avatar + reload-tasks: + (1) **running** count (0/1) → links to the running job's `/jobs/:id`; + (2) **queued** count → links to the queue (`/jobs`). Backed by a lightweight + `GET /jobs/counts` → `{ running, runningJobId, queued }`, polled while mounted (cheap, avoids + fetching full lists). Badges hide/dim at 0. - [ ] 4 push notifications