From c16f0e62ed9ae6d86fb2a00418975126a816c51a Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Fri, 3 Apr 2026 10:49:54 +0200 Subject: [PATCH] fix: clicking Applications header navigates back to all apps When the Applications section is already expanded, clicking the header now navigates to /{tab} (all applications) instead of collapsing. When collapsed, clicking expands as before. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/components/LayoutShell.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/src/components/LayoutShell.tsx b/ui/src/components/LayoutShell.tsx index d868ae86..c583917b 100644 --- a/ui/src/components/LayoutShell.tsx +++ b/ui/src/components/LayoutShell.tsx @@ -327,11 +327,14 @@ function LayoutContent() { navigate('/exchanges'); return; } - setAppsOpen((prev) => { - writeCollapsed(SK_APPS, !prev); - return !prev; - }); - }, [isAdminPage, navigate]); + if (appsOpen) { + // Already open — navigate to all applications + navigate(`/${scope.tab}`); + } else { + setAppsOpen(true); + writeCollapsed(SK_APPS, true); + } + }, [isAdminPage, appsOpen, navigate, scope.tab]); const toggleAdmin = useCallback(() => { if (!isAdminPage) {