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%",
}}
>
-