Files
skills/orchestrator/templates/page-boot.js
T
Kevin Veen-BirkenbachandClaude Opus 5.5 ded7c9a7b6 feat(hub): scoped right-click context menu from the palette commands
Every palette item carries a scope (general, a tab, or an element kind); right-click and the Menu key or Shift+F10 open one menu with the element's items, then the tab's, then the general ones. Shift+right-click and text fields keep the browser menu; the diff feedback becomes one provider; any other key closes the menu instead of reaching the global shortcuts.

🎯 Fix: 85 %
💥 Break: 6 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 80
🚦 Gate: ⛔ fix 85 % < 90, break 6 % > 5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:16:42 +00:00

70 lines
2.5 KiB
JavaScript

document.getElementById("palette").addEventListener("click", (event) => {
if (event.target === event.currentTarget) {
closePalette();
}
});
document.getElementById("sheet").addEventListener("click", (event) => {
if (event.target === event.currentTarget) {
closeSheet();
}
});
popupDialog().addEventListener("click", (event) => {
if (event.target === event.currentTarget) {
closePopup();
}
});
document.getElementById("palette-open").addEventListener("click", openPalette);
document.getElementById("settings-open").addEventListener("click", settingsSheet);
document.getElementById("bubbles-toggle").addEventListener("click", toggleBubbles);
document.addEventListener("click", (event) => closeMenus(event.target instanceof Element ? event.target.closest(MENUS) : null));
document.addEventListener("scroll", placeStations, {capture: true, passive: true});
document.addEventListener("fullscreenchange", () => {
if (!document.fullscreenElement) {
document.body.classList.remove("leitstand");
}
window.setTimeout(measure, 50);
});
document.addEventListener("pointerdown", context, {once: true});
document.addEventListener("keydown", context, {once: true});
document.addEventListener("pointerdown", unlock);
document.addEventListener("keydown", keyboard);
document.addEventListener("keydown", ctxKeydown);
document.addEventListener("contextmenu", ctxContextMenu);
document.addEventListener("selectionchange", feedbackButton);
document.addEventListener("visibilitychange", refresh);
window.addEventListener("focus", refresh);
window.addEventListener("hashchange", apply);
window.addEventListener("resize", measure);
window.addEventListener("resize", redrawSky);
window.addEventListener("resize", refresh3d);
window.addEventListener("resize", placePopup);
window.addEventListener("resize", placeStations);
skyPanel();
micWatch();
radioSpot();
radio.element = radioElement();
drawSky();
musicButton();
syncBubbles();
syncMusic();
syncRadio();
timeBar();
notifyLabel();
announce();
measure();
homeBoot();
apply();
drawTime();
motion.asOf = ui.asOf;
relayout(0);
window.setInterval(poll, 10000);
window.setInterval(follow, 3000);
window.setInterval(() => relayout(MOVE), RELAYOUT);
window.setInterval(() => live() && drawSky(), 30000);
window.setInterval(syncRadio, 20000);
window.setInterval(() => {
if (tree.dom && !document.hidden) {
fetchTree();
}
}, 60000);