Skip to content

Commit fb35636

Browse files
ithiria894claude
andcommitted
fix: tree toggle back to header, flat view fully flat, toggle icon swaps (v0.13.1)
- Tree toggle button moved back to sidebar header (🌲/☰ icon swap) - Flat view: all scopes completely flat including Global (no nesting at all) - Tree view: restores filesystem hierarchy grouping - Remove "inherits from Global" — already done, cleaned up inline toggle code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c8234f4 commit fb35636

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcpware/claude-code-organizer",
3-
"version": "0.13.0",
3+
"version": "0.13.1",
44
"description": "Organize all your Claude Code memories, skills, MCP servers, commands, agents, rules, and hooks — see what loads globally vs per-project, then move items between scopes",
55
"type": "module",
66
"files": [

src/ui/app.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,9 @@ function setupCollapseAll() {
466466
if (treeBtn) {
467467
treeBtn.addEventListener("click", () => {
468468
treeView = !treeView;
469+
treeBtn.textContent = treeView ? "☰" : "🌲";
470+
treeBtn.title = treeView ? "Switch to flat view" : "Switch to tree view (filesystem structure)";
469471
treeBtn.classList.toggle("active", treeView);
470-
treeBtn.title = treeView ? "Switch to flat view" : "Switch to tree view (shows filesystem structure)";
471472
renderSidebar();
472473
});
473474
}
@@ -569,7 +570,9 @@ function renderSidebar() {
569570
// This reflects filesystem structure only — not a universal scope inheritance model
570571
tree.innerHTML = rootScopes.map((scope) => renderSidebarScopeTree(scope)).join("");
571572
} else {
572-
tree.innerHTML = rootScopes.map((scope) => renderSidebarScope(scope)).join("");
573+
// Flat mode: all scopes at the same level, no nesting at all
574+
const allScopes = (data?.scopes || []).filter(s => scopeVisibleInSidebar(s));
575+
tree.innerHTML = allScopes.map((scope) => renderSidebarScope(scope, "")).join("");
573576
}
574577
}
575578

src/ui/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,9 @@ body {
955955
.ib-conflict::before { background: oklch(0.65 0.15 55); }
956956
.ib-ancestor { color: oklch(0.58 0.14 160); }
957957
.ib-ancestor::before { background: oklch(0.58 0.14 160); }
958+
.s-tree-toggle { cursor: pointer; font-size: 0.7rem; opacity: 0.5; margin-left: auto; padding: 0 4px; }
959+
.s-tree-toggle:hover { opacity: 1; }
960+
.s-tree-toggle.active { opacity: 1; }
958961
.d-effective-wrap { padding: 0 0 8px; }
959962
.d-effective { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; padding: 4px 0; }
960963
.theme-btn.active { background: var(--accent-light); color: var(--accent-text); border-color: var(--accent); }

0 commit comments

Comments
 (0)