Browse Source

fix: add audio-to-video badge and generateVideo to audio drop targets

Add missing "audio-to-video" case to getCapabilityBadges() so the
capability badge renders in the model explorer. Add generateVideo to
AUDIO_TARGET_OPTIONS in ConnectionDropMenu so dropping an audio
connection offers Generate Video as a target node.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 3 months ago
parent
commit
72754c6cb0
  1. 9
      src/components/ConnectionDropMenu.tsx
  2. 4
      src/components/modals/ModelSearchDialog.tsx

9
src/components/ConnectionDropMenu.tsx

@ -515,6 +515,15 @@ const AUDIO_TARGET_OPTIONS: MenuOption[] = [
</svg>
),
},
{
type: "generateVideo",
label: "Generate Video",
icon: (
<svg className="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
<path strokeLinecap="round" strokeLinejoin="round" d="m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z" />
</svg>
),
},
{
type: "output",
label: "Output",

4
src/components/modals/ModelSearchDialog.tsx

@ -539,6 +539,10 @@ export function ModelSearchDialog({
color = "bg-fuchsia-500/20 text-fuchsia-300";
label = "txt→audio";
break;
case "audio-to-video":
color = "bg-violet-500/20 text-violet-300";
label = "audio→vid";
break;
}
if (label) {

Loading…
Cancel
Save