From 445213a9dfecd37da047377181abef6af3fba4be Mon Sep 17 00:00:00 2001 From: notyusheng Date: Sun, 19 Jul 2026 03:51:51 +0800 Subject: [PATCH] fix(network): give DHCP server its own icon, distinct from cluster (#496 review) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the graph canvas dhcp-server and cluster both rendered bi-diagram-3 (), so a DHCP server node was indistinguishable from a cluster node. The codepoint wasn't drifted — it faithfully matched NODE_TYPE_CONFIG's 'bi-diagram-3' class — so fixing it means changing the class name too, or the iconCodepoints test (which enforces codepoint == config class) fails. Point dhcp-server at bi-broadcast () in both the config and the codepoint table; cluster keeps bi-diagram-3. Broadcast also fits DHCP's DISCOVER/OFFER semantics, and no other node type uses it. 40 icon tests pass. Co-Authored-By: Claude Opus 4.8 --- frontend/src/components/network/NetworkGraph/nodeIcons.ts | 2 +- frontend/src/features/network/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/network/NetworkGraph/nodeIcons.ts b/frontend/src/components/network/NetworkGraph/nodeIcons.ts index 9ca7bfb9..514f09df 100644 --- a/frontend/src/components/network/NetworkGraph/nodeIcons.ts +++ b/frontend/src/components/network/NetworkGraph/nodeIcons.ts @@ -19,7 +19,7 @@ export const NODE_TYPE_ICONS: Record = { 'ssh-server': '\uf5c3', // bi-terminal 'ftp-server': '\uf3d5', // bi-folder-symlink 'mail-server': '\uf32f', // bi-envelope - 'dhcp-server': '\uf2ee', // bi-diagram-3 + 'dhcp-server': '\uf1d6', // bi-broadcast 'ntp-server': '\uf293', // bi-clock 'database-server': '\uf8c4', // bi-database router: '\uf6ec', // bi-router diff --git a/frontend/src/features/network/constants.ts b/frontend/src/features/network/constants.ts index 77ea973d..3dd18f2d 100644 --- a/frontend/src/features/network/constants.ts +++ b/frontend/src/features/network/constants.ts @@ -55,7 +55,7 @@ export const NODE_TYPE_CONFIG: Record