From 1d3b7a497bb16abdbcc79acf358e2b52b5dedcb6 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Sun, 19 Jul 2026 23:50:37 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Suchfeld=20H=C3=B6he=20reduziert,=20Robo?= =?UTF-8?q?ter-Symbol=20aus=20TopBar=20entfernt=20(nicht=20Sidebar!),=20Si?= =?UTF-8?q?debar-Eintrag=20wiederhergestellt,=20L=C3=B6sch-Buttons=20funkt?= =?UTF-8?q?ionsf=C3=A4hig=20mit=20State,=20Badge-Zahl=20dynamisch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/layout/Sidebar.tsx | 1 + frontend/src/components/layout/TopBar.tsx | 21 ++++++++++--------- .../src/components/shared/SearchDropdown.tsx | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 4cd91d6..2bf8eae 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -22,6 +22,7 @@ const navItems: NavItem[] = [ { to: '/calendar', labelKey: 'nav.calendar', icon: navIcon('M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z') }, { to: '/dms', labelKey: 'nav.files', icon: navIcon('M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z') }, { to: '/mail', labelKey: 'nav.email', icon: navIcon('M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z') }, + { to: '/ai-assistant', labelKey: 'nav.aiAssistant', icon: navIcon('M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z') }, { to: '/settings', labelKey: 'nav.settings', icon: navIcon('M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z') }, { to: '/audit-log', labelKey: 'nav.auditLog', icon: navIcon('M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z') }, ]; diff --git a/frontend/src/components/layout/TopBar.tsx b/frontend/src/components/layout/TopBar.tsx index 21317d8..7f8b4c9 100644 --- a/frontend/src/components/layout/TopBar.tsx +++ b/frontend/src/components/layout/TopBar.tsx @@ -20,6 +20,11 @@ export function TopBar() { const [userMenuOpen, setUserMenuOpen] = useState(false); const [notifOpen, setNotifOpen] = useState(false); + const [notifications, setNotifications] = useState([ + 'Neuer Kontakt hinzugefügt: Max Mustermann', + 'Firma aktualisiert: TechCorp GmbH', + 'Meeting um 14:00 Uhr mit Müller AG', + ]); const userRef = useRef(null); const notifRef = useRef(null); @@ -86,9 +91,6 @@ export function TopBar() {
- {/* AI Suggestions Badge */} - - {/* Notifications */}
{notifOpen && (
@@ -108,17 +110,16 @@ export function TopBar() {

{t('topbar.notifications')}

    - {[ - 'Neuer Kontakt hinzugefügt: Max Mustermann', - 'Firma aktualisiert: TechCorp GmbH', - 'Meeting um 14:00 Uhr mit Müller AG', - ].map((msg, i) => ( + {notifications.length === 0 && ( +
  • Keine Benachrichtigungen
  • + )} + {notifications.map((msg, i) => (
  • {msg}