feature: added new icons for properties

This commit is contained in:
findthelorax
2026-04-19 21:00:20 -04:00
parent a9c5c538b4
commit a5bf9c9db6
2 changed files with 16 additions and 1 deletions
@@ -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', () => {
+10
View File
@@ -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,
}