Browse Source

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
handoff-20260429-1057
shrimbly 5 months ago
parent
commit
6af8614764
  1. 20
      src/components/WorkflowCanvas.tsx

20
src/components/WorkflowCanvas.tsx

@ -753,6 +753,26 @@ export function WorkflowCanvas() {
targetHandleId = "text"; targetHandleId = "text";
sourceHandleIdForNewNode = "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 // Get all selected nodes to connect them all to the new node

Loading…
Cancel
Save