Merge pull request #84 from findthelorax/feature/property-icons

feature: added new icons for properties
This commit is contained in:
Remy
2026-04-20 10:07:49 +02:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
@@ -1,12 +1,17 @@
import { describe, it, expect } from 'vitest' 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' import { PROPERTY_ICONS, PROPERTY_ICON_NAMES, resolvePropertyIcon } from '../propertyIcons'
describe('PROPERTY_ICONS', () => { describe('PROPERTY_ICONS', () => {
it('contains the hardware migration icons', () => { it('contains the hardware migration icons', () => {
expect(PROPERTY_ICONS['CircuitBoard']).toBe(CircuitBoard)
expect(PROPERTY_ICONS['Cpu']).toBe(Cpu) 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['HardDrive']).toBe(HardDrive)
expect(PROPERTY_ICONS['HdmiPort']).toBe(HdmiPort)
expect(PROPERTY_ICONS['MemoryStick']).toBe(MemoryStick) expect(PROPERTY_ICONS['MemoryStick']).toBe(MemoryStick)
expect(PROPERTY_ICONS['Usb']).toBe(Usb)
}) })
it('has at least 10 icons', () => { it('has at least 10 icons', () => {
+10
View File
@@ -1,11 +1,15 @@
import { import {
Battery, Battery,
Box, Box,
CircuitBoard,
Clock, Clock,
Cpu, Cpu,
Database, Database,
EthernetPort,
Globe, Globe,
Gpu,
HardDrive, HardDrive,
HdmiPort,
Hash, Hash,
Key, Key,
Layers, Layers,
@@ -17,6 +21,7 @@ import {
Shield, Shield,
Tag, Tag,
Thermometer, Thermometer,
Usb,
Wifi, Wifi,
Zap, Zap,
} from 'lucide-react' } from 'lucide-react'
@@ -25,11 +30,15 @@ import type { LucideIcon } from 'lucide-react'
export const PROPERTY_ICONS: Record<string, LucideIcon> = { export const PROPERTY_ICONS: Record<string, LucideIcon> = {
Battery, Battery,
Box, Box,
CircuitBoard,
Clock, Clock,
Cpu, Cpu,
Database, Database,
EthernetPort,
Globe, Globe,
Gpu,
HardDrive, HardDrive,
HdmiPort,
Hash, Hash,
Key, Key,
Layers, Layers,
@@ -41,6 +50,7 @@ export const PROPERTY_ICONS: Record<string, LucideIcon> = {
Shield, Shield,
Tag, Tag,
Thermometer, Thermometer,
Usb,
Wifi, Wifi,
Zap, Zap,
} }