fix(ui): distinguish EventProcessor with a trigger icon

This commit is contained in:
RockChinQ
2026-09-10 15:18:04 +08:00
parent d1c79a35e8
commit 15fa0f50e3
3 changed files with 6 additions and 5 deletions
@@ -7,7 +7,7 @@ import {
FileText, FileText,
PanelTop, PanelTop,
Bot, Bot,
Puzzle, Zap,
} from 'lucide-react'; } from 'lucide-react';
import { Badge } from '@/components/ui/badge'; import { Badge } from '@/components/ui/badge';
@@ -34,7 +34,7 @@ export default function PluginComponentList({
Parser: <FileText className="w-5 h-5" />, Parser: <FileText className="w-5 h-5" />,
Page: <PanelTop className="w-5 h-5" />, Page: <PanelTop className="w-5 h-5" />,
AgentRunner: <Bot className="w-5 h-5" />, AgentRunner: <Bot className="w-5 h-5" />,
EventProcessor: <Puzzle className="w-5 h-5" />, EventProcessor: <Zap className="w-5 h-5" />,
}; };
const componentKindList = Object.keys(components || {}); const componentKindList = Object.keys(components || {});
@@ -5,7 +5,7 @@ import {
Book, Book,
FileText, FileText,
Hash, Hash,
Puzzle, Zap,
Wrench, Wrench,
type LucideIcon, type LucideIcon,
} from 'lucide-react'; } from 'lucide-react';
@@ -18,5 +18,5 @@ export const pluginComponentIconMap: Record<string, LucideIcon> = {
Parser: FileText, Parser: FileText,
Page: AppWindow, Page: AppWindow,
AgentRunner: Bot, AgentRunner: Bot,
EventProcessor: Puzzle, EventProcessor: Zap,
}; };
@@ -18,6 +18,7 @@ import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group';
import { import {
Search, Search,
Puzzle, Puzzle,
Zap,
Server, Server,
Sparkles, Sparkles,
Wrench, Wrench,
@@ -248,7 +249,7 @@ function MarketPageContent({
{ {
value: 'EventProcessor', value: 'EventProcessor',
label: t('market.componentName.EventProcessor'), label: t('market.componentName.EventProcessor'),
icon: Puzzle, icon: Zap,
}, },
]; ];