feat: refactor toolkit icons to align with tool categories#1218
Open
eureka928 wants to merge 2 commits intoeigent-ai:mainfrom
Open
feat: refactor toolkit icons to align with tool categories#1218eureka928 wants to merge 2 commits intoeigent-ai:mainfrom
eureka928 wants to merge 2 commits intoeigent-ai:mainfrom
Conversation
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.
Contributor
Author
|
@Pakchoioioi @Wendong-Fan @4pmtong would you review my PR? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 withgetToolkitIcon()helper. Covers 30+ toolkits across 7 categories (Dev/Code, Browser/Web, Documents, Media, Communication, Integrations, Meta) with aWrenchfallback for unknown/MCP toolkits.src/components/WorkFlow/node.tsx: ReplacedagentMap[data.type]?.iconwithgetToolkitIcon()at both the left-panel running toolkit indicator and the right-panel toolkit detail view. ExtractedlastActiveToolkitvariable to avoid duplicate filter computation. Removed unusedBotimport.What is the purpose of this pull request?