diff --git a/frontend/src/components/pilot/EscalateInterceptDialog.tsx b/frontend/src/components/pilot/EscalateInterceptDialog.tsx index 4163c407..bb9b9f34 100644 --- a/frontend/src/components/pilot/EscalateInterceptDialog.tsx +++ b/frontend/src/components/pilot/EscalateInterceptDialog.tsx @@ -8,14 +8,16 @@ * Visual reference: docs/FlowAssist_Migration/mockups/07-verify-states.html * (panel C). */ +import { useState } from 'react' import { X, AlertCircle, Check, Info } from 'lucide-react' +import { cn } from '@/lib/utils' import type { FixOutcome } from '@/api/sessionSuggestedFixes' export type InterceptChoice = FixOutcome | 'never_applied' export interface EscalateInterceptDialogProps { fixTitle: string - onChoose: (choice: InterceptChoice) => void + onChoose: (choice: InterceptChoice, notes?: string) => void onClose: () => void } @@ -24,6 +26,11 @@ export function EscalateInterceptDialog({ onChoose, onClose, }: EscalateInterceptDialogProps) { + const [partialStep, setPartialStep] = useState(false) + const [partialNotes, setPartialNotes] = useState('') + + const notesValid = partialNotes.trim().length > 0 + return ( <>
-
- Before escalating — what happened with the fix? -
-
- “{fixTitle}” is still in the Verifying state. Tag its outcome so - the senior picking this up knows what's been tried. -
-
- - - - -
+ {!partialStep ? ( + <> +
+ Before escalating — what happened with the fix? +
+
+ “{fixTitle}” is still in the Verifying state. Tag its outcome so + the senior picking this up knows what's been tried. +
+
+ + + + +
+ + ) : ( + <> +
+ What partially worked? +
+
+ A short note for whoever picks this up — what you tried, what worked, what's still broken. +
+