diff --git a/app/src/components/layout/sidebarRight/SideBarRight.tsx b/app/src/components/layout/sidebarRight/SideBarRight.tsx index d68333b..277637a 100644 --- a/app/src/components/layout/sidebarRight/SideBarRight.tsx +++ b/app/src/components/layout/sidebarRight/SideBarRight.tsx @@ -33,7 +33,7 @@ const SideBarRight: React.FC = () => { // romove late const dummyData = { - assetType: "machine", + assetType: "store", selectedPoint: { name: "Point A", uuid: "123e4567-e89b-12d3-a456-426614174000", @@ -41,17 +41,14 @@ const SideBarRight: React.FC = () => { { uuid: "action-1", name: "Action One", - isUsed: true, }, { uuid: "action-2", name: "Action Two", - isUsed: true, }, { uuid: "action-3", name: "Action Three", - isUsed: true, }, ], }, diff --git a/app/src/components/layout/sidebarRight/properties/eventProperties/EventProperties.tsx b/app/src/components/layout/sidebarRight/properties/eventProperties/EventProperties.tsx index 7fa98f1..e7444a0 100644 --- a/app/src/components/layout/sidebarRight/properties/eventProperties/EventProperties.tsx +++ b/app/src/components/layout/sidebarRight/properties/eventProperties/EventProperties.tsx @@ -27,14 +27,12 @@ interface EventPropertiesProps { actions: { uuid: string; name: string; - isUsed: boolean; }[]; }; selectedItem: { item: { uuid: string; name: string; - isUsed: boolean; } | null; }; setSelectedPoint: (value: string) => void; @@ -98,13 +96,13 @@ const EventProperties: React.FC<EventPropertiesProps> = ({ </div> <div className="global-props"> <div className="property-list-container"> - <div className="property-item"> + {/* <div className="property-item"> <LabledDropdown - defaultOption={dummyactiveOption} + defaultOption={assetType} options={[]} onSelect={(option) => setTypeOption(option)} /> - </div> + </div> */} <div className="property-item"> <InputWithDropDown label="Speed" diff --git a/app/src/components/layout/sidebarRight/properties/eventProperties/actions/SpawnAction.tsx b/app/src/components/layout/sidebarRight/properties/eventProperties/actions/SpawnAction.tsx index 23c0de1..0c37cdb 100644 --- a/app/src/components/layout/sidebarRight/properties/eventProperties/actions/SpawnAction.tsx +++ b/app/src/components/layout/sidebarRight/properties/eventProperties/actions/SpawnAction.tsx @@ -6,7 +6,7 @@ const SpawnAction: React.FC = () => { return ( <> <InputWithDropDown - label="Span interval" + label="Spawn interval" value="0" min={0} step={1} @@ -17,7 +17,7 @@ const SpawnAction: React.FC = () => { onChange={(value) => console.log(value)} /> <InputWithDropDown - label="Span count" + label="Spawn count" value="0" min={0} step={1} diff --git a/app/src/types/simulationTypes.d.ts b/app/src/types/simulationTypes.d.ts index 7c2bd2c..f6b0a0c 100644 --- a/app/src/types/simulationTypes.d.ts +++ b/app/src/types/simulationTypes.d.ts @@ -59,7 +59,7 @@ interface RoboticArmPointSchema { actionUuid: string; actionName: string; actionType: "pickAndPlace"; - process: { startPoint: [number, number, number]; endPoint: [number, number, number] }; + process: { startPoint: [number, number, number] | null; endPoint: [number, number, number] | null; }; triggers: TriggerSchema[]; }[]; } @@ -85,7 +85,7 @@ interface StoragePointSchema { action: { actionUuid: string; actionName: string; - actionType: "storage"; + actionType: "store"; materials: { materialName: string; materialId: string; }[]; storageCapacity: number; };