|
1 | 1 | import { useEffect, useRef, useState } from 'react' |
2 | 2 | import { Handle, NodeResizer, Position, type NodeProps, type Node, useReactFlow, useUpdateNodeInternals } from 'reactflow' |
3 | | -import { Loader2, CheckCircle, XCircle, Clock, Activity, AlertCircle, Pause, Terminal as TerminalIcon, Pencil, Trash2 } from 'lucide-react' |
| 3 | +import { Loader2, CheckCircle, XCircle, Clock, Activity, AlertCircle, Pause, Terminal as TerminalIcon, Trash2 } from 'lucide-react' |
4 | 4 | import * as LucideIcons from 'lucide-react' |
5 | 5 | import { cn } from '@/lib/utils' |
6 | 6 | import { MarkdownView } from '@/components/ui/markdown' |
@@ -854,22 +854,7 @@ export const WorkflowNode = ({ data, selected, id }: NodeProps<NodeData>) => { |
854 | 854 | {/* Delete button (Design Mode only, not Entry Point) */} |
855 | 855 |
|
856 | 856 |
|
857 | | - {/* Edit button for text blocks - explicitly select node for editing */} |
858 | | - {isTextBlock && mode === 'design' && ( |
859 | | - <button |
860 | | - type="button" |
861 | | - className="p-1 rounded hover:bg-muted/80 text-muted-foreground hover:text-foreground transition-colors" |
862 | | - title="Edit content" |
863 | | - aria-label="Edit content" |
864 | | - onClick={(e) => { |
865 | | - // Stop propagation to prevent triggering parent div's onClick |
866 | | - e.stopPropagation() |
867 | | - // The node selection will be handled by React Flow's onNodeClick |
868 | | - }} |
869 | | - > |
870 | | - <Pencil className="h-3.5 w-3.5" /> |
871 | | - </button> |
872 | | - )} |
| 857 | + |
873 | 858 |
|
874 | 859 | {/* Embedded Webhook Dialog (Controlled) */} |
875 | 860 | {isEntryPoint && ( |
|
0 commit comments