refactoring object interactions into multiple components and taking into account controller interactions having to be on the same device where the alerts dont matter

This commit is contained in:
csawatzky 2025-11-26 16:50:09 -06:00
parent bdddcfc103
commit 3cdddb928f
7 changed files with 459 additions and 2 deletions

View file

@ -69,6 +69,7 @@ import TaskViewer from "tasks/TaskViewer";
import ButtonGroup from "common/ButtonGroup";
import BinTransactions from "bin/BinTransactions";
import { CO2 } from "models/CO2";
import ObjectInteractions from "objects/objectInteractions/ObjectInteractions";
interface TabPanelProps {
children?: React.ReactNode;
@ -896,11 +897,16 @@ export default function Bin(props: Props) {
</Box>
{detail === "alerts" && (
<Box>
<ObjectAlerts
{/* <ObjectAlerts
linkedComponents={components}
componentDevices={componentDevices}
objectType={pond.ObjectType.OBJECT_TYPE_BIN}
objectKey={bin.key()}
/> */}
<ObjectInteractions
linkedComponents={components}
componentDevices={componentDevices}
devices={devices}
/>
</Box>
)}
@ -1033,11 +1039,16 @@ export default function Bin(props: Props) {
</TabPanelMine>
<TabPanelMine value={mobileTab} index={4}>
<Box>
<ObjectAlerts
{/* <ObjectAlerts
linkedComponents={components}
componentDevices={componentDevices}
objectType={pond.ObjectType.OBJECT_TYPE_BIN}
objectKey={bin.key()}
/> */}
<ObjectInteractions
linkedComponents={components}
componentDevices={componentDevices}
devices={devices}
/>
</Box>
</TabPanelMine>