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>
22 lines
763 B
TypeScript
22 lines
763 B
TypeScript
import { Chip } from '@mui/material'
|
|
import type { ReviewStatus } from '../../domain/enums'
|
|
|
|
const CONFIG: Record<ReviewStatus, { label: string; color: string }> = {
|
|
UNREVIEWED: { label: 'Ungeprüft', color: '#94a3b8' },
|
|
IN_REVIEW: { label: 'In Prüfung', color: '#d97706' },
|
|
APPROVED: { label: 'Genehmigt', color: '#1a7a4a' },
|
|
REJECTED: { label: 'Abgelehnt', color: '#c0392b' },
|
|
FLAGGED: { label: 'Markiert', color: '#ea580c' },
|
|
}
|
|
|
|
export function AIOutputStatusBadge({ status }: { status: ReviewStatus }) {
|
|
const { label, color } = CONFIG[status] ?? { label: status, color: '#64748b' }
|
|
return (
|
|
<Chip
|
|
size="small"
|
|
label={label}
|
|
sx={{ bgcolor: `${color}18`, color, fontWeight: 600, fontSize: '0.7rem' }}
|
|
/>
|
|
)
|
|
}
|