import { Activity, AlertTriangle, ArrowRight, CheckCircle, Clock, Scale, Shield, } from 'lucide-react'; import { Link } from 'wouter'; const BG = { surface: 'var(--gi-bg-surface)', elevated: 'var(--gi-bg-raised)' }; const BORDER = { subtle: 'rgba(255,255,255,0.04)', muted: 'rgba(255,255,255,0.07)' }; const TEXT = { primary: 'rgba(255,255,255,0.88)', secondary: 'rgba(255,255,255,0.55)', tertiary: 'rgba(255,255,255,0.28)', muted: 'rgba(255,255,255,0.14)', }; const ACCENT = '#d4a054'; const DEMO_STATS = { decisionsThisWeek: 23, approved: 18, pending: 3, escalated: 2, avgConfidence: 81, avgAccuracy: 89, totalProtected: '$14.2M', }; const RECENT_DECISIONS = [ { id: 'REC-0421', title: 'Vessel reroute — M/V Meridian', outcome: 'achieved' as const, pack: 'SEXTANT', color: '#38bdf8', impact: '$2.1M protected', }, { id: 'REC-0419', title: 'Contract renewal acceleration', outcome: 'achieved' as const, pack: 'PRAXIS', color: '#d4a054', impact: '$890K secured', }, { id: 'REC-0418', title: 'Security posture remediation', outcome: 'achieved' as const, pack: 'PARAGON', color: '#4f6ef7', impact: '94% → 97% score', }, ]; const OUTCOME_CFG = { achieved: { color: '#6b8f71', icon: CheckCircle }, pending: { color: '#c8953c', icon: Clock }, missed: { color: '#c45a4a', icon: AlertTriangle }, }; export function GovernedDecisionSummary() { return (
Governed Decision Loop
Full View
{[ { label: 'Decisions', value: DEMO_STATS.decisionsThisWeek, color: ACCENT, icon: Activity, }, { label: 'Approved', value: DEMO_STATS.approved, color: '#6b8f71', icon: CheckCircle }, { label: 'Pending', value: DEMO_STATS.pending, color: '#c8953c', icon: Clock }, { label: 'Protected', value: DEMO_STATS.totalProtected, color: '#8b7ac8', icon: Shield, }, ].map((s) => { const Icon = s.icon; return (
{s.value}
{s.label}
); })}
Avg Confidence
{DEMO_STATS.avgConfidence}%
Prediction Accuracy
{DEMO_STATS.avgAccuracy}%
Recent Outcomes
{RECENT_DECISIONS.map((d) => { const cfg = OUTCOME_CFG[d.outcome]; const Icon = cfg.icon; return (
{d.pack} {d.title} {d.impact}
); })}
); }