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>
32 lines
955 B
TypeScript
32 lines
955 B
TypeScript
import { Box, Button, Typography } from '@mui/material'
|
|
import { AlertTriangle, RotateCcw } from 'lucide-react'
|
|
|
|
interface Props {
|
|
message: string
|
|
onRetry: () => void
|
|
}
|
|
|
|
export function NeedBuilderErrorState({ message, onRetry }: Props) {
|
|
return (
|
|
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center', py: 12, gap: 3, maxWidth: 480, mx: 'auto' }}>
|
|
<AlertTriangle size={48} color="#c0392b" />
|
|
<Box sx={{ textAlign: 'center' }}>
|
|
<Typography variant="h6" sx={{ fontWeight: 600, mb: 1 }}>
|
|
Analyse fehlgeschlagen
|
|
</Typography>
|
|
<Typography variant="body2" color="text.secondary">
|
|
{message}
|
|
</Typography>
|
|
</Box>
|
|
<Button
|
|
variant="contained"
|
|
startIcon={<RotateCcw size={16} />}
|
|
onClick={onRetry}
|
|
sx={{ bgcolor: '#1e3a5f', '&:hover': { bgcolor: '#162d4a' } }}
|
|
>
|
|
Erneut versuchen
|
|
</Button>
|
|
</Box>
|
|
)
|
|
}
|