Skip to content

Commit 4d63e71

Browse files
ithiria894claude
andcommitted
fix: tree view shows folder structure only, categories collapsed by default (v0.13.3)
Tree view now behaves like the old version: only shows scope names with yellow folder icons in a nested tree. Categories are hidden until user clicks to expand a specific scope. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d1a3bde commit 4d63e71

3 files changed

Lines changed: 9 additions & 7 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.2",
3+
"version": "0.13.3",
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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,24 +637,26 @@ function renderSidebarScope(scope, overrideChildHtml) {
637637
.join("");
638638

639639
const isDragMode = uiState._dragCollapsed;
640+
// Tree view: show folder structure only (children visible, categories hidden)
641+
const isTreeCollapsed = treeView && overrideChildHtml !== "";
640642
const hasNestedContent = Boolean(categoryRows || childHtml);
641643
const hasChildren = Boolean(childHtml);
642644
const isExpanded = hasNestedContent && (searchQuery ? true : uiState.expandedScopes.has(scope.id));
643-
// In drag mode: always show children (scope tree), hide categories
644-
const showBody = isDragMode ? hasChildren : (isExpanded && hasNestedContent);
645+
// In drag mode or tree view: always show children, hide categories
646+
const showBody = (isDragMode || isTreeCollapsed) ? hasChildren : (isExpanded && hasNestedContent);
645647
const icon = SCOPE_ICONS[scope.type] || "📂";
646648

647649
return `
648650
<div class="s-scope scope-block" data-scope-id="${esc(scope.id)}">
649651
<div class="s-scope-hdr${scope.id === selectedScopeId ? " active" : ""}" data-scope-id="${esc(scope.id)}">
650-
<span class="s-tog${hasNestedContent ? (isExpanded || isDragMode ? "" : " collapsed") : " empty"}">▾</span>
652+
<span class="s-tog${hasNestedContent ? (isExpanded || isDragMode || isTreeCollapsed ? "" : " collapsed") : " empty"}">▾</span>
651653
<span class="s-ico">${icon}</span>
652654
<span class="s-nm">${esc(scope.name)}</span>
653655
<span class="s-cnt">${getRecursiveScopeCount(scope.id)}</span>
654656
</div>
655657
${showBody ? `
656658
<div class="s-scope-body">
657-
${(!isDragMode && categoryRows) ? `<div>${categoryRows}</div>` : ""}
659+
${(!isDragMode && !isTreeCollapsed && categoryRows) ? `<div>${categoryRows}</div>` : ""}
658660
${childHtml ? `<div class="s-children">${childHtml}</div>` : ""}
659661
</div>` : (hasNestedContent && !showBody ? `
660662
<div class="s-scope-body collapsed">

0 commit comments

Comments
 (0)