From 4b8282ececd1498151cb43df1956b379247d9cf7 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Fri, 27 Mar 2026 16:05:08 +0000 Subject: [PATCH] fix: suppress remaining lint errors in FlowPilotSession and AnalyticsPage - eslint-disable for unused _ticket param (needed for onSelect type compat) - eslint-disable for setState in lazy-load useEffect Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/components/flowpilot/FlowPilotSession.tsx | 1 + frontend/src/pages/FlowPilotAnalyticsPage.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/components/flowpilot/FlowPilotSession.tsx b/frontend/src/components/flowpilot/FlowPilotSession.tsx index 7ea882d4..190fd9cf 100644 --- a/frontend/src/components/flowpilot/FlowPilotSession.tsx +++ b/frontend/src/components/flowpilot/FlowPilotSession.tsx @@ -88,6 +88,7 @@ export function FlowPilotSession({ prevBranchIdRef.current = activeBranchId }, [activeBranchId, branches]) + // eslint-disable-next-line @typescript-eslint/no-unused-vars const handleLinkTicket = async (ticketId: string, _ticket?: PSATicketInfo) => { if (!session.psa_connection_id && !session.ticket_data) { // Need a connection ID — try to get it from the integrations API diff --git a/frontend/src/pages/FlowPilotAnalyticsPage.tsx b/frontend/src/pages/FlowPilotAnalyticsPage.tsx index cfd1dfec..c0d941eb 100644 --- a/frontend/src/pages/FlowPilotAnalyticsPage.tsx +++ b/frontend/src/pages/FlowPilotAnalyticsPage.tsx @@ -97,6 +97,7 @@ export default function FlowPilotAnalyticsPage() { }, [period]) // Lazy-load tab data on tab switch or period change + // eslint-disable-next-line react-hooks/set-state-in-effect -- fetches data on tab/period change useEffect(() => { if (activeTab === 'coverage' && coveragePeriodRef.current !== period) { setCoverageLoading(true)