From 1f8f866414fda14241a0075a54200c6c5834bd4e Mon Sep 17 00:00:00 2001 From: curo1305 Date: Fri, 17 Apr 2026 17:25:57 +0200 Subject: [PATCH] Split Apps sidebar item: label links to /apps, chevron toggles sub-nav Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/Sidebar.tsx | 61 ++++++++++++++++------------- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 7f0df97..5221ba8 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -1,5 +1,5 @@ import { useState, useEffect } from "react"; -import { NavLink, useLocation, useNavigate } from "react-router-dom"; +import { NavLink, useLocation } from "react-router-dom"; import { useQuery } from "@tanstack/react-query"; import { Home, @@ -24,7 +24,6 @@ export default function Sidebar() { const [sidebarExpanded, setSidebarExpanded] = useState(true); const { logout } = useAuth(); const location = useLocation(); - const navigate = useNavigate(); const { data: user } = useQuery({ queryKey: ["me"], queryFn: getMe }); const isAppsRoute = location.pathname.startsWith("/apps"); @@ -97,36 +96,44 @@ export default function Sidebar() { {/* Apps — expandable */}
- + +
+ ) : ( + navItemClass(isActive)} + > + + + )} {/* Apps sub-items — only when sidebar is expanded and appsOpen */} {sidebarExpanded && appsOpen && (