From ed72ba126008a5e221decdc3592fd1660fcb0a72 Mon Sep 17 00:00:00 2001 From: Rob Date: Mon, 1 Sep 2025 19:38:10 +0100 Subject: [PATCH] project empty state --- .../editor-ui/src/composables/useSidebarItems.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/frontend/editor-ui/src/composables/useSidebarItems.ts b/packages/frontend/editor-ui/src/composables/useSidebarItems.ts index 4d077efe52c..9fc45346aca 100644 --- a/packages/frontend/editor-ui/src/composables/useSidebarItems.ts +++ b/packages/frontend/editor-ui/src/composables/useSidebarItems.ts @@ -131,6 +131,11 @@ export function useSidebarItems() { }), ); + const personalChildrenItems = computed(() => { + if (!projectsStore.personalProject) return []; + return convertToTreeStructure(projectsStore.personalProject.id); + }); + const topItems = computed(() => { return [ { @@ -146,7 +151,10 @@ export function useSidebarItems() { label: 'Personal', icon: 'user', route: { to: `/projects/${projectsStore.personalProject?.id}/workflows` }, - children: convertToTreeStructure(projectsStore.personalProject?.id as string), + children: + personalChildrenItems.value.length > 0 + ? personalChildrenItems.value + : [{ id: 'empty', label: 'No workflows or folders', type: 'empty', available: false }], type: 'project', available: true, },