From 7405f712d3e181d335ebc3548e859923cc501ea3 Mon Sep 17 00:00:00 2001 From: Ruud Andriessen Date: Tue, 10 Mar 2026 22:24:38 +0100 Subject: [PATCH] fix(sidebar): hide empty task sections --- src/components/layout/task-list.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/layout/task-list.tsx b/src/components/layout/task-list.tsx index 18237c4..1e2628f 100644 --- a/src/components/layout/task-list.tsx +++ b/src/components/layout/task-list.tsx @@ -62,6 +62,9 @@ export function TaskList() { const projectsById = new Map(projects.map((project) => [project.id, project])); const groupedTasks = buildTaskSidebarGroups({ tasks, projects, pullRequests }); + const visibleGroups = isSidebarLoading + ? TASK_SIDEBAR_GROUPS + : TASK_SIDEBAR_GROUPS.filter((group) => groupedTasks[group.key].length > 0); function handleDeleteDialogOpenChange(open: boolean) { if (deletingTask) { @@ -117,7 +120,7 @@ export function TaskList() {