diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index bad1278..4c92378 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -1105,6 +1105,91 @@ export default function Hardware() { + {/* PCI Devices - Changed to modal */} + {hardwareDataSWR?.pci_devices && hardwareDataSWR.pci_devices.length > 0 && ( + +
+ +

PCI Devices

+ + {hardwareDataSWR.pci_devices.length} devices + +
+ +
+ {hardwareDataSWR.pci_devices.map((device, index) => ( +
setSelectedPCIDevice(device)} + className="cursor-pointer rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card sm:hover:bg-white/5 p-3 transition-colors" + > +
+ {device.type} + {device.slot} +
+

{device.device}

+

{device.vendor}

+ {device.driver && ( +

Driver: {device.driver}

+ )} +
+ ))} +
+
+ )} + + {/* PCI Device Detail Modal */} + setSelectedPCIDevice(null)}> + + + {selectedPCIDevice?.device} + PCI Device Information + + + {selectedPCIDevice && ( +
+
+ Device Type + {selectedPCIDevice.type} +
+ +
+ PCI Slot + {selectedPCIDevice.slot} +
+ +
+ Device Name + {selectedPCIDevice.device} +
+ +
+ Vendor + {selectedPCIDevice.vendor} +
+ +
+ Class + {selectedPCIDevice.class} +
+ + {selectedPCIDevice.driver && ( +
+ Driver + {selectedPCIDevice.driver} +
+ )} + + {selectedPCIDevice.kernel_module && ( +
+ Kernel Module + {selectedPCIDevice.kernel_module} +
+ )} +
+ )} +
+
{/* Power Consumption */} {hardwareDataSWR?.power_meter && ( @@ -1476,94 +1561,6 @@ export default function Hardware() { - - {/* PCI Devices - Changed to modal */} - {hardwareDataSWR?.pci_devices && hardwareDataSWR.pci_devices.length > 0 && ( - -
- -

PCI Devices

- - {hardwareDataSWR.pci_devices.length} devices - -
- -
- {hardwareDataSWR.pci_devices.map((device, index) => ( -
setSelectedPCIDevice(device)} - className="cursor-pointer rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card sm:hover:bg-white/5 p-3 transition-colors" - > -
- {device.type} - {device.slot} -
-

{device.device}

-

{device.vendor}

- {device.driver && ( -

Driver: {device.driver}

- )} -
- ))} -
-
- )} - - {/* PCI Device Detail Modal */} - setSelectedPCIDevice(null)}> - - - {selectedPCIDevice?.device} - PCI Device Information - - - {selectedPCIDevice && ( -
-
- Device Type - {selectedPCIDevice.type} -
- -
- PCI Slot - {selectedPCIDevice.slot} -
- -
- Device Name - {selectedPCIDevice.device} -
- -
- Vendor - {selectedPCIDevice.vendor} -
- -
- Class - {selectedPCIDevice.class} -
- - {selectedPCIDevice.driver && ( -
- Driver - {selectedPCIDevice.driver} -
- )} - - {selectedPCIDevice.kernel_module && ( -
- Kernel Module - {selectedPCIDevice.kernel_module} -
- )} -
- )} -
-
- - {/* Network Summary - Clickable */} {hardwareDataSWR?.pci_devices && hardwareDataSWR.pci_devices.filter((d) => d.type.toLowerCase().includes("network")).length > 0 && ( @@ -1608,7 +1605,6 @@ export default function Hardware() { )} - {/* Network Detail Modal */} setSelectedNetwork(null)}>