diff --git a/ui/src/components/ContentMapper/index.tsx b/ui/src/components/ContentMapper/index.tsx index 94579ce6b..035a469ac 100644 --- a/ui/src/components/ContentMapper/index.tsx +++ b/ui/src/components/ContentMapper/index.tsx @@ -1974,7 +1974,7 @@ const ContentMapper = forwardRef((props, ref: React.ForwardedRef -
+
@@ -118,7 +66,7 @@ const MigrationFlowHeader = ({projectData, handleOnClick, isLoading, isCompleted aria-label='Save and Continue' isLoading={isLoading} > - {params?.stepId === '3' || params?.stepId === '4' ? 'Continue' : params?.stepId === '5' ? 'Start' : 'Save and Continue'} + {stepValue}
) diff --git a/ui/src/components/TestMigration/index.tsx b/ui/src/components/TestMigration/index.tsx index a4bdf8b76..3671c7600 100644 --- a/ui/src/components/TestMigration/index.tsx +++ b/ui/src/components/TestMigration/index.tsx @@ -1,7 +1,10 @@ import { useEffect, useState } from 'react'; -import { Field, FieldLabel, TextInput, Link, Icon, Tooltip } from '@contentstack/venus-components'; +import { Field, FieldLabel, TextInput, Link, Icon, Tooltip, Button } from '@contentstack/venus-components'; import { useSelector } from 'react-redux'; +// Redux files +import { RootState } from '../../store'; + // Services import { getCMSDataFromFile } from '../../cmsData/cmsSelector'; @@ -20,7 +23,7 @@ import './index.scss'; const TestMigration = () => { const [data, setData] = useState({}); - const newMigrationData = useSelector((state:any)=>state?.migration?.newMigrationData); + const newMigrationData = useSelector((state: RootState)=>state?.migration?.newMigrationData); /********** ALL USEEFFECT HERE *************/ @@ -39,40 +42,59 @@ const TestMigration = () => {
UID
-

Select your current Content Management system from the available options.

- Test Migration is a step where some content types are migrated in a test stack for review. A user can verify the stack and data. If the data is migrated properly then it can proceed with the final Migration Execution process.

+ + {(newMigrationData?.test_migration?.stack_api_key || newMigrationData?.test_migration?.stack_link) && + + + Test Stack + +
+ {newMigrationData?.test_migration?.stack_api_key && ( + + )} - {newMigrationData?.test_migration?.stack_link && ( - - - - - - )} -
-
+ {newMigrationData?.test_migration?.stack_link && ( + + + + + + )} + + +
+ + }