Real bugs: the 084 limit bar wrapped at 390 px and dropped the hardware chart; the 066 footer rule shrank the mic below 44 px; the board's Running and Prune labels pushed the Tasks head onto two rows; a closed code box cut long commands off instead of scrolling. Resources reads disk use as df does (total = used + available) and gives every hardware kind its own tone. Stale specs follow 067, 070, 072 and 078 decisions. 🎯 Fix: 80 % 💥 Break: 8 % 💸 Tokens: - ⏱️ Velocity: - 🛡️ Security: 100 % 🏆 Score: 74 🚦 Gate: ⛔ fix 80 % < 90, break 8 % > 5 (E2E rerun after 085 to 094, operator word 2026-11-27) Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.5 KiB
JavaScript
31 lines
1.5 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 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": mark.tone, 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"), counter(count));
|
|
}
|