Browse Source

fix: add missing node and handle types to quickstart validation

VALID_NODE_TYPES was missing audioInput, promptConstructor, outputGallery,
imageCompare, videoStitch, easeCurve, videoTrim, videoFrameGrab, and glbViewer —
all of which are defined in NodeType and have entries in DEFAULT_DIMENSIONS and
createDefaultNodeData. VALID_HANDLE_TYPES was missing video, easeCurve, and 3d
handle types used by EaseCurveNode, GenerateVideoNode, Generate3DNode, GLBViewerNode,
VideoStitchNode, VideoTrimNode, and VideoFrameGrabNode.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
handoff-20260429-1057
Shrimbly 5 months ago
parent
commit
2a4b87ac78
  1. 11
      src/lib/quickstart/validation.ts

11
src/lib/quickstart/validation.ts

@ -13,9 +13,11 @@ interface ValidationResult {
const VALID_NODE_TYPES: NodeType[] = [
"imageInput",
"audioInput",
"annotation",
"prompt",
"array",
"promptConstructor",
"nanoBanana",
"generateVideo",
"generate3d",
@ -23,9 +25,16 @@ const VALID_NODE_TYPES: NodeType[] = [
"llmGenerate",
"splitGrid",
"output",
"outputGallery",
"imageCompare",
"videoStitch",
"easeCurve",
"videoTrim",
"videoFrameGrab",
"glbViewer",
];
const VALID_HANDLE_TYPES = ["image", "text", "audio", "reference"];
const VALID_HANDLE_TYPES = ["image", "text", "audio", "video", "easeCurve", "3d", "reference"];
// Default node dimensions
const DEFAULT_DIMENSIONS: Record<NodeType, { width: number; height: number }> = {

Loading…
Cancel
Save