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.

Fuobe FX: a main menu and page for FX artists and teams

Adarshb83b6a6eef60
diff --git a/src/app/(studio)/fx/loading.tsx b/src/app/(studio)/fx/loading.tsx
new file mode 100644
index 00000000..0d97547c
--- /dev/null
+++ b/src/app/(studio)/fx/loading.tsx
@@ -0,0 +1,5 @@
+import { GalleryPageSkeleton } from "@/components/skeletons";
+
+export default function Loading() {
+ return <GalleryPageSkeleton title="Fuobe FX" />;
+}
diff --git a/src/app/(studio)/fx/page.tsx b/src/app/(studio)/fx/page.tsx
new file mode 100644
index 00000000..c266f4be
--- /dev/null
+++ b/src/app/(studio)/fx/page.tsx
@@ -0,0 +1,24 @@
+import type { Metadata } from "next";
+import { AreaBody, AreaHero, AreaJsonLd, AreaPage, AreaSections, MoreInFuobe, sectionTabs } from "@/components/areas/area-page";
+import { fxShowcase } from "@/lib/area-showcase";
+
+export const metadata: Metadata = {
+ title: "Fuobe FX",
+ description: "Tools for FX artists and teams: replace and recast, clean plates, roto and mattes, relight and grade, retime and upscale, camera and 3D.",
+ alternates: { canonical: "/fx" },
+};
+
+/** Fuobe FX: the tools an FX pipeline uses, grouped by stage (src/lib/fx-tools.ts). Each tool also stays where it lives. */
+export default async function Page() {
+ const { count, sections } = await fxShowcase();
+ return (
+ <AreaPage>
+ <AreaHero id="fx" count={count} />
+ <AreaBody id="fx" tabs={sectionTabs(sections)}>
+ <AreaSections sections={sections} />
+ </AreaBody>
+ <MoreInFuobe current="fx" />
+ <AreaJsonLd id="fx" items={sections.flatMap((s) => [...s.cards, ...s.pills])} />
+ </AreaPage>
+ );
+}
diff --git a/src/app/nav-menus/fx/route.ts b/src/app/nav-menus/fx/route.ts
new file mode 100644
index 00000000..0f182059
--- /dev/null
+++ b/src/app/nav-menus/fx/route.ts
@@ -0,0 +1,10 @@
+import { packMenu } from "@/lib/mega-menus";
+import { SERVER_MENUS } from "@/lib/mega-menus.server";
+
+/**
+ * The bar's fx menu as data (src/lib/mega-menus.server.ts): read from the catalog and the covers at build time and
+ * served as a static file, fetched the first time the menu warms (src/components/nav/mega-data.ts).
+ */
+export function GET() {
+ return Response.json(packMenu(SERVER_MENUS.fx()));
+}
diff --git a/src/app/nav-states.css b/src/app/nav-states.css
index 99272d5b..2d292745 100644
--- a/src/app/nav-states.css
+++ b/src/app/nav-states.css
@@ -120,7 +120,7 @@ html:not([data-input="pointer"]) .nav-focus-out:focus-visible {
html [data-top-bar][data-menu-open] [data-bar-menu].nav-row:is(:hover, :focus-visible) {
background-color: transparent;
}
-/* More, below 1280 px, holds Apps and Motions & effects: their page marks it there. */
+/* More, below 1280 px, holds Apps and Motions & effects (and below 1024 px Fuobe FX): their page marks it there. */
@media (max-width: 1279.98px) {
.nav-row.nav-mark-under[data-narrow]::before {
content: "";
@@ -135,6 +135,20 @@ html [data-top-bar][data-menu-open] [data-bar-menu].nav-row:is(:hover, :focus-vi
pointer-events: none;
}
}
+@media (max-width: 1023.98px) {
+ .nav-row.nav-mark-under[data-narrow-lg]::before {
+ content: "";
+ position: absolute;
+ bottom: 3px;
+ left: 50%;
+ width: 16px;
+ height: 3px;
+ margin-left: -8px;
+ border-radius: 9999px;
+ background-color: var(--nav-mark);
+ pointer-events: none;
+ }
+}
@media (forced-colors: active) {
[data-bar-indicator] {
background-color: transparent;
diff --git a/src/components/nav-items.ts b/src/components/nav-items.ts
index 1e607f85..13b6e407 100644
--- a/src/components/nav-items.ts
+++ b/src/components/nav-items.ts
@@ -1,5 +1,6 @@
import type { LucideIcon } from "lucide-react";
import { navIcon } from "@/lib/nav-icons";
+import { FX_HOME } from "@/lib/fx-tools";
import { entry, type NavEntry } from "@/lib/nav-model";
export interface NavItem {
@@ -24,7 +25,7 @@ export interface NavGroupDef {
}
/**
- * The places to create, the library, the studios and settings as four groups, in a fixed order (Home's
+ * The places to create, the library, the studios, Fuobe FX and settings as five groups, in a fixed order (Home's
* showcase reads Create and Studios). Labels, links and search words come from the navigation model
* (src/lib/nav-model.ts); only the grouping and the order are kept here.
*/
@@ -52,13 +53,7 @@ const GROUPS: { label: string; ids: string[]; collapsible?: boolean }[] = [
"content-factory",
"explainer",
"lipsync",
- "genjutsu",
- "character-swap",
- "motion-control",
"video-edit",
- "extend",
- "reframe",
- "video-tools",
"elements",
"upscale",
"audio",
@@ -68,6 +63,8 @@ const GROUPS: { label: string; ids: string[]; collapsible?: boolean }[] = [
],
collapsible: true,
},
+ // Fuobe FX: its page, then its studios (FX_HOME), which live here and no more under Studios.
+ { label: "Fuobe FX", ids: ["area-fx", ...FX_HOME], collapsible: true },
{ label: "More", ids: ["settings"], collapsible: true },
];
diff --git a/src/components/nav/mega-launcher.tsx b/src/components/nav/mega-launcher.tsx
index e078f2dc..bb293787 100644
--- a/src/components/nav/mega-launcher.tsx
+++ b/src/components/nav/mega-launcher.tsx
@@ -2,7 +2,7 @@
import { lazy, Suspense, useCallback, useEffect, useState } from "react";
import { MEGA_AREAS, megaMove, megaPanelId, TILE_COLS, type MegaId } from "@/lib/mega-menus";
-import { launcherActive, subActive } from "@/lib/nav-model";
+import { activeEntry, launcherActive, subActive } from "@/lib/nav-model";
import { cn } from "@/lib/utils";
import { useBarMenu } from "./bar-menus";
import { BarTrigger } from "./bar-split";
@@ -43,13 +43,14 @@ export function launcherCurrent(pathname: string): string | undefined {
export const LAUNCHER_PANEL = "absolute inset-x-0 top-full max-h-[calc(100dvh-3.5rem)] overflow-y-auto overscroll-contain text-popover-foreground";
/** The routes a menu's links lead to that load ahead when it opens (each row also loads on hover: IntentLink). */
-const WARM: Record<MegaId, NavPanel> = { studios: "studios", apps: "more", motions: "more", canvas: "more" };
+const WARM: Record<MegaId, NavPanel> = { studios: "studios", apps: "more", motions: "more", canvas: "more", fx: "fx" };
/** The item of a menu the open page is (aria-current): a studio or one of its features, an app, a preset, a ready board. */
export function megaCurrent(id: MegaId, pathname: string, search = ""): string | undefined {
if (id === "studios") return subActive(pathname, search) ?? launcherActive(pathname);
if (id === "apps") return /^\/apps\/([^/]+)$/.exec(pathname)?.[1];
if (id === "motions") return pathname === "/video" ? (new URLSearchParams(search).get("preset") ?? undefined) : undefined;
+ if (id === "fx") return /^\/apps\/([^/]+)$/.exec(pathname)?.[1] ?? subActive(pathname, search) ?? activeEntry(pathname, new URLSearchParams(search))?.id;
return /^\/canvas\/start\/([^/]+)$/.exec(pathname)?.[1];
}
diff --git a/src/components/nav/nav-prefetch.tsx b/src/components/nav/nav-prefetch.tsx
index a92fe03e..6271559a 100644
--- a/src/components/nav/nav-prefetch.tsx
+++ b/src/components/nav/nav-prefetch.tsx
@@ -3,6 +3,7 @@
import { useRouter } from "next/navigation";
import { useEffect } from "react";
import { queueIdlePrefetch } from "@/lib/idle-prefetch";
+import { inFx } from "@/lib/fx-tools";
import { entriesFor, type ViewerKind } from "@/lib/nav-model";
/*
@@ -11,12 +12,12 @@ import { entriesFor, type ViewerKind } from "@/lib/nav-model";
* page's own tabs go first. Each link also prefetches on its own when hovered (IntentLink).
*/
-/** A panel whose routes load when it opens: the launcher (and the Studios sheet), Create, More. */
-export type NavPanel = "studios" | "create" | "more";
+/** A panel whose routes load when it opens: the launcher (and the Studios sheet), Create, More, Fuobe FX. */
+export type NavPanel = "studios" | "create" | "more" | "fx";
const MORE_IDS = ["apps", "motions", "effects", "canvas", "assist", "area-motions"];
/** Each panel's "See all": its area page loads with the panel's rows. */
-const AREA_OF: Record<NavPanel, string> = { studios: "area-studios", create: "area-create", more: "area-motions" };
+const AREA_OF: Record<NavPanel, string> = { studios: "area-studios", create: "area-create", more: "area-motions", fx: "area-fx" };
/**
* The routes one tap in a panel leads to (`panel`), or in all of them with the library's (no `panel`): on the site, once
@@ -33,7 +34,9 @@ export function prefetchHrefs(kind: ViewerKind | undefined, panel?: NavPanel): s
? e.kind === "create"
: panel === "more"
? MORE_IDS.includes(e.id)
- : !!e.group || e.kind === "create" || e.kind === "library" || e.kind === "area",
+ : panel === "fx"
+ ? e.kind === "studio" && inFx(e)
+ : !!e.group || (e.kind === "studio" && inFx(e)) || e.kind === "create" || e.kind === "library" || e.kind === "area",
)
.map((e) => e.href)
.filter((h) => h.startsWith("/") && !h.includes("#"));
diff --git a/src/components/nav/phone-nav.ts b/src/components/nav/phone-nav.ts
index 8e746be2..a1388c4d 100644
--- a/src/components/nav/phone-nav.ts
+++ b/src/components/nav/phone-nav.ts
@@ -2,6 +2,7 @@
* Phone navigation helpers (pure, so they're testable): which tab looks selected, what a tab tap opens, whether the
* on-screen keyboard is up, and the You tab's dot.
*/
+import { FX_HOME } from "@/lib/fx-tools";
export type PhoneTab = "home" | "create" | "studios" | "library" | "you";
/** The sheets the tabs open (NavSheet in nav-ui.tsx). */
@@ -13,7 +14,7 @@ function under(path: string, pathname: string): boolean {
/**
* The tab that looks selected. An open sheet's tab, while it is open; otherwise the page's: Home on /, Library in the
- * library, You in settings, Studios in a studio (an entry with a launcher group), Create in a create tool. Nothing on
+ * library, You in settings, Studios in a studio (an entry with a launcher group, or Fuobe FX's), Create in a create tool. Nothing on
* other pages (a gallery of motions, say), so no tab claims a page it doesn't lead to.
*/
export function activePhoneTab(
@@ -30,6 +31,8 @@ export function activePhoneTab(
if (entry?.id === "area-studios") return "studios";
if (entry?.id === "area-create") return "create";
if (entry?.group) return "studios";
+ // Fuobe FX is a family of the Studios sheet: its page and its studios are that tab's.
+ if (entry?.id === "area-fx" || (entry?.id && FX_HOME.includes(entry.id))) return "studios";
if (entry?.kind === "create") return "create";
return null;
}
diff --git a/src/components/nav/studios-sheet.tsx b/src/components/nav/studios-sheet.tsx
index 24cc9f27..e662f4bd 100644
--- a/src/components/nav/studios-sheet.tsx
+++ b/src/components/nav/studios-sheet.tsx
@@ -15,7 +15,7 @@ import { megaCurrent } from "./mega-launcher";
import { useMegaMenu, warmMenu } from "./mega-data";
/** The families the sheet shows, in the bar's order. */
-export const SHEET_FAMILIES: readonly MegaId[] = ["studios", "apps", "motions", "canvas"];
+export const SHEET_FAMILIES: readonly MegaId[] = ["studios", "fx", "apps", "motions", "canvas"];
/** How many of each column a fetched menu's "All" shows (so the whole set fits a 390 x 844 phone). */
const ALL_PER_COLUMN = 4;
@@ -142,7 +142,7 @@ function Shortcuts({ onSearch }: { onSearch: () => void }) {
);
}
-/** The sheet's family switch, in its title row: Studios · Apps · Motions & effects · Canvas. */
+/** The sheet's family switch, in its title row: Studios · Fuobe FX · Apps · Motions & effects · Canvas. */
export function FamilySwitch({ family, onFamily }: { family: MegaId; onFamily: (f: MegaId) => void }) {
return (
<TabRow role="group" aria-label="What to show" follow className="min-w-0 flex-1 gap-0.5">
diff --git a/src/components/nav/top-bar.tsx b/src/components/nav/top-bar.tsx
index 61f6bdd9..b987e430 100644
--- a/src/components/nav/top-bar.tsx
+++ b/src/components/nav/top-bar.tsx
@@ -27,14 +27,14 @@ import { ViewerSlot } from "./viewer-slot";
export { prefetchHrefs } from "./nav-prefetch";
/*
- * The top bar (md and up): the wordmark, Create, Studios (the launcher), Apps, Motions & effects, Canvas, Assist and
+ * The top bar (md and up): the wordmark, Create, Studios (the launcher), Fuobe FX, Apps, Motions & effects, Canvas, Assist and
* Library; search; New creation; who is looking. 56 px on every page. What doesn't fit moves into More, by CSS alone
* (nothing is measured, so nothing moves after the first paint):
* 1600 and up everything, search 280 px, a guest's Log in
* 1440-1599 the same, search 220 px (Apps, Motions & effects and Canvas each carry a chevron)
* 1280-1439 Canvas and Assist in More, search 200 px
* 1024-1279 Apps and Motions & effects in More too
- * 768-1023 the same, search and New creation as icon buttons
+ * 768-1023 the same, Fuobe FX in More too, search and New creation as icon buttons
* Measured with the site's fonts for a guest, an account and the owner, a classic scrollbar's width to spare at every
* width. Below md the phone tabs take over (phone-tabs.tsx).
*/
@@ -57,6 +57,8 @@ export function barActive(pathname: string): {
studios: boolean;
apps: boolean;
motions: boolean;
+ /** Fuobe FX: its studios and their modes (FX_HOME). */
+ fx: boolean;
canvas: boolean;
/** /canvas itself (the Canvas item's own page). */
canvasHome: boolean;
@@ -71,6 +73,7 @@ export function barActive(pathname: string): {
studios: area === "studios",
apps: area === "apps",
motions: area === "motions",
+ fx: area === "fx",
canvas: e?.id === "canvas",
canvasHome: pathname === "/canvas",
assist: e?.id === "assist",
@@ -104,21 +107,42 @@ function useOn(): (e: NavEntry) => boolean {
const MOTIONS_AREA_HREF = area("motions").href;
+/** Fuobe FX's own page, as More lists it where the bar has no room for its item. */
+const FX_ENTRY = entry(area("fx").entryId)!;
+
+/** Fuobe FX in More: its page, with an icon (it has no cover of its own) and its line. */
+function FxRow({ current, row }: { current: boolean; row: number }) {
+ return (
+ <IntentLink href={FX_ENTRY.href} aria-current={current ? "page" : undefined} data-col={0} data-row={row} className={cn(CARD_ROW, MENU_ROW_2)}>
+ <span className="grid h-[27px] w-9 shrink-0 place-items-center rounded-[6px] bg-muted">
+ <NavIcon name={FX_ENTRY.icon} className="nav-icon size-4 text-muted-foreground" />
+ </span>
+ <span className="flex min-w-0 flex-col">
+ <span className={rowName(current)}>{FX_ENTRY.label}</span>
+ <span className={ROW_LINE}>{FX_ENTRY.what}</span>
+ </span>
+ </IntentLink>
+ );
+}
+
function MoreItems() {
const on = useOn();
return (
<>
+ <div className="lg:hidden">
+ <FxRow current={on(FX_ENTRY)} row={0} />
+ </div>
{pick(["apps", "motions", "effects"]).map((e, i) => (
<div key={e.id} className="xl:hidden">
- <RichItem e={e} current={on(e)} row={i} />
+ <RichItem e={e} current={on(e)} row={1 + i} />
</div>
))}
<div className="xl:hidden">
- <SeeAllRow href={MOTIONS_AREA_HREF} name="See all motions & effects" data-col={0} data-row={3} className="mt-1" />
+ <SeeAllRow href={MOTIONS_AREA_HREF} name="See all motions & effects" data-col={0} data-row={4} className="mt-1" />
<div role="separator" className="mx-2.5 my-1.5 h-px bg-border" />
</div>
{pick(["canvas", "assist"]).map((e, i) => (
- <IntentLink key={e.id} href={e.href} eager={e.eager} aria-current={on(e) ? "page" : undefined} data-col={0} data-row={4 + i} className={cn(CARD_ROW, MENU_ROW_2)}>
+ <IntentLink key={e.id} href={e.href} eager={e.eager} aria-current={on(e) ? "page" : undefined} data-col={0} data-row={5 + i} className={cn(CARD_ROW, MENU_ROW_2)}>
<span className="grid h-[27px] w-9 shrink-0 place-items-center rounded-[6px] bg-muted">
<NavIcon name={e.icon} className="nav-icon size-4 text-muted-foreground" />
</span>
@@ -148,6 +172,8 @@ function MoreMenu({ active }: { active: Active }) {
// Marked when it holds the open page at this width: Canvas and Assist always; Apps, Motions and Effects below xl.
active={active.canvas || active.assist}
data-narrow={active.apps || active.motions || undefined}
+ // Fuobe FX is in it below lg only.
+ data-narrow-lg={active.fx || undefined}
>
<MoreItems />
</BarCardMenu>
@@ -166,6 +192,7 @@ function BarLinks({ active, onTap }: { active: Active; onTap?: (href: string) =>
{/* An item is marked anywhere in its area, its own page (/create, /studios …) included. */}
<CreateMenu active={active.create || active.page === "create"} />
<MegaLauncher id="studios" active={active.studios || active.page === "studios"} />
+ <MegaLauncher id="fx" active={active.fx || active.page === "fx"} className="hidden lg:inline-flex" />
<MegaLauncher id="apps" active={active.apps || active.page === "apps"} className="hidden xl:inline-flex" />
<MegaLauncher id="motions" active={active.motions || active.page === "motions"} className="hidden xl:inline-flex" />
<MegaLauncher id="canvas" active={active.canvas || active.canvasHome} className="hidden min-[1440px]:inline-flex" />
@@ -257,6 +284,7 @@ function RightCluster() {
export function warmBar(): void {
if (!window.matchMedia("(min-width: 768px)").matches) return;
const ids: FetchedMegaId[] = [];
+ if (window.matchMedia("(min-width: 1024px)").matches) ids.push("fx");
if (window.matchMedia("(min-width: 1280px)").matches) ids.push("apps", "motions");
if (window.matchMedia("(min-width: 1440px)").matches) ids.push("canvas");
preloadMegaPanel();
diff --git a/src/lib/area-showcase.ts b/src/lib/area-showcase.ts
index 74a18dcc..90bcd75e 100644
--- a/src/lib/area-showcase.ts
+++ b/src/lib/area-showcase.ts
@@ -5,10 +5,11 @@
*/
import "server-only";
import { cacheLife } from "next/cache";
-import { EFFECTS, MOTIONS } from "@/lib/catalog";
+import { APPS, EFFECTS, MOTIONS } from "@/lib/catalog";
+import { FX_COVERS, FX_SECTIONS, fxCardable, isFxApp } from "@/lib/fx-tools";
import { HOME_EFFECTS, HOME_MOTIONS, HOME_STUDIOS, homeCard, homeShowcase, presetHref, type HomeFacts } from "@/lib/home-showcase";
-import { areaCount, areaSections, rankCards, type AreaId } from "@/lib/nav-areas";
-import { entry, NAV_ENTRIES, subLabel, visibleTo, type NavEntry } from "@/lib/nav-model";
+import { areaCount, areaSections, cardsToShow, PILL_ONLY, rankCards, type AreaId } from "@/lib/nav-areas";
+import { entry, NAV_ENTRIES, subLabel, visibleTo, type NavEntry, type ViewerKind } from "@/lib/nav-model";
import type { PresetCardData } from "@/lib/preset-cards";
import { featuredAll, featuredBand } from "@/lib/preset-featured";
@@ -135,6 +136,117 @@ export async function areaShowcase(id: AreaId) {
export type AreaShowcase = Awaited<ReturnType<typeof areaShowcase>>;
+/** One Fuobe FX item resolved: a navigation entry or a one-click app, with its cover (a preset id) when it has one. */
+interface FxItem {
+ id: string;
+ href: string;
+ label: string;
+ line: string;
+ icon: string;
+ cover?: string;
+ /** It may be a card here: an FX studio or one of its modes (the rest have their card elsewhere). */
+ cardable: boolean;
+ /** Who may see it (the navigation's rule; an app is everyone's). */
+ visible: (kind: ViewerKind | undefined) => boolean;
+}
+
+/** An app's line: its description's first sentence, with a full stop. */
+const appLine = (description: string) => {
+ const first = (description.split(/\.\s/)[0] ?? description).trim().replace(/[.…]+$/, "");
+ return `${first}.`;
+};
+
+/** A Fuobe FX item by its id (src/lib/fx-tools.ts): a navigation entry or an app; undefined when neither exists. */
+export function fxItem(id: string, facts?: HomeFacts): FxItem | undefined {
+ if (isFxApp(id)) {
+ const p = APPS.find((a) => a.id === id);
+ if (!p) return undefined;
+ return { id, href: presetHref(id), label: p.name, line: appLine(p.description), icon: "LayoutGrid", cardable: false, visible: () => true };
+ }
+ const e = entry(id);
+ if (!e) return undefined;
+ const cover = FX_COVERS[id] ?? areaCover(id);
+ const line = facts ? lineOf(e, facts) : (e.line ?? e.what);
+ return {
+ id,
+ href: e.href,
+ label: e.label,
+ // A mode's card says what it does in a sentence, as the studios' lines do.
+ line: /[.!?]$/.test(line) ? line : `${line}.`,
+ icon: e.icon,
+ ...(cover && { cover }),
+ cardable: fxCardable(id, e),
+ visible: (kind) => visibleTo(e, kind),
+ };
+}
+
+/**
+ * Fuobe FX's sections as a viewer sees them: in each, the items with a cover as cards (the lead first, then premium
+ * first by their cover's featured band, only full rows: cardsToShow), each cover once on the page, and the rest as
+ * pills; no link twice in a section. Ids only, so the page and the tests share it.
+ */
+export function fxSections(kind: ViewerKind | undefined, facts?: HomeFacts) {
+ const used = new Set<string>();
+ return FX_SECTIONS.map((s) => {
+ const items = s.items.map((id) => fxItem(id, facts)).filter((it): it is FxItem => !!it && it.visible(kind));
+ const covered = items.filter((it) => it.cardable && it.cover && !PILL_ONLY.includes(it.id) && !used.has(it.cover));
+ const ranked = rankCards(
+ covered.map((it) => it.id),
+ featuredBand,
+ (id) => covered.find((it) => it.id === id)?.cover,
+ );
+ const cards = ranked.slice(0, cardsToShow(ranked.length));
+ for (const id of cards) used.add(covered.find((it) => it.id === id)!.cover!);
+ const cardHrefs = new Set(cards.map((id) => items.find((it) => it.id === id)!.href));
+ const seen = new Set<string>();
+ const pills = items
+ .filter((it) => !cards.includes(it.id))
+ .filter((it) => {
+ if (cardHrefs.has(it.href) || seen.has(it.href)) return false;
+ seen.add(it.href);
+ return true;
+ })
+ .map((it) => it.id);
+ return { ...s, cards, pills };
+ }).filter((s) => s.cards.length || s.pills.length);
+}
+
+/**
+ * /fx: Fuobe FX's sections ready to draw (as areaShowcase's), with the owner's extra pills apart, and the count of the
+ * different pages it links.
+ */
+export async function fxShowcase() {
+ "use cache";
+ cacheLife("max");
+ const { facts } = await homeShowcase();
+ const owner = fxSections("owner", facts);
+ const pillOf = (id: string): AreaPill => {
+ const it = fxItem(id, facts)!;
+ return { id: it.id, href: it.href, label: it.label, icon: it.icon };
+ };
+ const sections: AreaShowcaseSection[] = fxSections(undefined, facts).map((s) => {
+ const ownerOnly = (owner.find((o) => o.id === s.id)?.pills ?? []).filter((p) => !s.pills.includes(p) && !s.cards.includes(p));
+ return {
+ id: s.id,
+ title: s.title,
+ line: s.line,
+ icon: s.icon,
+ cards: s.cards.map((id): AreaCard => {
+ const it = fxItem(id, facts)!;
+ // A mode is named with its studio ("Genjutsu · Insert"), so it reads apart from the studios beside it.
+ const parent = entry(id)?.parent;
+ const label = parent && entry(parent) ? `${entry(parent)!.label} · ${it.label}` : it.label;
+ return { id: it.id, href: it.href, label, line: it.line, card: homeCard(it.cover!) };
+ }),
+ pills: s.pills.map(pillOf),
+ ownerPills: ownerOnly.map(pillOf),
+ subs: [],
+ };
+ });
+ const count = new Set(sections.flatMap((s) => [...s.cards, ...s.pills].map((x) => x.href))).size;
+ return { count, sections };
+}
+
/**
* /motions-and-effects' wall: four camera motions and four effects from the top of the featured order, alternating,
* each with what its cover shows in a line that fits a phone's tile (Home's rows say the same things at more length).
diff --git a/src/lib/bar-intent.ts b/src/lib/bar-intent.ts
index 271f8f36..7886213a 100644
--- a/src/lib/bar-intent.ts
+++ b/src/lib/bar-intent.ts
@@ -10,7 +10,7 @@ import { NAV_INTENT } from "./ui-motion";
*/
/** The bar's six menu items, left to right (the order a switch slides in). */
-export const BAR_MENUS = ["create", "studios", "apps", "motions", "canvas", "more"] as const;
+export const BAR_MENUS = ["create", "studios", "fx", "apps", "motions", "canvas", "more"] as const;
export type BarMenuId = (typeof BAR_MENUS)[number];
/** Opened by resting the pointer (closes when the pointer leaves) or pinned by a click, a tap or a key. */
diff --git a/src/lib/fx-tools.ts b/src/lib/fx-tools.ts
new file mode 100644
index 00000000..d5d3c79b
--- /dev/null
+++ b/src/lib/fx-tools.ts
@@ -0,0 +1,155 @@
+/**
+ * Fuobe FX: the tools a VFX artist or team reaches for, grouped by the stage of an FX pipeline they serve. Pure data, so
+ * the server's page (/fx), the bar's menu, the area helpers and the tests share it; src/lib/area-showcase.ts and
+ * mega-menus.server.ts resolve the ids to covers and links.
+ *
+ * Fuobe FX is the one home of the FX studios (FX_HOME): they have no launcher group, so Studios and /create list them
+ * no more, and their cards are here. Each section's cards are those studios and their own modes; the shared tools FX
+ * work also uses (Upscale, Color grading, Layers, Inpaint, Image to 3D…) and the one-click apps keep their homes and
+ * are pills here. Every item is a navigation entry's id (src/lib/nav-model.ts) or an app's preset id ("app-…").
+ */
+import type { NavIconName } from "./nav-model";
+
+/** The studios whose home is Fuobe FX (their links, names and search words are unchanged). */
+/** A Genjutsu mode's entry id, built (one written out whole is also a retired model id: catalog/replaced.ts). */
+const gj = (mode: string) => `genjutsu-${mode}`;
+
+export const FX_HOME: readonly string[] = ["genjutsu", "character-swap", "motion-control", "video-tools", "extend", "reframe"];
+
+/** Whether an entry lives in Fuobe FX: one of its studios, or a mode or tab of one. */
+export const inFx = (e: { id: string; parent?: string }) => FX_HOME.includes(e.id) || (!!e.parent && FX_HOME.includes(e.parent));
+
+/**
+ * The cover a mode of an FX studio shows as its card here (a preset whose picture shows the same job). The studios
+ * themselves show their own (areaCover).
+ */
+export const FX_COVERS: Readonly<Record<string, string>> = {
+ [gj("character")]: "genjutsu-group-swap",
+ [gj("motion")]: "app-dance",
+ [gj("swap")]: "app-outfit-swap",
+ [gj("insert")]: "app-product-placement",
+ [gj("picture")]: "app-bring-to-life",
+ "video-tools-remove-object": "app-object-remover",
+ "video-tools-green-screen": "app-remove-background",
+ "video-tools-colors": "app-match-colors",
+ "video-tools-restore": "app-restore-photo",
+ "upscale-fps": "motion-slow-motion",
+};
+
+export interface FxSection {
+ /** The section's anchor (#replace), its tab and its menu column. */
+ id: string;
+ title: string;
+ /** A phone chip's name. */
+ chip: string;
+ /** One sentence under the heading. */
+ line: string;
+ icon: NavIconName;
+ /** Navigation entry ids or app preset ids, the lead first. */
+ items: readonly string[];
+}
+
+/** An item that is a one-click app (its page is /apps/<id>). */
+export const isFxApp = (id: string) => id.startsWith("app-");
+
+/** Whether an item may be a card here: an FX studio or one of its modes, or Upscale's smoother-motion mode (FX_COVERS). */
+export const fxCardable = (id: string, e?: { id: string; parent?: string }) => !isFxApp(id) && (!!e && (inFx(e) || id in FX_COVERS));
+
+export const FX_SECTIONS: readonly FxSection[] = [
+ {
+ id: "replace",
+ title: "Replace & recast",
+ chip: "Replace",
+ line: "Swap a person, a face or an object in your plate. The camera and the motion stay as shot.",
+ icon: "Drama",
+ items: [
+ "genjutsu",
+ "character-swap",
+ "motion-control",
+ gj("character"),
+ gj("motion"),
+ gj("swap"),
+ gj("insert"),
+ gj("picture"),
+ "app-recast",
+ "app-video-face-swap",
+ "app-face-swap",
+ "app-head-swap",
+ ],
+ },
+ {
+ id: "clean-plates",
+ title: "Clean plates & mattes",
+ chip: "Clean plates",
+ line: "Take people and objects out, pull a matte, key a green screen or match two plates.",
+ icon: "Layers",
+ items: [
+ "video-tools",
+ "video-tools-remove-object",
+ "video-tools-green-screen",
+ "video-tools-colors",
+ "video-tools-remove-person",
+ "video-tools-depth",
+ "inpaint",
+ "layers",
+ "app-video-background-remover",
+ "app-remove-background",
+ "app-object-remover",
+ "app-watermark-remover",
+ "app-change-background",
+ "app-similarity-score",
+ "app-text-edit",
+ ],
+ },
+ {
+ id: "finish",
+ title: "Retime, reframe & finish",
+ chip: "Finish",
+ line: "Longer shots, new shapes, smoother motion, restored footage and masters for delivery.",
+ icon: "FastForward",
+ items: [
+ "extend",
+ "reframe",
+ "upscale-fps",
+ "video-tools-restore",
+ "upscale",
+ "upscale-video",
+ "upscale-hdr",
+ "upscale-export",
+ gj("finish"),
+ "video-tools-trim",
+ "video-tools-join",
+ "video-tools-captions",
+ "video-tools-remove-dialogue",
+ "app-skin-enhancer",
+ ],
+ },
+ {
+ id: "look",
+ title: "Relight, grade & look",
+ chip: "Look",
+ line: "Relight a clip, grade it or give it a new look. The motion stays as shot.",
+ icon: "SlidersHorizontal",
+ items: [
+ "video-tools-relight",
+ gj("restyle"),
+ "color-grade",
+ "video-edit",
+ "app-match-lighting",
+ "app-match-colors",
+ "app-style-transfer",
+ "app-colorize",
+ ],
+ },
+ {
+ id: "camera",
+ title: "Camera & 3D",
+ chip: "Camera & 3D",
+ line: "New angles, camera moves, 3D from a photo and effects for any shot.",
+ icon: "Rotate3d",
+ items: ["any-angle", "image-to-3d", "image-to-3d-splat", "cinema", "cinema-blockout", "motions", "effects", "video-tools-evolution", "app-fuobe-angles", "app-zoom-out", "app-shots"],
+ },
+];
+
+/** Every navigation entry the sections name (not the apps), each once, in section order. */
+export const fxNavIds = (): string[] => [...new Set(FX_SECTIONS.flatMap((s) => s.items.filter((id) => !isFxApp(id))))];
diff --git a/src/lib/home-showcase.ts b/src/lib/home-showcase.ts
index 36680783..b613341d 100644
--- a/src/lib/home-showcase.ts
+++ b/src/lib/home-showcase.ts
@@ -266,10 +266,12 @@ export function homeCard(id: string): PresetCardData {
export const presetHref = (id: string) => (id.startsWith("app-") ? `/apps/${id}` : `/video?preset=${id}`);
const navItems = (label: string) => NAV.find((g) => g.label === label)?.items ?? [];
-export const navLabel = (href: string) => [...navItems("Create"), ...navItems("Studios")].find((i) => i.href === href)?.label ?? href;
+/** The places to create: Create's, the studios and Fuobe FX's (its studios moved there from Studios, its page first). */
+const placeItems = () => [...navItems("Create"), ...navItems("Studios"), ...navItems("Fuobe FX")];
+export const navLabel = (href: string) => placeItems().find((i) => i.href === href)?.label ?? href;
/** The navigation's places to create, but Home. */
-export const homeDestinations = () => [...navItems("Create"), ...navItems("Studios")].filter((i) => i.href !== "/");
+export const homeDestinations = () => placeItems().filter((i) => i.href !== "/");
/** The places to create that have no card or section of their own on Home, in the navigation's order. */
export const homePills = () =>
diff --git a/src/lib/mega-menus.server.ts b/src/lib/mega-menus.server.ts
index a5c5942e..565f8fb6 100644
--- a/src/lib/mega-menus.server.ts
+++ b/src/lib/mega-menus.server.ts
@@ -23,6 +23,9 @@ import { featuredAll } from "@/lib/preset-featured";
import { templateCover } from "@/lib/template-covers";
import { templateStillSources } from "@/lib/template-hd";
import { MENU_LINES } from "@/lib/menu-lines";
+import { fxSections } from "@/lib/area-showcase";
+import { FX_COVERS, FX_SECTIONS, isFxApp } from "@/lib/fx-tools";
+import { entry } from "@/lib/nav-model";
/** A column of a preset menu: its name, its phone chip, and the catalog categories it holds. */
export interface PresetGroup {
@@ -244,4 +247,61 @@ export function canvasMenu(): MegaModel {
};
}
-export const SERVER_MENUS = { apps: appsMenu, motions: motionsMenu, canvas: canvasMenu } as const;
+/** A Fuobe FX item as a menu row: a navigation entry with its nav cover, or an app with its own cover. */
+function fxMenuItem(id: string): MegaItem | undefined {
+ if (isFxApp(id)) {
+ const p = APPS.find((a) => a.id === id);
+ return p && presetItem(p);
+ }
+ const e = entry(id);
+ if (!e) return undefined;
+ // A mode shows the preset whose picture shows its job (inline: the nav's own covers don't carry it); else the entry's.
+ const own = FX_COVERS[id] ? presetMegaCover(FX_COVERS[id]) : undefined;
+ const nav = own ? undefined : (FX_COVERS[id] ?? e.cover);
+ return {
+ id,
+ href: e.href,
+ label: e.label,
+ // Its line as the Studios menu gives it (34 characters at most; CSS fits it to the row).
+ line: e.what,
+ icon: e.icon,
+ ...(own && { cover: own }),
+ ...(nav && { navCover: nav }),
+ ...(e.short && { short: e.short }),
+ ...(e.newUntil && { newUntil: e.newUntil }),
+ };
+}
+
+/**
+ * Fuobe FX as a menu: a column per section (src/lib/fx-tools.ts), its first card as the lead and then its other cards
+ * and its pills, up to ROW_CAPS.tall rows (the page has every one). What a visitor sees: the owner's own modes are left
+ * to the page.
+ */
+export function fxMenu(): MegaModel {
+ const sections = fxSections(undefined);
+ // A mode whose name another tool here has too ("Character swap", Genjutsu's and the studio) is named with its studio.
+ const names = sections.flatMap((s) => [...s.cards, ...s.pills]).map((id) => fxMenuItem(id)?.label.toLowerCase());
+ const named = (e: MegaItem): MegaItem => {
+ const parent = entry(e.id)?.parent;
+ return parent && names.filter((n) => n === e.label.toLowerCase()).length > 1 ? { ...e, label: `${entry(parent)!.label} · ${e.label}` } : e;
+ };
+ const n = new Set(sections.flatMap((s) => [...s.cards, ...s.pills].map((id) => fxMenuItem(id)?.href))).size;
+ return {
+ id: "fx",
+ count: n,
+ countLine: `${n} tools for FX artists and teams, by stage of the shot`,
+ seeAll: { href: "/fx", name: "See all of Fuobe FX" },
+ columns: sections.map((s): MegaColumn => {
+ const items = [...s.cards, ...s.pills]
+ .map(fxMenuItem)
+ .filter((x): x is MegaItem => !!x)
+ .map(named);
+ // The lead card is the first with a picture (a section of pills only leads with its first tool that has one).
+ const lead = items.find((x) => x.cover || x.navCover) ?? items[0];
+ const rest = items.filter((x) => x !== lead);
+ return { id: s.id, label: s.title, chip: FX_SECTIONS.find((x) => x.id === s.id)!.chip, ...(lead && { lead }), rows: rest.slice(0, ROW_CAPS.tall) };
+ }),
+ };
+}
+
+export const SERVER_MENUS = { apps: appsMenu, motions: motionsMenu, canvas: canvasMenu, fx: fxMenu } as const;
diff --git a/src/lib/mega-menus.ts b/src/lib/mega-menus.ts
index 1eca3998..6abf6bae 100644
--- a/src/lib/mega-menus.ts
+++ b/src/lib/mega-menus.ts
@@ -9,11 +9,11 @@ import { area } from "./nav-areas";
import type { StillSources } from "./preset-hd";
import { entriesFor, launcherColumns, studioCount, studioSubs, STUDIO_SUBS, subLabel, subParent, type NavEntry, type NavIconName, type ViewerKind } from "./nav-model";
-export type MegaId = "studios" | "apps" | "motions" | "canvas";
+export type MegaId = "studios" | "apps" | "motions" | "canvas" | "fx";
/** The menus fetched from the server (Studios is in the bundle). */
export type FetchedMegaId = Exclude<MegaId, "studios">;
-export const FETCHED_MENUS: readonly FetchedMegaId[] = ["apps", "motions", "canvas"];
+export const FETCHED_MENUS: readonly FetchedMegaId[] = ["apps", "motions", "canvas", "fx"];
/** Where a fetched menu's data is: a static file, made at build time. */
export const menuUrl = (id: FetchedMegaId) => `/nav-menus/${id}`;
@@ -126,6 +126,7 @@ export const MEGA_AREAS: Record<MegaId, { label: string; href: string; menu: str
apps: { label: "Apps", href: area("apps").href, menu: "Apps menu", panel: "All apps" },
motions: { label: "Motions & effects", href: area("motions").href, menu: "Motions & effects menu", panel: "All motions and effects" },
canvas: { label: "Canvas", href: "/canvas", menu: "Canvas menu", panel: "Canvas ready boards" },
+ fx: { label: area("fx").label, href: area("fx").href, menu: "Fuobe FX menu", panel: "Fuobe FX tools" },
};
/** The panel's element id ("studios-launcher", "apps-launcher" …). */
diff --git a/src/lib/nav-areas.ts b/src/lib/nav-areas.ts
index 2a50817e..837cb1d3 100644
--- a/src/lib/nav-areas.ts
+++ b/src/lib/nav-areas.ts
@@ -1,6 +1,6 @@
/**
* The area pages: one page for each of the bar's menus that holds a family of things (Create, Studios, Apps, Motions &
- * effects), showing everything inside it as Home's "Studios and tools" section does. Pure data and helpers from the
+ * effects, Fuobe FX), showing everything inside it as Home's "Studios and tools" section does. Pure data and helpers from the
* navigation model (no React, no catalog), so the server's pages and the bar share them. ("Hub" already names the
* Audio, Upscale and Video tools modes in src/lib/hubs.ts, so these are "areas".)
*
@@ -21,8 +21,9 @@ import {
type NavIconName,
type ViewerKind,
} from "./nav-model";
+import { inFx } from "./fx-tools";
-export type AreaId = "create" | "studios" | "apps" | "motions";
+export type AreaId = "create" | "studios" | "apps" | "motions" | "fx";
/** One section of an area page: its heading and line, the entries drawn as cover cards, then the rest as pills. */
export interface AreaSection {
@@ -81,6 +82,14 @@ export const AREAS: readonly Area[] = [
line: "Camera moves a film crew would make, and effects from one photo.",
entryId: "area-motions",
},
+ {
+ id: "fx",
+ href: "/fx",
+ label: "Fuobe FX",
+ title: "Fuobe FX",
+ line: "Tools for FX artists and teams, grouped by the stage of the shot they help with.",
+ entryId: "area-fx",
+ },
];
export function area(id: AreaId): Area {
@@ -140,10 +149,11 @@ function createSections(): AreaSection[] {
{
id: "edit-clip",
title: "Edit a clip",
- line: "Restyle, lengthen, reshape or sharpen a clip you have.",
+ line: "Sharpen a clip, dub it, sync the lips or give it sound.",
icon: "Scissors",
- cards: ["video-edit", "extend", "reframe", "upscale"],
- chips: ["katana", "motion-control", "character-swap", "genjutsu", "video-tools", ...toolsOf(["upscale"])],
+ cards: [...EDIT_CLIP_CARDS],
+ // The FX tools (Genjutsu, Extend video, Reframe, Video tools…) have their home on Fuobe FX: its page is the pill.
+ chips: ["video-edit", "katana", ...toolsOf(["upscale"]), "area-fx"],
},
{
id: "sound",
@@ -151,11 +161,14 @@ function createSections(): AreaSection[] {
line: "Voices, music and sound effects for anything you make.",
icon: "AudioLines",
cards: [],
- chips: ["audio", ...toolsOf(["audio"])],
+ chips: ["audio", ...toolsOf(["audio"]).filter((id) => !EDIT_CLIP_CARDS.includes(id))],
},
];
}
+/** /create's "Edit a clip" cards: what changes a clip you have, but the FX tools (their home is Fuobe FX). */
+const EDIT_CLIP_CARDS: readonly string[] = ["upscale", "lipsync", "audio-translate", "audio-video"];
+
/** The pages that are a card on /create: a pill on /studios. */
const CREATE_CARDS: ReadonlySet<string> = new Set(createSections().flatMap((s) => s.cards));
@@ -243,8 +256,8 @@ const NO_SEARCH = new URLSearchParams();
/**
* The bar item that holds a page, one per page: Create for its tools (not Canvas or Assist, which have items of their
- * own), Studios for a studio and its tools, Apps for the apps, Motions & effects for both galleries; and each for its
- * own area page. None for Home, Canvas, Assist, Library and settings.
+ * own), Studios for a studio and its tools, Apps for the apps, Motions & effects for both galleries, Fuobe FX
+ * for its studios (FX_HOME); and each for its own area page. None for Home, Canvas, Assist, Library and settings.
*/
export function areaOfPath(pathname: string): AreaId | undefined {
const e = pathname ? activeEntry(pathname, NO_SEARCH) : undefined;
@@ -252,6 +265,7 @@ export function areaOfPath(pathname: string): AreaId | undefined {
const own = AREAS.find((a) => a.entryId === e.id);
if (own) return own.id;
if (e.id === "motions" || e.id === "effects") return "motions";
+ if (inFx(e)) return "fx";
if (e.kind === "create" && e.id !== "canvas" && e.id !== "assist") return "create";
if (e.kind === "studio") return "studios";
return undefined;
diff --git a/src/lib/nav-icons.ts b/src/lib/nav-icons.ts
index 0b9f02d1..a5e37c25 100644
--- a/src/lib/nav-icons.ts
+++ b/src/lib/nav-icons.ts
@@ -3,6 +3,7 @@
* icons listed here are bundled; tests/nav-model.test.ts checks every name the model uses is here.
*/
import {
+ Aperture,
AtSign,
AudioLines,
Bell,
@@ -70,6 +71,7 @@ import {
} from "lucide-react";
export const NAV_ICONS = {
+ Aperture,
AtSign,
AudioLines,
Bell,
diff --git a/src/lib/nav-model.ts b/src/lib/nav-model.ts
index 175a8064..21e7249a 100644
--- a/src/lib/nav-model.ts
+++ b/src/lib/nav-model.ts
@@ -157,14 +157,18 @@ const PAGES: NavEntry[] = [
},
];
-/** The launcher's studios (and Apps), column by column; each column's lead first. */
+/**
+ * The launcher's studios (and Apps), column by column; each column's lead first. The studios with no group (Motion
+ * control, Extend video, Reframe, Video tools, Character Swap, Genjutsu) live in Fuobe FX instead (FX_HOME,
+ * src/lib/fx-tools.ts): its menu, page and sidebar group list them.
+ */
const STUDIOS: NavEntry[] = [
// Film & video
{ id: "cinema", href: "/cinema", label: "Cinema Studio", short: "Cinema", what: "Direct shots like a film set", kind: "studio", group: "film", lead: true, goals: ["film"], keywords: "film director shots movie cinematic scene", cover: "motion-arc-left", icon: "Clapperboard", popular: true },
{ id: "storyboard", href: "/storyboard", label: "Storyboard", short: "Storyboard", what: "Plan a film frame by frame", kind: "studio", group: "film", goals: ["film"], keywords: "frames story plan shots", cover: "app-shots", icon: "GalleryHorizontal" },
- { id: "motion-control", href: "/motion-control", label: "Motion control", short: "Motion", what: "Copy any dance or pose", kind: "studio", group: "film", goals: ["film", "people"], keywords: "pose dance transfer choreography", cover: "motion-static", icon: "PersonStanding" },
- { id: "extend", href: "/extend", label: "Extend video", short: "Extend", what: "Make a clip longer", kind: "studio", group: "film", goals: ["film", "edit"], keywords: "longer continue lengthen", cover: "motion-aerial-pullback", icon: "FastForward" },
- { id: "reframe", href: "/reframe", label: "Reframe", short: "Reframe", what: "Any shape, vertical first", kind: "studio", group: "film", goals: ["film", "social", "edit"], keywords: "aspect ratio outpaint vertical crop resize", cover: "app-expand-image", icon: "Crop" },
+ { id: "motion-control", href: "/motion-control", label: "Motion control", short: "Motion", what: "Copy any dance or pose", kind: "studio", goals: ["film", "people"], keywords: "pose dance transfer choreography", cover: "motion-static", icon: "PersonStanding" },
+ { id: "extend", href: "/extend", label: "Extend video", short: "Extend", what: "Make a clip longer", kind: "studio", goals: ["film", "edit"], keywords: "longer continue lengthen", cover: "motion-aerial-pullback", icon: "FastForward" },
+ { id: "reframe", href: "/reframe", label: "Reframe", short: "Reframe", what: "Any shape, vertical first", kind: "studio", goals: ["film", "social", "edit"], keywords: "aspect ratio outpaint vertical crop resize", cover: "app-expand-image", icon: "Crop" },
{ id: "video-edit", href: "/video-edit", label: "Edit video", short: "Edit video", what: "Restyle a clip with words", kind: "studio", group: "film", goals: ["film", "edit"], keywords: "video edit restyle change clip", cover: "effect-outfit-switch", icon: "Scissors" },
{ id: "katana", href: "/katana", label: "Katana", short: "Katana", what: "Cut clips into a story", kind: "studio", group: "film", goals: ["film"], keywords: "cut edit clips timeline montage", cover: "app-clipcut", icon: "Swords" },
{
@@ -174,7 +178,6 @@ const STUDIOS: NavEntry[] = [
short: "Video tools",
what: "Trim, matte, depth, captions",
kind: "studio",
- group: "film",
goals: ["film", "edit"],
keywords: "join trim matte depth captions evolution remove object restore colourise colorize archive old footage black and white",
cover: "app-video-background-remover",
@@ -205,14 +208,13 @@ const STUDIOS: NavEntry[] = [
short: "Character swap",
what: "Swap the star of a clip",
kind: "studio",
- group: "people",
goals: ["people", "edit", "film"],
keywords: "h3 akatz swap character whole clip shots segments takes",
cover: "app-character-swap",
icon: "Drama",
newUntil: newFor30Days("2026-10-27"),
},
- { id: "genjutsu", href: "/genjutsu", label: "Genjutsu", short: "Genjutsu", what: "Insert or swap anyone", kind: "studio", group: "people", goals: ["people", "edit"], keywords: "swap insert character motion transfer", cover: "genjutsu-group-swap", icon: "WandSparkles", newUntil: newFor30Days("2026-10-23") },
+ { id: "genjutsu", href: "/genjutsu", label: "Genjutsu", short: "Genjutsu", what: "Insert or swap anyone", kind: "studio", goals: ["people", "edit"], keywords: "swap insert character motion transfer", cover: "genjutsu-group-swap", icon: "WandSparkles", newUntil: newFor30Days("2026-10-23") },
{ id: "elements", href: "/elements", label: "Elements", short: "Elements", what: "Your people, places, props", kind: "studio", group: "people", goals: ["people", "film"], keywords: "characters places props", cover: "app-figurine", icon: "AtSign" },
// Sound (the Audio studio leads; its main modes follow it, from HUB_TOOLS)
{
@@ -381,6 +383,17 @@ const AREA_PAGES: NavEntry[] = [
{ id: "area-create", href: "/create", label: "All of Create", what: "Every way to make or edit", kind: "area", goals: [], keywords: "create make edit tools all overview", icon: "Sparkles" },
{ id: "area-studios", href: "/studios", label: "All studios", what: "Every studio, with previews", kind: "area", goals: [], keywords: "studios all overview every studio", icon: "LayoutGrid" },
{ id: "area-motions", href: "/motions-and-effects", label: "Motions & effects", what: "Camera moves and effects", kind: "area", goals: [], keywords: "motions effects camera moves vfx presets overview", icon: "Film" },
+ {
+ id: "area-fx",
+ href: "/fx",
+ label: "Fuobe FX",
+ what: "Tools for FX artists and teams",
+ kind: "area",
+ goals: [],
+ keywords:
+ "fx vfx visual effects compositing comp compositor roto rotoscope rotoscoping matte mattes alpha key keying green screen clean plate plate cleanup paint out removal depth pass passes exr hdr relight retime frame interpolation upscale recast replace pipeline post production artist team",
+ icon: "Aperture",
+ },
];
/**
@@ -421,6 +434,7 @@ const CARD_LINES: Record<string, string> = {
"audio-sfx": "Any sound effect from a few words.",
"audio-translate": "Your video, dubbed into another language.",
"audio-clean": "Remove noise and echo from any voice.",
+ "audio-video": "Sound effects and room tone made to fit your clip.",
};
/**
diff --git a/src/lib/nav-search.ts b/src/lib/nav-search.ts
index fdc57536..4c75f22c 100644
--- a/src/lib/nav-search.ts
+++ b/src/lib/nav-search.ts
@@ -121,6 +121,20 @@ export const INTENTS: readonly Intent[] = [
targets: ["motions", "edit", "upscale", "video"],
},
{ id: "hook", triggers: ["hook", "thumbnail", "first seconds", "retention", "engagement"], targets: ["virality", "app-hook-frame"] },
+ // Fuobe FX: the words of an FX pipeline lead to its page, then to the tool that does the job.
+ { id: "fx", triggers: ["fx", "vfx", "visual effects", "compositing", "compositor", "comp", "post production", "postproduction"], targets: ["area-fx", "genjutsu", "video-tools", "upscale"] },
+ {
+ id: "roto",
+ triggers: ["roto", "rotoscope", "rotoscoping", "matte", "mattes", "alpha", "keying", "chroma key", "depth pass", "z pass"],
+ targets: ["video-tools-matte", "video-tools-green-screen", "app-video-background-remover", "video-tools-depth", "area-fx"],
+ },
+ {
+ id: "clean-plate",
+ triggers: ["clean plate", "plate", "paint out", "wire removal", "rig removal", "remove person"],
+ targets: ["video-tools-remove-object", "video-tools-remove-person", "app-object-remover", "area-fx"],
+ },
+ { id: "exr", triggers: ["exr", "openexr", "hdr", "prores", "10 bit", "lossless"], targets: ["upscale-export", "upscale-hdr", "area-fx"] },
+ { id: "retime", triggers: ["retime", "frame interpolation", "interpolate", "interpolation", "60fps", "120fps"], targets: ["upscale-fps", "area-fx"] },
];
/**
diff --git a/tests/__snapshots__/home-studios.html b/tests/__snapshots__/home-studios.html
index 74e59bd1..324c80f5 100644
--- a/tests/__snapshots__/home-studios.html
+++ b/tests/__snapshots__/home-studios.html
@@ -2,10 +2,10 @@
<div class="mb-4">
<div class="flex items-center justify-between gap-4">
<h2 id="home-studios" class="font-heading text-[24px] leading-tight sm:text-[28px]">Studios and tools<span aria-hidden="true" class="ml-2 inline-block rounded-full bg-muted px-2 align-[0.3em] font-sans text-[13px] leading-6 tracking-normal text-muted-foreground tabular-nums">
-<span style="display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums">41</span>
+<span style="display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums">42</span>
</span>
</h2>
-<a aria-label="See all 29 studios" class="group relative inline-flex shrink-0 items-center gap-1 text-[13px] text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3 after:content-[&#x27;&#x27;] hover:text-foreground" href="/studios">See all 29 studios <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-arrow-right size-3.5 transition-transform duration-150 group-hover:translate-x-0.5" aria-hidden="true">
+<a aria-label="See all 23 studios" class="group relative inline-flex shrink-0 items-center gap-1 text-[13px] text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3 after:content-[&#x27;&#x27;] hover:text-foreground" href="/studios">See all 23 studios <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-arrow-right size-3.5 transition-transform duration-150 group-hover:translate-x-0.5" aria-hidden="true">
<path d="M5 12h14">
</path>
<path d="m12 5 7 7-7 7">
@@ -585,26 +585,6 @@
</svg>Lipsync &amp; avatars</a>
</li>
<li>
-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/extend">
-<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-fast-forward size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">
-<path d="M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z">
-</path>
-<path d="M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z">
-</path>
-</svg>Extend video</a>
-</li>
-<li>
-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/video-tools">
-<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-layers lucide-layers-3 size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">
-<path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z">
-</path>
-<path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12">
-</path>
-<path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17">
-</path>
-</svg>Video tools</a>
-</li>
-<li>
<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/elements">
<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-at-sign size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">
<circle cx="12" cy="12" r="4">
@@ -656,6 +636,45 @@
</path>
</svg>Hook check</a>
</li>
+<li>
+<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/fx">
+<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-aperture size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">
+<circle cx="12" cy="12" r="10">
+</circle>
+<path d="m14.31 8 5.74 9.94">
+</path>
+<path d="M9.69 8h11.48">
+</path>
+<path d="m7.38 12 5.74-9.94">
+</path>
+<path d="M9.69 16 3.95 6.06">
+</path>
+<path d="M14.31 16H2.83">
+</path>
+<path d="m16.62 12-5.74 9.94">
+</path>
+</svg>Fuobe FX</a>
+</li>
+<li>
+<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/video-tools">
+<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-layers lucide-layers-3 size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">
+<path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z">
+</path>
+<path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12">
+</path>
+<path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17">
+</path>
+</svg>Video tools</a>
+</li>
+<li>
+<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/extend">
+<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-fast-forward size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">
+<path d="M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z">
+</path>
+<path d="M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z">
+</path>
+</svg>Extend video</a>
+</li>
</ul>
</div>
</section>
\ No newline at end of file
diff --git a/tests/home-showcase.test.ts b/tests/home-showcase.test.ts
index 823ebef2..3e95cb9f 100644
--- a/tests/home-showcase.test.ts
+++ b/tests/home-showcase.test.ts
@@ -178,14 +178,16 @@ describe("Home's showcase", () => {
it("covers every place to create: the studio cards, the pills and the five with a section of their own", async () => {
const home = await homeShowcase();
const create = NAV.find((g) => g.label === "Create")!.items.filter((i) => i.href !== "/");
- const studios = NAV.find((g) => g.label === "Studios")!.items;
+ // Fuobe FX's studios moved there from Studios: Home still has each of them, and Fuobe FX's page as a pill.
+ const studios = [...NAV.find((g) => g.label === "Studios")!.items, ...NAV.find((g) => g.label === "Fuobe FX")!.items];
expect(home.facts.destinations).toBe(create.length + studios.length);
+ expect(home.pills.map((p) => p.href)).toContain("/fx");
expect(home.studios.length + home.pills.length + HOME_OWN_SECTIONS.length).toBe(home.facts.destinations);
const shown = [...home.studios.map((s) => s.href), ...home.pills.map((p) => p.href), ...HOME_OWN_SECTIONS];
expect(new Set(shown).size).toBe(shown.length);
expect(new Set(shown)).toEqual(new Set([...create, ...studios].map((i) => i.href)));
// Every studio of the navigation model is one of them, so each has a card or a pill and is counted (Kinetic Motion).
- for (const e of NAV_ENTRIES.filter((x) => x.kind === "studio" && x.group)) expect(shown, e.id).toContain(e.href);
+ for (const e of NAV_ENTRIES.filter((x) => x.kind === "studio")) expect(shown, e.id).toContain(e.href);
// The pills keep the sidebar's order and labels.
const order = [...create, ...studios].map((i) => i.href);
expect(home.pills.map((p) => order.indexOf(p.href))).toEqual(home.pills.map((p) => order.indexOf(p.href)).sort((a, b) => a - b));
diff --git a/tests/mega-menus.test.ts b/tests/mega-menus.test.ts
index b26d078e..ac12c9fd 100644
--- a/tests/mega-menus.test.ts
+++ b/tests/mega-menus.test.ts
@@ -266,3 +266,29 @@ describe("the arrow keys across columns", () => {
expect(megaMove([1, 2, 2, 2, 2], { col: 4, row: 0 }, "End")).toEqual({ col: 4, row: 1 });
});
});
+
+describe("Fuobe FX as a menu", () => {
+ it("has a column per section, its studios leading, every link once, its page as See all", async () => {
+ const { fxMenu } = await import("@/lib/mega-menus.server");
+ const { FX_HOME, FX_SECTIONS } = await import("@/lib/fx-tools");
+ const m = fxMenu();
+ expect(m.id).toBe("fx");
+ expect(m.seeAll.href).toBe("/fx");
+ expect(m.columns.map((c) => c.id)).toEqual(FX_SECTIONS.map((s) => s.id));
+ for (const c of m.columns) {
+ expect(c.lead?.cover ?? c.lead?.navCover, c.id).toBeTruthy();
+ expect(c.rows.length, c.id).toBeLessThanOrEqual(ROW_CAPS.tall);
+ }
+ expect(m.columns[0].lead!.id).toBe("genjutsu");
+ const items = megaItems(m);
+ for (const id of FX_HOME) expect(items.map((e) => e.id), id).toContain(id);
+ for (const e of items) {
+ expect(e.href.startsWith("/"), e.id).toBe(true);
+ expect(e.line?.length ?? 0, e.id).toBeLessThanOrEqual(e.id.startsWith("app-") ? LINE_MAX : 34);
+ if (e.navCover) expect(PRESET_COVERS, e.id).toHaveProperty(e.navCover);
+ }
+ const labels = items.map((e) => e.label.toLowerCase());
+ expect(labels.filter((l, i) => labels.indexOf(l) !== i)).toEqual([]);
+ expect(m.countLine).not.toMatch(/beta|coming soon|demo|placeholder/i);
+ });
+});
diff --git a/tests/nav-areas.test.ts b/tests/nav-areas.test.ts
index 4a105b18..549b248c 100644
--- a/tests/nav-areas.test.ts
+++ b/tests/nav-areas.test.ts
@@ -1,3 +1,4 @@
+import { existsSync } from "node:fs";
import { describe, expect, it, vi } from "vitest";
/*
@@ -14,7 +15,8 @@ vi.mock("next/navigation", () => ({
}));
const { AREAS, areaCount, areaOfPath, areaPageOf, areaSections, cardsToShow, PILL_ONLY, rankCards } = await import("@/lib/nav-areas");
-const { appsAreaShowcase, areaCover, areaShowcase, MOTIONS_AREA_LINE_MAX, MOTIONS_AREA_WALL, motionsAreaShowcase, premiumFirst } = await import("@/lib/area-showcase");
+const { appsAreaShowcase, areaCover, areaShowcase, fxItem, fxSections, fxShowcase, MOTIONS_AREA_LINE_MAX, MOTIONS_AREA_WALL, motionsAreaShowcase, premiumFirst } = await import("@/lib/area-showcase");
+const { FX_HOME, FX_SECTIONS, fxNavIds, inFx } = await import("@/lib/fx-tools");
const { CREATE_COLUMNS, activeEntry, entry, launcherEntries, LAUNCHER_GROUPS, NAV_ENTRIES, studioCount, visibleTo } = await import("@/lib/nav-model");
const createMenu = await import("@/components/nav/create-menu");
const { barActive, prefetchHrefs } = await import("@/components/nav/top-bar");
@@ -49,9 +51,12 @@ describe("what each area lists", () => {
for (const id of ["create", "studios"] as const)
for (const kind of [undefined, "guest", "account"] as const)
for (const i of ids(id, kind)) expect(entry(i)!.visibility ?? [], `${id}: ${i}`).not.toEqual(["owner"]);
- // Restore & colourise is everyone's: it runs on a visitor's own GPU or key, and says so.
- expect(ids("studios", "owner")).toContain("video-tools-restore");
- expect(ids("studios", "guest")).toContain("video-tools-restore");
+ // Restore & colourise is everyone's: it runs on a visitor's own GPU or key, and says so (its home is Fuobe FX).
+ const fx = (kind: (typeof KINDS)[number]) => fxSections(kind).flatMap((s) => [...s.cards, ...s.pills]);
+ expect(fx("owner")).toContain("video-tools-restore");
+ expect(fx("guest")).toContain("video-tools-restore");
+ for (const kind of [undefined, "guest", "account"] as const)
+ for (const i of fx(kind)) if (entry(i)) expect(entry(i)!.visibility ?? [], `fx: ${i}`).not.toEqual(["owner"]);
});
it("gives every card a cover from the catalog, or a picture drawn for it, and a line that fits two lines", async () => {
@@ -109,11 +114,12 @@ describe("/studios", () => {
const create = new Set(areaSections("create", "guest").flatMap((s) => s.cards));
const studios = areaSections("studios", "guest");
for (const id of studios.flatMap((s) => s.cards)) expect(create.has(id), id).toBe(false);
- for (const id of ["video-edit", "extend", "reframe", "upscale", "image-to-3d"]) {
+ for (const id of ["upscale", "lipsync", "audio-translate", "image-to-3d"]) {
expect(create.has(id), id).toBe(true);
expect(studios.flatMap((s) => s.chips), id).toContain(id);
}
- for (const id of ["katana", "motion-control", "character-swap", "genjutsu", "video-tools", "audio"]) expect(create.has(id), id).toBe(false);
+ for (const id of ["katana", "video-edit", "cinema", "audio"]) expect(create.has(id), id).toBe(false);
+ for (const id of ["katana", "video-edit"]) expect(studios.flatMap((s) => s.cards), id).toContain(id);
});
it("counts its studios as the bar does", () => {
@@ -123,11 +129,11 @@ describe("/studios", () => {
it("lists what each studio holds inside in a row of its own, never a pill that repeats a card or a pill", () => {
const sections = areaSections("studios", "guest");
const subsOf = (section: string, parent: string) => sections.find((s) => s.id === section)!.subs!.find((x) => x.parent === parent)?.ids ?? [];
- expect(subsOf("film", "video-tools")).toContain("video-tools-captions");
- expect(subsOf("film", "video-tools")).not.toContain("video-tools-matte"); // Video tools' first mode is the studio's own page
// Ads Studio is a studio with a card or pill of its own here: Marketing Studio's row has the other two.
expect(subsOf("sell", "marketing")).toEqual(["marketing-click-to-ad", "ads-multiplier"]);
- expect(subsOf("people", "genjutsu")).toEqual(["genjutsu-motion", "genjutsu-character", "genjutsu-swap", "genjutsu-restyle", "genjutsu-insert", "genjutsu-picture", "genjutsu-finish"]);
+ // Genjutsu and Video tools live in Fuobe FX: no row of theirs here.
+ expect(subsOf("people", "genjutsu")).toEqual([]);
+ expect(subsOf("film", "video-tools")).toEqual([]);
expect(subsOf("people", "character-sheet")).toEqual(["character-sheet-reference", "character-sheet-cast", "character-sheet-describe"]);
expect(subsOf("sound", "audio")).not.toContain("audio-music"); // a card of its own
for (const s of sections) {
@@ -137,9 +143,8 @@ describe("/studios", () => {
for (const c of s.chips) expect(s.cards.map((x) => entry(x)!.href), `${s.id}: ${c}`).not.toContain(entry(c)!.href);
for (const x of s.subs ?? []) for (const c of x.ids) expect(hrefs.has(entry(c)!.href), `${s.id}: ${c}`).toBe(false);
}
- // Genjutsu's From picture (it runs on a visitor's own GPU) and Cinema Studio's Blockout are linked for everyone.
+ // Cinema Studio's Blockout is linked for everyone.
const owner = areaSections("studios", "owner");
- expect(owner.find((s) => s.id === "people")!.subs!.find((x) => x.parent === "genjutsu")!.ids).toContain("genjutsu-picture");
expect(owner.find((s) => s.id === "film")!.subs!.find((x) => x.parent === "cinema")!.ids).toEqual(["cinema-blockout"]);
expect(subsOf("film", "cinema")).toEqual(["cinema-blockout"]);
});
@@ -256,7 +261,11 @@ describe("which bar item and tab a page marks", () => {
["/assist", undefined],
["/assist/skills", undefined],
["/studios", "studios"],
- ["/extend", "studios"],
+ ["/extend", "fx"],
+ ["/genjutsu", "fx"],
+ ["/video-tools/depth", "fx"],
+ ["/fx", "fx"],
+ ["/katana", "studios"],
["/audio/music", "studios"],
["/apps", "apps"],
["/apps/app-any-angle", "apps"],
@@ -302,3 +311,98 @@ describe("which bar item and tab a page marks", () => {
for (const a of AREAS) expect(entry(a.entryId)?.href, a.id).toBe(a.href);
});
});
+
+describe("Fuobe FX (/fx)", () => {
+ /** The route folder a link's path lives in (src/app/(studio)/<first segment>), so every link opens a real page. */
+ const routeExists = (href: string) => existsSync(`src/app/(studio)/${href.split(/[?#]/)[0].split("/")[1]}`);
+
+ it("is a main area with its own entry, page and search words", () => {
+ const a = AREAS.find((x) => x.id === "fx")!;
+ expect(a).toMatchObject({ href: "/fx", label: "Fuobe FX", title: "Fuobe FX" });
+ expect(entry(a.entryId)).toMatchObject({ href: "/fx", kind: "area" });
+ for (const w of ["vfx", "fx", "compositing", "roto", "matte", "clean plate", "exr"]) expect(entry("area-fx")!.keywords, w).toContain(w);
+ expect(existsSync("src/app/(studio)/fx/page.tsx")).toBe(true);
+ });
+
+ it("names only real entries and apps, each opening a page that exists", () => {
+ for (const s of FX_SECTIONS)
+ for (const id of s.items) {
+ const it = fxItem(id);
+ expect(it, `${s.id}: ${id}`).toBeDefined();
+ expect(it!.href.startsWith("/"), id).toBe(true);
+ expect(routeExists(it!.href), `${id}: ${it!.href}`).toBe(true);
+ if (id.startsWith("app-")) expect(APPS.some((p) => p.id === id), id).toBe(true);
+ }
+ for (const id of fxNavIds()) expect(entry(id), id).toBeDefined();
+ });
+
+ it("is the one home of the FX studios: a card here, and in no Studios column, /studios or /create section", () => {
+ for (const kind of KINDS) {
+ const cards = fxSections(kind).flatMap((s) => s.cards);
+ for (const id of FX_HOME) {
+ expect(cards, `${kind}: ${id}`).toContain(id);
+ expect(entry(id)!.group, id).toBeUndefined();
+ expect(launcherEntries(kind).map((e) => e.id), id).not.toContain(id);
+ for (const area of ["create", "studios"] as const) expect(ids(area, kind), `${area}: ${id}`).not.toContain(id);
+ }
+ }
+ // Their links, names and search words stay as they were.
+ expect(entry("genjutsu")).toMatchObject({ href: "/genjutsu", label: "Genjutsu" });
+ expect(entry("video-tools")).toMatchObject({ href: "/video-tools", label: "Video tools" });
+ expect(entry("extend")).toMatchObject({ href: "/extend", label: "Extend video" });
+ });
+
+ it("links every mode and tab of its studios a viewer may open, so none is left without a menu", () => {
+ for (const kind of KINDS) {
+ const hrefs = new Set(fxSections(kind).flatMap((s) => [...s.cards, ...s.pills]).map((id) => fxItem(id)!.href));
+ for (const e of NAV_ENTRIES.filter((x) => x.parent && FX_HOME.includes(x.parent) && visibleTo(x, kind))) expect(hrefs.has(e.href), `${kind}: ${e.id}`).toBe(true);
+ }
+ });
+
+ it("draws as cards only the FX studios and their own modes; shared tools and apps are pills", () => {
+ for (const kind of KINDS)
+ for (const s of fxSections(kind))
+ for (const id of s.cards) {
+ const e = entry(id);
+ expect(e && (inFx(e) || id === "upscale-fps"), `${s.id}: ${id}`).toBeTruthy();
+ }
+ const pills = fxSections("guest").flatMap((s) => s.pills);
+ for (const id of ["upscale", "color-grade", "layers", "inpaint", "image-to-3d", "app-recast", "app-face-swap"]) expect(pills, id).toContain(id);
+ });
+
+ it("shows full rows, each cover once, no link twice in a section, lines that read whole, and no status words", async () => {
+ const { count, sections } = await fxShowcase();
+ expect(count).toBeGreaterThan(40);
+ const covers = sections.flatMap((s) => s.cards.map((c) => c.card!.id));
+ expect(new Set(covers).size).toBe(covers.length);
+ for (const s of sections) {
+ expect([0, 4, 8], s.id).toContain(s.cards.length);
+ expect(`${s.title} ${s.line}`).not.toMatch(STATUS);
+ const hrefs = [...s.cards, ...s.pills].map((x) => x.href);
+ expect(new Set(hrefs).size, s.id).toBe(hrefs.length);
+ for (const c of s.cards) {
+ expect(PRESET_COVERS, c.id).toHaveProperty(c.card!.id);
+ expect(c.line, c.id).toMatch(/[.!?]$/);
+ expect(c.line.length, c.id).toBeLessThanOrEqual(64);
+ expect(`${c.label} ${c.line}`, c.id).not.toMatch(STATUS);
+ }
+ for (const p of [...s.pills, ...s.ownerPills]) expect(p.label, p.id).not.toMatch(STATUS);
+ }
+ // No two links on the page read the same ("Relight" the mode and "Relight" the app).
+ const names = sections.flatMap((s) => [...s.cards, ...s.pills].map((x) => x.label.toLowerCase()));
+ expect(names.filter((n, i) => names.indexOf(n) !== i)).toEqual([]);
+ // The first section leads with its full two rows.
+ expect(sections[0].cards).toHaveLength(8);
+ });
+
+ it("marks Fuobe FX in the bar for its page and its studios, and the Studios tab on a phone", () => {
+ expect(areaPageOf("/fx")).toBe("fx");
+ expect(barActive("/fx")).toMatchObject({ fx: true, page: "fx", studios: false });
+ expect(barActive("/genjutsu")).toMatchObject({ fx: true, studios: false, page: undefined });
+ expect(barActive("/cinema")).toMatchObject({ fx: false, studios: true });
+ const tab = (p: string) => activePhoneTab(p, null, activeEntry(p, new URLSearchParams()));
+ expect(tab("/fx")).toBe("studios");
+ expect(tab("/reframe")).toBe("studios");
+ expect(prefetchHrefs(undefined, "fx")).toEqual(expect.arrayContaining(["/fx", "/genjutsu", "/video-tools", "/extend"]));
+ });
+});
diff --git a/tests/nav-bar.test.ts b/tests/nav-bar.test.ts
index 568f6447..de0b52ee 100644
--- a/tests/nav-bar.test.ts
+++ b/tests/nav-bar.test.ts
@@ -144,13 +144,14 @@ describe("which bar item holds the page", () => {
describe("the launcher's columns", () => {
const html = render(createElement(LauncherColumns, { kind: undefined, now: Date.parse("2026-11-02") }));
- it("shows every studio, Apps and the Sound column, 8/6/5/6/5/3 (Ads Studio under Marketing Studio), each column's lead first", () => {
+ it("shows every studio, Apps and the Sound column, 4/6/5/4/5/3 (Ads Studio under Marketing Studio; the FX studios are Fuobe FX's), each column's lead first", () => {
const main = anchors(html).filter((a) => !a.tag.includes("data-sub"));
- expect(main).toHaveLength(33);
- expect(new Set(main.map((a) => a.href)).size).toBe(33);
- expect(launcherColumns(undefined).map((c) => 1 + c.rest.length)).toEqual([8, 6, 6, 6, 5, 3]);
+ expect(main).toHaveLength(27);
+ expect(new Set(main.map((a) => a.href)).size).toBe(27);
+ for (const h of ["/genjutsu", "/character-swap", "/motion-control", "/video-tools", "/extend", "/reframe"]) expect(main.map((a) => a.href), h).not.toContain(h);
+ expect(launcherColumns(undefined).map((c) => 1 + c.rest.length)).toEqual([4, 6, 6, 4, 5, 3]);
// Ads Studio stays in the model (the phone's sheet keeps its tile); the desktop menu lists it under Marketing Studio.
- expect(studiosMenu(undefined).columns.map((c) => 1 + c.rows.filter((e) => !e.under).length)).toEqual([8, 6, 5, 6, 5, 3]);
+ expect(studiosMenu(undefined).columns.map((c) => 1 + c.rows.filter((e) => !e.under).length)).toEqual([4, 6, 5, 4, 5, 3]);
expect(studiosMenu(undefined).columns.flatMap((c) => c.rows.filter((e) => e.under).map((e) => [e.id, e.under]))).toEqual([["ads", "marketing"]]);
expect(launcherColumns(undefined).map((c) => c.lead.id)).toEqual(["cinema", "shorts", "marketing", "fashion-factory", "audio", "upscale"]);
expect(html).toContain("grid-cols-6");
@@ -163,7 +164,7 @@ describe("the launcher's columns", () => {
for (const s of e.subs ?? []) expect(at(s.href, true), s.id).toContain(`data-col="${i}" data-row="${r++}"`);
}
}
- expect(studioCount()).toBe(29);
+ expect(studioCount()).toBe(23);
});
it("lists what a studio holds inside under it, by the names of its own tabs", () => {
@@ -173,11 +174,12 @@ describe("the launcher's columns", () => {
.find((e) => e.id === id)
?.subs?.map((s) => s.label);
expect(subs("marketing")).toEqual(["Click to Ad", "Ads Studio", "Ad Multiplier"]);
- expect(subs("genjutsu")).toEqual(["Motion transfer", "Character swap", "Object swap", "Restyle", "Insert", "From picture", "Finish"]);
+ // Genjutsu and Video tools are Fuobe FX's (its own menu lists their modes).
+ expect(subs("genjutsu")).toBeUndefined();
+ expect(subs("video-tools")).toBeUndefined();
expect(subs("upscale")).toEqual(["Image", "Video", "FPS Boost", "SDR to HDR", "Export"]);
expect(subs("audio")).toEqual(["Speech", "Dialogue", "Voice change", "See all 15"]);
- expect(subs("video-tools")).toEqual(["Relight", "Captions", "Remove object", "See all 13"]);
- for (const w of ["Click to Ad", "Ads Studio", "Ad Multiplier", "Motion transfer", "FPS Boost"]) expect(words(html)).toContain(w);
+ for (const w of ["Click to Ad", "Ads Studio", "Ad Multiplier", "FPS Boost"]) expect(words(html)).toContain(w);
// Under a hairline, quieter than a row, with no picture and no line of their own (nav-subs.css: 24 px
// names with a mouse, 44 px pills to tap on a touch screen).
const sub = anchors(html).find((a) => a.tag.includes("data-sub"))!.tag;
@@ -201,7 +203,7 @@ describe("the launcher's columns", () => {
}
// The six lead cards load as the panel warms; a row's picture when the row shows (lazy). A studio's features have none.
expect(count(html, 'loading="eager"')).toBe(6);
- expect(count(html, 'alt=""')).toBe(33);
+ expect(count(html, 'alt=""')).toBe(27);
});
it("marks the open page's studio, and nothing else", () => {
@@ -213,11 +215,11 @@ describe("the launcher's columns", () => {
it("on a studio's feature, marks the feature and shows its studio as holding the page (no second aria-current)", () => {
const studio = (html: string, href: string) => anchors(html).find((a) => a.href === href && !a.tag.includes("data-sub"))?.tag ?? "";
- const restyle = render(createElement(LauncherColumns, { kind: undefined, current: "genjutsu-restyle", now: 0 }));
- expect(count(restyle, 'aria-current="page"')).toBe(1);
- expect(anchors(restyle).find((a) => a.href === "/genjutsu?mode=restyle")?.tag).toContain('aria-current="page"');
- expect(studio(restyle, "/genjutsu")).toContain('data-active=""');
- expect(studio(restyle, "/genjutsu")).not.toContain("aria-current");
+ const multi = render(createElement(LauncherColumns, { kind: undefined, current: "image-to-3d-multi", now: 0 }));
+ expect(count(multi, 'aria-current="page"')).toBe(1);
+ expect(anchors(multi).find((a) => a.href === "/image-to-3d?mode=multi")?.tag).toContain('aria-current="page"');
+ expect(studio(multi, "/image-to-3d")).toContain('data-active=""');
+ expect(studio(multi, "/image-to-3d")).not.toContain("aria-current");
// A lead card too (Marketing Studio on Click to Ad), and a feature the menu doesn't link for a visitor (Character
// Sheet's modes): its studio is still marked.
expect(studio(render(createElement(LauncherColumns, { kind: undefined, current: "marketing-click-to-ad", now: 0 })), "/marketing")).toContain('data-active=""');
@@ -225,21 +227,19 @@ describe("the launcher's columns", () => {
expect(count(cast, 'aria-current="page"')).toBe(0);
expect(studio(cast, "/character-sheet")).toContain('data-active=""');
// Nothing is marked as holding a page on a studio's own page.
- expect(render(createElement(LauncherColumns, { kind: undefined, current: "genjutsu", now: 0 }))).not.toContain("data-active");
+ expect(render(createElement(LauncherColumns, { kind: undefined, current: "image-to-3d", now: 0 }))).not.toContain("data-active");
});
- it("gives Genjutsu's modes wrapped lines on a short window, and hangs a row's features on its name's column", () => {
+ it("hides a row's features on a short window, and hangs them on its name's column", () => {
const ul = (id: string) => html.match(new RegExp(`<ul[^>]*data-subs="${id}"[^>]*>`))?.[0] ?? "";
- expect(ul("genjutsu")).toContain("data-subs-line");
- // With a mouse it never hides (the line takes over); on a touch screen it needs 1024 px.
- expect(ul("genjutsu")).not.toContain("[@media(max-height:799.98px)]:hidden");
- expect(ul("genjutsu")).toContain("[@media(pointer:coarse)_and_(max-height:1023.98px)]:hidden");
- expect(ul("video-tools")).toContain("[@media(max-height:879.98px)]:hidden");
- expect(ul("video-tools")).not.toContain("data-subs-line");
+ // Genjutsu (whose modes wrapped into a line) is Fuobe FX's now.
+ expect(ul("genjutsu")).toBe("");
+ expect(ul("image-to-3d")).toContain("[@media(max-height:799.98px)]:hidden");
+ expect(ul("image-to-3d")).not.toContain("data-subs-line");
// No pad after an odd list (the next row follows 4 px below, as rows do); features under a row are marked to
// start on its name (nav-subs.css), under a lead card on the card's words.
expect(html).not.toContain("data-odd");
- expect(ul("genjutsu")).toContain("data-under");
+ expect(ul("image-to-3d")).toContain("data-under");
expect(ul("marketing")).not.toContain("data-under");
});
@@ -452,11 +452,12 @@ describe("menu items: one button each, the area's page inside its menu", () => {
/** The opening tag of a menu item's button. */
const item = (html: string, id: string) => new RegExp(`<button[^>]*data-bar-menu="${id}"[^>]*>`).exec(html)?.[0] ?? "";
- it("gives Create, Studios, Apps, Motions & effects, Canvas and More one button each, named by its words", () => {
+ it("gives Create, Studios, Fuobe FX, Apps, Motions & effects, Canvas and More one button each, named by its words", () => {
const html = render(createElement(TopBar));
const hubs = [
["create", "/create"],
["studios", "/studios"],
+ ["fx", "/fx"],
["apps", "/apps"],
["motions", "/motions-and-effects"],
["canvas", "/canvas"],
@@ -475,10 +476,10 @@ describe("menu items: one button each, the area's page inside its menu", () => {
expect(item(html, "studios")).not.toContain("sr-only");
// The Studios item is still the launcher's disclosure button (search hands focus back to it).
expect(item(html, "studios")).toContain("data-studios-trigger");
- for (const name of ["Create menu", "Studios menu", "Apps menu", "Motions &amp; effects menu", "Canvas menu"]) expect(html, name).not.toContain(`aria-label="${name}"`);
+ for (const name of ["Create menu", "Studios menu", "Fuobe FX menu", "Apps menu", "Motions &amp; effects menu", "Canvas menu"]) expect(html, name).not.toContain(`aria-label="${name}"`);
expect(html).not.toContain("data-bar-split");
expect(html).not.toMatch(/role="menu"|role="menuitem"|aria-haspopup="menu"/);
- expect(count(html, "data-bar-menu=")).toBe(6);
+ expect(count(html, "data-bar-menu=")).toBe(7);
});
it("marks the item anywhere in its area, its own page included, and only that item", () => {
@@ -494,6 +495,13 @@ describe("menu items: one button each, the area's page inside its menu", () => {
html = render(createElement(TopBar));
expect(item(html, "create")).not.toContain("data-active");
expect(item(html, "canvas")).toContain('data-active="true"');
+ // Fuobe FX: its page and its studios mark its item, not Studios.
+ for (const path of ["/fx", "/genjutsu", "/video-tools/depth"]) {
+ state.path = path;
+ html = render(createElement(TopBar));
+ expect(item(html, "fx"), path).toContain('data-active="true"');
+ expect(item(html, "studios"), path).not.toContain("data-active");
+ }
});
it("links the launcher's header to every studio with previews", async () => {
diff --git a/tests/nav-model.test.ts b/tests/nav-model.test.ts
index 85d70a58..dbb7df25 100644
--- a/tests/nav-model.test.ts
+++ b/tests/nav-model.test.ts
@@ -3,6 +3,7 @@ import path from "node:path";
import { describe, expect, it } from "vitest";
import { NAV } from "@/components/nav-items";
import { APPS, EFFECTS, getPreset, MOTIONS } from "@/lib/catalog";
+import { FX_HOME } from "@/lib/fx-tools";
import { HUB_MODES } from "@/lib/hubs";
import { navCovers } from "@/lib/nav-covers";
import { NAV_ICONS } from "@/lib/nav-icons";
@@ -141,9 +142,15 @@ describe("nav model: entries", () => {
for (const [, rows] of OLD_NAV) for (const [href, label] of rows) expect(NAV_ENTRIES.find((e) => e.href === href)?.label, href).toBe(label);
});
- it("derives the four groups (Create, Library, Studios, More) exactly as they were, with Kinetic Motion: 45 rows", () => {
- expect(NAV.map((g) => [g.label, g.items.map((i) => [i.href, i.label])])).toEqual(OLD_NAV);
- expect(NAV.flatMap((g) => g.items)).toHaveLength(45);
+ it("derives the groups as they were, with Kinetic Motion, and the FX studios moved from Studios to Fuobe FX: 46 rows", () => {
+ const FX_HREFS = ["/genjutsu", "/character-swap", "/motion-control", "/video-tools", "/extend", "/reframe"];
+ const old = OLD_NAV.map(([label, rows]) => [label, label === "Studios" ? rows.filter(([href]) => !FX_HREFS.includes(href)) : rows] as (typeof OLD_NAV)[number]);
+ const moved = OLD_NAV.find(([l]) => l === "Studios")![1].filter(([href]) => FX_HREFS.includes(href));
+ expect(moved).toHaveLength(6);
+ const fx: (typeof OLD_NAV)[number] = ["Fuobe FX", [["/fx", "Fuobe FX"], ...FX_HREFS.map((h) => moved.find(([href]) => href === h)!)]];
+ expect(NAV.map((g) => [g.label, g.items.map((i) => [i.href, i.label])])).toEqual([...old.slice(0, 3), fx, ...old.slice(3)]);
+ expect(NAV.flatMap((g) => g.items)).toHaveLength(46);
+ expect(NAV.find((g) => g.label === "Fuobe FX")?.collapsible).toBe(true);
expect(NAV.find((g) => g.label === "Studios")?.collapsible).toBe(true);
// The same rows prefetch eagerly, with an icon each and search words.
expect(
@@ -163,9 +170,9 @@ describe("nav model: entries", () => {
for (const g of GOALS) expect(Object.hasOwn(NAV_ICONS, g.icon), g.id).toBe(true);
});
- it("gives every studio a group, a goal, a short line, a phone label and a real cover", () => {
+ it("gives every studio a group (or Fuobe FX as its home), a goal, a short line, a phone label and a real cover", () => {
for (const e of NAV_ENTRIES.filter((x) => x.kind === "studio")) {
- expect(e.group, e.id).toBeTruthy();
+ expect(!!e.group !== FX_HOME.includes(e.id), e.id).toBe(true);
expect(e.goals.length, e.id).toBeGreaterThan(0);
// A phone tile shows it on up to two lines of 12.
expect(e.short, e.id).toBeTruthy();
@@ -208,14 +215,15 @@ describe("nav model: entries", () => {
});
describe("nav model: launcher", () => {
- it("has 29 studios, Apps and four Audio modes in six columns of 8, 6, 6, 6, 5 and 3, one lead each", () => {
- expect(studioCount()).toBe(29);
+ it("has 23 studios, Apps and four Audio modes in six columns of 4, 6, 6, 4, 5 and 3, one lead each (the FX studios are Fuobe FX's)", () => {
+ expect(studioCount()).toBe(23);
const cols = launcherColumns("owner");
expect(cols.map((c) => c.group.id)).toEqual(["film", "social", "sell", "people", "sound", "finish"]);
- expect(cols.map((c) => 1 + c.rest.length)).toEqual([8, 6, 6, 6, 5, 3]);
+ expect(cols.map((c) => 1 + c.rest.length)).toEqual([4, 6, 6, 4, 5, 3]);
+ for (const id of FX_HOME) expect(launcherEntries("owner").map((e) => e.id), id).not.toContain(id);
expect(cols.map((c) => c.lead.id)).toEqual(["cinema", "shorts", "marketing", "fashion-factory", "audio", "upscale"]);
for (const g of LAUNCHER_GROUPS) expect(NAV_ENTRIES.filter((e) => e.group === g.id && e.lead)).toHaveLength(1);
- expect(launcherEntries("guest")).toHaveLength(34);
+ expect(launcherEntries("guest")).toHaveLength(28);
expect(launcherEntries("guest", "sell").map((e) => e.id)).toEqual(["marketing", "ads", "kinetic", "mixed-media", "moodboards", "photodump"]);
expect(launcherEntries(undefined, "finish").map((e) => e.id)).toEqual(["upscale", "image-to-3d", "apps"]);
// Sound: the Audio studio, then Clean up voice (its first mode), music, sound effects, translate & dub; Lipsync stays in Social.
@@ -228,7 +236,7 @@ describe("nav model: launcher", () => {
expect(entry("storyboard")?.group).toBe("film");
});
- it("shows the same 34 to everyone", () => {
+ it("shows the same 28 to everyone", () => {
for (const k of KINDS) expect(launcherEntries(k).map((e) => e.id)).toEqual(launcherEntries("owner").map((e) => e.id));
});
});
diff --git a/tests/nav-search.test.ts b/tests/nav-search.test.ts
index 4918b0a0..cea796f5 100644
--- a/tests/nav-search.test.ts
+++ b/tests/nav-search.test.ts
@@ -245,3 +245,13 @@ describe("plain requests find the right place", () => {
expect(owner.some((e) => e.kind === "model" && /ComfyUI/.test(e.hint ?? ""))).toBe(true);
});
});
+
+describe("Fuobe FX in search", () => {
+ it("finds its page from an FX artist's words, for every viewer", () => {
+ for (const entries of [OWNER, GUEST, ACCOUNT])
+ for (const q of ["vfx", "fx", "compositing", "roto", "matte", "clean plate", "exr", "fuobe fx"]) expect(all(q, entries).map((h) => h.href), q).toContain("/fx");
+ expect(labels("vfx")[0]).toBe("Fuobe FX");
+ expect(labels("roto")).toContain("Remove background");
+ expect(labels("clean plate")).toContain("Remove object");
+ });
+});
diff --git a/tests/nav-subfeatures.test.ts b/tests/nav-subfeatures.test.ts
index 5d6702a6..cd2b4c9e 100644
--- a/tests/nav-subfeatures.test.ts
+++ b/tests/nav-subfeatures.test.ts
@@ -3,6 +3,7 @@ import path from "node:path";
import { describe, expect, it } from "vitest";
import { MODEL3D_MODES, readModel3dLink } from "@/lib/av/model3d";
import { GENJUTSU_MODES, modeOpen } from "@/lib/catalog/genjutsu";
+import { FX_SECTIONS } from "@/lib/fx-tools";
import { HUB_MODES, type HubKind } from "@/lib/hubs";
import { megaSubs, studiosMenu } from "@/lib/mega-menus";
import { megaCurrent } from "@/components/nav/mega-launcher";
@@ -158,9 +159,9 @@ describe("who sees a studio's features", () => {
for (const kind of VISITORS) {
expect(visibleTo(finish, kind), kind).toBe(open);
expect(studioSubs("genjutsu", kind, "sheet").some((e) => e.id === finish.id), kind).toBe(open);
- const menu = studiosMenu(kind).columns.flatMap((c) => [c.lead!, ...c.rows]).flatMap((e) => e.subs ?? []);
- expect(menu.some((s) => s.id === finish.id), kind).toBe(open);
}
+ // Genjutsu lives in Fuobe FX: its Finish is listed there, for whoever may see it.
+ expect(FX_SECTIONS.some((s) => s.items.includes(finish.id))).toBe(true);
});
it("links Genjutsu's From picture for everyone: it runs on a visitor's own GPU until it opens here", () => {
@@ -274,8 +275,10 @@ describe("the open feature", () => {
expect(subActive("/upscale")).toBeUndefined(); // Upscale's Image tab is Upscale's own page
expect(megaCurrent("studios", "/upscale")).toBe("upscale");
expect(megaCurrent("studios", "/marketing/click-to-ad")).toBe("marketing-click-to-ad");
- expect(megaCurrent("studios", "/genjutsu", "mode=insert")).toBe("genjutsu-insert");
- expect(megaCurrent("studios", "/genjutsu")).toBe("genjutsu");
+ // Genjutsu is Fuobe FX's: its menu marks the mode, or the studio itself.
+ expect(megaCurrent("fx", "/genjutsu", "mode=insert")).toBe("genjutsu-insert");
+ expect(megaCurrent("fx", "/genjutsu")).toBe("genjutsu");
+ expect(megaCurrent("studios", "/genjutsu")).toBeUndefined();
});
it("names every feature once in the whole model", () => {
diff --git a/tests/phone-nav.test.ts b/tests/phone-nav.test.ts
index 4fa71052..5242fbac 100644
--- a/tests/phone-nav.test.ts
+++ b/tests/phone-nav.test.ts
@@ -194,14 +194,14 @@ describe("the Studios sheet", () => {
.filter((h) => h !== "/" && h !== "/library" && h !== "/studios");
const pills = (html: string) => [...html.matchAll(/<a data-sub=""[^>]*>([^<]*)</g)].map((m) => m[1]);
- it("shows every studio, Apps and the Sound modes (34 tiles, 29 studios), in launcher order, each with a real cover", () => {
+ it("shows every studio, Apps and the Sound modes (28 tiles, 23 studios; the FX studios are Fuobe FX's), in launcher order, each with a real cover", () => {
const html = at("/", () => sheet());
const all = launcherEntries(undefined);
// Ads Studio keeps its tile here (the desktop menu lists it under Marketing Studio).
- expect(all).toHaveLength(34);
+ expect(all).toHaveLength(28);
// All is one screen of tiles: a studio's features show under one group only.
expect(pills(html)).toEqual([]);
- expect(studioCount()).toBe(29);
+ expect(studioCount()).toBe(23);
expect(tiles(html)).toEqual(all.map((e) => e.href));
for (const e of all) {
expect(e.cover, e.id).toBeTruthy();
@@ -235,7 +235,7 @@ describe("the Studios sheet", () => {
});
it("starts on the group it was opened for", () => {
- const sizes = { film: 8, social: 6, sell: 6, people: 6, sound: 5, finish: 3 } as const;
+ const sizes = { film: 4, social: 6, sell: 6, people: 4, sound: 5, finish: 3 } as const;
for (const g of LAUNCHER_GROUPS) {
const html = at("/", () => sheet({ group: g.id }));
expect(tiles(html), g.id).toEqual(launcherEntries(undefined, g.id).map((e) => e.href));
@@ -250,9 +250,10 @@ describe("the Studios sheet", () => {
expect(pills(sell)).toEqual(["Click to Ad", "Ad Multiplier", "From a selfie"]);
expect(words(sell)).toContain("Marketing Studio");
const people = at("/", () => sheet({ group: "people" }));
- expect(pills(people)).toEqual(["From Reference", "Build from scratch", "From a description", "Motion transfer", "Character swap", "Object swap", "Restyle", "Insert", "From picture", "Finish"]);
- // Split soundtrack and Remove dialogue run for visitors with an account (on their own GPU or key): linked too.
- for (const w of ["Split soundtrack", "Remove dialogue"]) expect(LAUNCHER_GROUPS.some((g) => pills(at("/", () => sheet({ group: g.id }))).includes(w)), w).toBe(true);
+ // Genjutsu's modes are Fuobe FX's (its family of this sheet).
+ expect(pills(people)).toEqual(["From Reference", "Build from scratch", "From a description"]);
+ // Split soundtrack runs for visitors with an account (on their own GPU or key): linked too.
+ for (const w of ["Split soundtrack"]) expect(LAUNCHER_GROUPS.some((g) => pills(at("/", () => sheet({ group: g.id }))).includes(w)), w).toBe(true);
// Cinema Studio's Blockout is linked for everyone (a guest is offered a free account on a run).
const film = at("/", () => sheet({ group: "film" }));
expect(pills(film)).toContain("Blockout");
@@ -262,7 +263,8 @@ describe("the Studios sheet", () => {
expect(pills(finish)).toEqual(["Image", "Video", "FPS Boost", "SDR to HDR", "Export", "From an image", "From several images", "From text", "Pick an object", "Splat"]);
// Each pill links its feature (a route, or its studio with ?mode= / ?tab=).
expect(hrefs(sell)).toEqual(expect.arrayContaining(["/marketing/click-to-ad", "/ads", "/ads/multiplier"]));
- expect(hrefs(people)).toEqual(expect.arrayContaining(["/genjutsu?mode=motion", "/genjutsu?mode=insert"]));
+ expect(hrefs(people)).toEqual(expect.arrayContaining(["/character-sheet?mode=reference"]));
+ expect(hrefs(people)).not.toContain("/genjutsu?mode=motion");
});
it("marks a studio's feature you are on, and its studio's tile", () => {
diff --git a/tests/search-palette.test.ts b/tests/search-palette.test.ts
index ab19abd7..091ce60f 100644
--- a/tests/search-palette.test.ts
+++ b/tests/search-palette.test.ts
@@ -150,7 +150,8 @@ describe("the palette's body", () => {
expect(order.every((i) => i >= 0)).toBe(true);
expect(order).toEqual([...order].sort((a, b) => a - b));
expect(html.indexOf("Every studio")).toBeGreaterThan(html.indexOf("Also try"));
- expect(tiles(html)).toHaveLength(34);
+ // The FX studios are Fuobe FX's: search finds them, the studio grid leaves them to Fuobe FX.
+ expect(tiles(html)).toHaveLength(28);
});
it("starts filtered to a goal when opened for one", () => {