From 6af8614764c89e951bf442cfbbc90f03784ca58a Mon Sep 17 00:00:00 2001 From: shrimbly Date: Tue, 3 Feb 2026 23:21:55 +1300 Subject: [PATCH] fix(quick-003): wire video/audio handle types in connection drop menu - Add video handle mapping for videoStitch, generateVideo, and output - Add audio handle mapping for audioInput and videoStitch - Connection drop now auto-connects for all handle types --- src/components/WorkflowCanvas.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/components/WorkflowCanvas.tsx b/src/components/WorkflowCanvas.tsx index 4fcb8bfd..a017a3d3 100644 --- a/src/components/WorkflowCanvas.tsx +++ b/src/components/WorkflowCanvas.tsx @@ -753,6 +753,26 @@ export function WorkflowCanvas() { targetHandleId = "text"; sourceHandleIdForNewNode = "text"; } + } else if (handleType === "video") { + if (nodeType === "videoStitch") { + // VideoStitch has dynamic video-N inputs and a video output + targetHandleId = "video-0"; + sourceHandleIdForNewNode = "video"; + } else if (nodeType === "generateVideo") { + // GenerateVideo outputs video + sourceHandleIdForNewNode = "video"; + } else if (nodeType === "output") { + // Output accepts video on its image handle (it detects video content type) + targetHandleId = "image"; + } + } else if (handleType === "audio") { + if (nodeType === "audioInput") { + // AudioInput outputs audio + sourceHandleIdForNewNode = "audio"; + } else if (nodeType === "videoStitch") { + // VideoStitch accepts audio + targetHandleId = "audio"; + } } // Get all selected nodes to connect them all to the new node