feat(ui): remove KI/Automation from agents sidebar, add automation to start page, remove from topbar
This commit is contained in:
@@ -170,14 +170,6 @@ export function TopBar() {
|
|||||||
{t('topbar.settings')}
|
{t('topbar.settings')}
|
||||||
</button>
|
</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') && (
|
{canAccess('audit:read') && (
|
||||||
<button
|
<button
|
||||||
onClick={() => { setUserMenuOpen(false); navigate('/audit-log'); }}
|
onClick={() => { setUserMenuOpen(false); navigate('/audit-log'); }}
|
||||||
|
|||||||
@@ -20,23 +20,6 @@ const AGENT_TREE: AgentNode[] = [
|
|||||||
{ title: 'Versionen', path: '/agents/versions' },
|
{ 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 }) {
|
function TreeItem({ node, depth }: { node: AgentNode; depth: number }) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { useNavigate } from 'react-router-dom';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useAuthStore } from '@/store/authStore';
|
import { useAuthStore } from '@/store/authStore';
|
||||||
import { useUIStore } from '@/store/uiStore';
|
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
|
// Workspace tile definition
|
||||||
interface WorkspaceTile {
|
interface WorkspaceTile {
|
||||||
@@ -41,6 +41,7 @@ export function StartPage() {
|
|||||||
{ id: 'workspaces', label: 'Workspaces', icon: <LayoutGrid className="w-4 h-4" />, active: true },
|
{ 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: '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: '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') },
|
{ id: 'help', label: 'Hilfe', icon: <HelpCircle className="w-4 h-4" />, onClick: () => navigate('/help/welcome') },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user