diff --git a/package.json b/package.json
index 4395ee3f..dbafd0d5 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ui",
- "version": "0.9.4",
+ "version": "0.9.5",
"private": true,
"dependencies": {
"@emotion/css": "^11.10.6",
diff --git a/src/components/BuildManagerStepsTable/BuildManagerStepsTable.tsx b/src/components/BuildManagerStepsTable/BuildManagerStepsTable.tsx
index 09ce501b..2206ec87 100644
--- a/src/components/BuildManagerStepsTable/BuildManagerStepsTable.tsx
+++ b/src/components/BuildManagerStepsTable/BuildManagerStepsTable.tsx
@@ -24,7 +24,7 @@ export default function BuildManagerStepsTable({
workspace: step?.workspace,
command: step?.command,
log: step?.buildLog,
- state: responseBuildManager?.robotClusters,
+ state: step?.buildStatus,
};
}),
[responseBuildManager]
@@ -59,29 +59,12 @@ export default function BuildManagerStepsTable({
key: "state",
header: "State",
align: "left",
- body: () => {
+ body: (rowData: any) => {
return (
- {responseBuildManager?.robotClusters?.[0]?.buildManagerStatus && (
-
- CI:
-
-
- )}
- {responseBuildManager?.robotClusters?.[1]?.buildManagerStatus && (
+ {rowData?.state && (
- P I:
-
+
)}
@@ -98,7 +81,7 @@ export default function BuildManagerStepsTable({
},
},
],
- [responseBuildManager?.robotClusters, url?.instanceName]
+ [url?.instanceName]
);
return (
diff --git a/src/components/Cells/StateCell.tsx b/src/components/Cells/StateCell.tsx
index ec832b85..aa4c6e9e 100644
--- a/src/components/Cells/StateCell.tsx
+++ b/src/components/Cells/StateCell.tsx
@@ -62,6 +62,7 @@ export default function StateCell({ state, isRobolaunchState }: IStateCell) {
{state === "running" ||
state === "Ready" ||
state === "Connected" ||
+ state === "Completed" ||
state === "Running" ||
state === "EnvironmentReady" ? (
diff --git a/src/components/CreateForms/CreateRobotFormStep4.tsx b/src/components/CreateForms/CreateRobotFormStep4.tsx
index a6dc379a..954978b3 100644
--- a/src/components/CreateForms/CreateRobotFormStep4.tsx
+++ b/src/components/CreateForms/CreateRobotFormStep4.tsx
@@ -53,14 +53,14 @@ export default function CreateRobotFormStep4({
robotDataLaunchIndex ? robotDataLaunchIndex : 0
],
validationSchema: Yup.object({
- name: Yup.string().required("Required"),
- workspace: Yup.string().required("Required"),
- entryPointCmd: Yup.string().required("Required"),
- instancesName: Yup.array().min(1, "Required"),
+ name: Yup.string().required("Launch manager name is required"),
+ workspace: Yup.string().required("Workspace is required"),
+ entryPointCmd: Yup.string().required("Code is required"),
+ instancesName: Yup.array().min(1, "Instance scope is required"),
robotLmEnvs: Yup.array().of(
Yup.object().shape({
- name: Yup.string().required("Required"),
- value: Yup.string().required("Required"),
+ name: Yup.string().required("Environment name is required"),
+ value: Yup.string().required("Environment value is required"),
})
),
}),
@@ -102,10 +102,6 @@ export default function CreateRobotFormStep4({
},
});
- useEffect(() => {
- console.log(formik?.values);
- }, [formik?.values]);
-
useEffect(
() => {
if (!responseBuildManager) {
diff --git a/src/components/CreateRobotFormBuildStepItem/CreateRobotFormBuildStepItem.tsx b/src/components/CreateRobotFormBuildStepItem/CreateRobotFormBuildStepItem.tsx
index 2c2b1ddb..e92afbe9 100644
--- a/src/components/CreateRobotFormBuildStepItem/CreateRobotFormBuildStepItem.tsx
+++ b/src/components/CreateRobotFormBuildStepItem/CreateRobotFormBuildStepItem.tsx
@@ -52,26 +52,15 @@ export default function CreateRobotFormBuildStepItem({
: `Build Step #${buildStepIndex + 1}`}
- {Array.isArray(stepState) && stepState?.[0] && (
+ {buildStep?.buildStatus && (
- CI:
+ Status:
-
-
- )}
- {Array.isArray(stepState) && stepState?.[1] && (
-
-
- PI:
-
-
+
)}
diff --git a/src/components/Terminal/Terminal.tsx b/src/components/Terminal/Terminal.tsx
index 544c64bc..ffcc5c39 100644
--- a/src/components/Terminal/Terminal.tsx
+++ b/src/components/Terminal/Terminal.tsx
@@ -18,7 +18,7 @@ export default function Terminal({ value, ref }: ITerminal): ReactElement {
>>"}
+ prompt={">"}
theme={"material-dark"}
welcomeMessage={
diff --git a/src/components/UpdateRobotLaunchsForm/UpdateRobotLaunchsForm.tsx b/src/components/UpdateRobotLaunchsForm/UpdateRobotLaunchsForm.tsx
index ed9b4182..bf035c7d 100644
--- a/src/components/UpdateRobotLaunchsForm/UpdateRobotLaunchsForm.tsx
+++ b/src/components/UpdateRobotLaunchsForm/UpdateRobotLaunchsForm.tsx
@@ -82,10 +82,10 @@ export default function UpdateRobotLaunchsForm(): ReactElement {
entryPointCmd: "",
instancesName: [],
robotLmEnvs: [
- {
- name: "",
- value: "",
- },
+ // {
+ // name: "",
+ // value: "",
+ // },
],
},
],
diff --git a/src/contexts/RobotContext.tsx b/src/contexts/RobotContext.tsx
index e96e3ae3..7da30afb 100644
--- a/src/contexts/RobotContext.tsx
+++ b/src/contexts/RobotContext.tsx
@@ -62,10 +62,10 @@ export default ({ children }: any) => {
entryPointCmd: "",
instancesName: [],
robotLmEnvs: [
- {
- name: "",
- value: "",
- },
+ // {
+ // name: "",
+ // value: "",
+ // },
],
},
],
diff --git a/src/interfaces/robotInterfaces.ts b/src/interfaces/robotInterfaces.ts
index 8dd7862d..fc2a99ca 100644
--- a/src/interfaces/robotInterfaces.ts
+++ b/src/interfaces/robotInterfaces.ts
@@ -166,6 +166,7 @@ export interface IRobotBuildStep {
instancesName: any[];
robotClusters?: any;
buildLog?: string;
+ buildStatus?: string;
}
export interface IRobotLaunchSteps {
diff --git a/src/modals/LogsModal.tsx b/src/modals/LogsModal.tsx
index c46f5421..034580ef 100644
--- a/src/modals/LogsModal.tsx
+++ b/src/modals/LogsModal.tsx
@@ -15,6 +15,7 @@ export default function LogsModal({