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.

Feed and run details show the settings a run was made at

Adarshbf388f05a61c
diff --git a/src/components/studio/feed.tsx b/src/components/studio/feed.tsx
index 48497523..fc51db5e 100644
--- a/src/components/studio/feed.tsx
+++ b/src/components/studio/feed.tsx
@@ -40,6 +40,8 @@ import { LayersStack, MediaThumb } from "./result-media";
import { useNow } from "./use-now";
import { PlaceholderChip } from "@/components/demo-mode";
import { Viewer } from "./viewer";
+import { MadeNote } from "./made-note";
+import { shownSettings } from "@/lib/catalog/made";
import { NextSteps } from "@/components/nav/next-steps";
import { reservedRowHeight, useArrival, useEnter, useFollowRow, useLiveRun } from "./feed-motion";
import { AiTag, useAiTag } from "./ai-tag";
@@ -51,7 +53,8 @@ export { downloadName } from "@/lib/library";
export function tileRatio(g: Generation): number {
if (g.kind === "audio") return 1.6;
if (g.kind === "text") return 0.85;
- const ar = g.request.params?.aspectRatio ?? g.aspectRatio ?? undefined;
+ // The shape it was made at (a 5:4 run on a model that makes 4:3 is 4:3).
+ const ar = (g.made ? g.made.aspectRatio : g.request.params?.aspectRatio) ?? g.aspectRatio ?? undefined;
return ratioValue(ar && ar !== "auto" ? ar : undefined, g.kind === "video" ? 16 / 9 : 1);
}
@@ -428,6 +431,7 @@ export const GenerationGroup = memo(function GenerationGroup({ g, newest, first
const single = g.status === "succeeded" && shown.length === 1 ? g.outputs[shown[0]] : null;
const singleName = single ? downloadName(g, single, shown[0]) : "";
const p = g.request.params ?? {};
+ const made = shownSettings(g);
// A layout run says so, with its box count (Edit layout reopens them).
const boxes = (p.extra?.layout as { items?: unknown[] } | undefined)?.items?.length;
const meta = [
@@ -436,9 +440,10 @@ export const GenerationGroup = memo(function GenerationGroup({ g, newest, first
g.presetName,
g.modelName ?? g.modelId,
OPERATION_LABELS[g.op],
- p.aspectRatio,
- p.resolution,
- p.duration ? `${p.duration >= 1000 ? p.duration / 1000 : p.duration}s` : undefined,
+ // What it was made at (a 2K run on a model that makes up to 1080p reads 1080p; the line under says so).
+ made.aspectRatio,
+ made.resolution,
+ made.duration ? `${made.duration >= 1000 ? made.duration / 1000 : made.duration}s` : undefined,
].filter((x, i, all) => x && all.indexOf(x) === i);
return (
@@ -474,6 +479,7 @@ export const GenerationGroup = memo(function GenerationGroup({ g, newest, first
<span className="font-mono before:mr-1.5 before:content-['·']">{formatCost(g.costUsd)}</span>
) : null}
</p>
+ <MadeNote g={g} className="mt-0.5" />
</div>
<div className="flex shrink-0 items-center gap-0.5 opacity-100 transition-opacity sm:opacity-0 sm:group-hover/gen:opacity-100 sm:focus-within:opacity-100 [@media(hover:none)]:opacity-100">
{feed.reuse && (
diff --git a/src/components/studio/viewer.tsx b/src/components/studio/viewer.tsx
index 5aac1b7c..e2878e18 100644
--- a/src/components/studio/viewer.tsx
+++ b/src/components/studio/viewer.tsx
@@ -19,6 +19,8 @@ import { placeholdersOn } from "@/lib/demo-mode";
import { cn } from "@/lib/utils";
import { copyWithToast } from "@/lib/clipboard";
import { CompareSlider } from "./compare-slider";
+import { MadeNote } from "./made-note";
+import { shownSettings } from "@/lib/catalog/made";
import { ACTION_ICONS, downloadUrl, SaveElementForm, useActionRunner } from "./result-actions";
import { OwnSetupChip } from "@/components/own-setup";
import { LayersStack, ModelViewer, TextReader, VideoFileCard } from "./result-media";
@@ -61,6 +63,7 @@ function metaText(o: OutputFile | undefined, key: string): string | undefined {
function Details({ g, index }: { g: Generation; index: number }) {
const p = g.request.params ?? {};
+ const made = shownSettings(g);
const title = userTitle(g);
const aiTag = useAiTag();
// A run on this studio's GPUs says their place name ("Made on: Our GPUs").
@@ -102,15 +105,17 @@ function Details({ g, index }: { g: Generation; index: number }) {
{isLayered(g) && <Row label="Layer" value={`${layerInfo(g.outputs[index], index).name} · ${index + 1} of ${g.outputs.length}`} />}
<Row label="Stem" value={metaText(g.outputs[index], "stem")} />
<Row label="Language" value={metaText(g.outputs[index], "language") ?? p.targetLanguage} />
- <Row label="Aspect ratio" value={p.aspectRatio ?? g.aspectRatio} />
- <Row label="Quality" value={p.resolution} />
- <Row label="Duration" value={p.duration ? `${p.duration}s` : undefined} />
- <Row label="Seed" value={p.seed} mono />
+ {/* What it was made at; where that differs from what it asked, the line under the details says so. */}
+ <Row label="Aspect ratio" value={made.aspectRatio ?? g.aspectRatio} />
+ <Row label="Quality" value={made.resolution} />
+ <Row label="Duration" value={made.duration ? `${made.duration}s` : undefined} />
+ <Row label="Seed" value={made.seed} mono />
<Row label="Cost" value={g.costUsd != null ? formatCost(g.costUsd) : undefined} mono />
<Row label="Made" value={timeAgo(g.createdAt)} />
{g.deletedAt && <Row label="In Trash" value={`${trashDaysLeft(g.deletedAt)} days left`} />}
{!g.deletedAt && <Row label="Review" center value={<ReviewSelect g={g} />} />}
</div>
+ <MadeNote g={g} />
{g.request.negativePrompt && <p className="text-[12px] text-muted-foreground">Negative: {g.request.negativePrompt}</p>}
</div>
);