diff --git a/src/components/DataflowCanvasUpdated.jsx b/src/components/DataflowCanvasUpdated.jsx index 5c59940..1e319ec 100644 --- a/src/components/DataflowCanvasUpdated.jsx +++ b/src/components/DataflowCanvasUpdated.jsx @@ -228,7 +228,18 @@ const CustomEdge = ({ id, source, target, sourceX, sourceY, targetX, targetY, so }; // Process Node (represents ETL or data transformation) -const ProcessNode = ({ data }) => { +const ProcessNode = ({ data, id }) => { + // Function to handle process edit + const handleProcessEdit = () => { + // Find the process in the mock data + const process = mockApiData.processes.find(p => p.slug === id); + if (process) { + // We'll use window.processEditCallback which will be set in the main component + if (window.processEditCallback) { + window.processEditCallback(process); + } + } + }; // Determine status color const statusColor = data.status === 'active' ? '#52c41a' : '#ff4d4f'; const isActive = data.status === 'active'; @@ -334,7 +345,7 @@ const ProcessNode = ({ data }) => { alignItems: 'center', justifyContent: 'center', padding: '15px', - pointerEvents: 'none' // Allow clicks to pass through to the node + pointerEvents: 'auto' // Enable clicks on the content }}> {/* Icon and title */}