d15a13e485
- Delete all ops page components (ReviewQueue, AIMonitoring, Governance, SourceMonitoring, ActivityTimeline, SignalPipeline) - Remove OPERATIONS workspace from AppShell config, nav order, path detection - Remove all /ops/* routes from App.tsx - Remove WorkspaceType.OPERATIONS from allowedWorkspaces in authService, sessionStore, permissions - Keep MarketIntelligence page (already moved to /supply/market-intelligence) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
894 B
TypeScript
36 lines
894 B
TypeScript
import { Box, IconButton, Tooltip } from '@mui/material'
|
|
import { Sparkles } from 'lucide-react'
|
|
import { useAssistantStore } from '../../stores/assistantStore'
|
|
|
|
export function GlobalAIAssistantButton() {
|
|
const { isOpen, open } = useAssistantStore()
|
|
|
|
return (
|
|
<Tooltip title="AI Assistent öffnen" placement="left">
|
|
<Box
|
|
sx={{
|
|
position: 'fixed',
|
|
bottom: 24,
|
|
right: 24,
|
|
zIndex: 1250,
|
|
display: isOpen ? 'none' : 'flex',
|
|
}}
|
|
>
|
|
<IconButton
|
|
onClick={open}
|
|
sx={{
|
|
width: 48,
|
|
height: 48,
|
|
bgcolor: '#4f46e5',
|
|
color: 'white',
|
|
boxShadow: '0 4px 16px rgba(79,70,229,0.4)',
|
|
'&:hover': { bgcolor: '#4338ca' },
|
|
}}
|
|
>
|
|
<Sparkles size={20} />
|
|
</IconButton>
|
|
</Box>
|
|
</Tooltip>
|
|
)
|
|
}
|