Skip to content

fix(network): give DHCP server its own graph icon, distinct from cluster#547

Merged
NotYuSheng merged 1 commit into
mainfrom
feature/dhcp-server-icon-broadcast
Jul 18, 2026
Merged

fix(network): give DHCP server its own graph icon, distinct from cluster#547
NotYuSheng merged 1 commit into
mainfrom
feature/dhcp-server-icon-broadcast

Conversation

@NotYuSheng

Copy link
Copy Markdown
Owner

Problem

On the network graph canvas, dhcp-server and cluster both rendered bi-diagram-3 (), so a DHCP server node was visually indistinguishable from a cluster node. Flagged by gemini during review of #546.

Why it's not a one-line codepoint swap

iconCodepoints.test.ts enforces that NODE_TYPE_ICONS[nodeType] equals the codepoint of NODE_TYPE_CONFIG[nodeType].icon (the class name the legend renders from). The codepoint was not drifted — it faithfully matched the config's 'bi-diagram-3'. So changing only the codepoint would break that test. The fix has to move the class name too.

Change

Point dhcp-server at bi-broadcast () in both places:

  • features/network/constants.tsNODE_TYPE_CONFIG icon class (drives the legend)
  • components/network/NetworkGraph/nodeIcons.ts — the WebGL codepoint table

cluster keeps bi-diagram-3, so the collision is resolved. bi-broadcast also fits DHCP's DISCOVER/OFFER broadcast semantics, and no other node type uses it.

Verification

iconCodepoints.test.ts40 passed (incl. the NODE_TYPE_ICONS == NODE_TYPE_CONFIG invariant for dhcp-server).

Follow-up to a review comment on #546; independent of that PR (main-based, frontend-only).

🤖 Generated with Claude Code

 review)

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 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@NotYuSheng, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9ed61395-790b-48c7-809f-dbd2ec1b3308

📥 Commits

Reviewing files that changed from the base of the PR and between 53344fa and 445213a.

📒 Files selected for processing (2)
  • frontend/src/components/network/NetworkGraph/nodeIcons.ts
  • frontend/src/features/network/constants.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the icon for the DHCP server node from 'bi-diagram-3' to 'bi-broadcast' (unicode '\uf1d6') in both the network graph node icons and the network feature constants to ensure visual consistency. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@NotYuSheng
NotYuSheng merged commit ced0172 into main Jul 18, 2026
3 checks passed
@NotYuSheng
NotYuSheng deleted the feature/dhcp-server-icon-broadcast branch July 18, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant