feat: rm display integrations scrape robot

This commit is contained in:
Rohit Rajan
2025-11-20 20:38:03 +05:30
parent b2b5a914e7
commit 467ffe39fa

View File

@@ -731,54 +731,60 @@ export const RobotIntegrationPage = ({
width: "100%", width: "100%",
}} }}
> >
<Button {!isScrapeRobot && (
variant="outlined" <Button
disabled={isScrapeRobot} variant="outlined"
onClick={() => { onClick={() => {
if (isScrapeRobot) return; if (!recordingId) return;
if (!recordingId) return; setSelectedIntegrationType("googleSheets");
setSelectedIntegrationType("googleSheets"); setSettings({ ...settings, integrationType: "googleSheets" });
setSettings({ ...settings, integrationType: "googleSheets" }); const basePath = robotPath === "prebuilt-robots" ? "/prebuilt-robots" : "/robots";
const basePath = robotPath === "prebuilt-robots" ? "/prebuilt-robots" : "/robots"; navigate(`${basePath}/${recordingId}/integrate/googleSheets`);
navigate(`${basePath}/${recordingId}/integrate/googleSheets`); }}
}} style={{
style={{ display: "flex",
display: "flex", flexDirection: "column",
flexDirection: "column", alignItems: "center",
alignItems: "center", background: "white",
background: 'white', color: "#ff00c3",
color: isScrapeRobot ? "#aaa" : "#ff00c3", }}
opacity: isScrapeRobot ? 0.5 : 1, >
cursor: isScrapeRobot ? "not-allowed" : "pointer", <img
}} src="https://ik.imagekit.io/ys1blv5kv/gsheet.svg"
> alt="Google Sheets"
<img src="https://ik.imagekit.io/ys1blv5kv/gsheet.svg" alt="Google Sheets" style={{ margin: "6px" }} /> style={{ margin: "6px" }}
Google Sheets />
</Button> Google Sheets
<Button </Button>
variant="outlined" )}
disabled={isScrapeRobot}
onClick={() => { {!isScrapeRobot && (
if (isScrapeRobot) return; <Button
if (!recordingId) return; variant="outlined"
setSelectedIntegrationType("airtable"); onClick={() => {
setSettings({ ...settings, integrationType: "airtable" }); if (!recordingId) return;
const basePath = robotPath === "prebuilt-robots" ? "/prebuilt-robots" : "/robots"; setSelectedIntegrationType("airtable");
navigate(`${basePath}/${recordingId}/integrate/airtable`); setSettings({ ...settings, integrationType: "airtable" });
}} const basePath = robotPath === "prebuilt-robots" ? "/prebuilt-robots" : "/robots";
style={{ navigate(`${basePath}/${recordingId}/integrate/airtable`);
display: "flex", }}
flexDirection: "column", style={{
alignItems: "center", display: "flex",
background: 'white', flexDirection: "column",
color: isScrapeRobot ? "#aaa" : "#ff00c3", alignItems: "center",
opacity: isScrapeRobot ? 0.5 : 1, background: "white",
cursor: isScrapeRobot ? "not-allowed" : "pointer", color: "#ff00c3",
}} }}
> >
<img src="https://ik.imagekit.io/ys1blv5kv/airtable.svg" alt="Airtable" style={{ margin: "6px" }} /> <img
Airtable src="https://ik.imagekit.io/ys1blv5kv/airtable.svg"
</Button> alt="Airtable"
style={{ margin: "6px" }}
/>
Airtable
</Button>
)}
<Button variant="outlined" onClick={() => { <Button variant="outlined" onClick={() => {
if (!recordingId) return; if (!recordingId) return;