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
Turn the Human only switch into an icon next to New task, toggled with h
emanuele-em484a6f78311a
diff --git a/src/app.js b/src/app.jsindex d5be1cd..c5587c2 100644--- a/src/app.js+++ b/src/app.js@@ -473,8 +473,8 @@ function renderHeader() {const { projects, tasks } = state.board;const header = $("#header");$("#new-task").hidden = !projects.length;- $("#human-filter").hidden = !projects.length;- $("#human-only").checked = isHumanOnly();+ $("#human-only").hidden = !projects.length;+ $("#human-only").setAttribute("aria-pressed", String(isHumanOnly()));if (!projects.length) { header.replaceChildren(); return; }// Plain words for what each piece is: how much is open, and the repos on GitHub.const open = (n) => `${n} open task${n === 1 ? "" : "s"}`;@@ -726,7 +726,7 @@ function hideNewProject() {}$("#new-task").addEventListener("click", newTask);-$("#human-only").addEventListener("change", (e) => setHumanOnly(e.target.checked));+$("#human-only").addEventListener("click", () => setHumanOnly(!isHumanOnly()));$("#new-project-toggle").addEventListener("click", showNewProject);$("#new-project-cancel").addEventListener("click", hideNewProject);$("#project-dialog").addEventListener("mousedown", (e) => { if (e.target.id === "project-dialog") hideNewProject(); });@@ -1123,6 +1123,9 @@ document.addEventListener("keydown", (e) => {if (e.key === "n" && !typing && !e.metaKey && !e.ctrlKey) {if (!$("#new-task").hidden) { e.preventDefault(); newTask(); }}+ if (e.key === "h" && !typing && !e.metaKey && !e.ctrlKey) {+ if (!$("#human-only").hidden) { e.preventDefault(); setHumanOnly(!isHumanOnly()); }+ }});window.addEventListener("hashchange", () => {diff --git a/src/index.html b/src/index.htmlindex 7cdc271..42f181c 100644--- a/src/index.html+++ b/src/index.html@@ -143,9 +143,14 @@ header .repo-link:hover, header .repo-link:focus-visible { background: var(--actheader .repo-link .icon svg { width: 14px; height: 14px; }#new-task { display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; }#new-task .icon svg { width: 16px; height: 16px; }-/* Show only human tasks: a switch, as in Settings. */-#human-filter { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }-#human-filter .icon svg { width: 16px; height: 16px; }+/* Show only human tasks: a small icon, coloured while the filter is on. */+#human-only { width: auto; padding: 6px; color: var(--muted); }+#human-only:hover, #human-only:focus-visible { color: var(--text); }+#human-only[aria-pressed="true"] { background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); }+#human-only[aria-pressed="true"]:hover, #human-only[aria-pressed="true"]:focus-visible {+ background: color-mix(in srgb, var(--link) 22%, transparent);+}+#human-only .icon svg { width: 16px; height: 16px; }.columns {flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);gap: 12px; padding: 0 24px 24px; overflow-x: auto;@@ -412,10 +417,7 @@ label.setting { cursor: pointer; }<main><header><div class="info" id="header"></div>- <label id="human-filter" title="Show only human tasks" hidden>- <span class="icon" data-icon="human"></span>Human only- <span class="switch"><input type="checkbox" id="human-only" aria-label="Show only human tasks"><span></span></span>- </label>+ <button class="ghost" id="human-only" title="Show only human tasks (h)" aria-label="Show only human tasks" aria-pressed="false" hidden><span class="icon" data-icon="human"></span></button><button class="btn primary" id="new-task" title="New task (n)" hidden><span class="icon" data-icon="plus"></span>New task</button></header><div class="columns" id="columns"></div>