diff --git a/frontend/src/components/pilot/EscalateInterceptDialog.tsx b/frontend/src/components/pilot/EscalateInterceptDialog.tsx new file mode 100644 index 00000000..d97654e5 --- /dev/null +++ b/frontend/src/components/pilot/EscalateInterceptDialog.tsx @@ -0,0 +1,76 @@ +/** + * EscalateInterceptDialog — popover anchored above the Escalate button. + * + * Fires when the engineer clicks Escalate while a fix is in Verifying or + * Partial state. Captures the fix outcome before the escalation so the + * handoff narrative is honest for whoever picks up the ticket. + * + * Visual reference: docs/FlowAssist_Migration/mockups/07-verify-states.html + * (panel C). + */ +import { X, AlertCircle, Check } from 'lucide-react' +import type { FixOutcome } from '@/api/sessionSuggestedFixes' + +export type InterceptChoice = FixOutcome | 'never_applied' + +export interface EscalateInterceptDialogProps { + fixTitle: string + onChoose: (choice: InterceptChoice) => void + onClose: () => void +} + +export function EscalateInterceptDialog({ + fixTitle, + onChoose, + onClose, +}: EscalateInterceptDialogProps) { + return ( + <> +
+