From c3cc19da10140776196e9c3ff89c122ebd862759 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Mon, 17 Aug 2026 12:24:04 +0200 Subject: [PATCH] feat(ui): move back arrow from topbar to sidebar header on all pages --- frontend/src/components/layout/Sidebar.tsx | 15 ++++++++++++--- frontend/src/components/layout/TopBar.tsx | 12 +----------- frontend/src/pages/Agents.tsx | 14 ++++++++++++-- frontend/src/pages/Automation.tsx | 14 ++++++++++++-- frontend/src/pages/Help.tsx | 14 ++++++++++++-- frontend/src/pages/Settings.tsx | 14 ++++++++++++-- frontend/src/pages/StartPage.tsx | 12 ++++++++++-- 7 files changed, 71 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 3a88188..91b1aa2 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -1,9 +1,9 @@ import React, { useState, useEffect, useMemo } from 'react'; import clsx from 'clsx'; -import { NavLink, useLocation } from 'react-router-dom'; +import { NavLink, useLocation, useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { useUIStore } from '@/store/uiStore'; -import { ChevronRight, FileText, Home, Settings, Users } from 'lucide-react'; +import { ChevronRight, FileText, Home, Settings, Users, ArrowLeft } from 'lucide-react'; import { usePluginStore } from '@/store/pluginStore'; // Curated icon map — avoids `import * as LucideIcons` which loads ALL icons and causes OOM in tests import { @@ -58,6 +58,7 @@ const singleItems: NavSingleItem[] = [ const bottomItems: NavSingleItem[] = []; export function Sidebar() { + const navigate = useNavigate(); const { t } = useTranslation(); const { sidebarOpen, setSidebarOpen } = useUIStore(); const location = useLocation(); @@ -178,7 +179,15 @@ export function Sidebar() { aria-label="Seitenleiste Navigation" data-testid="sidebar" > -
+
+ leocrm