+
Regions:
-
+
{region?.name}
-
+
({region?.city})
diff --git a/src/components/CreateForms/CFStep1.tsx b/src/components/CreateForms/CFStep1.tsx
index 2f87edcc..57229106 100644
--- a/src/components/CreateForms/CFStep1.tsx
+++ b/src/components/CreateForms/CFStep1.tsx
@@ -46,7 +46,7 @@ export default function CFStep1({ isImportRobot }: ICFStep1): ReactElement {
function handleGetRobot() {
getRobot(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
@@ -75,7 +75,7 @@ export default function CFStep1({ isImportRobot }: ICFStep1): ReactElement {
);
setTimeout(() => {
window.location.href = `/${
- selectedState?.organization?.organizationName?.split("_")[1]
+ selectedState?.organization?.name?.split("_")[1]
}/${selectedState?.roboticsCloud?.name}/${
selectedState?.instance?.name
}/${selectedState?.fleet?.name}/${robotData?.step1?.details?.name}}`;
diff --git a/src/components/CreateForms/CFStep2.tsx b/src/components/CreateForms/CFStep2.tsx
index ba9b072f..6f2e0ff8 100644
--- a/src/components/CreateForms/CFStep2.tsx
+++ b/src/components/CreateForms/CFStep2.tsx
@@ -124,7 +124,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetRobot() {
getRobot(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
@@ -142,7 +142,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetEnvironment() {
getEnvironment(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
@@ -160,7 +160,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetFleet() {
getFleet(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
@@ -176,7 +176,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetNamespace() {
getNamespace(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
diff --git a/src/components/CreateForms/CFStep3.tsx b/src/components/CreateForms/CFStep3.tsx
index f63f2c69..1b93d0d9 100644
--- a/src/components/CreateForms/CFStep3.tsx
+++ b/src/components/CreateForms/CFStep3.tsx
@@ -61,7 +61,7 @@ export default function CFStep3({ isImportRobot }: ICFStep3): ReactElement {
function handleGetRobot() {
getRobot(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
diff --git a/src/components/CreateForms/CFStep4.tsx b/src/components/CreateForms/CFStep4.tsx
index 9b6ede35..b93263d2 100644
--- a/src/components/CreateForms/CFStep4.tsx
+++ b/src/components/CreateForms/CFStep4.tsx
@@ -58,7 +58,7 @@ export default function CFStep4({
await dispatch(
createLaunchManager({
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
@@ -82,7 +82,7 @@ export default function CFStep4({
setTimeout(() => {
window.location.href = `/${organizationNameViewer({
- organizationName: selectedState?.organization?.organizationName!,
+ organizationName: selectedState?.organization?.name!,
capitalization: false,
})}/${selectedState?.roboticsCloud?.name}/${
selectedState?.instance?.name
diff --git a/src/components/CreateRobotTypes/CreateRobotTypes.tsx b/src/components/CreateRobotTypes/CreateRobotTypes.tsx
index 0680e6cf..291dddc4 100644
--- a/src/components/CreateRobotTypes/CreateRobotTypes.tsx
+++ b/src/components/CreateRobotTypes/CreateRobotTypes.tsx
@@ -49,7 +49,7 @@ export default function CreateRobotTypes({
function handleGetPhysicalInstances() {
getPhysicalInstances(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
diff --git a/src/components/FilteredTags/FilteredTags.tsx b/src/components/FilteredTags/FilteredTags.tsx
index 40a48de6..bcea7230 100644
--- a/src/components/FilteredTags/FilteredTags.tsx
+++ b/src/components/FilteredTags/FilteredTags.tsx
@@ -17,7 +17,7 @@ export default function FilteredTags(): ReactElement {
/>
{organizationNameViewer({
- organizationName: selectedState?.organization?.organizationName,
+ organizationName: selectedState?.organization?.name,
capitalization: false,
})}
diff --git a/src/components/HostDirectoriesSearchIframe/HostDirectoriesSearchIframe.tsx b/src/components/HostDirectoriesSearchIframe/HostDirectoriesSearchIframe.tsx
index 6ec2f00a..90eebc10 100644
--- a/src/components/HostDirectoriesSearchIframe/HostDirectoriesSearchIframe.tsx
+++ b/src/components/HostDirectoriesSearchIframe/HostDirectoriesSearchIframe.tsx
@@ -10,9 +10,9 @@ export default function HostDirectoriesSearchIframe(): ReactElement {
return (
-
}
url={`${
- selectedState?.organization?.organizationName?.split("_")[1]
+ selectedState?.organization?.name?.split("_")[1]
}/${selectedState?.roboticsCloud?.name}/${
selectedState?.instance?.name
}/${fleet?.name}`}
diff --git a/src/components/SidebarLists/OrganizationsList.tsx b/src/components/SidebarLists/OrganizationsList.tsx
index 262a8d04..fc2e0529 100644
--- a/src/components/SidebarLists/OrganizationsList.tsx
+++ b/src/components/SidebarLists/OrganizationsList.tsx
@@ -1,5 +1,5 @@
import { organizationNameViewer } from "../../functions/GeneralFunctions";
-import { IOrganization } from "../../interfaces/organizationInterfaces";
+import { IOrganization } from "../../interfaces/organization.interface";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import { Fragment, ReactElement, useEffect, useState } from "react";
import StateCell from "../TableInformationCells/StateCell";
@@ -53,18 +53,17 @@ export default function OrganizationsList({
key={index}
type="organization"
name={organizationNameViewer({
- organizationName: organization?.organizationName,
+ organizationName: organization?.name,
capitalization: false,
})}
description={
}
url={`/${organizationNameViewer({
- organizationName: organization?.organizationName,
+ organizationName: organization?.name,
capitalization: false,
})}`}
data={organization}
selected={
- organization.organizationName ===
- selectedState?.organization?.organizationName
+ organization.name === selectedState?.organization?.name
}
/>
);
diff --git a/src/components/SidebarLists/PhysicalInstancesList.tsx b/src/components/SidebarLists/PhysicalInstancesList.tsx
index 7c86ea05..5cab4d97 100644
--- a/src/components/SidebarLists/PhysicalInstancesList.tsx
+++ b/src/components/SidebarLists/PhysicalInstancesList.tsx
@@ -58,7 +58,7 @@ export default function PhysicalInstancesList({
function handleGetPhysicalInstances() {
getPhysicalInstances(
{
- organizationId: selectedState?.organization?.organizationId!,
+ organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
@@ -82,8 +82,8 @@ export default function PhysicalInstancesList({
!selectedState?.organization
? "Organization"
: !selectedState?.roboticsCloud
- ? "Robotics Cloud"
- : "Cloud Instance"
+ ? "Robotics Cloud"
+ : "Cloud Instance"
} to view Physical Instances.`}
/>
) : !Array.isArray(responsePhysicalInstances) ? (
@@ -105,11 +105,11 @@ export default function PhysicalInstancesList({