The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Merge branch 'r3fix/ux-composer' into claude/fuobe-parity-3
Claude0927075b79e5
diff --cc src/components/studio/model-picker.tsxindex 99d60106,c972de17..7c721425--- a/src/components/studio/model-picker.tsx+++ b/src/components/studio/model-picker.tsx@@@ -172,66 -179,87 +197,69 @@@ function PickerList({ models, value, on};return (- <Command shouldFilter={false} loop label="Models" className="rounded-none! bg-transparent p-0">- <ResponsivePanel- open={open}- onOpenChange={(o) => {- setOpen(o);- if (!o) setQ("");- }}- title="Choose a model"- className="w-[min(92vw,440px)] p-0 shadow-strong"- sheetClassName="h-[80svh]"- trigger={- <Button variant="secondary" size="sm" className="h-8 shrink-0 gap-1.5 rounded-full px-3 text-[13px] font-medium" aria-label={`Model: ${value?.name ?? "none"}. Change model`}>- {value?.engine === "open" ? <Cpu className="size-3.5" /> : <Cloud className="size-3.5" />}- <span className="max-w-32 truncate sm:max-w-44">{value?.name ?? "Choose model"}</span>- <ChevronDown className="size-3.5 opacity-60" />- </Button>- }- >- <Command shouldFilter={false} loop label="Models" onKeyDown={(e) => starKey(e, (id) => setStarred((s) => toggleIn(s, id)))} className="rounded-none! bg-transparent p-0">- <div className="flex items-center gap-2 p-1 sm:p-2 sm:pb-1">- <div className="min-w-0 flex-1 [&_[data-slot=command-input-wrapper]]:p-0">- <CommandInput value={q} onValueChange={setQ} placeholder={mode === "both" ? "Search all models" : "Search models"} aria-label="Search models" autoFocus={!mobile} />- </div>- <EngineSwitch value={engine} onChange={onEngineChange} size="sm" />++ <Command shouldFilter={false} loop label="Models" onKeyDown={(e) => starKey(e, (id) => setStarred((s) => toggleIn(s, id)))} className="rounded-none! bg-transparent p-0">+ <div className="flex items-center gap-2 p-1 sm:p-2 sm:pb-1">+ <div className="min-w-0 flex-1 [&_[data-slot=command-input-wrapper]]:p-0">+ <CommandInput value={q} onValueChange={setQ} placeholder={mode === "both" ? "Search all models" : "Search models"} aria-label="Search models" autoFocus={!mobile} /></div>- <div className="flex items-baseline gap-x-2 px-3 pb-1.5 leading-snug text-[11px] text-muted-foreground sm:px-3.5">- <span className="shrink-0 whitespace-nowrap tabular-nums">{q ? `${count} result${count === 1 ? "" : "s"}` : `${count} ${engine === "open" ? "open-source" : "cloud"} model${count === 1 ? "" : "s"}`}</span>- {demo && (- <>- <span aria-hidden>·</span>- <span className="min-w-0">- Demo — no key connected, outputs are placeholders.{" "}- <Link href="/settings" className="text-brand-text hover:underline">- Connect- </Link>- </span>- </>- )}- <span className="ml-auto shrink-0 whitespace-nowrap max-sm:hidden">- <kbd className="font-sans">{STAR_KEY_HINT}</kbd> stars- </span>- </div>- <CommandList className="max-h-[min(52vh,420px)] border-t sm:max-h-[min(56vh,440px)]">- {groups.map((g) => (- <CommandGroup key={g.id} heading={g.label}>- {g.models.map((m) => (- <CommandItem- key={`${g.id}:${m.id}`}- value={`${g.id}:${m.id}`}- onSelect={() => pick(m)}- data-checked={value?.id === m.id}- className={cn("gap-2.5 rounded-lg px-2 py-1.5 [&>svg:last-child]:hidden", value?.id === m.id && "bg-brand-faint data-selected:bg-brand-faint-hover")}- >- <ModelRow m={m} selected={value?.id === m.id} starred={starred.includes(m.id)} showEngine={!!q || m.engine !== engine} onStar={() => setStarred((s) => toggleIn(s, m.id))} />- </CommandItem>- ))}- </CommandGroup>- ))}- {!groups.length && (- <div className="flex flex-col items-center gap-2 px-4 py-10 text-center">- <SearchX className="size-5 text-subtle-foreground" />- {noneForEngine ? (- <>- <p className="text-[13px] text-muted-foreground">No {engine === "open" ? "open-source" : "cloud"} models for this yet.</p>- {engines.includes(otherEngine) && (- <Button variant="secondary" size="sm" onClick={() => onEngineChange(otherEngine)}>- Show {otherEngine === "open" ? "open-source" : "cloud"} models- </Button>- )}- </>- ) : (- <>- <p className="text-[13px] text-muted-foreground">No models match “{q}”</p>- <Button variant="secondary" size="sm" onClick={() => setQ("")}>- Clear search+ <EngineSwitch value={engine} onChange={onEngineChange} size="sm" />+ </div>+ <div className="flex items-baseline gap-x-2 px-3 pb-1.5 leading-snug text-[11px] text-muted-foreground sm:px-3.5">+ <span className="shrink-0 whitespace-nowrap tabular-nums">{q ? `${count} result${count === 1 ? "" : "s"}` : `${count} ${engine === "open" ? "open-source" : "cloud"} model${count === 1 ? "" : "s"}`}</span>+ {demo && (+ <>+ <span aria-hidden>·</span>+ <span className="min-w-0">+ Demo — no key connected, outputs are placeholders.{" "}+ <Link href="/settings" className="text-brand-text hover:underline">+ Connect+ </Link>+ </span>+ </>+ )}++ <span className="ml-auto shrink-0 whitespace-nowrap max-sm:hidden">++ <kbd className="font-sans">{STAR_KEY_HINT}</kbd> stars++ </span>+ </div>+ <CommandList className="max-h-[min(52vh,420px)] border-t sm:max-h-[min(56vh,440px)]">+ {groups.map((g) => (+ <CommandGroup key={g.id} heading={g.label}>+ {g.models.map((m) => (+ <CommandItem+ key={`${g.id}:${m.id}`}+ value={`${g.id}:${m.id}`}+ onSelect={() => pick(m)}+ data-checked={value?.id === m.id}+ className={cn("gap-2.5 rounded-lg px-2 py-1.5 [&>svg:last-child]:hidden", value?.id === m.id && "bg-brand-faint data-selected:bg-brand-faint-hover")}+ >+ <ModelRow m={m} selected={value?.id === m.id} starred={starred.includes(m.id)} showEngine={!!q || m.engine !== engine} onStar={() => setStarred((s) => toggleIn(s, m.id))} />+ </CommandItem>+ ))}+ </CommandGroup>+ ))}+ {!groups.length && (+ <div className="flex flex-col items-center gap-2 px-4 py-10 text-center">+ <SearchX className="size-5 text-subtle-foreground" />+ {noneForEngine ? (+ <>+ <p className="text-[13px] text-muted-foreground">No {engine === "open" ? "open-source" : "cloud"} models for this yet.</p>+ {engines.includes(otherEngine) && (+ <Button variant="secondary" size="sm" onClick={() => onEngineChange(otherEngine)}>+ Show {otherEngine === "open" ? "open-source" : "cloud"} models</Button>- </>- )}- </div>- )}- </CommandList>- </Command>- </ResponsivePanel>+ )}+ </>+ ) : (+ <>+ <p className="text-[13px] text-muted-foreground">No models match “{q}”</p>+ <Button variant="secondary" size="sm" onClick={() => setQ("")}>+ Clear search+ </Button>+ </>+ )}+ </div>+ )}+ </CommandList>+ </Command>);}