From 6e715881a83969a0336c932e4f07b734a0cadd65 Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Mon, 28 Apr 2025 14:39:25 +0530 Subject: [PATCH] chore: fix height of reconnect modal (#40399) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #40391 /ok-to-test tags="@tag.ImportExport" ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Added support for an AI agent flow option in the SaaS datasource editor, enabling the editor to reflect the AI agent flow state in its interface. > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 4a8429f0d8492c67e6e5c715b31d9140b91079da > Cypress dashboard. > Tags: `@tag.ImportExport` > Spec: >
Mon, 28 Apr 2025 08:58:04 UTC --- app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx b/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx index 575595a8fd..8edb1403b5 100644 --- a/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx +++ b/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx @@ -94,6 +94,7 @@ import { FEATURE_FLAG } from "ee/entities/FeatureFlag"; import DatasourceTabs from "../DatasourceInfo/DatasorceTabs"; import { getCurrentApplicationIdForCreateNewApp } from "ee/selectors/applicationSelectors"; import { convertToPageIdSelector } from "selectors/pageListSelectors"; +import { getIsAiAgentFlowEnabled } from "ee/selectors/aiAgentSelectors"; const ViewModeContainer = styled.div` display: flex; @@ -188,6 +189,7 @@ interface SaasEditorWrappperProps { datasourceId: string; pageId: string; pluginPackageName: string; + isAiAgentFlowEnabled?: boolean; } interface RouteProps { datasourceId: string; @@ -643,7 +645,9 @@ class DatasourceSaaSEditor extends JSONtoForm { showingTabsOnViewMode && "saas-form-resizer-content-show-tabs" }`} > - + { // should plugin be able to preview data const isPluginAllowedToPreviewData = !!plugin && isEnabledForPreviewData(datasource as Datasource, plugin); + const isAiAgentFlowEnabled = getIsAiAgentFlowEnabled(state); return { datasource, @@ -890,6 +895,7 @@ const mapStateToProps = (state: AppState, props: any) => { isPluginAuthFailed, featureFlags: selectFeatureFlags(state), isPluginAllowedToPreviewData, + isAiAgentFlowEnabled, }; };