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
|
||||
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,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue