From 483653f5fcafedc97beef6b8aa500478a12f49d1 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Mon, 23 Mar 2026 12:45:20 +0000 Subject: [PATCH] fix: remove unused props from FlowPilotSession after action bar removal canResolve, canEscalate, onResolve, onEscalate, onPause, onAbandon are now handled at the page level in FlowPilotSessionPage header. Remove from component interface to fix TS6133 build errors. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/flowpilot/FlowPilotSession.tsx | 14 -------------- frontend/src/pages/FlowPilotSessionPage.tsx | 9 --------- 2 files changed, 23 deletions(-) diff --git a/frontend/src/components/flowpilot/FlowPilotSession.tsx b/frontend/src/components/flowpilot/FlowPilotSession.tsx index 1369006d..0f19c5fc 100644 --- a/frontend/src/components/flowpilot/FlowPilotSession.tsx +++ b/frontend/src/components/flowpilot/FlowPilotSession.tsx @@ -4,8 +4,6 @@ import type { AISessionDetail, AISessionStepResponse, StepResponseRequest, - ResolveSessionRequest, - EscalateSessionRequest, SessionDocumentation, StatusUpdateAudience, StatusUpdateLength, @@ -29,18 +27,12 @@ interface FlowPilotSessionProps { allSteps: AISessionStepResponse[] currentStep: AISessionStepResponse | null isProcessing: boolean - canResolve: boolean - canEscalate: boolean documentation: SessionDocumentation | null psaPushStatus?: string | null psaPushError?: string | null memberMappingWarning?: string | null onRespond: (response: StepResponseRequest) => void - onResolve: (data: ResolveSessionRequest) => Promise - onEscalate: (data: EscalateSessionRequest) => Promise - onPause?: () => Promise onResume?: () => Promise - onAbandon?: () => Promise onRate: (rating: number) => void onReloadSession?: () => Promise onGenerateStatusUpdate?: (audience: StatusUpdateAudience, length: StatusUpdateLength, context: StatusUpdateContext) => Promise @@ -51,18 +43,12 @@ export function FlowPilotSession({ allSteps, currentStep, isProcessing, - canResolve, - canEscalate, documentation, psaPushStatus, psaPushError, memberMappingWarning, onRespond, - onResolve, - onEscalate, - onPause, onResume, - onAbandon, onRate, onReloadSession, onGenerateStatusUpdate, diff --git a/frontend/src/pages/FlowPilotSessionPage.tsx b/frontend/src/pages/FlowPilotSessionPage.tsx index 20fb30a7..a94c1c62 100644 --- a/frontend/src/pages/FlowPilotSessionPage.tsx +++ b/frontend/src/pages/FlowPilotSessionPage.tsx @@ -366,21 +366,12 @@ export default function FlowPilotSessionPage() { allSteps={fp.allSteps} currentStep={fp.currentStep} isProcessing={fp.isProcessing} - canResolve={fp.canResolve} - canEscalate={fp.canEscalate} documentation={fp.documentation} psaPushStatus={fp.psaPushStatus} psaPushError={fp.psaPushError} memberMappingWarning={fp.memberMappingWarning} onRespond={fp.respondToStep} - onResolve={fp.resolveSession} - onEscalate={fp.escalateSession} - onPause={fp.pauseSession} onResume={fp.resumeOwnSession} - onAbandon={async () => { - await fp.abandonSession() - navigate('/sessions') - }} onRate={fp.rateSession} onReloadSession={() => fp.loadSession(fp.session!.id)} onGenerateStatusUpdate={(audience, length, context) => fp.generateStatusUpdate({ audience, length, context })}