feat: update react flow library and improve state management

This commit is contained in:
kasia.oczkowska
2025-03-21 15:07:28 +00:00
parent 245d127170
commit 50c3067db3
16 changed files with 323 additions and 558 deletions

View File

@@ -25,6 +25,8 @@ import useTestConnection from 'hooks/useTestConnection';
import useOAuthClients from 'hooks/useOAuthClients';
import useEnqueueSnackbar from 'hooks/useEnqueueSnackbar';
const useNewFlowEditor = process.env.REACT_APP_USE_NEW_FLOW_EDITOR === 'true';
const ADD_CONNECTION_VALUE = 'ADD_CONNECTION';
const ADD_SHARED_CONNECTION_VALUE = 'ADD_SHARED_CONNECTION';
@@ -240,7 +242,11 @@ function ChooseConnectionSubstep(props) {
title={name}
valid={isTestConnectionPending ? null : stepConnection?.verified}
/>
<Collapse in={expanded} timeout="auto" unmountOnExit>
<Collapse
in={expanded}
timeout={useNewFlowEditor ? 0 : 'auto'}
unmountOnExit
>
<ListItem
sx={{
pt: 2,