Cockpit: group Live worker progress by task, link issue/PR, sortable columns - #114
Merged
Merged
Conversation
…table columns (#92) renderLiveProgress() now normalizes task ids (leading issue number, else raw id) into per-task groups rendered as a header row (linking the GitHub issue and, when the branch-name convention feat/issue-<N>-... matches, the associated open PR) followed by that task's worker rows, newest task first. Column headers carry data-sort-key hooks and a small inline <script> (same try/catch IIFE convention as the existing theme/filter scripts) sorts rows within each group on click, toggling asc/desc — inert if the DOM/table is missing, so it degrades safely under file:// and serve mode alike.
Adds fixture-driven coverage for the new taskGroupKey/taskIssueLink/
findPRForIssue/prBadge logic in renderLiveProgress(): multi-group
newest-issue-first ordering, an issue-linked group header, open/merged
PR badges on the group header, taskGroupKey normalizing distinct raw
task ids ("88" / "issue-88-x") into one group, and the data-sort-key +
self-contained-HTML constraints on the live-progress table. 71 -> 80
checks, all green.
robercano
approved these changes
Jul 10, 2026
robercano
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #92
What
Reworks the cockpit "Live worker progress" panel (single renderer seam in
cockpit.sh, so serve mode inherits for free):<tr class="task-group">header per task, worker rows (orchestrator/implementer/reviewer×lens) nested underneath, newest issue number first.taskGroupKey()normalizes id variants (88,issue-88,issue-70-worker-inspector,52b) to one numeric key; non-numeric ids group under their raw id.taskIssueLink, degrades to plain#Nwhen unknown) and to a referencing PR with open/merged state (findPRForIssue+prBadge), reusing the existingprsarray (no new gh call). Branch-match regex/issue-(\d+)(?:[-_]|$)/iavoids issue-9-vs-90 false matches.data-sort-key; a small inline<script>(same try/catch IIFE pattern as theme-toggle/module-filter) sorts rows within each group asc/desc. No external JS/CSS; self-contained HTML preserved.Tests
cockpit.test.shgains 9 assertions (71 → 80, offline fixtures): multi-group descending order,taskIssueLinklinked branch,findPRForIssue/prBadgeopen + merged pills,taskGroupKeynormalization,data-sort-keypresence, and no-external-<script src=/<link href=self-contained guard.Gates
GATES_FILE=.claude/self/gates.json bash .claude/scripts/gate.sh test— green (cockpit.test.sh PASS 80 checks + smoke-fanout PASS).Review
Correctness (opus) + tests (sonnet) lenses both APPROVE, consensus=all.
Known limitations
upsertRowappends new rows past the last group rather than into it, and clicking a group-header row is a no-op — both non-crashing degrades, out of this change's scope.🤖 Generated with Claude Code