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>
23 lines
520 B
TypeScript
23 lines
520 B
TypeScript
import { Chip } from '@mui/material'
|
|
|
|
interface Props {
|
|
confidence: number
|
|
size?: 'small' | 'medium'
|
|
}
|
|
|
|
function confidenceColor(c: number): string {
|
|
if (c >= 0.8) return '#1a7a4a'
|
|
if (c >= 0.6) return '#d97706'
|
|
return '#c0392b'
|
|
}
|
|
|
|
export function ConfidenceFieldBadge({ confidence, size = 'small' }: Props) {
|
|
return (
|
|
<Chip
|
|
label={`${Math.round(confidence * 100)}%`}
|
|
size={size}
|
|
sx={{ bgcolor: confidenceColor(confidence), color: 'white', fontWeight: 700, fontSize: 11 }}
|
|
/>
|
|
)
|
|
}
|