diff --git a/src/components/DataflowCanvas.jsx b/src/components/DataflowCanvas.jsx index 1eaaaa4..92c3ade 100644 --- a/src/components/DataflowCanvas.jsx +++ b/src/components/DataflowCanvas.jsx @@ -310,7 +310,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'; @@ -393,15 +404,20 @@ const ProcessNode = ({ data }) => { /> {/* Process Icon with integrated content */} -