feat(hub): requirements 023 to 031 and line comments on grant-time code
023 box heads: one head band per box under its top border; in widget mode its controls join the widget title band. 024 Match card content: merge cards show their diff (the runner previews a review's tree against its worktree HEAD), every card carries legal and architecture scores, the null under command cards is gone. 025 Radio speak card: no hint text, a rounder flowing card, a MAYDAY toggle beside push to talk. 026 widget zoom: zoom a widget's content by keyboard and the context menu. 027 slash skill suggestions: every field that messages agents suggests skills after a slash, from a skills index the tree timer writes. 028 Resources accounts: an Accounts panel (provider, renewal, resets, usage and remaining, host-local, emails never in git) and panel checkboxes. 029 Controls layout: Rules and Groups pages laid out. 030 Yes/No answers as buttons, and nothing hides: rows the runner cannot run stay greyed with the reason. 031 mic in fields. Line comments (operator 2026-11-24): wherever code waits for a grant (Waits on Operator, the stream, the review overlay) selected lines or a right-clicked row take a comment that marks its lines and collects on the card; Deny opens with them as the reason and Call preselected, Grant sends them after the signed grant as one post. Requirement 003 decision 4 and its contract follow. Tests are written for every requirement and run once on this head. 🎯 Fix: 80 % 💥 Break: 20 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: ~95 % 🏆 Score: 61 🚦 Gate: ⛔ fix 80 % < 90, break 20 % > 5; security ~95 % < 100: ask the operator before the commit Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d1926e3de
commit
2722cda1b5
120 files changed
+5372
-486
No files matched your search
@@ -1,4 +1,6 @@
|
||||
const HOME_PATH = "home.pins";
|
||||
const ZOOM_PATH = "home.zoom";
|
||||
const ZOOM_KEYS = {"+": 1, "=": 1, "-": -1, "0": 0};
|
||||
const HOME_FETCH = 3000;
|
||||
const HOME_MESSAGE = 30000;
|
||||
const HOME_MARKS = [['section[aria-label="Recently sent"]', "radio-log"]];
|
||||
@@ -146,6 +148,12 @@
|
||||
return row ? h("ol", {class: "task-list"}, taskItem(row, etaOf().get(row.task))) : null;
|
||||
}
|
||||
|
||||
function homeBoard() {
|
||||
const board = kanbanBoard(shownTasks());
|
||||
homeView.heads.set("tasks/board", board.querySelector(".kanban-bar"));
|
||||
return board;
|
||||
}
|
||||
|
||||
function homeTaskList() {
|
||||
const etas = etaOf();
|
||||
return h("ol", {class: "task-list"}, Plan.sortRows(shownTasks(), taskView.sort, taskView.descending).map((row) => taskItem(row, etas.get(row.task))));
|
||||
@@ -167,7 +175,7 @@
|
||||
Panels.panel("artifacts/swimlane", "Artifacts: Swimlane", () => homeArt("swimlane"));
|
||||
Panels.panel("artifacts/3d", "Artifacts: 3D", () => homeTree(() => home3d("artifacts")), "3d");
|
||||
Panels.panel("tasks/list", "Tasks: list", homeTaskList);
|
||||
Panels.panel("tasks/board", "Tasks: kanban", () => kanbanBoard(shownTasks()));
|
||||
Panels.panel("tasks/board", "Tasks: kanban", homeBoard);
|
||||
Panels.panel("tasks/rasci", "Tasks: RASCI", () => taskMatrix(shownTasks()));
|
||||
Panels.panel("tasks/gantt", "Tasks: Gantt", () => ganttChart(shownTasks()));
|
||||
Panels.panel("tasks/burn", "Tasks: burndown and burnup", () => burnChart(state.tasks, shownTasks()));
|
||||
@@ -181,6 +189,7 @@
|
||||
Panels.panel("agents/order", "Agents: priority", homeOrder);
|
||||
Panels.panel("tasks/operator", "Tasks: Waits on Operator", homeInbox);
|
||||
Panels.panel("tasks/match", "Tasks: Match", () => homeMatch(), "", [6, 8]);
|
||||
Panels.panel("resources-accounts", "Resources: accounts", () => homeAccounts(), "", [12, 5]);
|
||||
Panels.item("metric", (id, view) => metricTitle(view), (size, id, view) => homeMetric(id, view));
|
||||
Panels.capture("resources-hardware", () => resourcePin("hardware"));
|
||||
Panels.capture("resources-tokens", () => resourcePin("tokens"));
|
||||
@@ -466,11 +475,40 @@
|
||||
|
||||
function homeKeys(event, key) {
|
||||
const steps = {ArrowLeft: -1, ArrowUp: -1, ArrowRight: 1, ArrowDown: 1};
|
||||
if (event.target !== event.currentTarget || !Object.hasOwn(steps, event.key) || event.altKey || event.ctrlKey || event.metaKey) {
|
||||
if (event.target !== event.currentTarget || event.altKey || event.ctrlKey || event.metaKey) {
|
||||
return;
|
||||
}
|
||||
if (Object.hasOwn(ZOOM_KEYS, event.key)) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
homeZoomBy(key, ZOOM_KEYS[event.key]);
|
||||
} else if (Object.hasOwn(steps, event.key)) {
|
||||
event.preventDefault();
|
||||
homeSave((pins) => Panels.moveKey(pins, key, steps[event.key]));
|
||||
}
|
||||
}
|
||||
|
||||
const homeZoom = (key) => ViewStore.get(ZOOM_PATH)[key] || Panels.ZOOM.base;
|
||||
|
||||
function homeZoomBy(key, step) {
|
||||
ViewStore.update(ZOOM_PATH, (zooms) => Panels.zoomBy(zooms, key, step));
|
||||
}
|
||||
|
||||
function homeWheel(event, key) {
|
||||
if (!event.ctrlKey || !event.deltaY) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
homeSave((pins) => Panels.moveKey(pins, key, steps[event.key]));
|
||||
homeZoomBy(key, event.deltaY < 0 ? 1 : -1);
|
||||
}
|
||||
|
||||
function paintZoom(tile) {
|
||||
const zoom = homeZoom(tile.dataset.pin);
|
||||
const body = tile.querySelector(".home-body");
|
||||
if (body.dataset.zoom !== String(zoom)) {
|
||||
body.dataset.zoom = String(zoom);
|
||||
body.style.setProperty("--zoom", String(zoom / 100));
|
||||
}
|
||||
}
|
||||
|
||||
function homeSizeKeys(event, key) {
|
||||
@@ -501,6 +539,7 @@
|
||||
grip.addEventListener("pointerdown", (event) => homeGrab(event, key, "move"));
|
||||
handle.addEventListener("pointerdown", (event) => homeGrab(event, key, "size"));
|
||||
handle.addEventListener("keydown", (event) => homeSizeKeys(event, key));
|
||||
body.addEventListener("wheel", (event) => homeWheel(event, key), {passive: false});
|
||||
homeView.tiles.set(key, tile);
|
||||
return tile;
|
||||
}
|
||||
@@ -560,6 +599,7 @@
|
||||
if (body.childNodes.length !== 1 || body.firstChild !== shown) {
|
||||
body.replaceChildren(shown);
|
||||
}
|
||||
paintZoom(tile);
|
||||
}
|
||||
|
||||
function drawHome() {
|
||||
@@ -614,6 +654,7 @@
|
||||
drawHome();
|
||||
homeView.mark();
|
||||
});
|
||||
ViewStore.on(ZOOM_PATH, () => drawHome());
|
||||
homeView.mark = Panels.decorate(document.body, {pinned: (kind, id) => Panels.has(homePins(), kind, id), press: homePress, marks: HOME_MARKS});
|
||||
window.addEventListener("pointermove", homeDragMove);
|
||||
window.addEventListener("pointerup", homeDragEnd);
|
||||
|
||||
Reference in new issue
Block a user