Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Tests: follow the app's current copy, covers, pins and markup

Adarsh11de566d28ef
diff --git a/tests/__snapshots__/home-studios.html b/tests/__snapshots__/home-studios.html
index 9325cd19..4eb79956 100644
--- a/tests/__snapshots__/home-studios.html
+++ b/tests/__snapshots__/home-studios.html
@@ -207,8 +207,8 @@
<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">
<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">
<picture>
-<source type="image/avif" srcSet="/previews/presets/hd/320/motion-catwalk.avif?v=cb5980c6 320w, /previews/presets/hd/640/motion-catwalk.avif?v=cb5980c6 640w, /previews/presets/hd/1024/motion-catwalk.avif?v=cb5980c6 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>
-<img src="/previews/presets/motion-catwalk.jpg?v=57f553e7" srcSet="/previews/presets/thumbs/motion-catwalk.jpg?v=57f553e7 320w, /previews/presets/motion-catwalk.jpg?v=57f553e7 512w, /previews/presets/hd/640/motion-catwalk.jpg?v=cb5980c6 640w, /previews/presets/hd/1024/motion-catwalk.jpg?v=cb5980c6 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>
+<source type="image/avif" srcSet="/previews/presets/hd/320/motion-catwalk.avif?v=e2e13a2c 320w, /previews/presets/hd/640/motion-catwalk.avif?v=e2e13a2c 640w, /previews/presets/hd/1024/motion-catwalk.avif?v=e2e13a2c 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>
+<img src="/previews/presets/motion-catwalk.jpg?v=f357606b" srcSet="/previews/presets/thumbs/motion-catwalk.jpg?v=f357606b 320w, /previews/presets/motion-catwalk.jpg?v=f357606b 512w, /previews/presets/hd/640/motion-catwalk.jpg?v=e2e13a2c 640w, /previews/presets/hd/1024/motion-catwalk.jpg?v=e2e13a2c 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>
</picture>
</div>
</div>
diff --git a/tests/comfy-character-swap.test.ts b/tests/comfy-character-swap.test.ts
index 65501098..c7028dbf 100644
--- a/tests/comfy-character-swap.test.ts
+++ b/tests/comfy-character-swap.test.ts
@@ -79,10 +79,12 @@ describe("Character swap's ComfyUI graphs", () => {
else if (PACK.test(c)) expect(subset[c], c).toBeNull();
else expect(subset[c], c).not.toBeNull();
}
- const w = entry(id);
- expect(w.validated).toBe(false);
- expect((w as typeof w & { validationError?: string }).validationError).toMatch(/missing_node_type/);
}
+ // The Original passed its GPU test on a server with the pack; the Relay's graph still names the node it lacks.
+ expect(entry(SWAP).validated).toBe(true);
+ const relay = entry(RELAY);
+ expect(relay.validated).toBe(false);
+ expect((relay as typeof relay & { validationError?: string }).validationError).toMatch(/missing_node_type/);
});
it("every media loader is bound, and the anchor is image2 on the Original's graph only", () => {
diff --git a/tests/comfy-reuse.test.ts b/tests/comfy-reuse.test.ts
index 4252d924..8fa8a875 100644
--- a/tests/comfy-reuse.test.ts
+++ b/tests/comfy-reuse.test.ts
@@ -223,6 +223,7 @@ describe("licences, as information", () => {
expect(pack?.repo).toBe(`https://github.com/workingprototype/Fuobe/tree/${requirements.packs["ComfyUI-RE-USE"].commit}/comfy-nodes/ComfyUI-RE-USE`);
expect(pack?.licence.note).toMatch(/not NVIDIA's code path/);
expect(ATTRIBUTIONS.find((a) => a.for === "Clean up voice")).toMatchObject({ licence: "OpenMDW-1.1", note: expect.stringMatching(/non-commercial \(NSCLv1\)/) });
- expect(ATTRIBUTIONS.find((a) => a.for === "Clean up voice demo")).toMatchObject({ licence: "OpenMDW-1.1", text: expect.stringContaining("mic_test2.wav") });
+ // The brasserie clips replaced NVIDIA's sample recording in the demo, and its credit went with it.
+ expect(ATTRIBUTIONS.find((a) => a.for === "Clean up voice demo")).toBeUndefined();
});
});
diff --git a/tests/dop-originals.test.ts b/tests/dop-originals.test.ts
index d9d4b29c..ce44a35c 100644
--- a/tests/dop-originals.test.ts
+++ b/tests/dop-originals.test.ts
@@ -413,10 +413,16 @@ describe("the composer follows the engine, not a person's pick", () => {
expect(engineSwitchModel({ model: getModel("minimax-h3")!, preset: jib, engine: "open", from: "cloud", defaults, has: inCatalog })).toBe("oss-minimax-h3");
expect(engineSwitchModel({ model: view("fuobe-dop", "cloud"), preset: jib, engine: "cloud", from: "open", defaults, has: inCatalog })).toBe("fuobe-dop-ltx");
expect(engineSwitchModel({ model: view("fuobe-dop", "open"), preset: jib, engine: "open", from: "open", defaults, has: inCatalog })).toBeUndefined();
- // The effects with a start-frame step (relight, Mixed Media) stay on Fuobe DoP, which runs the step.
+ // The effects with a start-frame step (relight, Mixed Media) open on MiniMax H3 too, as their recipes made their
+ // covers; without H3 in the catalog they stay on Fuobe DoP, which runs the step.
const steps = EFFECTS.filter((p) => p.prestep);
expect(steps).toHaveLength(38);
- for (const p of steps) for (const engine of ["open", "cloud"] as const) expect(presetModel(p, engine, inCatalog), p.id).toBe(p[engine]!.modelId);
+ for (const p of steps) {
+ expect(p.recipe?.clip, p.id).toBeTruthy();
+ expect(presetModel(p, "open", inCatalog), p.id).toBe("oss-minimax-h3");
+ expect(presetModel(p, "cloud", inCatalog), p.id).toBe("minimax-h3");
+ for (const engine of ["open", "cloud"] as const) expect(presetModel(p, engine, noRecipe), p.id).toBe(p[engine]!.modelId);
+ }
// A colour-grade effect stays on Fuobe DoP on both engines, whose clip carries the grade (as its cover was made).
for (const engine of ["open", "cloud"] as const) expect(presetModel(getPreset("effect-candy-pink")!, engine, inCatalog)).toBe("fuobe-dop");
// Fuobe DoP picked: its own route runs as before (LoRAs, the trigger, its settings).
diff --git a/tests/engine-mode.test.ts b/tests/engine-mode.test.ts
index 4a825e0b..578ea691 100644
--- a/tests/engine-mode.test.ts
+++ b/tests/engine-mode.test.ts
@@ -199,7 +199,7 @@ describe("the engine switch a studio starts on", () => {
// runs off it runs once on the key too (runOnceWithKey), and the switch stays where it was.
const composer = readFileSync("src/components/studio/composer.tsx", "utf8");
expect(composer).toMatch(/const onRunWithKey = viewerInfo\?\.hosted \? \(a: TroubleAction\) => submitRef\.current\(undefined, a\) : runOnceWithKey;/);
- expect(composer).toMatch(/const onKey = withKey \? onCloudKey\(withVoiceFirst, withKey\) : withVoiceFirst;/);
+ expect(composer).toMatch(/const onKey = withKey \? onCloudKey\(withFixFaces, withKey\) : withFixFaces;/);
expect(composer).toMatch(/onClick=\{\(\) => \(viewerInfo\?\.hosted \? engineForNextPage\("cloud"\) : setEngine\("cloud"\)\)\}/);
});
diff --git a/tests/golden/self-host/composer.html b/tests/golden/self-host/composer.html
index 525cfd81..5278c552 100644
--- a/tests/golden/self-host/composer.html
+++ b/tests/golden/self-host/composer.html
@@ -15,7 +15,7 @@
</svg>
</button>
<span class="flex min-w-0 shrink-0 max-sm:order-2 max-sm:min-w-[4.5rem] max-sm:shrink max-sm:[&amp;&gt;button]:min-w-0 max-sm:[&amp;&gt;button]:shrink max-sm:[&amp;&gt;button&gt;svg:first-child]:hidden">
-<button data-slot="popover-trigger" data-variant="secondary" data-size="sm" class="group/button inline-flex items-center justify-center border border-transparent bg-clip-padding whitespace-nowrap transition-[color,background-color,border-color,box-shadow,scale] duration-(--motion-base) ease-(--ease-standard) outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:duration-(--motion-fast) active:not-aria-[haspopup]:scale-(--motion-press-card) disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-3.5 h-8 shrink-0 gap-1.5 rounded-full px-3 text-[13px] font-medium" aria-label="Model: Ideogram 4. Change model" type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed">
+<button data-slot="popover-trigger" data-variant="secondary" data-size="sm" class="group/button inline-flex items-center justify-center border border-transparent bg-clip-padding whitespace-nowrap transition-[color,background-color,border-color,box-shadow,scale] duration-(--motion-base) ease-(--ease-standard) outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:duration-(--motion-fast) active:not-aria-[haspopup]:scale-(--motion-press-card) disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-3.5 h-8 shrink-0 gap-1.5 rounded-full px-3 text-[13px] font-medium" aria-label="Model: Auto. Change model" type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu size-3.5" aria-hidden="true">
<path d="M12 20v2">
</path>
@@ -46,8 +46,8 @@
<rect x="8" y="8" width="8" height="8" rx="1">
</rect>
</svg>
-<span class="max-w-40 truncate max-sm:hidden sm:max-w-44">Ideogram 4</span>
-<span class="max-w-40 truncate sm:hidden">Ideogram 4</span>
+<span class="max-w-40 truncate max-sm:hidden sm:max-w-44">Auto</span>
+<span class="max-w-40 truncate sm:hidden">Auto</span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down size-3.5 opacity-60" aria-hidden="true">
<path d="m6 9 6 6 6-6">
</path>
@@ -101,17 +101,6 @@
<span class="contents max-sm:hidden">
<span aria-hidden="true" class="h-8 w-40 shrink-0 animate-pulse rounded-full bg-secondary">
</span>
-<button type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed" data-slot="popover-trigger" class="inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full px-3 text-[13px] font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring/50 bg-secondary text-secondary-foreground hover:bg-accent">
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings-2 size-3.5" aria-hidden="true">
-<path d="M14 17H5">
-</path>
-<path d="M19 7h-9">
-</path>
-<circle cx="17" cy="17" r="3">
-</circle>
-<circle cx="7" cy="7" r="3">
-</circle>
-</svg>Options</button>
</span>
</div>
<span class="shrink-0 text-[12px] font-medium text-muted-foreground tabular-nums" data-state="closed" data-slot="tooltip-trigger">
@@ -148,7 +137,7 @@
</svg>
</button>
<span class="flex min-w-0 shrink-0 max-sm:order-2 max-sm:min-w-[4.5rem] max-sm:shrink max-sm:[&amp;&gt;button]:min-w-0 max-sm:[&amp;&gt;button]:shrink max-sm:[&amp;&gt;button&gt;svg:first-child]:hidden">
-<button data-slot="popover-trigger" data-variant="secondary" data-size="sm" class="group/button inline-flex items-center justify-center border border-transparent bg-clip-padding whitespace-nowrap transition-[color,background-color,border-color,box-shadow,scale] duration-(--motion-base) ease-(--ease-standard) outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:duration-(--motion-fast) active:not-aria-[haspopup]:scale-(--motion-press-card) disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-3.5 h-8 shrink-0 gap-1.5 rounded-full px-3 text-[13px] font-medium" aria-label="Model: Ideogram 4. Change model" type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed">
+<button data-slot="popover-trigger" data-variant="secondary" data-size="sm" class="group/button inline-flex items-center justify-center border border-transparent bg-clip-padding whitespace-nowrap transition-[color,background-color,border-color,box-shadow,scale] duration-(--motion-base) ease-(--ease-standard) outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:duration-(--motion-fast) active:not-aria-[haspopup]:scale-(--motion-press-card) disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-3.5 h-8 shrink-0 gap-1.5 rounded-full px-3 text-[13px] font-medium" aria-label="Model: Auto. Change model" type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu size-3.5" aria-hidden="true">
<path d="M12 20v2">
</path>
@@ -179,8 +168,8 @@
<rect x="8" y="8" width="8" height="8" rx="1">
</rect>
</svg>
-<span class="max-w-40 truncate max-sm:hidden sm:max-w-44">Ideogram 4</span>
-<span class="max-w-40 truncate sm:hidden">Ideogram 4</span>
+<span class="max-w-40 truncate max-sm:hidden sm:max-w-44">Auto</span>
+<span class="max-w-40 truncate sm:hidden">Auto</span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down size-3.5 opacity-60" aria-hidden="true">
<path d="m6 9 6 6 6-6">
</path>
@@ -234,17 +223,6 @@
<span class="contents max-sm:hidden">
<span aria-hidden="true" class="h-8 w-40 shrink-0 animate-pulse rounded-full bg-secondary">
</span>
-<button type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed" data-slot="popover-trigger" class="inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full px-3 text-[13px] font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring/50 bg-secondary text-secondary-foreground hover:bg-accent">
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings-2 size-3.5" aria-hidden="true">
-<path d="M14 17H5">
-</path>
-<path d="M19 7h-9">
-</path>
-<circle cx="17" cy="17" r="3">
-</circle>
-<circle cx="7" cy="7" r="3">
-</circle>
-</svg>Options</button>
</span>
</div>
<span class="shrink-0 text-[12px] font-medium text-muted-foreground tabular-nums" data-state="closed" data-slot="tooltip-trigger">
diff --git a/tests/golden/self-host/feed.html b/tests/golden/self-host/feed.html
index 3d7e05da..133a432c 100644
--- a/tests/golden/self-host/feed.html
+++ b/tests/golden/self-host/feed.html
@@ -66,7 +66,7 @@
<ul class="scrollbar-none flex gap-2.5 overflow-x-auto overscroll-x-contain max-md:snap-x max-md:snap-mandatory md:flex-wrap md:overflow-visible">
<li class="shrink-0 snap-start">
<a class="nav-row flex items-center h-[52px] gap-2.5 rounded-[14px] border bg-card pr-4 pl-1.5 text-card-foreground nav-hover:border-border-strong" href="/video?image=%2Fapi%2Ffiles%2Fa1">
-<span aria-hidden="true" class="relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
+<span aria-hidden="true" class="group/cover relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars absolute inset-0 m-auto size-[42%] max-h-6 max-w-6 text-muted-foreground" aria-hidden="true">
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z">
</path>
@@ -86,7 +86,7 @@
</li>
<li class="shrink-0 snap-start">
<a class="nav-row flex items-center h-[52px] gap-2.5 rounded-[14px] border bg-card pr-4 pl-1.5 text-card-foreground nav-hover:border-border-strong" href="/edit?image=%2Fapi%2Ffiles%2Fa1">
-<span aria-hidden="true" class="relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
+<span aria-hidden="true" class="group/cover relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars absolute inset-0 m-auto size-[42%] max-h-6 max-w-6 text-muted-foreground" aria-hidden="true">
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z">
</path>
@@ -106,7 +106,7 @@
</li>
<li class="shrink-0 snap-start">
<a class="nav-row flex items-center h-[52px] gap-2.5 rounded-[14px] border bg-card pr-4 pl-1.5 text-card-foreground nav-hover:border-border-strong" href="/upscale?image=%2Fapi%2Ffiles%2Fa1">
-<span aria-hidden="true" class="relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
+<span aria-hidden="true" class="group/cover relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars absolute inset-0 m-auto size-[42%] max-h-6 max-w-6 text-muted-foreground" aria-hidden="true">
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z">
</path>
@@ -126,7 +126,7 @@
</li>
<li class="shrink-0 snap-start">
<a class="nav-row flex items-center h-[52px] gap-2.5 rounded-[14px] border bg-card pr-4 pl-1.5 text-card-foreground nav-hover:border-border-strong" href="/color-grade?image=%2Fapi%2Ffiles%2Fa1">
-<span aria-hidden="true" class="relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
+<span aria-hidden="true" class="group/cover relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars absolute inset-0 m-auto size-[42%] max-h-6 max-w-6 text-muted-foreground" aria-hidden="true">
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z">
</path>
@@ -146,7 +146,7 @@
</li>
<li class="shrink-0 snap-start">
<a class="nav-row flex items-center h-[52px] gap-2.5 rounded-[14px] border bg-card pr-4 pl-1.5 text-card-foreground nav-hover:border-border-strong" href="/image-to-3d?image=%2Fapi%2Ffiles%2Fa1">
-<span aria-hidden="true" class="relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
+<span aria-hidden="true" class="group/cover relative block shrink-0 overflow-hidden bg-muted size-10 rounded-[10px]">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars absolute inset-0 m-auto size-[42%] max-h-6 max-w-6 text-muted-foreground" aria-hidden="true">
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z">
</path>
diff --git a/tests/image-studios.test.ts b/tests/image-studios.test.ts
index bacc5620..1730e27d 100644
--- a/tests/image-studios.test.ts
+++ b/tests/image-studios.test.ts
@@ -336,7 +336,8 @@ describe("moodboards: routing per model", () => {
it("curated sets are Fuobe's own looks: Fuobe ids and words, no description or preview copied from the parity research", () => {
const base = CURATED_SETS["soul-v2"];
expect(base).toHaveLength(33);
- expect(base.every((c) => c.id.startsWith("v2-") && !c.preview)).toBe(true);
+ // A preview, where there is one, is the look's own Fuobe cover (template-covers.generated.ts).
+ expect(base.every((c) => c.id.startsWith("v2-") && (!c.preview || c.preview.src.startsWith(`/previews/templates/soul/${c.id}.`)))).toBe(true);
const theirs = new Map(SOUL_RESEARCH.filter((p) => p.model === "soul-v2").map((p) => [p.name, p.description]));
expect(base.every((c) => c.description !== theirs.get(c.name))).toBe(true);
});
diff --git a/tests/preset-recipes.test.ts b/tests/preset-recipes.test.ts
index 1bc3932d..5d71bb95 100644
--- a/tests/preset-recipes.test.ts
+++ b/tests/preset-recipes.test.ts
@@ -116,7 +116,13 @@ describe("spot checks", () => {
expect(presetRecipe(p("effect-set-on-fire"), "open", inCatalog)?.made).toBe(true);
const dis = presetRecipe(p("effect-disintegration"), "open", inCatalog)!;
expect(dis.route.modelId).toBe("oss-minimax-h3");
- expect(dis.made).toBe(false);
+ // Its H3 clip is out; a preset whose cover is still an Ideogram 4 still gets the route without the label.
+ expect(PRESET_PREVIEWS["effect-disintegration"]?.model).toBe("minimax-h3");
+ expect(dis.made).toBe(true);
+ const still = presetRecipe(p("effect-burning-man"), "open", inCatalog)!;
+ expect(PRESET_PREVIEWS["effect-burning-man"]?.model).toBe("ideogram4");
+ expect(still.route.modelId).toBe("oss-minimax-h3");
+ expect(still.made).toBe(false);
});
it("the presets made at Best open at Best", () => {
diff --git a/tests/result-actions-layout.test.ts b/tests/result-actions-layout.test.ts
index d78d68bd..2cd45869 100644
--- a/tests/result-actions-layout.test.ts
+++ b/tests/result-actions-layout.test.ts
@@ -44,7 +44,7 @@ describe("the result panel's action buttons", () => {
expect(viewer).toMatch(/const cls = cn\("min-w-0"/);
expect(viewer).not.toMatch(/\{icon\} \{label\}/);
const grid = /const ACTION_GRID =\s*"([^"]+)"/.exec(viewer)?.[1] ?? "";
- for (const c of ["@container/actions", "grid-cols-2", "[&>*]:h-auto", "[&>*]:min-h-7", "[&>*]:whitespace-normal", "[&_[data-label]]:line-clamp-2", "[&_[data-label]]:whitespace-normal"]) expect(grid).toContain(c);
+ for (const c of ["@container/actions", "grid-cols-2", "[&>*]:h-auto", "[&>*]:min-h-8", "[&>*]:whitespace-normal", "[&_[data-label]]:line-clamp-2", "[&_[data-label]]:whitespace-normal"]) expect(grid).toContain(c);
});
it("show the short chip only where the grid has room, the mark elsewhere, and nothing to the owner", () => {
diff --git a/tests/retired-provider.test.ts b/tests/retired-provider.test.ts
index 5d219f4e..8383ce09 100644
--- a/tests/retired-provider.test.ts
+++ b/tests/retired-provider.test.ts
@@ -71,7 +71,8 @@ const ROOT = path.resolve(__dirname, "..");
/** A retired model or training id in code (a stored one resolves through replaced.ts; nothing else names it). */
const RETIRED_IDS = new RegExp(`["'\`](${[...Object.keys(REPLACED_BY), ...Object.keys(TRAINING_REPLACED_BY)].join("|")})["'\`]`);
-const RETIRED_ID_ALLOWED = new Set(["src/lib/catalog/replaced.ts", "src/server/db.ts"]);
+// fx-pairs.generated.ts is keyed by Fuobe FX item ids (genjutsu-<mode>), which can share a retired model id's spelling.
+const RETIRED_ID_ALLOWED = new Set(["src/lib/catalog/replaced.ts", "src/server/db.ts", "src/lib/fx-pairs.generated.ts"]);
const CODE = /\.(ts|tsx|mts|js|mjs|cjs)$/;
function walk(p: string, out: string[]) {
diff --git a/tests/shell-logic.test.ts b/tests/shell-logic.test.ts
index 4ec9889f..0fd50469 100644
--- a/tests/shell-logic.test.ts
+++ b/tests/shell-logic.test.ts
@@ -822,7 +822,8 @@ describe("landmarks", () => {
fs.readdirSync(dir, { withFileTypes: true }).flatMap((e) => (e.isDirectory() ? files(path.join(dir, e.name)) : e.name.endsWith(".tsx") ? [path.join(dir, e.name)] : []));
const root = path.resolve(__dirname, "../src");
const mains = [...files(path.join(root, "components")), ...files(path.join(root, "app/(studio)"))]
- .filter((f) => /<main[\s>]/.test(fs.readFileSync(f, "utf8")))
+ // Comment lines may name the landmark; only markup counts.
+ .filter((f) => /<main[\s>]/.test(fs.readFileSync(f, "utf8").split("\n").filter((l) => !/^\s*(\/\/|\/?\*)/.test(l)).join("\n")))
.map((f) => path.relative(root, f).split(path.sep).join("/"));
expect(mains).toEqual(["components/nav/studio-chrome.tsx"]);
});
diff --git a/tests/soul-runs.test.ts b/tests/soul-runs.test.ts
index 5ad2b842..55da1f46 100644
--- a/tests/soul-runs.test.ts
+++ b/tests/soul-runs.test.ts
@@ -45,7 +45,7 @@ describe("Fuobe Soul on both engines", () => {
expect(pickEngine(m, undefined, "cloud", () => false)).toBe("cloud");
expect(pickEngine(m, undefined, "both", (e) => e === "cloud")).toBe("cloud");
expect(pickEngine(m, undefined, "both", () => true)).toBe("open");
- expect(() => pickEngine(m, "cloud", "open", () => true)).toThrow(/open source only/);
+ expect(() => pickEngine(m, "cloud", "open", () => true)).toThrow(/on the cloud isn't available here\. Switch to Open source/);
});
it("applies the look: triggers in front, the user's words, the look, the tail, its LoRAs", () => {
@@ -199,7 +199,7 @@ describe("Fuobe Soul through the server", () => {
expect(g.engine).toBe("cloud");
expect(g.request.engine).toBe("cloud");
setSetting("engineMode", "open");
- expect(() => createGenerations({ feature: "image", modelId: "fuobe-soul", prompt: "a fox", engine: "cloud" })).toThrow(/open source only/);
+ expect(() => createGenerations({ feature: "image", modelId: "fuobe-soul", prompt: "a fox", engine: "cloud" })).toThrow(/on the cloud isn't available here\. Switch to Open source/);
const [o] = createGenerations({ feature: "image", modelId: "fuobe-soul", prompt: "a fox" });
expect(o.engine).toBe("open");
setSetting("engineMode", "both");
diff --git a/tests/worker-3d-inputs.test.ts b/tests/worker-3d-inputs.test.ts
index 832473f1..d547ef3b 100644
--- a/tests/worker-3d-inputs.test.ts
+++ b/tests/worker-3d-inputs.test.ts
@@ -263,7 +263,7 @@ describe("the place gate and the files each step reads", () => {
const req = angle(mine(TINY_PNG, "image/png", "me.png"), mine(Buffer.from("{}"), "application/json", "view.json"));
expect(hosted.requestFileKinds(req as never).sort()).toEqual(["file", "image"]);
const q = await poolQuote(account, req as never, undefined);
- expect(q?.quote).toMatchObject({ allowed: false, text: "This file runs on your own GPU" });
+ expect(q?.quote).toMatchObject({ allowed: false, text: "This file runs self-hosted" });
});
it("a later step's files count too: a 3D model handed on is taken, a clip only where the workers take clips", () => {