Skip to content

Commit

Permalink
feat(version): release 0.32.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Jan 18, 2024
1 parent e64a3e4 commit d6691cb
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.32.1",
"version": "0.32.2",
"private": true,
"scripts": {
"dev": "GENERATE_SOURCEMAP=false react-scripts start",
Expand Down
2 changes: 1 addition & 1 deletion public/css/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export default function BuildManagerStepsTable({
workspace: step?.workspace,
isRanCloud: step?.instancesName.includes(url?.instanceName),
isRanPhysical: step?.instancesName.includes(
robotData?.step1?.physicalInstanceName,
robotData?.step1?.tree.physicalInstance.name,
),
log: step?.buildLog,
state: step?.buildStatus,
};
}),
[
responseBuildManager?.robotBuildSteps,
robotData?.step1?.physicalInstanceName,
robotData?.step1?.tree.physicalInstance.name,
url?.instanceName,
],
);
Expand Down
7 changes: 4 additions & 3 deletions src/components/CFBuildScope/CFBuildScope.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function CFBuildScope({
]?.instancesName?.includes(selectedState?.instance?.name)}
physicalInstanceChecked={formik.values.robotBuildSteps[
buildStepIndex
]?.instancesName?.includes(robotData?.step1?.physicalInstanceName)}
]?.instancesName?.includes(robotData?.step1?.tree.physicalInstance.name)}
virtualInstanceOnChange={(e) => {
formik.setValues((prevValues) => ({
...prevValues,
Expand Down Expand Up @@ -55,10 +55,11 @@ export default function CFBuildScope({
instancesName: e.target.checked
? [
...item.instancesName,
robotData?.step1?.physicalInstanceName,
robotData?.step1?.tree.physicalInstance.name,
]
: item.instancesName.filter(
(name) => name !== robotData?.step1?.physicalInstanceName,
(name) =>
name !== robotData?.step1?.tree.physicalInstance.name,
),
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/CFDevMode/CFDevMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function CFDevMode({
labelInfoTip="Leave this option turned on if you want it to be able to build and launch on the robot you want"
dataTut="create-robot-step1-development-mode"
disabled={formik.isSubmitting || isImportRobot}
checked={formik?.values?.isDevelopmentMode}
checked={formik?.values?.details.isDevelopmentMode}
onChange={(e: any) => formik.setFieldValue("isDevelopmentMode", e)}
/>
);
Expand Down
4 changes: 3 additions & 1 deletion src/components/CFEnvButtons/CFEnvButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function CFEnvButtons({
className="!h-11 text-xs"
loading={formik.isSubmitting}
text={
formik.values.configureWorkspace ? "Next Step" : "Create Application"
formik.values.details.configureWorkspace
? "Next Step"
: "Create Application"
}
/>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/CFLaunchScope/CFLaunchScope.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ export default function CFLaunchScope({
formik.setValues({
...formik.values,
instancesName: formik.values.instancesName.includes(
robotData?.step1?.physicalInstanceName,
robotData?.step1?.tree.physicalInstance.name,
)
? formik.values.instancesName.filter(
(item) => item !== robotData?.step1?.physicalInstanceName,
(item) => item !== robotData?.step1?.tree.physicalInstance.name,
)
: [
...formik.values.instancesName,
robotData?.step1?.physicalInstanceName,
robotData?.step1?.tree.physicalInstance.name,
],
});
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function CreateRobotFormCodeScope({
{isVisiblePhysicalInstanceCheckbox && (
<div className="flex items-center gap-2">
<span className="text-xs">
Physical Instance ({robotData?.step1?.physicalInstanceName}
Physical Instance ({robotData?.step1?.details.name}
):{" "}
</span>
<InputCheckbox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function UpdateRobotLaunchsForm(): ReactElement {
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
fleetName: selectedState?.fleet?.name,
robotName: robotData?.step1?.robotName,
robotName: robotData?.step1?.details.name,
},
{
ifErrorNavigateTo404: false,
Expand Down
6 changes: 3 additions & 3 deletions src/middlewares/axios.interceptor.github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
const axiosInterceptorGithub: any = axios.create({});

axiosInterceptorGithub.interceptors.request.use((req: AxiosRequestConfig) => {
req.headers.Authorization = `Bearer ${JSON.parse(
req.headers!.Authorization = `Bearer ${JSON.parse(
localStorage.getItem("githubTokens") as any,
)?.access_token}`;
req.headers.Accept = `application/vnd.github+json`;
req.headers["Content-Type"] = `application/json`;
req.headers!.Accept = `application/vnd.github+json`;
req.headers!["Content-Type"] = `application/json`;
return req;
});

Expand Down
2 changes: 1 addition & 1 deletion src/middlewares/axios.interceptor.openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ axiosInterceptorOpenApi.interceptors.request.use((req: AxiosRequestConfig) => {
const { tokens } = JSON.parse(localStorage.getItem("tokens") || "{}");

if (tokens?.token) {
req.headers.Authorization = `Bearer ${tokens.token}`;
req.headers!.Authorization = `Bearer ${tokens.token}`;
}

return req;
Expand Down
2 changes: 1 addition & 1 deletion src/modals/DeleteBuildManagerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function DeleteBuildManagerModal({
instanceId: selectedState?.instance?.instanceId!,
fleetName: selectedState?.fleet?.name,
robotName: url?.robotName as string,
physicalInstanceName: robotData?.step1?.physicalInstanceName,
physicalInstanceName: robotData?.step1.tree.physicalInstance.name,
region: selectedState?.roboticsCloud!.region,
}),
).then(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/modals/DeleteLaunchManagerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export default function DeleteLaunchManagerModal({
roboticsCloudName: selectedState?.roboticsCloud!.name,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
robotName: robotData?.step1?.robotName,
robotName: robotData?.step1?.details.name,
fleetName: selectedState?.fleet?.name,
physicalInstanceName: robotData?.step1?.physicalInstanceName,
physicalInstanceName: robotData?.step1?.tree.physicalInstance.name,
launchManagerName: launchManagerName,
}),
).then(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import OrgDashboard from "../pages/DashboardsPage/OrgDashboard/OrgDashboard";
import UserRoleManagementLayout from "../layouts/UserRoleManagementLayout";
import CIDashboard from "../pages/DashboardsPage/CIDashboard/CIDashboard";
import NSDashboard from "../pages/DashboardsPage/NSDashboard/NSDashboard";
import EnvironmentPage from "../pages/EnvironmentPage/EnvironmentPage";
import DataSciencePage from "../pages/DataSciencePage/DataSciencePage";
import { Navigate, Route, Routes } from "react-router-dom";
import PrivateProvider from "../providers/PrivateProvider";
import EnvironmentPage from "../pages/EnvironmentPage/EnvironmentPage";
import Page404 from "../pages/Page404/Page404";
import { ReactElement } from "react";
import DataSciencePage from "../pages/DataSciencePage/DataSciencePage";

export default function AppRoutes(): ReactElement {
return (
Expand Down

0 comments on commit d6691cb

Please sign in to comment.