From 8be868f0abe0cea44a7cd007b54d0bf0f24345c2 Mon Sep 17 00:00:00 2001 From: dotta Date: Wed, 18 Mar 2026 21:31:38 -0500 Subject: [PATCH] Collapse tasks folder by default on company export page The tasks directory is now excluded from auto-expanded top-level directories when the export page loads, keeping the tree cleaner. Co-Authored-By: Paperclip --- ui/src/pages/CompanyExport.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/pages/CompanyExport.tsx b/ui/src/pages/CompanyExport.tsx index 1abfb580..4909f6fd 100644 --- a/ui/src/pages/CompanyExport.tsx +++ b/ui/src/pages/CompanyExport.tsx @@ -587,11 +587,11 @@ export function CompanyExport() { if (!isTaskPath(filePath)) checked.add(filePath); } setCheckedFiles(checked); - // Expand top-level dirs + // Expand top-level dirs (except tasks — collapsed by default) const tree = buildFileTree(result.files); const topDirs = new Set(); for (const node of tree) { - if (node.kind === "dir") topDirs.add(node.path); + if (node.kind === "dir" && node.name !== "tasks") topDirs.add(node.path); } // If URL contains a deep-linked file path, select it and expand ancestors