- {newMigrationData?.migration_execution?.migrationCompleted
+ {newMigrationData?.migration_execution?.migrationCompleted
?
- Migration Execution process is completed. You can view in the selected stack
-
+ Migration Execution process is completed in the selected stack
+
{newMigrationData?.stackDetails?.label}
@@ -199,7 +206,7 @@ const MigrationLogViewer = ({ serverPath }: LogsType) => {
:
{logs?.map((log, index) => {
@@ -212,14 +219,14 @@ const MigrationLogViewer = ({ serverPath }: LogsType) => {
return (
message === "Migration logs will appear here once the process begins."
- ?
- :
-
{index}
-
{ timestamp ? new Date(timestamp)?.toTimeString()?.split(' ')[0] : new Date()?.toTimeString()?.split(' ')[0]}
-
{message}
-
+ ?
+ :
+
{index}
+
{timestamp ? new Date(timestamp)?.toTimeString()?.split(' ')[0] : new Date()?.toTimeString()?.split(' ')[0]}
+
{message}
+
);
} catch (error) {
console.error('Invalid JSON string', error);
@@ -228,6 +235,7 @@ const MigrationLogViewer = ({ serverPath }: LogsType) => {
}
+ {!newMigrationData?.migration_execution?.migrationCompleted && (
@@ -235,7 +243,8 @@ const MigrationLogViewer = ({ serverPath }: LogsType) => {
{DEMAGNIFY}
-
+ )}
+
);
};
diff --git a/ui/src/components/LogScreen/index.tsx b/ui/src/components/LogScreen/index.tsx
index b0dda2f3..b417ea77 100644
--- a/ui/src/components/LogScreen/index.tsx
+++ b/ui/src/components/LogScreen/index.tsx
@@ -1,6 +1,6 @@
// Libraries
import React, { useEffect, useState, useRef } from 'react';
-import { Icon, Notification } from '@contentstack/venus-components';
+import { Icon, Link, Notification } from '@contentstack/venus-components';
import io from 'socket.io-client';
import { useSelector, useDispatch } from 'react-redux';
@@ -175,7 +175,7 @@ const TestMigrationLogViewer = ({ serverPath, sendDataToParent,projectId }: Logs
{migratedTestStack?.isMigrated
?
-
Test Migration is completed for stack {migratedTestStack?.stackName}
+
Test Migration is completed for stack {migratedTestStack?.stackName}
:
-
Region : {user?.region}
+
Region: {user?.region?.replaceAll('_', '-')?.toLowerCase()}