Files
skills/orchestrator/templates/page-keyboard.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

92 lines
3.3 KiB
JavaScript

function helpSheet() {
openSheet("Keyboard shortcuts", [h("dl", {class: "keys"}, KEYS.map(([key, text]) => [h("dt", {}, key), h("dd", {}, text)])),
h("p", {class: "muted"}, "Control room: full screen with large type for a second screen, under ⚙ Ambience. j, k, x, a and Enter work in Waits on Operator.")], false);
}
function overlayOpen() {
return !document.getElementById("palette").hidden || !document.getElementById("sheet").hidden;
}
function moveCursor(delta) {
const items = listedInbox();
if (!items.length) {
return;
}
ui.cursor = Math.min(Math.max(ui.cursor + delta, 0), items.length - 1);
drawInbox();
const current = inboxDom && inboxDom.querySelector(`.item[data-index="${ui.cursor}"]`);
if (current) {
current.scrollIntoView({block: "nearest"});
}
}
function keyboard(event) {
const target = event.target;
if ((event.ctrlKey || event.metaKey) && !event.altKey && event.key.toLowerCase() === "k") {
event.preventDefault();
if (document.getElementById("palette").hidden) {
openPalette();
} else {
closePalette();
}
return;
}
if (event.key === "Escape") {
if (!document.getElementById("palette").hidden) {
closePalette();
} else if (!document.getElementById("sheet").hidden) {
closeSheet();
} else if (space.look) {
skyLook(false);
} else if (popupDialog().open) {
closePopup();
} else {
closeMenus();
}
return;
}
if (event.altKey || event.ctrlKey || event.metaKey || event.isComposing || overlayOpen()) {
return;
}
if (target instanceof HTMLElement && (target.isContentEditable || ["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName))) {
return;
}
const inInbox = ui.screen === "inbox";
const current = inInbox ? listedInbox()[ui.cursor] : null;
const index = Number(event.key) - 1;
if (/^[1-9]$/.test(event.key) && index < Nav.TABS.length) {
event.preventDefault();
go(Nav.TABS[index][0], null);
} else if (inInbox && (event.key === "j" || event.key === "k")) {
event.preventDefault();
moveCursor(event.key === "j" ? 1 : -1);
} else if (inInbox && event.key === "x") {
event.preventDefault();
toggle(current);
} else if (inInbox && event.key === "a") {
event.preventDefault();
if (current && !current.held && !dialogLapsed(current)) {
approveOne(current);
}
} else if (event.key === "f" && feedbackKey()) {
event.preventDefault();
} else if ((event.key.startsWith("Arrow") || /^[wasd]$/i.test(event.key)) && (target === document.body || (target instanceof Element && target.closest(".match-stack"))) && matchKey(event.key)) {
event.preventDefault();
} else if (event.key === "Enter" && current && target === document.body) {
event.preventDefault();
openItem(current);
} else if (event.key === "/") {
event.preventDefault();
if (ui.screen !== "stream") {
go("stream", null);
}
window.setTimeout(() => stream.dom && stream.dom.search.focus(), 0);
} else if (event.key === "?") {
event.preventDefault();
helpSheet();
} else if (event.key === "h") {
event.preventDefault();
skyLook(!space.look);
}
}