Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

feature: added new icons for properties

findtheloraxa5bf9c9db614
diff --git a/frontend/src/utils/__tests__/propertyIcons.test.ts b/frontend/src/utils/__tests__/propertyIcons.test.ts
index e2e2ad9..ccdcb98 100644
--- a/frontend/src/utils/__tests__/propertyIcons.test.ts
+++ b/frontend/src/utils/__tests__/propertyIcons.test.ts
@@ -1,12 +1,17 @@
import { describe, it, expect } from 'vitest'
-import { Cpu, HardDrive, MemoryStick } from 'lucide-react'
+import { CircuitBoard, Cpu, EthernetPort, Gpu, HardDrive, HdmiPort, MemoryStick, Usb } from 'lucide-react'
import { PROPERTY_ICONS, PROPERTY_ICON_NAMES, resolvePropertyIcon } from '../propertyIcons'
describe('PROPERTY_ICONS', () => {
it('contains the hardware migration icons', () => {
+ expect(PROPERTY_ICONS['CircuitBoard']).toBe(CircuitBoard)
expect(PROPERTY_ICONS['Cpu']).toBe(Cpu)
+ expect(PROPERTY_ICONS['EthernetPort']).toBe(EthernetPort)
+ expect(PROPERTY_ICONS['Gpu']).toBe(Gpu)
expect(PROPERTY_ICONS['HardDrive']).toBe(HardDrive)
+ expect(PROPERTY_ICONS['HdmiPort']).toBe(HdmiPort)
expect(PROPERTY_ICONS['MemoryStick']).toBe(MemoryStick)
+ expect(PROPERTY_ICONS['Usb']).toBe(Usb)
})
it('has at least 10 icons', () => {
diff --git a/frontend/src/utils/propertyIcons.ts b/frontend/src/utils/propertyIcons.ts
index af24a00..b9826fa 100644
--- a/frontend/src/utils/propertyIcons.ts
+++ b/frontend/src/utils/propertyIcons.ts
@@ -1,11 +1,15 @@
import {
Battery,
Box,
+ CircuitBoard,
Clock,
Cpu,
Database,
+ EthernetPort,
Globe,
+ Gpu,
HardDrive,
+ HdmiPort,
Hash,
Key,
Layers,
@@ -17,6 +21,7 @@ import {
Shield,
Tag,
Thermometer,
+ Usb,
Wifi,
Zap,
} from 'lucide-react'
@@ -25,11 +30,15 @@ import type { LucideIcon } from 'lucide-react'
export const PROPERTY_ICONS: Record<string, LucideIcon> = {
Battery,
Box,
+ CircuitBoard,
Clock,
Cpu,
Database,
+ EthernetPort,
Globe,
+ Gpu,
HardDrive,
+ HdmiPort,
Hash,
Key,
Layers,
@@ -41,6 +50,7 @@ export const PROPERTY_ICONS: Record<string, LucideIcon> = {
Shield,
Tag,
Thermometer,
+ Usb,
Wifi,
Zap,
}