Skip to content

feat: refactor toolkit icons to align with tool categories#1218

Open
eureka928 wants to merge 2 commits intoeigent-ai:mainfrom
eureka928:feat/toolkit-icons
Open

feat: refactor toolkit icons to align with tool categories#1218
eureka928 wants to merge 2 commits intoeigent-ai:mainfrom
eureka928:feat/toolkit-icons

Conversation

@eureka928
Copy link
Contributor

@eureka928 eureka928 commented Feb 11, 2026

Description

Toolkit icons in workflow nodes currently display based on agent type (e.g. every toolkit in Developer Agent shows CodeXml), making it hard to distinguish between different tool actions at a glance. This PR updates icons to display based on tool type (Terminal, Browser, Note, File, etc.) so each toolkit is visually distinct.

Related Issue

Fixes #1216

Changes Made

  • src/lib/toolkitIcons.tsx (new): Toolkit name → lucide-react icon mapping with getToolkitIcon() helper. Covers 30+ toolkits across 7 categories (Dev/Code, Browser/Web, Documents, Media, Communication, Integrations, Meta) with a Wrench fallback for unknown/MCP toolkits.
  • src/components/WorkFlow/node.tsx: Replaced agentMap[data.type]?.icon with getToolkitIcon() at both the left-panel running toolkit indicator and the right-panel toolkit detail view. Extracted lastActiveToolkit variable to avoid duplicate filter computation. Removed unused Bot import.
image image

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Create getToolkitIcon() that maps toolkit names to lucide-react icons
by tool category (dev, browser, documents, media, communication,
integrations) with a Wrench fallback for unknown toolkits.
Replace agent-type icons with per-toolkit icons using getToolkitIcon()
so each tool action (Terminal, Browser, Note, etc.) is visually distinct.
@eureka928
Copy link
Contributor Author

@Pakchoioioi @Wendong-Fan @4pmtong would you review my PR?
Thank you

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.

[Feature Request] Refactor toolkit icons to align with tool categories

1 participant