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.

Keyframes to animation sits under More templates with a rank of its own

Adarsh625a3d591770
diff --git a/src/lib/catalog/canvas.ts b/src/lib/catalog/canvas.ts
index 75d4a5d8..9a83eb9c 100644
--- a/src/lib/catalog/canvas.ts
+++ b/src/lib/catalog/canvas.ts
@@ -2173,7 +2173,7 @@ export const CANVAS_TEMPLATES: CanvasTemplate[] = [
description: "Your keyframes in, the in-betweens drawn, one animation: a table times each gap",
icon: "Sparkles",
hue: 320,
- rank: 99,
+ rank: 98,
starter: false,
makes: "One animation through your keyframes, each gap timed as the table says.",
flow: ["Keyframes", "Timing", "Animation"],
diff --git a/tests/canvas-starters.test.ts b/tests/canvas-starters.test.ts
index 3d615c17..91530f5d 100644
--- a/tests/canvas-starters.test.ts
+++ b/tests/canvas-starters.test.ts
@@ -34,7 +34,7 @@ describe("Canvas templates as ready boards", () => {
const ranks = CANVAS_TEMPLATES.filter((t) => (t.group ?? "") === s.key).map((t) => t.rank);
expect(new Set(ranks).size, s.title).toBe(ranks.length);
}
- expect(CANVAS_TEMPLATES.filter((t) => t.starter === false).map((t) => t.id)).toEqual(["blockout-film"]);
+ expect(CANVAS_TEMPLATES.filter((t) => t.starter === false).map((t) => t.id)).toEqual(["keyframes-animation", "blockout-film"]);
});
it("say what they are in plain words: no model names, no engine words", () => {
@@ -93,20 +93,20 @@ describe("Who sees which ready board", () => {
// A section with nothing to show is left out; the owner's other templates aren't a visitor's.
expect(sections.every((s) => s.items.length > 0)).toBe(true);
expect(moreTemplates(cards, visitor)).toEqual([]);
- expect(sections.flatMap((s) => s.items).some((t) => t.id === "blockout-film")).toBe(false);
+ expect(sections.flatMap((s) => s.items).some((t) => t.id === "blockout-film" || t.id === "keyframes-animation")).toBe(false);
});
it("the owner: every ready board, covered first then by rank, and Blockout under More templates", () => {
const sections = templateSections(cards, owner);
expect(sections.map((s) => s.title)).toEqual(["Films and campaigns", "Effect films"]);
const all = sections.flatMap((s) => s.items);
- expect(all).toHaveLength(CANVAS_TEMPLATES.length - 1);
+ expect(all).toHaveLength(CANVAS_TEMPLATES.length - 2);
for (const s of sections) {
const covered = s.items.map((t) => hasCover(t.id));
expect(covered, s.title).toEqual([...covered].sort((a, b) => Number(b) - Number(a)));
}
expect(sections[0].items[0].id).toBe(hasCover("product-angles") ? "product-angles" : sections[0].items.find((t) => hasCover(t.id))?.id ?? "product-angles");
- expect(moreTemplates(cards, owner).map((t) => t.id)).toEqual(["blockout-film"]);
+ expect(moreTemplates(cards, owner).map((t) => t.id).sort()).toEqual(["blockout-film", "keyframes-animation"]);
});
it("with boards of one's own, one short row: the first three covered boards", () => {
diff --git a/tests/record-pages.test.ts b/tests/record-pages.test.ts
index 73c2a184..97288e6d 100644
--- a/tests/record-pages.test.ts
+++ b/tests/record-pages.test.ts
@@ -54,8 +54,8 @@ describe("record pages (real 404s)", () => {
};
walk(app, []);
expect(routes.length).toBeGreaterThan(40);
- // Ids the catalog answers for (apps, hub modes), not stored records, and share tokens: the proxy checks those itself.
- const catalog = /^\/(apps|audio|video-tools|upscale|s)\/\[/;
+ // Ids the catalog answers for (apps, hub modes, Canvas templates), not stored records, and share tokens: the proxy checks those itself.
+ const catalog = /^\/(apps|audio|video-tools|upscale|s|canvas\/start)\/\[/;
for (const route of routes) {
if (!route.includes("[")) {
expect(recordForPath(route), route).toBeNull();