From ac0c70ebfe6f4f24b49677f8e32965ed1f2d9f90 Mon Sep 17 00:00:00 2001 From: Rohit Rajan Date: Thu, 20 Nov 2025 19:18:11 +0530 Subject: [PATCH] feat: disable sheets and airtable scrape robot --- src/components/robot/RecordingsTable.tsx | 22 ++----- .../robot/pages/RobotIntegrationPage.tsx | 59 ++++++++++++++----- 2 files changed, 50 insertions(+), 31 deletions(-) diff --git a/src/components/robot/RecordingsTable.tsx b/src/components/robot/RecordingsTable.tsx index 79319b92..aed9ea74 100644 --- a/src/components/robot/RecordingsTable.tsx +++ b/src/components/robot/RecordingsTable.tsx @@ -110,10 +110,7 @@ const TableRowMemoized = memo(({ row, columns, handlers }: any) => { case 'integrate': return ( - handlers.handleIntegrateRecording(row.id, row.name, row.params || [])} - robotType={row.type} - /> + handlers.handleIntegrateRecording(row.id, row.name, row.params || [])} /> ); case 'options': @@ -713,22 +710,13 @@ const ScheduleButton = ({ handleSchedule }: ScheduleButtonProps) => { interface IntegrateButtonProps { handleIntegrate: () => void; - robotType: string; } -const IntegrateButton = ({ handleIntegrate, robotType }: IntegrateButtonProps) => { - const isDisabled = robotType === 'scrape'; - +const IntegrateButton = ({ handleIntegrate }: IntegrateButtonProps) => { return ( - { + handleIntegrate(); + }} > diff --git a/src/components/robot/pages/RobotIntegrationPage.tsx b/src/components/robot/pages/RobotIntegrationPage.tsx index 3c842590..9bedf3a5 100644 --- a/src/components/robot/pages/RobotIntegrationPage.tsx +++ b/src/components/robot/pages/RobotIntegrationPage.tsx @@ -128,6 +128,8 @@ export const RobotIntegrationPage = ({ "googleSheets" | "airtable" | "webhook" | null >(integrationType); + const isScrapeRobot = recording?.recording_meta?.type === "scrape"; + const authenticateWithGoogle = () => { if (!recordingId) { console.error("Cannot authenticate: recordingId is null"); @@ -729,26 +731,55 @@ export const RobotIntegrationPage = ({ width: "100%", }} > - - +