chore: fix height of reconnect modal (#40399)

Fixes #40391

/ok-to-test tags="@tag.ImportExport"

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## 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.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/14703580804>
> Commit: 4a8429f0d8492c67e6e5c715b31d9140b91079da
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14703580804&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.ImportExport`
> Spec:
> <hr>Mon, 28 Apr 2025 08:58:04 UTC
<!-- end of auto-generated comment: Cypress test results  -->
This commit is contained in:
Pawan Kumar 2025-04-28 14:39:25 +05:30 committed by GitHub
parent 4941c3a87e
commit 6e715881a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<Props, State> {
showingTabsOnViewMode && "saas-form-resizer-content-show-tabs"
}`}
>
<DSEditorWrapper>
<DSEditorWrapper
isAiAgentFlowEnabled={this.props.isAiAgentFlowEnabled}
>
<DSDataFilter
filterId={this.state.filterParams.id}
isInsideReconnectModal={!!isInsideReconnectModal}
@ -852,6 +856,7 @@ const mapStateToProps = (state: AppState, props: any) => {
// 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,
};
};