feat: Update asset types and labels in event properties and spawn action components
This commit is contained in:
parent
f340b052c1
commit
2f2ea93afe
|
@ -33,7 +33,7 @@ const SideBarRight: React.FC = () => {
|
||||||
|
|
||||||
// romove late
|
// romove late
|
||||||
const dummyData = {
|
const dummyData = {
|
||||||
assetType: "machine",
|
assetType: "store",
|
||||||
selectedPoint: {
|
selectedPoint: {
|
||||||
name: "Point A",
|
name: "Point A",
|
||||||
uuid: "123e4567-e89b-12d3-a456-426614174000",
|
uuid: "123e4567-e89b-12d3-a456-426614174000",
|
||||||
|
@ -41,17 +41,14 @@ const SideBarRight: React.FC = () => {
|
||||||
{
|
{
|
||||||
uuid: "action-1",
|
uuid: "action-1",
|
||||||
name: "Action One",
|
name: "Action One",
|
||||||
isUsed: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
uuid: "action-2",
|
uuid: "action-2",
|
||||||
name: "Action Two",
|
name: "Action Two",
|
||||||
isUsed: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
uuid: "action-3",
|
uuid: "action-3",
|
||||||
name: "Action Three",
|
name: "Action Three",
|
||||||
isUsed: true,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -27,14 +27,12 @@ interface EventPropertiesProps {
|
||||||
actions: {
|
actions: {
|
||||||
uuid: string;
|
uuid: string;
|
||||||
name: string;
|
name: string;
|
||||||
isUsed: boolean;
|
|
||||||
}[];
|
}[];
|
||||||
};
|
};
|
||||||
selectedItem: {
|
selectedItem: {
|
||||||
item: {
|
item: {
|
||||||
uuid: string;
|
uuid: string;
|
||||||
name: string;
|
name: string;
|
||||||
isUsed: boolean;
|
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
setSelectedPoint: (value: string) => void;
|
setSelectedPoint: (value: string) => void;
|
||||||
|
@ -98,13 +96,13 @@ const EventProperties: React.FC<EventPropertiesProps> = ({
|
||||||
</div>
|
</div>
|
||||||
<div className="global-props">
|
<div className="global-props">
|
||||||
<div className="property-list-container">
|
<div className="property-list-container">
|
||||||
<div className="property-item">
|
{/* <div className="property-item">
|
||||||
<LabledDropdown
|
<LabledDropdown
|
||||||
defaultOption={dummyactiveOption}
|
defaultOption={assetType}
|
||||||
options={[]}
|
options={[]}
|
||||||
onSelect={(option) => setTypeOption(option)}
|
onSelect={(option) => setTypeOption(option)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> */}
|
||||||
<div className="property-item">
|
<div className="property-item">
|
||||||
<InputWithDropDown
|
<InputWithDropDown
|
||||||
label="Speed"
|
label="Speed"
|
||||||
|
|
|
@ -6,7 +6,7 @@ const SpawnAction: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<InputWithDropDown
|
<InputWithDropDown
|
||||||
label="Span interval"
|
label="Spawn interval"
|
||||||
value="0"
|
value="0"
|
||||||
min={0}
|
min={0}
|
||||||
step={1}
|
step={1}
|
||||||
|
@ -17,7 +17,7 @@ const SpawnAction: React.FC = () => {
|
||||||
onChange={(value) => console.log(value)}
|
onChange={(value) => console.log(value)}
|
||||||
/>
|
/>
|
||||||
<InputWithDropDown
|
<InputWithDropDown
|
||||||
label="Span count"
|
label="Spawn count"
|
||||||
value="0"
|
value="0"
|
||||||
min={0}
|
min={0}
|
||||||
step={1}
|
step={1}
|
||||||
|
|
|
@ -59,7 +59,7 @@ interface RoboticArmPointSchema {
|
||||||
actionUuid: string;
|
actionUuid: string;
|
||||||
actionName: string;
|
actionName: string;
|
||||||
actionType: "pickAndPlace";
|
actionType: "pickAndPlace";
|
||||||
process: { startPoint: [number, number, number]; endPoint: [number, number, number] };
|
process: { startPoint: [number, number, number] | null; endPoint: [number, number, number] | null; };
|
||||||
triggers: TriggerSchema[];
|
triggers: TriggerSchema[];
|
||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ interface StoragePointSchema {
|
||||||
action: {
|
action: {
|
||||||
actionUuid: string;
|
actionUuid: string;
|
||||||
actionName: string;
|
actionName: string;
|
||||||
actionType: "storage";
|
actionType: "store";
|
||||||
materials: { materialName: string; materialId: string; }[];
|
materials: { materialName: string; materialId: string; }[];
|
||||||
storageCapacity: number;
|
storageCapacity: number;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue