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
Remove /status, /models, /workflows and Settings > About
Adarsh0bb1c791f60b
diff --git a/next.config.ts b/next.config.tsindex a8db82b5..660a70e8 100644--- a/next.config.ts+++ b/next.config.ts@@ -53,6 +53,8 @@ const nextConfig: NextConfig = {return [{ source: "/characters", destination: "/elements", permanent: true },{ source: "/characters/:id", destination: "/elements/:id", permanent: true },+ ...["/status", "/models", "/workflows"].map((source) => ({ source, destination: "/", permanent: true })),+ { source: "/settings/about", destination: "/settings", permanent: true },// The product-link ad apps open the Click to Ad flow (src/lib/catalog/apps.ts).{ source: "/apps/:id(app-click-to-ad|app-link-to-video-ad)", destination: "/marketing/click-to-ad", permanent: false },// The Virality Predictor app became the /virality page (its frame step is the Hook Frame app).diff --git a/src/app/(studio)/models/loading.tsx b/src/app/(studio)/models/loading.tsxdeleted file mode 100644index 4bacd315..00000000--- a/src/app/(studio)/models/loading.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { PageSkeleton } from "@/components/skeletons";--export default function Loading() {- return <PageSkeleton title="Models" wide rows={6} />;-}diff --git a/src/app/(studio)/models/page.tsx b/src/app/(studio)/models/page.tsxdeleted file mode 100644index 77bf08bc..00000000--- a/src/app/(studio)/models/page.tsx+++ /dev/null@@ -1,28 +0,0 @@-import type { Metadata } from "next";-import { PageHeader, PageShell } from "@/components/page-shell";-import { ModelsIntro, ModelsTable } from "@/components/models-table";-import { isListed, MODELS } from "@/lib/catalog";-import { toModelRow } from "@/lib/model-rows";-import { modelHref } from "@/lib/palette-index";--export const metadata: Metadata = { title: "Models" };--/**- * Each row opens where its model runs; a model no studio offers has nowhere else to go (its link is this page). The- * models a visitor can pick, as Home and Project status count them (modelCounts): a hidden step a preset or a tool- * runs (trim, join, a self-test) isn't one.- */-const ROWS = MODELS.filter(isListed).map((m) => {- const href = modelHref(m);- return { ...toModelRow(m), ...(!href.startsWith("/models") && { href }) };-});--export default function Page() {- return (- <PageShell wide>- <PageHeader title="Models" description={<ModelsIntro />} />- {/* Slim rows only: the catalog (field maps, options, LoRAs) stays on the server. */}- <ModelsTable models={ROWS} />- </PageShell>- );-}diff --git a/src/app/(studio)/settings/about/loading.tsx b/src/app/(studio)/settings/about/loading.tsxdeleted file mode 100644index f803f1cf..00000000--- a/src/app/(studio)/settings/about/loading.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { PageSkeleton } from "@/components/skeletons";--export default function Loading() {- return <PageSkeleton title="About & licences" />;-}diff --git a/src/app/(studio)/settings/about/page.tsx b/src/app/(studio)/settings/about/page.tsxdeleted file mode 100644index b41fff16..00000000--- a/src/app/(studio)/settings/about/page.tsx+++ /dev/null@@ -1,173 +0,0 @@-import fs from "node:fs/promises";-import path from "node:path";-import { ArrowLeft, ExternalLink } from "lucide-react";-import type { Metadata } from "next";-import Link from "next/link";-import { LicencesView } from "@/components/licences-view";-import { PageHeader, PageShell } from "@/components/page-shell";-import { MODELS, modelCounts } from "@/lib/catalog";-import type { Manifest } from "@/lib/comfy";-import { FUOBE_REPO } from "@/lib/connections";-import { ATTRIBUTIONS, buildLicenceList } from "@/lib/licences";--export const metadata: Metadata = { title: "About & licences" };--/** A JSON file's contents, or null when it's missing or unreadable. */-async function readJson<T>(text: Promise<string>): Promise<T | null> {- try {- return JSON.parse(await text) as T;- } catch {- return null;- }-}--/** Fuobe's version and every open model's licence, from package.json, the ComfyUI manifest and the catalog. */-async function readAbout() {- "use cache";- // Each path is spelled out, so the build traces these two files, not the whole project.- const [pkg, manifest] = await Promise.all([- readJson<{ version?: string }>(fs.readFile(path.join(process.cwd(), "package.json"), "utf8")),- readJson<Manifest & { comfyuiVersion?: string }>(fs.readFile(path.join(process.cwd(), "workflows", "comfyui", "manifest.json"), "utf8")),- ]);- const workflows = manifest?.workflows ?? [];- return {- version: pkg?.version ?? "dev",- comfyui: manifest?.comfyuiVersion,- builtAt: manifest?.generatedAt?.slice(0, 10),- workflowCount: workflows.length,- list: buildLicenceList(- MODELS.map((m) => ({ id: m.id, name: m.name, vendor: m.vendor, kind: m.kind, hidden: m.hidden, routes: m.routes.map((r) => ({ provider: r.provider, endpoint: r.endpoint })) })),- workflows.map((w) => ({ id: w.id, title: w.title, capability: w.capability, license: w.license, models: w.models.map((m) => ({ url: m.url, sizeGb: m.sizeGb })) })),- ),- };-}--function Fact({ label, children }: { label: string; children: React.ReactNode }) {- return (- <div className="min-w-0">- <dt className="text-[12px] text-muted-foreground">{label}</dt>- <dd className="mt-0.5 text-[14px] [overflow-wrap:anywhere]">{children}</dd>- </div>- );-}--export default async function Page() {- const about = await readAbout();- const { list } = about;- const library = list.rows.filter((r) => !r.inCatalog).length;- const models = modelCounts();- return (- <PageShell>- <Link href="/settings" className="mb-3 inline-flex items-center gap-1.5 rounded-md text-[13px] text-muted-foreground hover:text-foreground">- <ArrowLeft className="size-3.5" /> Settings- </Link>- <PageHeader- title="About & licences"- description="Fuobe's code is open source (MIT). The open models it runs on your GPU each have their own licence: most allow commercial use, some don't, and a few leave out some countries. Paid models follow the terms of the provider you connect."- />-- <dl className="grid grid-cols-1 gap-4 rounded-2xl border p-5 sm:grid-cols-2 lg:grid-cols-5">- <Fact label="Fuobe">Version {about.version}</Fact>- <Fact label="Source code">- <a href={FUOBE_REPO} target="_blank" rel="noreferrer" className="inline-flex items-center gap-1 text-brand-text underline underline-offset-2">- GitHub <ExternalLink className="size-3" aria-hidden />- <span className="sr-only">(opens in a new tab)</span>- </a>- </Fact>- <Fact label="Licence">- <a href={`${FUOBE_REPO}/blob/main/LICENSE`} target="_blank" rel="noreferrer" className="inline-flex items-center gap-1 text-brand-text underline underline-offset-2">- MIT <ExternalLink className="size-3" aria-hidden />- <span className="sr-only">(opens in a new tab)</span>- </a>- </Fact>- <Fact label="Open engine">- {about.workflowCount} ComfyUI workflows{about.comfyui ? `, built for ComfyUI ${about.comfyui}` : ""}- {about.builtAt ? <span className="text-muted-foreground"> · {about.builtAt}</span> : null}- </Fact>- <Fact label="Paid models">fal.ai and Replicate with your key: their terms and prices apply</Fact>- </dl>-- {list.notices.length > 0 && (- <section aria-labelledby="notices" className="mt-8">- <h2 id="notices" className="text-[15px] font-semibold">- Notices- </h2>- <p className="mt-1 text-[13px] text-muted-foreground">Some licences ask the app that runs their model to say so.</p>- <ul className="mt-3 grid gap-2 sm:grid-cols-2">- {list.notices.map((n) => (- <li key={n.text} className="rounded-xl bg-muted/60 px-4 py-3">- <p className="text-[15px] font-semibold">{n.text}</p>- <p className="mt-0.5 text-[12px] text-muted-foreground [overflow-wrap:anywhere]">For {n.models.join(", ")}</p>- </li>- ))}- </ul>- </section>- )}-- <section aria-labelledby="credits" className="mt-8">- <h2 id="credits" className="text-[15px] font-semibold">- Credits- </h2>- <p className="mt-1 text-[13px] text-muted-foreground">Attributions the licences of the data and code behind Fuobe's open models ask for.</p>- <ul className="mt-3 grid gap-2 sm:grid-cols-2">- {ATTRIBUTIONS.map((a) => (- <li key={a.text} className="min-w-0 rounded-xl border px-4 py-3">- <p className="text-[13px] [overflow-wrap:anywhere]">- {a.url ? (- <a href={a.url} target="_blank" rel="noreferrer" className="underline underline-offset-2 hover:text-brand-text">- {a.text}- <span className="sr-only"> (opens in a new tab)</span>- </a>- ) : (- a.text- )}- </p>- <p className="mt-0.5 text-[12px] text-muted-foreground [overflow-wrap:anywhere]">- {a.licence} · for {a.for}- </p>- {a.note && <p className="mt-1 text-[12px] text-muted-foreground [overflow-wrap:anywhere]">{a.note}</p>}- </li>- ))}- </ul>- </section>-- <section aria-labelledby="licences" className="mt-10">- <h2 id="licences" className="font-heading text-[24px] leading-tight">- Open model licences- </h2>- <p className="mt-1 mb-5 max-w-2xl text-[13px] text-muted-foreground">- Fuobe's studios offer {models.open} open-source models and tools. The list below has {list.counts.all} entries, one for each set of open weights Fuobe- runs: the studios' models, the helper steps presets run, and {library} more workflows in the library. Tools with no weights aren't listed.- {" "}{list.counts.clear} allow commercial use, {list.counts.conditions} with conditions (revenue limits or use rules), {list.counts["non-commercial"]} non-commercial- and {list.counts.territory} not available everywhere. Read the licence itself before you sell what you make; this list is a guide, not legal advice. Which models this install offers- is set in{" "}- <Link href="/settings/models" className="text-brand-text underline underline-offset-2">- Models & licences- </Link>- , which counts every model in the catalog, paid ones included.- </p>- <LicencesView list={list} />- </section>-- <section aria-labelledby="elsewhere" className="mt-10 border-t pt-6">- <h2 id="elsewhere" className="text-[15px] font-semibold">- Elsewhere- </h2>- <ul className="mt-2 list-disc space-y-1 pl-5 text-[13px] text-muted-foreground">- <li>- Models you run in Ollama, LM Studio or Unsloth Studio for Assist and prompt enhancement carry their own licences: see each model's card, or{" "}- <code className="font-mono text-[12px]">ollama show <model> --license</code> in Ollama.- </li>- <li>The optional TRIBE v2 worker for the Virality page isn't bundled; its weights are CC BY-NC 4.0 (non-commercial).</li>- <li>- Each workflow's models, sizes and download links are on the{" "}- <Link href="/workflows" className="text-brand-text underline underline-offset-2">- Workflows- </Link>{" "}- page.- </li>- </ul>- </section>- </PageShell>- );-}diff --git a/src/app/(studio)/status/loading.tsx b/src/app/(studio)/status/loading.tsxdeleted file mode 100644index 27921b49..00000000--- a/src/app/(studio)/status/loading.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { PageSkeleton } from "@/components/skeletons";--export default function Loading() {- return <PageSkeleton title="Project status" rows={6} />;-}diff --git a/src/app/(studio)/status/page.tsx b/src/app/(studio)/status/page.tsxdeleted file mode 100644index feb10116..00000000--- a/src/app/(studio)/status/page.tsx+++ /dev/null@@ -1,194 +0,0 @@-import fs from "node:fs/promises";-import path from "node:path";-import { ExternalLink } from "lucide-react";-import type { Metadata } from "next";-import { headers } from "next/headers";-import Link from "next/link";-import { Suspense } from "react";-import ReactMarkdown, { type Components } from "react-markdown";-import remarkGfm from "remark-gfm";-import { PageHeader, PageShell } from "@/components/page-shell";-import { modelCounts } from "@/lib/catalog";-import type { Manifest } from "@/lib/comfy";-import { FUOBE_REPO } from "@/lib/connections";-import { headingId, STATUS_ON_GITHUB, statusBody, statusDate, statusLink, statusOutline } from "@/lib/status-page";-import { requestViewer } from "@/server/auth";--export const metadata: Metadata = { title: "Project status" };--async function readStatus(): Promise<string> {- "use cache";- try {- return await fs.readFile(path.join(process.cwd(), "docs", "STATUS.md"), "utf8");- } catch {- return "# Project status\n\ndocs/STATUS.md is missing.";- }-}--/** The workflow library's size, from the manifest the Workflows page lists. */-async function readWorkflows(): Promise<{ all: number }> {- "use cache";- try {- const manifest = JSON.parse(await fs.readFile(path.join(process.cwd(), "workflows", "comfyui", "manifest.json"), "utf8")) as Manifest;- return { all: manifest.workflows.length };- } catch {- return { all: 0 };- }-}--type HastNode = { type: string; value?: string; children?: HastNode[] };-const textOf = (n?: HastNode): string => (n?.type === "text" ? (n.value ?? "") : (n?.children ?? []).map(textOf).join(""));--/** The log's headings get ids (the contents link to them); its links open the repo's docs on GitHub, in a new tab. */-const LOG: Components = {- h2: ({ node, ...props }) => <h2 id={headingId(textOf(node as HastNode))} className="scroll-mt-20" {...props} />,- h3: ({ node, ...props }) => <h3 id={headingId(textOf(node as HastNode))} className="scroll-mt-20" {...props} />,- a: ({ href, title, children }) =>- href?.startsWith("#") ? (- <a href={href} title={title}>- {children}- </a>- ) : (- <a href={href} title={title} target="_blank" rel="noreferrer">- {children}- </a>- ),-};--function Fact({ label, children }: { label: string; children: React.ReactNode }) {- return (- <div className="min-w-0">- <dt className="text-[12px] text-muted-foreground">{label}</dt>- <dd className="mt-0.5 text-[14px] [overflow-wrap:anywhere]">{children}</dd>- </div>- );-}--const link = "text-brand-text underline underline-offset-2";--function LogOnGitHub({ children }: { children: React.ReactNode }) {- return (- <a href={STATUS_ON_GITHUB} target="_blank" rel="noreferrer" className="inline-flex items-center gap-1 text-brand-text underline underline-offset-2">- {children} <ExternalLink className="size-3" aria-hidden />- <span className="sr-only">(opens in a new tab)</span>- </a>- );-}--/** Anyone but the studio's owner: where the engineering log is. */-function LogLink() {- return (- <p className="mt-8 max-w-3xl text-[14px] text-muted-foreground">- Its builders keep an engineering log after every round of work: <LogOnGitHub>read it on GitHub</LogOnGitHub>- </p>- );-}--/** The engineering log, with its contents, for the studio's owner; anyone else gets its link. */-async function Log({ md }: { md: string }) {- const viewer = requestViewer(new Request("http://localhost/status", { headers: await headers() }));- if (viewer.kind !== "owner") return <LogLink />;- const outline = statusOutline(md);- return (- <>- <nav aria-labelledby="contents" className="mt-8 max-w-3xl rounded-2xl bg-muted/60 px-5 py-4">- <h2 id="contents" className="text-[15px] font-semibold">- In the engineering log- </h2>- <ol className="mt-2 space-y-1 text-[14px]">- {outline.map((h) => (- <li key={h.id} className={h.depth === 3 ? "pl-4 text-[13px]" : undefined}>- <a href={`#${h.id}`} className="text-brand-text underline-offset-2 hover:underline">- {h.text}- </a>- </li>- ))}- </ol>- <p className="mt-3 text-[12px] leading-relaxed text-muted-foreground">- The log is written by the coding agents that build Fuobe, on machines with no GPU and no paid keys, so “here” in it means those machines: what needs real- weights or a paid key is marked built (🟢) rather than verified there. <LogOnGitHub>The log on GitHub</LogOnGitHub>- </p>- </nav>-- <article className="prose-fuobe mt-10 max-w-3xl border-t pt-6">- <ReactMarkdown remarkPlugins={[remarkGfm]} urlTransform={statusLink} components={LOG}>- {statusBody(md)}- </ReactMarkdown>- </article>- </>- );-}--export default async function Page() {- const [md, workflows] = await Promise.all([readStatus(), readWorkflows()]);- // The same numbers as Home and /models: models a visitor can pick, each once.- const models = modelCounts();- const updated = statusDate(md);- return (- <PageShell>- <PageHeader title="Project status" description="Fuobe is an open-source creative studio on ComfyUI. Here is what works today." />-- <dl className="grid grid-cols-1 gap-4 rounded-2xl border p-5 sm:grid-cols-2 lg:grid-cols-4">- <Fact label="ComfyUI workflows">- <Link href="/workflows" className={link}>- {workflows.all} workflows- </Link>- <span className="text-muted-foreground"> · each a graph you can download</span>- </Fact>- <Fact label="Models">- <Link href="/models" className={link}>- {models.open} open-source models and tools- </Link>- <span className="text-muted-foreground"> · {models.cloud} partner models in the cloud</span>- </Fact>- <Fact label="Licence">- <a href={`${FUOBE_REPO}/blob/main/LICENSE`} target="_blank" rel="noreferrer" className={link}>- MIT- </a>- <span className="text-muted-foreground"> · open source</span>- </Fact>- <Fact label="Last updated">{updated ?? "—"}</Fact>- </dl>-- <section aria-labelledby="today" className="mt-8 max-w-3xl">- <h2 id="today" className="text-[15px] font-semibold">- What works today- </h2>- <ul className="mt-2 list-disc space-y-1.5 pl-5 text-[14px] leading-relaxed">- <li>- <span className="font-medium">Browse everything.</span> Every studio, app, camera motion and effect, the{" "}- <Link href="/models" className={link}>- models- </Link>{" "}- and the{" "}- <Link href="/workflows" className={link}>- workflow library- </Link>{" "}- can be browsed without an account.- </li>- <li>- <span className="font-medium">Free accounts.</span> Sign up with an email, then{" "}- <Link href="/connect" className={link}>- connect your own ComfyUI- </Link>{" "}- (Your GPU): your runs go to your GPU. Or add your own fal.ai or Replicate key in Settings → Your keys to use paid models like Nano Banana, Kling and- Veo, billed to your own account with them.- </li>- <li>- <span className="font-medium">The open engine.</span> Each open-source model runs as a ComfyUI workflow, and all {workflows.all} graphs are in the- workflow library to download. Every preview clip and still on this site was rendered locally on ComfyUI, on one RTX 5090.- </li>- <li>- <span className="font-medium">Your own studio.</span> Fuobe is MIT-licensed. Run it yourself, with no account limits: the open models on your own GPU and the- frontier ones on your own fal.ai or Replicate key, all on your own machine.- </li>- </ul>- </section>-- {/* Who is looking comes from the request: under Suspense, so the rest of the page prerenders. */}- <Suspense fallback={<LogLink />}>- <Log md={md} />- </Suspense>- </PageShell>- );-}diff --git a/src/app/(studio)/workflows/loading.tsx b/src/app/(studio)/workflows/loading.tsxdeleted file mode 100644index dc29ccf9..00000000--- a/src/app/(studio)/workflows/loading.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { PageSkeleton } from "@/components/skeletons";--export default function Loading() {- return <PageSkeleton title="ComfyUI workflows" wide />;-}diff --git a/src/app/(studio)/workflows/page.tsx b/src/app/(studio)/workflows/page.tsxdeleted file mode 100644index 290db1d2..00000000--- a/src/app/(studio)/workflows/page.tsx+++ /dev/null@@ -1,31 +0,0 @@-import type { Metadata } from "next";-import { PageHeader, PageShell } from "@/components/page-shell";-import { WorkflowsView } from "@/components/workflows-view";-import { MODELS } from "@/lib/catalog";-import { WORKFLOWS_ON_GITHUB } from "@/lib/comfy-install";--export const metadata: Metadata = { title: "ComfyUI workflows" };--/** Which open models run each workflow; computed here so the view needs no catalog in the browser. */-const ROUTES = MODELS.flatMap((m) => m.routes.filter((r) => r.provider === "comfyui").map((r) => ({ endpoint: r.endpoint, name: m.name })));--export default function Page() {- return (- <PageShell wide>- <PageHeader- title="ComfyUI workflows"- description={- <>- The open-source engine. Each workflow is an API-format ComfyUI graph exported from the official templates, with bindings Fuobe uses to inject prompts, images and- settings. Download one below, or browse them all{" "}- <a href={WORKFLOWS_ON_GITHUB} target="_blank" rel="noreferrer" className="text-brand-text underline underline-offset-2">- on GitHub- </a>- .- </>- }- />- <WorkflowsView routes={ROUTES} />- </PageShell>- );-}diff --git a/src/components/app-sidebar.tsx b/src/components/app-sidebar.tsxindex e95f2d63..c6a290b1 100644--- a/src/components/app-sidebar.tsx+++ b/src/components/app-sidebar.tsx@@ -116,7 +116,7 @@ function ActiveItems({ group }: { group: NavGroupDef }) {);}-/** The folded groups: remembered in this browser, else Engine (DEFAULT_NAV_CLOSED), also on the server. */+/** The folded groups: remembered in this browser, else DEFAULT_NAV_CLOSED, also on the server. */function readClosed(): string[] {try {return parseClosed(typeof window === "undefined" ? null : localStorage.getItem(NAV_CLOSED_KEY));@@ -140,8 +140,8 @@ function NavGroup({ group, open, onToggle }: { group: NavGroupDef; open: booleanclassName="w-full cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground">{group.label}- {/* Folded, the label says how much is inside. */}- <span className="ml-auto font-normal tracking-normal tabular-nums group-data-[open=true]/nav:hidden">{group.items.length}</span>+ {/* Folded, the label says how much is inside (a single row needs no count). */}+ <span className="ml-auto font-normal tracking-normal tabular-nums group-data-[open=true]/nav:hidden">{group.items.length > 1 && group.items.length}</span><ChevronRight className="ml-1 size-3.5 transition-transform group-data-[open=true]/nav:ml-auto group-data-[open=true]/nav:rotate-90" /></button></SidebarGroupLabel>@@ -186,7 +186,7 @@ function reveal(box: HTMLElement | null, el: Element | null | undefined) {}/**- * Brings the open page's row into view when the page changes: with Studios open, Engine's rows (Models, Settings…)+ * Brings the open page's row into view when the page changes: with Studios open, the rows below it (Settings)* sit below the fold. Inside Suspense: the pathname is runtime data.*/function RevealActive({ box }: { box: React.RefObject<HTMLDivElement | null> }) {diff --git a/src/components/licences-view.tsx b/src/components/licences-view.tsxdeleted file mode 100644index 559ede9d..00000000--- a/src/components/licences-view.tsx+++ /dev/null@@ -1,167 +0,0 @@-"use client";--import { Ban, CheckCircle2, ExternalLink, Globe, Info, Search } from "lucide-react";-import { useDeferredValue, useState } from "react";-import { FLAG_LABEL, kindLabel, type LicenceFlag, type LicenceList, type LicenceRow } from "@/lib/licences";-import { cn } from "@/lib/utils";--type Filter = "all" | "clear" | LicenceFlag;--const FILTERS: { value: Filter; label: string }[] = [- { value: "all", label: "All" },- { value: "clear", label: "Commercial use OK" },- { value: "conditions", label: FLAG_LABEL.conditions },- { value: "non-commercial", label: FLAG_LABEL["non-commercial"] },- { value: "territory", label: FLAG_LABEL.territory },-];--const chip = (active: boolean) =>- cn(- "h-8 shrink-0 rounded-full px-3 text-[13px] font-medium whitespace-nowrap text-muted-foreground transition-colors hover:bg-accent",- active && "bg-secondary text-foreground",- );--const FLAG_STYLE: Record<LicenceFlag, { icon: typeof Ban; tone: string; fill: string }> = {- "non-commercial": { icon: Ban, tone: "text-destructive", fill: "bg-destructive/10 dark:bg-destructive/20" },- territory: { icon: Globe, tone: "text-warning", fill: "bg-warning/15" },- conditions: { icon: Info, tone: "text-muted-foreground", fill: "bg-secondary" },-};--const badge = "inline-flex h-5 shrink-0 items-center gap-1 rounded-full px-2 text-[11px] font-medium whitespace-nowrap text-foreground [&>svg]:size-3";--function FlagBadge({ row }: { row: LicenceRow }) {- if (!row.flags.length)- return (- <span className={cn(badge, "bg-success/12")}>- <CheckCircle2 className="text-success" aria-hidden /> Commercial use OK- </span>- );- return (- <>- {row.flags.map((f) => {- const { icon: Icon, tone, fill } = FLAG_STYLE[f];- return (- <span key={f} className={cn(badge, fill)}>- <Icon className={tone} aria-hidden /> {f === "territory" && row.excludes ? `Not in ${row.excludes}` : FLAG_LABEL[f]}- </span>- );- })}- </>- );-}--function Row({ row }: { row: LicenceRow }) {- return (- <li className="flex flex-col gap-1.5 py-3.5 sm:flex-row sm:items-start sm:gap-4">- <div className="min-w-0 flex-1">- <p className="text-[14px] font-medium [overflow-wrap:anywhere]">{row.name}</p>- <p className="text-[12px] text-muted-foreground">- {row.inCatalog ? `${row.by} · ` : ""}- {kindLabel(row.kind)}- </p>- {row.licences.map((l, i) => (- <p key={l} className="mt-1 text-[12px] leading-relaxed text-muted-foreground [overflow-wrap:anywhere]">- {row.links[i] ? (- <a href={row.links[i] ?? undefined} target="_blank" rel="noreferrer" className="underline-offset-2 hover:text-foreground hover:underline">- {l}- <ExternalLink className="ml-1 inline size-3 align-[-1px]" aria-hidden />- <span className="sr-only"> (the licence, in a new tab)</span>- </a>- ) : (- l- )}- </p>- ))}- </div>- <div className="flex flex-wrap gap-1.5 sm:max-w-[45%] sm:justify-end">- <FlagBadge row={row} />- {row.notices.map((n) => (- <span key={n} className="inline-flex h-5 items-center rounded-full border px-2 text-[11px] font-medium whitespace-nowrap">- Shows “{n}”- </span>- ))}- </div>- </li>- );-}--function matches(row: LicenceRow, filter: Filter, q: string): boolean {- if (filter === "clear" ? row.flags.length > 0 : filter !== "all" && !row.flags.includes(filter)) return false;- if (!q) return true;- return [row.name, row.by, row.kind, ...row.licences].some((s) => s.toLowerCase().includes(q));-}--/** The licence list with its filters: what's free to use commercially, and what isn't. */-export function LicencesView({ list }: { list: LicenceList }) {- const [filter, setFilter] = useState<Filter>("all");- const [query, setQuery] = useState("");- const q = useDeferredValue(query.trim().toLowerCase());- const shown = list.rows.filter((r) => matches(r, filter, q));- const catalog = shown.filter((r) => r.inCatalog);- const library = shown.filter((r) => !r.inCatalog);- const count = (f: Filter) => (f === "all" ? list.counts.all : list.counts[f]);-- return (- <div className="space-y-4">- <div className="flex flex-col gap-2 lg:flex-row lg:items-center">- <div className="relative w-full lg:w-72">- <Search className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />- <input- type="search"- value={query}- onChange={(e) => setQuery(e.target.value)}- placeholder="Search models or licences"- aria-label="Search models or licences"- className="h-9 w-full rounded-full border bg-background pr-3 pl-9 text-[14px] outline-none placeholder:text-subtle-foreground focus:border-primary focus:ring-4 focus:ring-brand-faint"- />- </div>- <div role="group" aria-label="Filter by licence" className="flex min-w-0 flex-wrap items-center gap-1">- {FILTERS.map((f) => (- <button key={f.value} type="button" aria-pressed={filter === f.value} className={chip(filter === f.value)} onClick={() => setFilter(f.value)}>- {f.label} <span className="ml-0.5 tabular-nums opacity-70">{count(f.value)}</span>- </button>- ))}- </div>- </div>-- <p className="sr-only" aria-live="polite">- {shown.length} models shown- </p>- {!shown.length && <p className="py-8 text-center text-[13px] text-muted-foreground">Nothing matches. Try another word or filter.</p>}-- {catalog.length > 0 && (- <section aria-labelledby="lic-models">- <h3 id="lic-models" className="text-[15px] font-semibold">- Open models in Fuobe's studios <span className="font-normal text-muted-foreground tabular-nums">· {catalog.length}</span>- </h3>- <ul className="divide-y">- {catalog.map((r) => (- <Row key={r.id} row={r} />- ))}- </ul>- </section>- )}- {library.length > 0 && (- <section aria-labelledby="lic-library" className="pt-4">- <h3 id="lic-library" className="text-[15px] font-semibold">- Also in the workflow library <span className="font-normal text-muted-foreground tabular-nums">· {library.length}</span>- </h3>- <p className="mt-1 text-[12px] text-muted-foreground">Workflows ready on your ComfyUI that no studio runs yet, or alternatives to the ones above.</p>- <ul className="divide-y">- {library.map((r) => (- <Row key={r.id} row={r} />- ))}- </ul>- </section>- )}-- {filter === "all" && !q && list.noWeights.length > 0 && (- <p className="border-t pt-4 text-[12px] leading-relaxed text-muted-foreground">- <span className="font-medium text-foreground">No model weights:</span> {list.noWeights.join(", ")}- {list.noWeightsLibrary > 0 ? `, and ${list.noWeightsLibrary} more library workflows` : ""}. They run on ComfyUI's own nodes (GPL-3.0, like ComfyUI) and- FFmpeg.- </p>- )}- </div>- );-}diff --git a/src/components/models-table.tsx b/src/components/models-table.tsxdeleted file mode 100644index cf38f5f7..00000000--- a/src/components/models-table.tsx+++ /dev/null@@ -1,283 +0,0 @@-"use client";--import { Cloud, Cpu, Info, Search } from "lucide-react";-import { useSearchParams } from "next/navigation";-import { memo, Suspense, useDeferredValue, useEffect, useMemo, useRef, useState } from "react";-import { useProgressive } from "@/components/use-progressive";-import { useToday } from "@/hooks/use-today";-import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";-import Link from "next/link";-import { IntentLink } from "@/components/intent-link";-import { useEngine, useHydrated, useModelAccess, useStatus } from "@/lib/api";-import { providerEngine } from "@/lib/catalog/engines";-import { PROVIDER_NAME } from "@/lib/licences";-import { offered } from "@/lib/model-access";-import type { Engine, MediaKind, ProviderId } from "@/lib/catalog/types";-import { enginesLabel, modelSearchText, rowPriceOn, type ModelRow } from "@/lib/model-rows";-import { cn } from "@/lib/utils";--const KIND_LABEL: Partial<Record<MediaKind, string>> = { image: "Image", video: "Video", audio: "Audio", text: "Text", model3d: "3D" };--const chip = (active: boolean) =>- cn(- "h-8 shrink-0 rounded-full px-3 text-[13px] font-medium whitespace-nowrap text-muted-foreground transition-colors hover:bg-accent",- active && "bg-secondary text-foreground",- );--/**- * Where a model runs, behind a small button: the providers by name, and the endpoints and id under "Technical details"- * (long, and only some people need them). `only`: the install runs one engine, so only its routes count.- */-function RouteDetails({ row, only }: { row: ModelRow; only?: Engine }) {- const routes = only ? row.routes.filter((r) => providerEngine(r.slice(0, r.indexOf(":")) as ProviderId) === only) : row.routes;- const providers = [...new Set(routes.map((r) => r.slice(0, r.indexOf(":"))))].map((p) => PROVIDER_NAME[p] ?? p);- return (- <Popover>- <PopoverTrigger asChild>- <button- type="button"- className="inline-flex h-7 items-center gap-1 rounded-full px-2 text-[12px] whitespace-nowrap text-muted-foreground hover:bg-accent hover:text-foreground"- >- <Info className="size-3.5" />- {/* The name starts with the visible text ("3 routes"), so speech users can say it. */}- <span className="max-sm:sr-only">- {routes.length} route{routes.length === 1 ? "" : "s"}- </span>- <span className="sr-only">: where {row.name} runs</span>- </button>- </PopoverTrigger>- <PopoverContent align="end" collisionPadding={12} className="w-[min(92vw,420px)] p-3">- <p className="text-[12px] font-medium">{row.name} runs on</p>- <p className="mt-1 text-[13px]">{providers.join(" · ")}</p>- {row.href && (- <IntentLink href={row.href} className="mt-2 inline-block text-[13px] font-medium text-brand-text underline-offset-2 hover:underline">- Open it- </IntentLink>- )}- <details className="mt-2">- <summary className="cursor-pointer text-[12px] text-muted-foreground hover:text-foreground">Technical details</summary>- <ul className="mt-1.5 space-y-1">- {routes.map((r) => (- <li key={r} className="font-mono text-[11px] break-all text-muted-foreground">- {r}- </li>- ))}- </ul>- <p className="mt-2 font-mono text-[11px] text-muted-foreground">id {row.id}</p>- </details>- </PopoverContent>- </Popover>- );-}--/**- * One model; `today` (the browser's day, null while the page prerenders) picks a launch price or the list price. `only`:- * the install runs one engine (a visitor's is open), so a Fuobe Original shows that engine alone.- */-const Row = memo(function Row({ m, today, only }: { m: ModelRow; today: number | null; only?: Engine }) {- const price = rowPriceOn(m, today, only);- const engines = only ? m.engines.filter((e) => e === only) : m.engines;- return (- <tr className="align-top hover:bg-accent/50">- <td className="px-3 py-3 sm:px-4">- <div className="flex flex-wrap items-center gap-1.5 font-medium">- {engines.includes("open") && <Cpu className="size-3.5 shrink-0 md:hidden" aria-label="Open source" />}- {engines.includes("cloud") && <Cloud className="size-3.5 shrink-0 md:hidden" aria-label="Cloud" />}- {m.href ? (- <IntentLink href={m.href} className="underline-offset-2 hover:text-brand-text hover:underline">- {m.name}- </IntentLink>- ) : (- m.name- )}- {m.badges.map((b) => (- <span- key={b}- className={cn(- "rounded-[4px] bg-secondary px-1 text-[10px] leading-4 font-medium text-secondary-foreground",- b === "New" && "bg-highlight text-highlight-foreground",- b === "Top" && "bg-brand-faint text-brand-text",- )}- >- {b}- </span>- ))}- </div>- <div className="text-[12px] text-muted-foreground">- {m.vendor} — {m.tagline}- </div>- {m.note && <div className="mt-0.5 text-[11px] text-muted-foreground">{m.note}</div>}- <div className="mt-1 text-[11px] text-muted-foreground md:hidden">- {price && <span className="font-mono text-muted-foreground sm:hidden">{price} · </span>}- {m.ops.join(" · ")}- </div>- </td>- <td className="hidden px-4 py-3 whitespace-nowrap md:table-cell">- <span className="inline-flex items-center gap-1">- {engines.includes("open") && <Cpu className="size-3.5" />}- {engines.includes("cloud") && <Cloud className="size-3.5" />}- {enginesLabel(engines)}- </span>- </td>- <td className="hidden px-4 py-3 text-[12px] text-muted-foreground md:table-cell">{m.ops.join(" · ")}</td>- <td className="hidden px-4 py-3 font-mono text-[12px] whitespace-nowrap sm:table-cell">{price}</td>- <td className="px-2 py-2.5 text-right">- <RouteDetails row={m} only={only} />- </td>- </tr>- );-});--/**- * The page's line under its title, by the install's engine mode once it is known (a visitor's is open source only:- * the cloud runs on the owner's keys, which a visitor never uses).- */-export function ModelsIntro() {- const hydrated = useHydrated();- const mode = useStatus().data?.engineMode;- const known = hydrated ? mode : undefined;- return (- <>- Every model Fuobe can drive.- {known &&- (known === "open"- ? " On this studio, each runs as a ComfyUI workflow on your own GPU."- : known === "cloud"- ? " On this studio, each runs through your fal.ai or Replicate key."- : " Cloud models run through your fal.ai or Replicate key; open-source models run as ComfyUI workflows on your own GPU.")}- {known && " Click a name to open it where it runs."}- </>- );-}--/**- * A link's ?q= (the ⌘K palette's "open this model" for models no studio offers) fills the search.- * It reads the URL, so it sits under its own Suspense: the table itself stays in the static page.- */-function UrlQuery({ onQuery }: { onQuery: (q: string) => void }) {- const q = useSearchParams().get("q");- useEffect(() => {- if (q !== null) onQuery(q);- }, [q, onQuery]);- return null;-}--export function ModelsTable({ models }: { models: ModelRow[] }) {- const [engineChoice, setEngine] = useState<Engine | "all">("all");- const [, , mode] = useEngine();- const engine: Engine | "all" = mode === "both" ? engineChoice : mode;- const [kind, setKind] = useState<MediaKind | "all">("all");- const [q, setQ] = useState("");- const term = useDeferredValue(q.trim().toLowerCase());- const today = useToday();- // Settings → Models & licences: what is switched off leaves the list (an Original stays for the engine still on).- const access = useModelAccess();- const on = useMemo(() => (access ? models.filter((m) => offered(access, m.id)) : models), [models, access]);- const switchedOff = models.length - on.length;- const index = useMemo(() => on.map((m) => [m, modelSearchText(m)] as const), [on]);- const kinds = useMemo(() => [...new Set(models.map((m) => m.kind))], [models]);- // What the search can reach: the engine's models (a visitor's engine is open source only).- const searchable = useMemo(() => index.filter(([m]) => engine === "all" || (m.engines.includes(engine) && offered(access, m.id, engine))), [index, engine, access]);- const list = useMemo(() => searchable.filter(([m, text]) => (kind === "all" || m.kind === kind) && (!term || text.includes(term))).map(([m]) => m), [searchable, kind, term]);- const only = mode === "both" ? undefined : mode;- // The Cloud list has the Fuobe Originals too (they run on both engines), so it says how many: Home and Project- // status count them once, under open source.- const originals = engine === "cloud" ? list.filter((m) => m.vendor === "Fuobe Original").length : 0;- // 40 rows in the page's HTML, the rest as you scroll.- const { shown, hasMore, moreFrom, sentinel, left } = useProgressive(list.length, `${engine}|${kind}|${term}`, 40, 60);- const rows = useRef<HTMLTableSectionElement>(null);- return (- <div className="space-y-4">- <Suspense fallback={null}>- <UrlQuery onQuery={setQ} />- </Suspense>- <div className="flex flex-col gap-2 lg:flex-row lg:items-center">- <div className="relative w-full lg:w-72">- <Search className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />- <input- type="search"- value={q}- onChange={(e) => {- setQ(e.target.value);- // Typing takes over from the link: drop its ?q=, so the same link fills the search again later.- if (new URLSearchParams(window.location.search).has("q")) {- const url = new URL(window.location.href);- url.searchParams.delete("q");- window.history.replaceState(null, "", url);- }- }}- placeholder={`Search ${searchable.length} ${engine === "open" ? "open-source " : engine === "cloud" ? "cloud " : ""}models`}- aria-label="Search models"- className="h-9 w-full rounded-full border bg-background pr-3 pl-9 text-[14px] outline-none placeholder:text-subtle-foreground focus:border-primary focus:ring-4 focus:ring-brand-faint"- />- </div>- <div className="scrollbar-none -mx-1 flex min-w-0 items-center gap-1 overflow-x-auto px-1">- {only ? (- // One engine: nothing to choose, so a label rather than a button that does nothing.- <span className="inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full bg-secondary px-3 text-[13px] font-medium whitespace-nowrap">- {only === "open" ? <Cpu className="size-3.5" aria-hidden /> : <Cloud className="size-3.5" aria-hidden />}- {only === "open" ? "Open source" : "Cloud"}- </span>- ) : (- (["all", "cloud", "open"] as const).map((e) => (- <button key={e} type="button" aria-pressed={engine === e} className={chip(engine === e)} onClick={() => setEngine(e)}>- {e === "all" ? "All engines" : e === "cloud" ? "Cloud" : "Open source"}- </button>- ))- )}- <span className="mx-1 h-5 w-px shrink-0 bg-border" />- {(["all", ...kinds] as const).map((k) => (- <button key={k} type="button" aria-pressed={kind === k} className={chip(kind === k)} onClick={() => setKind(k)}>- {k === "all" ? "All media" : (KIND_LABEL[k] ?? k)}- </button>- ))}- </div>- <span className="text-[13px] whitespace-nowrap text-muted-foreground tabular-nums lg:ml-auto" aria-live="polite">- {list.length} models{originals > 0 && `, ${originals} of them Fuobe Originals`}- </span>- </div>- {switchedOff > 0 && (- <p className="text-[13px] text-muted-foreground">- {switchedOff} {switchedOff === 1 ? "model is" : "models are"} turned off in{" "}- <Link href="/settings/models" className="text-brand-text underline-offset-2 hover:underline">- Settings → Models & licences- </Link>- .- </p>- )}- <div className="overflow-x-auto rounded-xl border">- <table className="w-full text-left text-[13px]">- <thead className="bg-muted/50 text-[12px] text-muted-foreground">- <tr>- <th className="px-3 py-2.5 font-medium sm:px-4">Model</th>- <th className="hidden px-4 py-2.5 font-medium md:table-cell">Engine</th>- <th className="hidden px-4 py-2.5 font-medium md:table-cell">Can do</th>- <th className="hidden px-4 py-2.5 font-medium sm:table-cell">Price</th>- <th className="px-2 py-2.5">- <span className="sr-only">Details</span>- </th>- </tr>- </thead>- <tbody ref={rows} className="divide-y">- {list.slice(0, shown).map((m) => (- <Row key={m.id} m={m} today={today} only={only} />- ))}- </tbody>- </table>- {hasMore && (- <div className="flex justify-center border-t p-3">- <button- ref={sentinel}- type="button"- onClick={(e) => moreFrom(e, rows.current)}- className="h-9 rounded-full border bg-background px-4 text-[13px] font-medium text-muted-foreground hover:bg-accent hover:text-foreground"- >- Show more · {left} left- </button>- </div>- )}- {!list.length && <p className="py-12 text-center text-[13px] text-muted-foreground">No models match{term ? ` “${q.trim()}”` : " these filters"}.</p>}- </div>- </div>- );-}diff --git a/src/components/nav-items.ts b/src/components/nav-items.tsindex deaa7117..6fb2a903 100644--- a/src/components/nav-items.ts+++ b/src/components/nav-items.ts@@ -1,7 +1,6 @@import {AtSign,AudioLines,- Boxes,Box,Brush,Camera,@@ -19,14 +18,12 @@ import {Layers2,LayoutGrid,Library,- ListChecks,Megaphone,MessageCircle,Mic2,Network,PersonStanding,Presentation,- Scale,Scissors,Settings,Shapes,@@ -44,8 +41,6 @@ import {Video,Wand2,WandSparkles,- Workflow,- Zap,ZoomIn,type LucideIcon,} from "lucide-react";@@ -65,7 +60,7 @@ export interface NavItem {export interface NavGroupDef {label: string;items: NavItem[];- /** Can be folded away; the choice is remembered (Engine starts folded, see DEFAULT_NAV_CLOSED). */+ /** Can be folded away; the choice is remembered (see DEFAULT_NAV_CLOSED). */collapsible?: boolean;/** Two small items per row. */compact?: boolean;@@ -128,20 +123,13 @@ export const NAV: NavGroupDef[] = [{ href: "/audio", label: "Audio", icon: AudioLines, keywords: "voice tts music sfx dub transcribe" },{ href: "/katana", label: "Katana", icon: Swords, keywords: "cut edit clips" },{ href: "/image-to-3d", label: "Image to 3D", icon: Box, keywords: "3d mesh glb" },- { href: "/virality", label: "Virality predictor", icon: TrendingUp, keywords: "hook score" },+ { href: "/virality", label: "Hook check", icon: TrendingUp, keywords: "virality predictor hook score" },],collapsible: true,},{- label: "Engine",- items: [- { href: "/models", label: "Models", icon: Boxes, keywords: "catalog prices" },- { href: "/workflows", label: "ComfyUI workflows", short: "Workflows", icon: Workflow, keywords: "open source graphs" },- { href: "/settings", label: "Settings", icon: Settings, keywords: "keys preferences" },- { href: "/status", label: "Project status", short: "Status", icon: ListChecks, keywords: "parity progress" },- { href: "/settings/about", label: "About & licences", short: "Licences", icon: Scale, keywords: "licence license mit notices credits version open source" },- ],+ label: "More",+ items: [{ href: "/settings", label: "Settings", icon: Settings, keywords: "account gpu preferences" }],collapsible: true,- compact: true,},];diff --git a/src/components/workflows-view.tsx b/src/components/workflows-view.tsxdeleted file mode 100644index 9bb4d46e..00000000--- a/src/components/workflows-view.tsx+++ /dev/null@@ -1,376 +0,0 @@-"use client";--import { useQuery } from "@tanstack/react-query";-import { CheckCircle2, Circle, CircleAlert, Copy, Download, ExternalLink, RotateCcw, Search, Workflow } from "lucide-react";-import Link from "next/link";-import { useDeferredValue, useMemo, useRef, useState } from "react";-import { toast } from "sonner";-import { Badge } from "@/components/ui/badge";-import { Button } from "@/components/ui/button";-import { Skeleton } from "@/components/ui/skeleton";-import { useProgressive } from "@/components/use-progressive";-import { usePagePlace } from "@/components/gpu/use-page-place";-import { CONNECT_GPU_EVENT, useStatus } from "@/lib/api";-import { timeAgo } from "@/lib/format";-import { copyText } from "@/lib/clipboard";-import type { ManifestWorkflow } from "@/lib/comfy";-import { installScript, workflowSource } from "@/lib/comfy-install";-import { modelCardOf } from "@/lib/licences";-import { cn } from "@/lib/utils";-import { capabilityGroup, usedByIndex, WORKFLOW_GROUPS, type ComfyRoute } from "@/lib/workflow-usage";--type WF = Omit<ManifestWorkflow, "models" | "validated"> & { validated?: boolean; models: (ManifestWorkflow["models"][number] & { present: boolean | null })[] };--interface ComfyStatus {- /** null: a visitor, who isn't told about the studio's own ComfyUI (their own is on /connect). */- reachable: boolean | null;- /** "computer": the owner's ComfyUI runs on the owner's computer; the checkmarks are from its tab's last check (`checkedAt`). */- where?: "computer";- checkedAt?: number | null;- generatedAt: string;- comfyuiCommit?: string;- workflows: WF[];-}--async function fetchStatus(): Promise<ComfyStatus> {- const res = await fetch("/api/comfyui");- const body = (await res.json().catch(() => ({}))) as Partial<ComfyStatus> & { error?: string };- if (!res.ok) throw new Error(body.error ?? `Couldn’t load the workflow library (${res.status})`);- return {- reachable: body.reachable === null ? null : !!body.reachable,- ...(body.where === "computer" && { where: "computer" as const, checkedAt: body.checkedAt ?? null }),- generatedAt: body.generatedAt ?? "",- comfyuiCommit: body.comfyuiCommit,- workflows: body.workflows ?? [],- };-}--/** The owner's banner: where ComfyUI is, whether it answers, and what the checkmarks mean. */-function OwnerBanner({ data }: { data: ComfyStatus }) {- const status = useStatus().data;- const place = usePagePlace();- const cls = (ok: boolean) => cn("flex flex-wrap items-center gap-3 rounded-xl border px-4 py-3 text-[13px]", ok ? "bg-background" : "bg-brand-faint");- const link = "text-brand-text underline underline-offset-2";- if (data.where === "computer") {- const checked = data.checkedAt ?? null;- return (- <div className={cls(!!checked)}>- {checked ? <CheckCircle2 className="size-4 shrink-0 text-success" /> : <CircleAlert className="size-4 shrink-0 text-brand-text" />}- <span className="min-w-0 flex-1 basis-56">- {checked ? `Checked on your computer ${timeAgo(checked)}. Checkmarks show the models it has.` : "Your GPU is the ComfyUI on your computer. Check it to see which models it has."}- </span>- <Link href="/connect" className={link}>- {checked ? "Check again" : "Check your GPU"}- </Link>- </div>- );- }- if (data.reachable)- return (- <div className={cls(true)}>- <CheckCircle2 className="size-4 shrink-0 text-success" />- <span className="min-w-0 flex-1 basis-56">Connected to ComfyUI — model checkmarks below reflect what’s installed.</span>- <Link href="/settings#comfyui" className={link}>- Server settings- </Link>- </div>- );- // Nothing answers. A hosted studio: the owner's GPU is to be connected (the server's own address isn't the owner's).- if (place === "hosted")- return (- <div className={cls(false)}>- <CircleAlert className="size-4 shrink-0 text-brand-text" />- <span className="min-w-0 flex-1 basis-56">ComfyUI isn't connected yet. Connect your GPU to run these on your own graphics card.</span>- <Button size="sm" onClick={() => window.dispatchEvent(new Event(CONNECT_GPU_EVENT))}>- Connect your GPU- </Button>- </div>- );- return (- <div className={cls(false)}>- <CircleAlert className="size-4 shrink-0 text-warning" />- <span className="min-w-0 flex-1 basis-56">- {status?.demoMode === "on" ? "ComfyUI is not reachable. Placeholder results are on, so runs make stand-ins." : "ComfyUI is not reachable, so open-source runs can’t start."}- </span>- <Link href="/settings#comfyui" className={link}>- Server settings- </Link>- </div>- );-}--/**- * Saves a workflow's graph as a file. GitHub serves it as text from another site, where a link's download attribute- * doesn't count, so it's fetched and saved here; if that fails, the file opens in a new tab.- */-async function downloadGraph(raw: string, name: string) {- try {- const res = await fetch(raw);- if (!res.ok) throw new Error(String(res.status));- const url = URL.createObjectURL(new Blob([await res.text()], { type: "application/json" }));- const a = document.createElement("a");- a.href = url;- a.download = name;- a.click();- setTimeout(() => URL.revokeObjectURL(url), 1000);- } catch {- window.open(raw, "_blank", "noopener,noreferrer");- }-}--/** `owner`: the studio's owner is looking (their badge names the graph's ComfyUI check either way). */-function WorkflowCard({ wf, usedBy, owner }: { wf: WF; usedBy: string[]; owner: boolean }) {- const missing = wf.models.filter((m) => m.present === false && !m.optional).length;- const total = wf.models.reduce((a, m) => a + (m.optional ? 0 : (m.sizeGb ?? 0)), 0);- const source = workflowSource(wf.file);- const name = wf.file.slice(wf.file.lastIndexOf("/") + 1);- return (- <article className="flex min-w-0 flex-col gap-3 rounded-xl border bg-background p-4">- <div className="flex flex-wrap items-start justify-between gap-2">- <div className="min-w-0 flex-1 basis-48">- <h2 className="font-medium break-words">{wf.title}</h2>- <p className="font-mono text-[11px] break-all text-muted-foreground">{wf.id}</p>- </div>- <div className="flex shrink-0 gap-1">- <Badge variant="secondary" className="rounded-[4px] text-[11px]">- {wf.capability}- </Badge>- {owner ? (- <Badge- title={wf.validated ? "Passed the library's own ComfyUI check" : "This graph hasn't passed the library's own ComfyUI check yet"}- className={cn("rounded-[4px] text-[11px]", wf.validated ? "bg-success/15 text-success" : "bg-muted text-muted-foreground")}- >- {wf.validated ? "validated" : "not yet checked"}- </Badge>- ) : (- wf.validated && (- <Badge title="Accepted by a real ComfyUI" className="rounded-[4px] bg-success/15 text-[11px] text-success">- <CheckCircle2 aria-hidden /> Checked- </Badge>- )- )}- </div>- </div>- <p className="text-[12px] break-words text-muted-foreground">- {wf.source}- {wf.vramGb ? ` · ~${wf.vramGb} GB VRAM` : ""}- {total ? ` · ${total.toFixed(1)} GB of models` : ""}- {usedBy.length ? ` · used by ${usedBy.join(", ")}` : ""}- </p>- {wf.models.length > 0 && (- <ul className="space-y-1 text-[12px]">- {wf.models.map((m) => (- <li key={m.file} className="flex min-w-0 items-center gap-2">- {/* A mark only once a GPU has said what it has (present is null for a visitor with none connected). */}- {m.present === true ? (- <CheckCircle2 className="size-3.5 shrink-0 text-success" aria-label="Installed" />- ) : m.present === false ? (- m.optional ? (- <Circle className="size-3.5 shrink-0 text-muted-foreground" aria-label="Not installed (optional)" />- ) : (- <CircleAlert className="size-3.5 shrink-0 text-warning" aria-label="Missing" />- )- ) : null}- <span className="min-w-0 truncate font-mono" title={m.file}>- {m.file}- </span>- {m.gated && m.url && (- <a- href={modelCardOf(m.url) ?? m.url}- target="_blank"- rel="noreferrer"- title="Accept the licence on Hugging Face, then download with your Hugging Face token"- className="shrink-0 rounded-full bg-warning/15 px-1.5 text-[11px] whitespace-nowrap text-foreground hover:underline"- >- gated<span className="max-sm:hidden"> · accept licence</span>- </a>- )}- <span className="hidden shrink-0 text-muted-foreground sm:inline">{m.folder}</span>- {m.optional && <span className="shrink-0 text-muted-foreground">optional</span>}- {m.sizeGb ? <span className="ml-auto shrink-0 font-mono text-muted-foreground">{m.sizeGb} GB</span> : null}- {m.url && (- <a href={m.url} target="_blank" rel="noreferrer" className={cn("shrink-0 text-muted-foreground hover:text-foreground", !m.sizeGb && "ml-auto")} aria-label={`Download ${m.file}`}>- <ExternalLink className="size-3.5" />- </a>- )}- </li>- ))}- </ul>- )}- {wf.customNodes.length > 0 && (- <p className="text-[12px] break-words text-muted-foreground">- Custom nodes:{" "}- {wf.customNodes.map((n, i) => (- <a key={n.repo} href={n.repo} target="_blank" rel="noreferrer" className="text-brand-text underline underline-offset-2">- {n.name}- {i < wf.customNodes.length - 1 ? ", " : ""}- </a>- ))}- </p>- )}- {wf.notes && <p className="text-[12px] leading-relaxed break-words text-muted-foreground">{wf.notes}</p>}- <div className="mt-auto flex flex-wrap gap-2 pt-1">- <Button- variant="secondary"- size="sm"- className="max-w-full"- onClick={async () => {- if (await copyText(installScript(wf))) toast("Install commands copied");- else toast.error("Couldn’t copy — your browser blocked the clipboard");- }}- >- <Copy /> <span className="truncate">{missing ? `Copy install commands (${missing} missing)` : "Copy install commands"}</span>- </Button>- <Button asChild variant="ghost" size="sm">- <a- href={source.raw}- download={name}- onClick={(e) => {- e.preventDefault();- void downloadGraph(source.raw, name);- }}- >- <Download /> Download JSON- </a>- </Button>- <Button asChild variant="ghost" size="sm">- <a href={source.page} target="_blank" rel="noreferrer">- <ExternalLink /> View on GitHub- <span className="sr-only">(opens in a new tab)</span>- </a>- </Button>- </div>- </article>- );-}--export function WorkflowsView({ routes = [] }: { routes?: ComfyRoute[] }) {- const q = useQuery({ queryKey: ["comfyui"], queryFn: fetchStatus });- const [search, setSearch] = useState("");- const [cap, setCap] = useState("All");- const term = useDeferredValue(search.trim().toLowerCase());- const usedBy = useMemo(() => usedByIndex(routes), [routes]);- const workflows = useMemo(() => q.data?.workflows ?? [], [q.data]);- // Filter chips by what a workflow makes (Image, Video, Audio, Text & 3D), with counts.- const caps = useMemo(() => {- const n = new Map<string, number>();- for (const w of workflows) n.set(capabilityGroup(w.capability), (n.get(capabilityGroup(w.capability)) ?? 0) + 1);- return [["All", workflows.length] as const, ...WORKFLOW_GROUPS.filter((g) => n.has(g)).map((g) => [g, n.get(g)!] as const)];- }, [workflows]);- const list = useMemo(- () =>- workflows.filter(- (w) =>- (cap === "All" || capabilityGroup(w.capability) === cap) &&- (!term || `${w.id} ${w.title} ${w.capability} ${usedBy(w.id).join(" ")}`.toLowerCase().includes(term)),- ),- [workflows, term, cap, usedBy],- );- // 105 cards with model lists: render a page at a time.- const { shown, hasMore, moreFrom, sentinel, left } = useProgressive(list.length, `${cap}|${term}`, 20, 30);- const grid = useRef<HTMLDivElement>(null);-- if (q.isPending)- return (- <div className="space-y-6" aria-busy="true" aria-label="Loading workflows">- <Skeleton className="h-12 w-full rounded-xl" />- <div className="grid grid-cols-[minmax(0,1fr)] gap-3 lg:grid-cols-2">- {[0, 1, 2, 3].map((i) => (- <Skeleton key={i} className="h-48 rounded-xl" />- ))}- </div>- </div>- );-- if (q.isError)- return (- <div className="rounded-xl border border-dashed px-6 py-12 text-center">- <Workflow className="mx-auto size-6 text-muted-foreground" />- <p className="mt-3 font-heading text-[22px]">Couldn’t load the workflows</p>- <p className="mx-auto mt-1 max-w-md text-[13px] text-muted-foreground">{(q.error as Error).message}</p>- <Button className="mt-5" variant="outline" onClick={() => void q.refetch()}>- <RotateCcw /> Try again- </Button>- </div>- );-- const data = q.data;- // The server answers `reachable: null` to anyone but the studio's owner (src/app/api/comfyui/route.ts).- const owner = data.reachable !== null;- const validated = workflows.filter((w) => w.validated).length;- return (- <div className="space-y-6">- {data.reachable === null ? (- <div className="flex flex-wrap items-center gap-3 rounded-xl border bg-brand-faint px-4 py-3 text-[13px]">- <CircleAlert className="size-4 shrink-0 text-brand-text" />- <span className="min-w-0 flex-1 basis-56">These are the graphs your own ComfyUI runs. Connect your GPU to see what it has and what it still needs.</span>- <Link href="/connect" className="text-brand-text underline underline-offset-2">- Connect your GPU- </Link>- </div>- ) : (- <OwnerBanner data={data} />- )}- {workflows.length > 0 && (- <div className="flex flex-col gap-2 sm:flex-row sm:items-center">- <div className="relative w-full sm:w-80">- <Search className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />- <input- type="search"- value={search}- onChange={(e) => setSearch(e.target.value)}- placeholder="Search workflows, models, capabilities"- aria-label="Search workflows"- className="h-9 w-full rounded-full border bg-background pr-3 pl-9 text-[14px] outline-none placeholder:text-subtle-foreground focus:border-primary focus:ring-4 focus:ring-brand-faint"- />- </div>- <span className="text-[12px] text-muted-foreground tabular-nums sm:ml-auto" aria-live="polite">- {list.length === workflows.length ? `${workflows.length} workflows` : `${list.length} of ${workflows.length}`}- {owner && ` · ${validated} validated`}- </span>- </div>- )}- {caps.length > 2 && (- <div role="group" aria-label="What it makes" className="scrollbar-none -mx-1 flex gap-1 overflow-x-auto px-1">- {caps.map(([c, n]) => (- <button- key={c}- type="button"- aria-pressed={cap === c}- onClick={() => setCap(c)}- className={cn(- "inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full px-3 text-[13px] font-medium whitespace-nowrap text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",- cap === c && "bg-secondary text-foreground",- )}- >- {c}- <span className="text-[11px] text-muted-foreground tabular-nums">{n}</span>- </button>- ))}- </div>- )}- {!workflows.length ? (- <p className="text-sm text-muted-foreground">No workflows in workflows/comfyui/manifest.json yet.</p>- ) : !list.length ? (- <p className="py-10 text-center text-sm text-muted-foreground">- {term ? `No ${cap === "All" ? "" : `${cap} `}workflows match “${search.trim()}”.` : `No ${cap} workflows.`}- </p>- ) : (- <>- <div ref={grid} className="grid grid-cols-[minmax(0,1fr)] gap-3 lg:grid-cols-2">- {list.slice(0, shown).map((wf) => (- <WorkflowCard key={wf.id} wf={wf} usedBy={usedBy(wf.id)} owner={owner} />- ))}- </div>- {hasMore && (- <div className="flex justify-center">- <Button ref={sentinel} variant="outline" size="sm" className="rounded-full" onClick={(e) => moreFrom(e, grid.current)}>- Show more · {left} left- </Button>- </div>- )}- </>- )}- </div>- );-}diff --git a/src/lib/catalog/counts.ts b/src/lib/catalog/counts.tsindex bb545591..079f6bce 100644--- a/src/lib/catalog/counts.ts+++ b/src/lib/catalog/counts.ts@@ -1,5 +1,5 @@/**- * How many models Fuobe has, as every page quotes it (Home, /models, Project status, About & licences).+ * How many models Fuobe has, as every page quotes it (Home and Settings).** The rule:* - A model counts when a visitor can pick it: it is listed in a studio's picker, on /models and in the ⌘K palette.diff --git a/src/lib/nav.ts b/src/lib/nav.tsindex f46b9a0f..682b7731 100644--- a/src/lib/nav.ts+++ b/src/lib/nav.ts@@ -3,10 +3,10 @@/** Group labels the user collapsed, in localStorage. */export const NAV_CLOSED_KEY = "fuobe:nav-closed";/**- * Folded until the user opens them (nothing remembered yet). Studios starts open, so a first visit shows- * that the studios exist; Engine (models, workflows, settings) starts folded. ⌘K reaches folded rows too.+ * Folded until the user opens them (nothing remembered yet). Every group starts open, so a first visit shows+ * that the studios exist. ⌘K reaches folded rows too.*/-export const DEFAULT_NAV_CLOSED: readonly string[] = ["engine"];+export const DEFAULT_NAV_CLOSED: readonly string[] = [];/** Written by the shadcn SidebarProvider ("true" / "false"). */export const SIDEBAR_COOKIE = "sidebar_state";@@ -38,7 +38,7 @@ function queryMatches(query: string, search: URLSearchParams) {* Whether a nav link is the current page. A link with a query (`/library?tab=favorites`) is active* when the path and every one of its params match; a plain link is active on its path (and below it)* unless a sibling matches better: a query link to the same path, or a link to a page below it- * (Settings yields to About & licences on /settings/about).+ * (a link to /settings yields to one to a page below it).*/export function navActive(href: string, pathname: string, search: URLSearchParams, siblings: string[] = []): boolean {if (!pathname) return false;diff --git a/src/lib/palette-index.ts b/src/lib/palette-index.tsindex ed183ade..cc75698c 100644--- a/src/lib/palette-index.ts+++ b/src/lib/palette-index.ts@@ -66,6 +66,8 @@ const MODEL_STUDIOS: [string, StudioConfig][] = [const IN_3D = new Set([...ALL_MODELS_3D.map((m) => m.id), RIG_MODEL]);/** The Layers editor's tools (cut-out, layers, text detection…): its project list is where they start. */const IN_LAYERS = new Set(Object.values(TOOL_MODELS).flatMap((t) => [...t.cloud, ...t.open]));+/** Where a model no studio, app or tool offers opens: the studio of what it makes. */+const KIND_HOME: Record<ModelDef["kind"], string> = { image: "/image", video: "/video", audio: "/audio", text: "/assist", model3d: "/image-to-3d" };/** Tools with their own flow (and their own model choice), by operation. */const TOOL_PAGES: [string, Operation][] = [["/video-tools/captions", "captions"],@@ -76,7 +78,7 @@ const TOOL_PAGES: [string, Operation][] = [/*** Where a model opens: the first studio that offers it, Image to 3D, an app that runs it (each with* ?model=, which also brings the model's engine), the Layers editor or a tool of its operation, else- * its row on the Models page (which reads ?q=). A model kept out of the pickers (hidden) has no studio to open in.+ * the main studio of its kind. A model kept out of the pickers (hidden) has no studio to open in.*/export function modelHref(m: ModelDef): string {const ops = new Set(m.routes.map((r) => r.op));@@ -89,7 +91,7 @@ export function modelHref(m: ModelDef): string {if (IN_LAYERS.has(m.id)) return "/layers";const tool = TOOL_PAGES.find(([, op]) => ops.has(op));if (tool) return tool[0];- return `/models?q=${encodeURIComponent(m.name)}`;+ return KIND_HOME[m.kind];}const preset = (p: Preset): PalettePreset => ({ id: p.id, name: p.name, category: p.category, cloud: !!p.cloud, open: !!p.open });diff --git a/src/lib/status-page.ts b/src/lib/status-page.tsdeleted file mode 100644index dafaf94f..00000000--- a/src/lib/status-page.ts+++ /dev/null@@ -1,44 +0,0 @@-/**- * The Project status page (/status): a short summary, and docs/STATUS.md rendered under it for the studio's owner. Pure, so it can be tested:- * where the log's links go, the ids of its headings and its outline, and the date it was last updated.- */-import { defaultUrlTransform } from "react-markdown";-import { FUOBE_REPO } from "./connections";--/** The whole log on GitHub, and the folder its relative links point into. */-export const STATUS_ON_GITHUB = `${FUOBE_REPO}/blob/main/docs/STATUS.md`;-const DOCS = `${FUOBE_REPO}/blob/main/docs/`;--/**- * A link in the log: a relative one (research/README.md, ../scripts/eval/README.md) is a file in the repo's docs/- * folder, so it opens on GitHub; the site has no such page. Addresses, #anchors and site paths stay as they are.- */-export function statusLink(url: string): string {- if (/^([a-z][a-z0-9+.-]*:|#|\/)/i.test(url)) return defaultUrlTransform(url);- return new URL(url, DOCS).href;-}--/** A heading's id: "2. Feature matrix vs Higgsfield" → "2-feature-matrix-vs-higgsfield". */-export const headingId = (text: string): string =>- text- .toLowerCase()- .replace(/[^a-z0-9]+/g, "-")- .replace(/^-|-$/g, "");--/** The log's sections (## and ###, outside code blocks), for the page's table of contents. */-export function statusOutline(md: string): { depth: 2 | 3; text: string; id: string }[] {- let fenced = false;- return md.split("\n").flatMap((line) => {- if (line.startsWith("```")) fenced = !fenced;- const m = !fenced && /^(##|###) (.+?)\s*$/.exec(line);- if (!m) return [];- const text = m[2].replace(/[`*_]/g, "");- return [{ depth: m[1].length as 2 | 3, text, id: headingId(text) }];- });-}--/** "Last updated: 2026-10-30 (round 5, part 2)" → "2026-10-30". */-export const statusDate = (md: string): string | undefined => /Last updated:\s*(\d{4}-\d{2}-\d{2})/.exec(md)?.[1];--/** The log without its own title: the page has one. */-export const statusBody = (md: string): string => md.replace(/^# .*\n+/, "");diff --git a/tests/command-palette.test.ts b/tests/command-palette.test.tsindex 8a6c76de..a78f9fe8 100644--- a/tests/command-palette.test.ts+++ b/tests/command-palette.test.ts@@ -5,7 +5,7 @@ import { NAV } from "@/components/nav-items";import { APPS, EFFECTS, getModel, MODELS, MOTIONS } from "@/lib/catalog";import { entryScore, indexEntries, normalize, rankPalette, skillEntries, wordScore, type PaletteEntry } from "@/lib/command-search";import { modelHref, paletteIndex } from "@/lib/palette-index";-import { modelSearchText, rowPriceOn, toModelRow } from "@/lib/model-rows";+import { rowPriceOn, toModelRow } from "@/lib/model-rows";import { hubModePaths, studioRoutes } from "./e2e/_routes.mjs";const page = (label: string, href: string, keywords?: string): PaletteEntry => ({ key: `page:${href}`, kind: "page", label, href, keywords });@@ -161,16 +161,12 @@ describe("palette index", () => {}});- it("finds the model on the Models page when nothing else runs it", () => {- const fallback = index.models.filter((m) => pathOf(m.href) === "/models");- // Only models whose studio isn't in this build (or that only run inside chains) are left. Round 4 adds- // the Remove object, Genjutsu, FPS Boost / SDR to HDR / Export and 3D scene models (33 here).+ it("opens a model nothing else runs in the studio of what it makes", () => {+ const home: Record<string, string> = { image: "/image", video: "/video", audio: "/audio", text: "/assist", model3d: "/image-to-3d" };+ const fallback = index.models.filter((m) => !m.href.includes("?") && Object.values(home).includes(m.href));expect(fallback.length).toBeLessThan(40);- for (const m of fallback) {- const q = new URLSearchParams(m.href.split("?")[1]).get("q");- // The Models search (ModelsTable) matches q against this text.- expect(q && modelSearchText(toModelRow(getModel(m.id)!)).includes(q.trim().toLowerCase()), m.href).toBeTruthy();- }+ for (const m of fallback) expect(m.href, m.id).toBe(home[getModel(m.id)!.kind]);+ expect(index.models.some((m) => pathOf(m.href) === "/models")).toBe(false);});it("opens every page and settings section the palette lists", () => {diff --git a/tests/model-counts.test.ts b/tests/model-counts.test.tsindex 858d7020..0c58f28c 100644--- a/tests/model-counts.test.ts+++ b/tests/model-counts.test.ts@@ -42,16 +42,10 @@ describe("model counts", () => {expect(MODELS.some((x) => x.hidden && x.engine === "cloud")).toBe(true);});- it("is the count Home, /models, Project status and About quote", () => {+ it("is the count Home quotes", () => {expect(read("src/lib/home-showcase.ts")).toMatch(/modelCounts\(\)/);- expect(read("src/app/(studio)/status/page.tsx")).toMatch(/modelCounts\(\)/);- expect(read("src/app/(studio)/settings/about/page.tsx")).toMatch(/modelCounts\(\)/);- // /models lists the same models the counts count.- expect(read("src/app/(studio)/models/page.tsx")).toMatch(/MODELS\.filter\(isListed\)/);// No page counts the catalog on its own.- for (const file of ["src/app/(studio)/status/page.tsx", "src/app/(studio)/settings/about/page.tsx", "src/lib/home-showcase.ts"]) {- expect(read(file), file).not.toMatch(/MODELS\.filter\([^)]*enginesOf/);- expect(read(file), file).not.toMatch(/openModels: licences/);- }+ expect(read("src/lib/home-showcase.ts")).not.toMatch(/MODELS\.filter\([^)]*enginesOf/);+ expect(read("src/lib/home-showcase.ts")).not.toMatch(/openModels: licences/);});});diff --git a/tests/nav.test.ts b/tests/nav.test.tsindex f7e60d1e..bb54d8e2 100644--- a/tests/nav.test.ts+++ b/tests/nav.test.ts@@ -28,15 +28,19 @@ describe("sidebar active state", () => {expect(navActive("/library", "/library", q("tab=trash"), LIBRARY)).toBe(true);});- it("hands it to a sibling link below the plain one: Settings and About & licences", () => {- const engine = NAV.find((g) => g.label === "Engine")!.items.map((i) => i.href);- expect(engine).toContain("/settings/about");- const lit = (pathname: string) => engine.filter((h) => navActive(h, pathname, q(), engine));- expect(lit("/settings/about")).toEqual(["/settings/about"]);+ it("hands it to a sibling link below the plain one", () => {+ const links = ["/settings", "/settings/runs"];+ const lit = (pathname: string) => links.filter((h) => navActive(h, pathname, q(), links));+ expect(lit("/settings/runs")).toEqual(["/settings/runs"]);expect(lit("/settings")).toEqual(["/settings"]);// Pages below Settings with no link of their own keep Settings lit.expect(lit("/settings/models")).toEqual(["/settings"]);- expect(lit("/models")).toEqual(["/models"]);+ });++ it("ends with Settings, and links no removed page", () => {+ const hrefs = NAV.flatMap((g) => g.items.map((i) => i.href));+ expect(NAV.at(-1)!.items.map((i) => i.href)).toEqual(["/settings"]);+ for (const gone of ["/status", "/models", "/workflows", "/settings/about"]) expect(hrefs).not.toContain(gone);});});@@ -50,20 +54,20 @@ describe("remembered sidebar state", () => {});it("parses the collapsed groups defensively", () => {- expect(parseClosed('["studios","engine"]')).toEqual(["studios", "engine"]);+ expect(parseClosed('["studios","more"]')).toEqual(["studios", "more"]);expect(parseClosed('["studios", 3]')).toEqual(["studios"]);// The user opened every group: that choice is kept, not replaced by the defaults.expect(parseClosed("[]")).toEqual([]);});- it("folds Engine, and shows Studios, until the user chooses (nothing stored, or nothing readable)", () => {- expect(parseClosed(null)).toEqual(["engine"]);- expect(parseClosed(undefined)).toEqual(["engine"]);- expect(parseClosed("not json")).toEqual(["engine"]);- expect(parseClosed('{"a":1}')).toEqual(["engine"]);+ it("opens every group until the user chooses (nothing stored, or nothing readable)", () => {+ expect(parseClosed(null)).toEqual([]);+ expect(parseClosed(undefined)).toEqual([]);+ expect(parseClosed("not json")).toEqual([]);+ expect(parseClosed('{"a":1}')).toEqual([]);// A fresh copy each time: a caller adding to it can't change the defaults.parseClosed(null).push("create");- expect(parseClosed(null)).toEqual(["engine"]);+ expect(parseClosed(null)).toEqual([]);});it("only folds groups that can fold, and keeps Create and Library in view", () => {diff --git a/tests/status-page.test.ts b/tests/status-page.test.tsdeleted file mode 100644index e9be9f5d..00000000--- a/tests/status-page.test.ts+++ /dev/null@@ -1,51 +0,0 @@-import fs from "node:fs";-import path from "node:path";-import { describe, expect, it } from "vitest";-import { headingId, STATUS_ON_GITHUB, statusBody, statusDate, statusLink, statusOutline } from "@/lib/status-page";--/** Project status (/status): docs/STATUS.md under a public summary, with working links and a table of contents. */--const md = fs.readFileSync(path.join(__dirname, "../docs/STATUS.md"), "utf8");--describe("the Project status page", () => {- it("opens the log's relative links on GitHub, where the files are (the site has no such pages)", () => {- const repo = "https://github.com/workingprototype/fuobe/blob/main";- expect(statusLink("research/README.md")).toBe(`${repo}/docs/research/README.md`);- expect(statusLink("cli.md")).toBe(`${repo}/docs/cli.md`);- expect(statusLink("../scripts/eval/README.md")).toBe(`${repo}/scripts/eval/README.md`);- expect(statusLink("workers/tribe-v2.md")).toBe(`${repo}/docs/workers/tribe-v2.md`);- // Addresses, anchors and the site's own pages are left alone; unsafe schemes are dropped as before.- expect(statusLink("https://fal.ai/models")).toBe("https://fal.ai/models");- expect(statusLink("#known-issues")).toBe("#known-issues");- expect(statusLink("/workflows")).toBe("/workflows");- expect(statusLink("javascript:alert(1)")).toBe("");- expect(STATUS_ON_GITHUB).toBe(`${repo}/docs/STATUS.md`);- });-- it("every relative link in the log names a file in the repo", () => {- const links = [...md.matchAll(/\]\(([^)\s]+)\)/g)].map((m) => m[1]).filter((u) => !/^([a-z]+:|#|\/)/i.test(u));- expect(links.length).toBeGreaterThan(10);- for (const l of links) {- const file = path.join(__dirname, "../docs", decodeURIComponent(l.split("#")[0]));- expect(fs.existsSync(file), l).toBe(true);- }- });-- it("lists the log's sections for the table of contents, with the ids its headings get", () => {- const outline = statusOutline(md);- expect(outline.filter((h) => h.depth === 2).length).toBeGreaterThanOrEqual(4);- expect(outline[0]).toEqual({ depth: 2, text: "1. What has been verified", id: "1-what-has-been-verified" });- expect(headingId("Edit & apps")).toBe("edit-apps");- expect(new Set(outline.map((h) => h.id)).size).toBe(outline.length);- expect(statusOutline("## A\n```\n## not a heading\n```\n### B")).toEqual([- { depth: 2, text: "A", id: "a" },- { depth: 3, text: "B", id: "b" },- ]);- });-- it("reads the log's date and drops its own title (the page has one)", () => {- expect(statusDate(md)).toMatch(/^\d{4}-\d{2}-\d{2}$/);- expect(statusDate("_Last updated: 2026-10-30 (round 5, part 2)._")).toBe("2026-10-30");- expect(statusBody("# Fuobe — project status\n\n_Last updated_")).toBe("_Last updated_");- });-});diff --git a/tests/workflows-page-marks.test.ts b/tests/workflows-page-marks.test.tsindex 1183bfe5..27e4fddd 100644--- a/tests/workflows-page-marks.test.ts+++ b/tests/workflows-page-marks.test.ts@@ -3,8 +3,7 @@ import os from "node:os";import path from "node:path";import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";-// The Workflows page's marks come from GET /api/comfyui: the studio's owner gets each graph's `validated` as it is;-// anyone else gets it on the graphs that passed, and the page shows those a Checked mark.+// GET /api/comfyui: the owner gets each graph's `validated` as it is; anyone else gets it on the graphs that passed.vi.mock("next/server", async (importOriginal) => ({ ...(await importOriginal<typeof import("next/server")>()), connection: async () => {} }));