Skip to content

armgit / kanzo

Public Imported from GitHub
0

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.

Move the sidebar's fold button up beside search

emanuele-em13d678f02a00
diff --git a/README.md b/README.md
index 22863cd..51d3055 100644
--- a/README.md
+++ b/README.md
@@ -62,7 +62,7 @@ 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, the list icon shows the same tasks as rows to sort and group, `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. **Fold** at the bottom of the sidebar leaves only its icons. Drag a project there to reorder the list, for everyone on a shared board.
+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. The panel button beside search folds the sidebar to its icons. Drag a project there to reorder the list, for everyone on a shared board.
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.
diff --git a/src/app.js b/src/app.js
index c95f62e..01757d4 100644
--- a/src/app.js
+++ b/src/app.js
@@ -94,6 +94,7 @@ const ICONS = {
settings: '<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>',
send: '<path d="M12 19V5M5 12l7-7 7 7"/>',
info: '<circle cx="12" cy="12" r="9"/><path d="M12 16v-4M12 8h.01"/>',
+ sidebar: '<rect x="3" y="4" width="18" height="16" rx="4"/><path d="M9 4v16"/>',
news: '<path d="M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6-5.4-3-5.4 3 1.2-6-4.5-4.2 6.1-.7z"/>',
comment: '<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>',
share: '<circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.6 13.5 6.8 4M15.4 6.5l-6.8 4"/>',
diff --git a/src/index.html b/src/index.html
index 206b224..2c67793 100644
--- a/src/index.html
+++ b/src/index.html
@@ -511,7 +511,6 @@ html:not(.ready) aside { visibility: hidden; }
.rail .brand { font-size: 0; gap: 12px; flex-direction: column; padding: 4px 0 12px; }
.rail .brand .ghost { margin: 0; }
.rail .nav .name, .rail .nav .count, .rail .nav .item .more, .rail .nav .label { display: none; }
- .rail #rail .icon { transform: rotate(180deg); }
}
</style>
</head>
@@ -521,12 +520,12 @@ html:not(.ready) aside { visibility: hidden; }
<img src="/logo.png" alt="">
Kanzo
<button class="ghost" id="search-open" title="Search (/ or ⌘K)" aria-label="Search tasks"><span class="icon" data-icon="search"></span></button>
+ <button class="ghost" id="rail" title="Toggle the sidebar" aria-label="Toggle the sidebar"><span class="icon" data-icon="sidebar"></span></button>
</div>
<button class="ghost" id="new-project-toggle" title="New project"><span class="icon" data-icon="newProject"></span>New project</button>
<nav class="nav" id="nav"></nav>
<button class="ghost update" id="update" hidden><span class="icon" data-icon="update"></span><span id="update-label"></span></button>
<button class="ghost" id="install" title="Use the board as an app of its own" hidden><span class="icon" data-icon="update"></span>Install app</button>
- <button class="ghost" id="rail" title="Fold the sidebar" aria-label="Fold the sidebar"><span class="icon" data-icon="expand"></span>Fold</button>
<button class="ghost" id="settings" title="Settings" aria-haspopup="menu"><span class="icon" data-icon="settings"></span>Settings</button>
</aside>