Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.
Rust ai-agentsclaude-codeclicodexcoding-agentskanbanlocal-firstmcpmcp-servermodel-context-protocolproductivityproject-managementraspberry-pirustself-hostedsqlitetask-manager
Resize the task panel, up to the whole window
emanuele-em9ecf138c60be
diff --git a/README.md b/README.mdindex b9eedd1..7420a4d 100644--- a/README.md+++ b/README.md@@ -62,6 +62,8 @@ The board opens at http://localhost:4242. That's all the setup there is: the fir`n` adds a task, `/` or `⌘K` searches every project, `⌘`-click or a drag on empty board space selects tasks to move, tag or delete together, `f` filters the board and `↵` keeps the filter, `Tab` moves to the description, `⌘↵` saves and closes. `Esc` leaves a description or tags with what you typed saved, and cancels other fields. In Chrome or Edge, **Install app** at the bottom of the sidebar makes the board an app of its own; on macOS `kanzo` then opens it instead of a tab, on the default port. In the app, `⌘1`–`⌘8` pick a project, `⌘9` the last one and `⌘0` all of them.+Drag the left edge of a task's panel to resize it, or expand it to the whole window; double-click the edge to reset it.+Mark a task Human and agents leave it to you; the person icon shows only those. Paste or drop an image into a task or a comment to attach it. Give a task a URL, like its pull request on any site, and click the link on its card to open it; agents set it with `url`. A link to a file in a description or comment, `[name](file:///path)`, opens in your editor. When a new version is out, the sidebar offers it: one click installs it.## Connect your agentsdiff --git a/src/app.js b/src/app.jsindex 8781b22..efe47be 100644--- a/src/app.js+++ b/src/app.js@@ -1123,6 +1123,27 @@ panel.addEventListener("click", async (e) => {} catch (err) { toast(err.message); }});+// "" is the default width. A drag saves and refits only when it ends: browsers send one move a frame.+function setPanelWidth(width, save) {+ panel.style.setProperty("--panel-width", width);+ if (!save) return;+ localStorageSet("kanzo.panelWidth", width);+ [$("#p-title"), $("#p-desc"), $("#p-comment")].forEach(fit);+}++setPanelWidth(localStorageGet("kanzo.panelWidth") || "");+$("#p-wide").addEventListener("click", () => setPanelWidth(panel.style.getPropertyValue("--panel-width") === "100vw" ? "" : "100vw", true));+$("#p-edge").addEventListener("dblclick", () => setPanelWidth("", true));+$("#p-edge").addEventListener("pointerdown", (down) => {+ const edge = down.target;+ edge.setPointerCapture(down.pointerId);+ edge.onpointermove = (e) => setPanelWidth(`${Math.max(360, innerWidth - e.clientX)}px`);+ edge.onpointerup = () => {+ edge.onpointermove = edge.onpointerup = null;+ setPanelWidth(panel.style.getPropertyValue("--panel-width"), true);+ };+});+$("#p-close").addEventListener("click", closeTask);$("#p-key").addEventListener("click", () => { if (panelTask) copyKey(key(panelTask)); });for (const field of [$("#p-title"), $("#p-desc")]) field.addEventListener("input", () => fit(field));diff --git a/src/index.html b/src/index.htmlindex 254accb..7d46f07 100644--- a/src/index.html+++ b/src/index.html@@ -270,7 +270,7 @@ html:not([data-hide~="waiting"]) .card.waiting:not(:hover) { opacity: .6; }.empty h1 { color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }.panel {- position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--panel);+ position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--panel-width, 500px), 100vw); background: var(--panel);border-left: 1px solid var(--border); box-shadow: var(--shadow);display: flex; flex-direction: column; transform: translateX(100%); transition: transform .18s ease-out;z-index: 10;@@ -287,7 +287,9 @@ html:not([data-hide~="waiting"]) .card.waiting:not(:hover) { opacity: .6; }font-size: inherit; color: inherit; cursor: pointer; field-sizing: content;}.panel .project-pick:hover, .panel .project-pick:focus-within { background: var(--active); color: var(--text); }-.panel .body { overflow-y: auto; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 20px; flex: 1; }+.panel-edge { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; cursor: col-resize; }+.panel-edge:hover { background: var(--active); }+.panel .body { overflow-y: auto; padding: 8px max(20px, calc(50% - 430px)) 24px; display: flex; flex-direction: column; gap: 20px; flex: 1; }/* The body scrolls instead; without this a long task squeezes the title and textareas to nothing. */.panel .body > * { flex-shrink: 0; }.panel .inline {@@ -480,7 +482,8 @@ label.setting { cursor: pointer; }.nav { flex-direction: row; overflow-x: auto; }.nav a { width: auto; }.nav .label { display: none; }- #new-project-toggle { display: none; }+ #new-project-toggle, .panel-edge, #p-wide { display: none; }+ .panel { width: 100vw; }.columns { grid-auto-columns: minmax(78vw, 1fr); padding: 0 12px 12px; }.settings-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }#settings-nav { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border); }@@ -527,11 +530,13 @@ label.setting { cursor: pointer; }</div><div class="panel" id="panel" aria-hidden="true">+ <div class="panel-edge" id="p-edge"></div><div class="top"><span class="key mono" id="p-key"></span><span id="p-project"></span><span class="spacer"></span><button class="ghost danger" id="p-delete" title="Delete task" aria-label="Delete task"><span class="icon" data-icon="trash"></span></button>+ <button class="ghost" id="p-wide" title="Full width" aria-label="Full width"><span class="icon" data-icon="expand"></span></button><button class="ghost" id="p-close" title="Close (Esc)" aria-label="Close"><span class="icon" data-icon="close"></span></button></div><div class="body">