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.

Merge branch 'r4/ux-flows' into claude/fuobe-parity-4

Claude98f9c2e0506b
diff --cc src/components/assist-view.tsx
index 36955748,b746e26d..cee835c2
--- a/src/components/assist-view.tsx
+++ b/src/components/assist-view.tsx
@@@ -182,9 -190,9 +183,9 @@@ export function AssistView()
onSend={start}
footer={<NewChatControls choice={choice} setChoice={setChoice} can={can} engine={engine} setEngine={setEngine} askFirst={askFirst} setAskFirst={setAskFirst} />}
/>
- <SkillStarters skills={available} onPick={(s) => setDraft((d) => ({ key: d.key + 1, text: `/${s.name} ` }))} />
+ <SkillStarters skills={available} loading={skills.data === undefined && !skills.isError} onPick={(s) => setDraft((d) => ({ key: d.key + 1, text: `/${s.name} ` }))} />
<div className="mt-6 flex flex-wrap justify-center gap-2">
- {SUGGESTIONS.map((s) => (
+ {ASSIST_SUGGESTIONS.map((s) => (
<button
key={s}
onClick={() => start(s).catch((e) => toast.error((e as Error).message))}
diff --cc src/components/home-view.tsx
index 2e8cfd79,1d540ba6..0bf42169
--- a/src/components/home-view.tsx
+++ b/src/components/home-view.tsx
@@@ -19,9 -19,10 +19,11 @@@ import
ZoomIn,
} from "lucide-react";
import { useRouter } from "next/navigation";
-import { lazy, Suspense, useState } from "react";
+import { lazy, Suspense, useEffect, useRef, useState } from "react";
+import { GetStarted } from "@/components/get-started";
import { PageShell } from "@/components/page-shell";
+ import { Skeleton } from "@/components/ui/skeleton";
+ import { HadItemsScript, useHadItems } from "@/components/use-had-items";
import { CardPending, IntentLink } from "@/components/intent-link";
import { PresetCard } from "@/components/preset-gallery";
import { MediaThumb } from "@/components/studio/result-media";
@@@ -169,9 -143,10 +171,11 @@@ export function HomeView(
const router = useRouter();
const [mode, setMode] = useState(MODES[0]);
const [prompt, setPrompt] = useState("");
+ const box = useRef<HTMLTextAreaElement>(null);
const [engine, setEngine, engineMode] = useEngine();
const recent = useGenerations({ limit: 6 });
+ // How many (up to 6): a phone's grid holds 3 a row, so 1 to 3 results are one row of skeletons, 4 to 6 two.
+ useHadItems("home-recent", recent.data?.length, 6);
// The page hydrates inside the route's Suspense boundary, possibly after the sidebar already fetched
// the status: render the server's (status-less) view until hydrated, as useEngineMode does.
const hydrated = useHydrated();
diff --cc src/components/studio/composer.tsx
index d4a0bf69,913041e2..2ead5e7d
--- a/src/components/studio/composer.tsx
+++ b/src/components/studio/composer.tsx
@@@ -12,7 -13,7 +13,7 @@@ import type { GenerationRequest, MediaK
import { enhance, useCreateGeneration, useElements, useEngine, useHydrated, useStatus } from "@/lib/api";
import { applyMentions, type StudioElement } from "@/lib/catalog/elements";
import { applySketch, stripMotionPaths } from "@/lib/catalog/sketch";
- import { blockerFor, costLabel, filterModels, firstMissingSlot, namedImageSlots, needsMask, PLACEHOLDER, promptShown, pushRecent, settingsShape, startStep } from "@/lib/composer";
-import { blockerFor, blockerLine, costLabel, filterModels, firstMissingSlot, namedImageSlots, needsMask, PLACEHOLDER, promptShown, pushRecent, settingsShape } from "@/lib/composer";
++import { blockerFor, blockerLine, costLabel, filterModels, firstMissingSlot, namedImageSlots, needsMask, PLACEHOLDER, promptShown, pushRecent, settingsShape, startStep } from "@/lib/composer";
import { formatCost } from "@/lib/format";
import { cn } from "@/lib/utils";
import { AttachMenu } from "./attach-menu";