Files
skills/orchestrator/templates/page-running.js
T
Kevin Veen-BirkenbachandClaude Opus 5.5 6323f087bc feat(orchestrator): hub page for requirements 085 to 099
085 calm Match deck: no header hourglass, centred bare empty state, the
release card as a deck card (Cancel, Skip, Release), fixed card height.
086 motion: vanish() fade everywhere with a lint test, view transitions,
a lub-dub heartbeat for working objects, confetti that lands and fades.
087 time readout under the pivot of every analog clock.
088 prune dialog grouped by prefix with tri-state boxes, search, stepper
and sticky footer.
089 one-row task toolbar with Filter and Actions menus and a filter chip.
090 card border by state colour with a soft glow and owner avatars.
091 draggable limit lines with staged changes and one Save, a Limits menu
with the matrix, View toggles, the GPU cause in its tooltip.
093 request chips Open, Expired, Stale, Failed, All and a signed Delete.
094 closed cards leave the deck within 5 s; open in Claude stamps.
095 compact agent message box with Post/Call, attach, mic and Send in
the field.
096 Reject on an expired card drops it silently as Drop (expired).
097 Show filter in Match's right-click menu.
098 docked speech bubbles carry the speaker's avatar and a skip button.
099 Match card headlines cut to 120 characters with the full title in
the tooltip; the code box keeps the whole command.
tests/test_hub_path_links.py: a unicode fixture without German.

Full make test green through the queue (2605 tests, ruff, shellcheck,
markdownlint). Gate missed on the operator's word: break 7 %, the E2E
specs (13 new, 15 updated) run next.

🎯 Fix: 92 %
💥 Break: 7 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 86
🚦 Gate: ⛔ break 7 % > 5

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 01:47:41 +00:00

39 lines
2.0 KiB
JavaScript

const RUNNING_WORDS = {queue: "Queue job running", agent: "Agent working", hub: "Hub job running"};
const markSources = () => ({now: state.now, tasks: state.tasks, beats: state.beats, runner: state.runner});
/**
* @param row - a task row.
* @param found - Kanban.marks of the row.
* @returns {boolean} whether the row works right now: it runs and a queue job, an agent beat or the hub job backs
* that, so it carries the heartbeat class is-working; a queued, waiting, stale or ended row stays still.
*/
const taskWorking = (row, found) => row.status === "running" && !row.ended && found.length > 0;
/**
* @param row - a card's task row.
* @param found - Kanban.marks of the row.
* @returns {HTMLElement|null} one labelled chip per mark, null without any.
*/
function markChips(row, found) {
if (!found.length) {
return null;
}
const hint = (mark) => (mark.at === null ? mark.hint : `${mark.hint}, since ${absolute.format(stampOf(mark.at))}`);
return h("div", {class: "kanban-marks", role: "group", "aria-label": `Running now: ${row.task}`}, found.map((mark) =>
h("span", {class: "pill kanban-mark", "data-mark": mark.key, "data-tone": "neutral", role: "img", ...named(`${RUNNING_WORDS[mark.key]}: ${mark.text}`, hint(mark))}, icon(mark.icon), mark.text)));
}
/**
* @param count - the shown cards with at least one mark.
* @returns {HTMLElement} the board's Running toggle: pressed, it shows only marked cards.
*/
function runningToggle(count) {
const words = `Running: ${count} cards a queue job, an agent or the hub works on now`;
return h("button", {type: "button", class: "btn small", id: "kanban-running", "aria-pressed": String(kanban.running), ...named("Running", `${words}, ${kanban.running ? "only these shown" : "every card shown"}`), on: {click: () => {
kanban.running = !kanban.running;
taskView.sig = "";
drawTasks();
}}}, icon("bi-activity"), h("span", {class: "tool-word"}, "Running"), counter(count));
}