feat(ui): remove KI/Automation from agents sidebar, add automation to start page, remove from topbar

This commit is contained in:
Agent Zero
2026-08-17 12:03:41 +02:00
parent 7c6f33983d
commit 93a53a43f6
3 changed files with 2 additions and 26 deletions
@@ -170,14 +170,6 @@ export function TopBar() {
{t('topbar.settings')}
</button>
)}
<button
onClick={() => { setUserMenuOpen(false); navigate('/automation'); }}
className="w-full text-left px-3 py-2 text-sm hover:bg-secondary-50 min-h-touch focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 flex items-center gap-2"
role="menuitem"
>
<Zap className="w-4 h-4" aria-hidden="true" strokeWidth={2} />
{t('nav.automation', 'Automation')}
</button>
{canAccess('audit:read') && (
<button
onClick={() => { setUserMenuOpen(false); navigate('/audit-log'); }}
-17
View File
@@ -20,23 +20,6 @@ const AGENT_TREE: AgentNode[] = [
{ title: 'Versionen', path: '/agents/versions' },
],
},
{
title: 'Automation',
icon: <Zap className="w-4 h-4" />,
children: [
{ title: 'Übersicht', path: '/agents/automation' },
{ title: 'Einstellungen', path: '/agents/automation-settings' },
],
},
{
title: 'KI',
icon: <Brain className="w-4 h-4" />,
children: [
{ title: 'Assistent', path: '/agents/ai-assistant' },
{ title: 'Einstellungen', path: '/agents/ai-settings' },
{ title: 'Proactive AI', path: '/agents/ai-proactive' },
],
},
];
function TreeItem({ node, depth }: { node: AgentNode; depth: number }) {
+2 -1
View File
@@ -8,7 +8,7 @@ import { useNavigate } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { useAuthStore } from '@/store/authStore';
import { useUIStore } from '@/store/uiStore';
import { Settings, HelpCircle, LayoutGrid, ArrowRight, Plus, Bot } from 'lucide-react';
import { Settings, HelpCircle, LayoutGrid, ArrowRight, Plus, Bot, Zap } from 'lucide-react';
// Workspace tile definition
interface WorkspaceTile {
@@ -41,6 +41,7 @@ export function StartPage() {
{ id: 'workspaces', label: 'Workspaces', icon: <LayoutGrid className="w-4 h-4" />, active: true },
{ id: 'settings', label: 'Einstellungen', icon: <Settings className="w-4 h-4" />, onClick: () => navigate('/settings') },
{ id: 'agents', label: 'Agenten', icon: <Bot className="w-4 h-4" />, onClick: () => navigate('/agents/overview') },
{ id: 'automation', label: 'Automation', icon: <Zap className="w-4 h-4" />, onClick: () => navigate('/agents/automation') },
{ id: 'help', label: 'Hilfe', icon: <HelpCircle className="w-4 h-4" />, onClick: () => navigate('/help/welcome') },
];