From cd1a93f88fb6829d9631da35939c1a4639fb27c7 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Fri, 10 Oct 2025 22:31:56 +0200 Subject: [PATCH] feat: display actor type icons in left panel add buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace generic circle icons with the actual node type icons in the left panel's "Add Actors" section. Icons now match the visual representation of actors in the graph, making it more intuitive to identify actor types. Falls back to circle if no icon is defined. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/components/Panels/LeftPanel.tsx | 49 ++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/src/components/Panels/LeftPanel.tsx b/src/components/Panels/LeftPanel.tsx index c73cbb5..4590e2e 100644 --- a/src/components/Panels/LeftPanel.tsx +++ b/src/components/Panels/LeftPanel.tsx @@ -8,6 +8,8 @@ import { usePanelStore } from '../../stores/panelStore'; import { useGraphWithHistory } from '../../hooks/useGraphWithHistory'; import { useEditorStore } from '../../stores/editorStore'; import { createNode } from '../../utils/nodeUtils'; +import { getIconComponent } from '../../utils/iconUtils'; +import { getContrastColor } from '../../utils/colorUtils'; /** * LeftPanel - Collapsible tools panel on the left side @@ -107,21 +109,38 @@ const LeftPanel = ({ onDeselectAll, onAddNode }: LeftPanelProps) => { {leftPanelSections.addActors && (
- {nodeTypes.map((nodeType) => ( - - ))} + {nodeTypes.map((nodeType) => { + const IconComponent = getIconComponent(nodeType.icon); + const textColor = getContrastColor(nodeType.color); + + return ( + + ); + })}

Click a button to add an actor to the canvas