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
Account menu: Thanks & licences and the source move to Settings → About
Adarsh73eff7e40e0f
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex d48f2ce9..50a36e49 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -546,7 +546,7 @@ Liner-inspired look (serif headlines, pill composer) in a top-bar frame. `Studio- **Composer** pieces: pure logic in `src/lib/composer.ts` (summary, blockers, `onImageChange`, `fitAttachments`, `firstMissingSlot`; since round 4 `blockerLine` for the phone's blocked-Generate line, `framesRequest` and the Frames strip helpers, the start token), `attachments.ts` (`useAttach`, `useUploadReaper`), `settings-panel.tsx`, `model-picker.tsx` (cmdk), `attach-menu.tsx`, `preset-chips.tsx` (lazy), `radio-keys.ts`, `frames-strip.tsx`, and since round 4 part 3 `look-chip.tsx` (lazy: Fuobe Soul's looks, a popover on desktop and a sheet on phones). Since round 4 part 3 the composer sends `engine` for a Fuobe Original, drops a look when the model changes to one without looks, moves to a motion's or effect's Original when one is picked, and follows a move across an engine switch (the pure helpers are in `src/lib/composer.ts`: see Fuobe Originals). Video finishing reads the attached clip's facts from `POST /api/media/probe` for its "24 → 60 fps · 5 s → 10 s" line and its prices. Since round 5 part 1 Edit video does too (`clipFacts`, fixes-5): a clip edit that keeps the clip's length is priced on its seconds, and `clipBlocker` blocks Generate with the reason when the clip is outside the model's window (`clip-windows.ts`; the server refuses the same for an API call that sends no length, after the clip is uploaded to the provider's storage, nothing billed). Lipsync reads the voice's length (`StudioConfig.voiceFacts`) to price talking avatars, and the Image studio prices a look's step after the picture (`postStepCost`, with the face mosaic's models in `extraModels`). The Look chip has a "No look" state (`none`, Storyboard). Since round 5 part 2 a price is read on the browser's day (`useToday` in `src/hooks/use-today.ts`: null on the server and while the page hydrates, so a launch-priced model shows no price until then, and it changes at UTC midnight): the composer's estimate, the model picker (`pickerPrice`) and the Models page (`rowPrice` with `ModelRow.launch`; `GET /api/models` answers the day's `price` and keeps `launch`). The slim studio catalog carries `Pricing.promo` as it is. A run with LoRAs on an endpoint with no published price shows "Price unknown", never free, in the composer and on Canvas nodes. The Image studio's controls chip reads "Options" (`StudioConfig.controlsTitle`), where MOSS-Image's Quality sits.- **Feed and results**: running tiles show elapsed time and, once progress has moved, time left (`use-now.ts`; `notePace` / `timeLeft` in `src/lib/format.ts`); the newest single result offers next steps (`nextSteps` in `output-actions.ts`); video tiles get a poster (`videoPoster`); ProRes, FFV1 and clips the browser can't decode show as a file card (`VideoFileCard` in `result-media.tsx`). Since round 4 part 2, `useCreateGeneration` (`src/lib/api.ts`) shows a run's `notes` (LoRAs left out, a length the API rounds) as a warning toast. Since round 4 part 3 every studio feed finishes Fuobe Soul pictures (`useSoulFinish`), the viewer's Details show a Look row and a Finish row, and a clip with `meta.grade` offers "Apply the … grade" first.- **Galleries** get slim cards (`src/lib/preset-cards.ts`) with procedural previews (`preset-preview.tsx`, `move-glyphs.ts`); `previewFor` (`src/lib/preset-card-data.ts`) shows a real cover instead when `src/lib/preset-previews.generated.ts` lists one: a still cover is the card's picture as rendered (no tint, bleed, mirroring or move glyph), a clip cover is its first-frame poster with a muted `<video>` over it only while it plays (invisible until its first frame is ready, released when it stops). Every entry records the run, engine, model and variant that made it. `preset-card-data.ts` is the only module that reads the manifest, and only the server gallery pages and Home's server-only showcase import it, so the manifest never ships in client code: the preset header builds the same preview from the slim covers map (`coverPreview` in `src/lib/preset-covers.ts`) (`tests/preset-covers.test.ts` checks the importers, and checks the real manifest against `public/previews`). Every cover URL the site gives ends in its file's content version (`?v=` and 8 hex digits of its sha256; a poster's also covers its 320 px copy in `thumbs/`, whose URL keeps it), written into the manifests by `eval:covers` and `gen-preset-peaks.mjs` (`--versions` on either hashes the files as they are; the covers' one first makes a poster's 320 px copy that's missing or older than its poster, and encodes nothing else), so a cover made again under its old name gets a new URL. Versioned covers are served as `immutable`, for a year in the browser and a day in the CDN (`s-maxage`, so a revert or rollback that gives an old version back never finds the wrong file pinned there); one asked for without its version keeps a day's cache and a week of background revalidation (`next.config.ts`). Both stay outside the sign-in proxy like `samples/`. The file is written by the evaluation harness's `eval:covers`, from a measured run's promoted renders or, with `--from-masters <dir>`, from rendered masters kept outside the repo (`coversFromMasters()` in `scripts/eval/lib/covers.mjs`; it replaces only the ids it writes, and skips an id whose cover another run made elsewhere unless `--replace`). Stills are 4:2:0 JPEGs of at most 768 px; a clip cover is at most 4 s and 512 px, and its last 6 frames are crossfaded into its first ones so the card's loop has no jump (a clip that already ends where it starts is only cut). The first covers came that way: 480 of the 487 app, motion and effect cards (474 stills from Ideogram 4 and 6 clips from MiniMax H3, all rendered in ComfyUI; run `comfyui-previews-2026-10`, in `public/previews/presets/`), while the other 7 keep their procedural preview. Main's later cover work gave 43 apps a before/after reveal clip (Ideogram 4, then Qwen-Image 2.1 Edit), so 48 of the 480 now have a clip (the other 5 from MiniMax H3) and 432 are stills. `preview-playback.ts` decides which play: a clip card plays by itself while it's mostly in view, once scrolling stops, at most 6 at once (3 on a phone), the cards in full view and nearest the middle of the screen first; a procedural preview does so only where nothing can hover (phones), and the preset header plays whatever moves. Nothing plays by itself with reduced motion (turned on while the page is open, it stops at once), Save-Data, on 2G or in a hidden tab; a hover (after a short rest), keyboard focus, or a tap on the preset header still plays one (with reduced motion, only a clip).-- **Navigation.** The bar: Create (a menu of the create tools), Studios (the launcher, `nav/studios-launcher.tsx`: every studio grouped by goal on one screen in six columns, Film & video, Social & shorts, Sell & advertise, People & fashion, Sound (Audio with Music, Sound effects, Clean up voice and Translate & dub) and Finish & convert, arrow keys across and down the columns), Apps, Motions & effects, Canvas, Assist, Library, a More menu for what doesn't fit, Search, New creation and the account menu (`nav/account-menu.tsx`; the owner's install status, a visitor's GPU, balance, theme, Thanks & licences, Settings and Sign out, moved from the old sidebar's footer in `nav/status-chips.tsx`). Phones: Home, Create, Studios, Library and You tabs; Studios opens a sheet with every studio at once (`nav/studios-sheet.tsx`). Home has a goal row under the hero (`nav/goal-row.tsx`): each goal opens a band of its studios, one-tap presets and finishing tools. Under a finished result a "Keep going with this" row offers 3 to 5 next steps that open the next studio with the result attached (`nav/next-steps.tsx`, `keepGoing` in `src/lib/next-steps.ts`; in the studio feed, the Viewer and the 3D model card), and the account menu and You sheet show how much of Fuobe this browser has explored with a next one to try (`nav/explore-progress.tsx`, `src/lib/nav-explore.ts`, kept in `localStorage` only).+- **Navigation.** The bar: Create (a menu of the create tools), Studios (the launcher, `nav/studios-launcher.tsx`: every studio grouped by goal on one screen in six columns, Film & video, Social & shorts, Sell & advertise, People & fashion, Sound (Audio with Music, Sound effects, Clean up voice and Translate & dub) and Finish & convert, arrow keys across and down the columns), Apps, Motions & effects, Canvas, Assist, Library, a More menu for what doesn't fit, Search, New creation and the account menu (`nav/account-menu.tsx`; the owner's install status, a visitor's GPU, balance, Settings, the theme and Sign out, moved from the old sidebar's footer in `nav/status-chips.tsx`; Thanks & licences, the owner's Models & licences and the source on GitHub are in Settings → About, `AboutLinks` in `owner-settings.tsx`). Phones: Home, Create, Studios, Library and You tabs; Studios opens a sheet with every studio at once (`nav/studios-sheet.tsx`). Home has a goal row under the hero (`nav/goal-row.tsx`): each goal opens a band of its studios, one-tap presets and finishing tools. Under a finished result a "Keep going with this" row offers 3 to 5 next steps that open the next studio with the result attached (`nav/next-steps.tsx`, `keepGoing` in `src/lib/next-steps.ts`; in the studio feed, the Viewer and the 3D model card), and the account menu and You sheet show how much of Fuobe this browser has explored with a next one to try (`nav/explore-progress.tsx`, `src/lib/nav-explore.ts`, kept in `localStorage` only).- **Models page** (round 4 part 3; the page itself is gone, the rows still feed the model picker): `ModelRow.engines` (`src/lib/model-rows.ts`) puts an Original under both the Cloud and Open source filters, with both engine icons, "Open source + cloud" (`enginesLabel`) and a "Free · $… / megapixel" price. Since round 4 part 4 models switched off leave the list (`models-table.tsx`), which says how many and links to Settings → Models & licences.- **Sharing** (round 4 part 4): the studio layout (`src/app/(studio)/layout.tsx`) wraps every page in `ShareProvider`, so any result menu can open the Share dialog; the Library gains the Shared tab and Publish in its selection bar, whose phone version folds Like, Pin and Review into a ⋯ menu (see Share links). The public share page lives outside the `(studio)` group, without the studio's frame.- Stand-alone views: color grading (`color-grade-view.tsx`, `src/lib/grade.ts`; since round 4 part 3 Invert and Solarize sliders, the Soul and DoP grade presets, and `?preset=` to open with a grade picked), storyboard, elements + train dialog (since round 4 part 4 `train-dialog.tsx`: the photo rules and tips, the consent tick for characters, the options by family with where each runs, price, time estimate and licence, Train / Retrain / Upgrade, the demo note, "Train anywhere" with the training kit and attaching a LoRA; element cards show a Soul ID, Training, Retrain or Demo badge; `moodboards/train-board.tsx` for "Train as a look…"), library (`library-view.tsx` + `components/library/*`), Assist, and the studios above.diff --git a/docs/public-signup.md b/docs/public-signup.mdindex c0e8cb75..f5695ae0 100644--- a/docs/public-signup.md+++ b/docs/public-signup.md@@ -259,8 +259,9 @@ cloudflared tunnel --url http://localhost:8188 # or: ngrok http 8188(`viewer`), with the open engine and no Demo mode. It says nothing about the studio's ownComfyUI, providers, keys or local AI servers. The account menu (the top bar's right end; the Youtab on a phone) shows **Your GPU · Connect** (a guest signs up first), or the account's ComfyUI as- online or offline with its GPU and VRAM. An account's menu also shows its email, Settings, Your- GPU (`/connect`) and Sign out.+ online or offline with its GPU and VRAM, then Settings and the light or dark switch. An+ account's menu also shows its email, Your GPU (`/connect`) and Sign out. Thanks & licences and+ the source on GitHub are in Settings → About, for guests and accounts too.`GET /api/models` lists the open-source models for a visitor, and the studios price a visitor'srun as it would go on its own GPU. The studio's own settings page isn't shown to visitors.diff --git a/src/components/nav/account-menu.tsx b/src/components/nav/account-menu.tsxindex 5f636488..5de3ea9e 100644--- a/src/components/nav/account-menu.tsx+++ b/src/components/nav/account-menu.tsx@@ -1,15 +1,13 @@"use client";-import { Cpu, Heart, LogIn, LogOut, Moon, Scale, Settings2, Sun, UserPlus, UserRound } from "lucide-react";+import { Cpu, LogIn, LogOut, Moon, Settings2, Sun, UserPlus, UserRound } from "lucide-react";import { usePathname, useSearchParams } from "next/navigation";import { useTheme } from "next-themes";import { Suspense } from "react";import { PlaceholdersOnChip } from "@/components/demo-mode";-import { GitHubMark } from "@/components/github-mark";import { IntentLink } from "@/components/intent-link";import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";import { signInHref, signOut, useEngineMode, useViewer } from "@/lib/api";-import { FUOBE_REPO } from "@/lib/connections";import type { ViewerKind } from "@/lib/nav-model";import { cn } from "@/lib/utils";import { NAV_MENU_ITEM } from "./create-menu";@@ -19,12 +17,12 @@ import { avatarDot, OwnerStatus, usePlaceholdersOn, useShownStatus, VisitorGpu }/** The account menu (the avatar at the bar's right end) and the phone's You sheet: who is signed in, the GPU and its- * status as the sidebar's footer said it, how much of Fuobe this browser has explored, then Settings, the theme and the- * source. What each viewer sees:- * guest Sign up free, Log in · Your GPU (sign up first) · explore · theme, GitHub- * account Signed in as <email> · balance or their own GPU · explore · Settings, Your GPU, theme, GitHub · Sign out- * owner Your setup · cloud models, ComfyUI, mode, the owner's GPU, Placeholders on · explore · Settings, Models &- * licences, theme, GitHub+ * status as the sidebar's footer said it, how much of Fuobe this browser has explored, then Settings and the theme.+ * Thanks & licences, the owner's Models & licences and the source on GitHub are in Settings → About. What each viewer+ * sees:+ * guest Sign up free, Log in · Your GPU (sign up first) · explore · Settings, theme+ * account Signed in as <email> · balance or their own GPU · explore · Settings, Your GPU, theme · Sign out+ * owner Your setup · cloud models, ComfyUI, mode, the owner's GPU, Placeholders on · explore · Settings, theme* The owner's status words exist only in the owner's branch: a guest's or an account's menu never says them.*/@@ -164,12 +162,8 @@ function ThemeToggle({ variant }: { variant: Variant }) {}/** One link of the Links section, as a menu item or a sheet row. */-function LinkRow({ variant, href, external, children }: { variant: Variant; href: string; external?: boolean; children: React.ReactNode }) {- const link = external ? (- <a href={href} target="_blank" rel="noreferrer" className={variant === "sheet" ? SHEET_ROW : undefined}>- {children}- </a>- ) : (+function LinkRow({ variant, href, children }: { variant: Variant; href: string; children: React.ReactNode }) {+ const link = (<IntentLink href={href} className={variant === "sheet" ? SHEET_ROW : undefined}>{children}</IntentLink>@@ -186,7 +180,8 @@ function LinkRow({ variant, href, external, children }: { variant: Variant; hreffunction Links({ kind, variant }: { kind: ViewerKind | undefined; variant: Variant }) {return (<>- {kind && kind !== "guest" && (+ {/* Everyone's: a guest's Settings offers a GPU of its own and About (Thanks & licences, the source on GitHub). */}+ {kind && (<LinkRow variant={variant} href="/settings"><Settings2 aria-hidden /> Settings</LinkRow>@@ -196,18 +191,7 @@ function Links({ kind, variant }: { kind: ViewerKind | undefined; variant: Varia<Cpu aria-hidden /> Your GPU</LinkRow>)}- {kind === "owner" && (- <LinkRow variant={variant} href="/settings/models">- <Scale aria-hidden /> Models & licences- </LinkRow>- )}- <LinkRow variant={variant} href="/settings/licences">- <Heart aria-hidden /> Thanks & licences- </LinkRow><ThemeToggle variant={variant} />- <LinkRow variant={variant} href={FUOBE_REPO} external>- <GitHubMark /> Source on GitHub- </LinkRow></>);}diff --git a/src/components/owner-settings.tsx b/src/components/owner-settings.tsxindex 3dc7b9f9..ec234f3e 100644--- a/src/components/owner-settings.tsx+++ b/src/components/owner-settings.tsx@@ -1,15 +1,17 @@"use client";import { useQueryClient } from "@tanstack/react-query";-import { Eye, EyeOff, Heart, KeyRound, Loader2, LogOut, Trash2 } from "lucide-react";+import { Eye, EyeOff, Heart, KeyRound, Loader2, LogOut, Scale, Trash2 } from "lucide-react";import Link from "next/link";import { useId, useState } from "react";import { toast } from "sonner";+import { GitHubMark } from "@/components/github-mark";import { Button } from "@/components/ui/button";import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";import { announceAuthChange, leaveNotice, rememberViewer, signInHref, signOut, useHydrated, useViewer } from "@/lib/api";+import { FUOBE_REPO } from "@/lib/connections";import { cn } from "@/lib/utils";/** Settings' line under its title: what this viewer finds on the page. Nothing until the viewer is known (as below). */@@ -61,7 +63,29 @@ export function OwnerSettings({ children }: { children: React.ReactNode }) {const linkCard = "inline-flex items-center gap-2 rounded-xl border px-4 py-3 text-[13px] font-medium transition-colors hover:bg-accent";-/** About: Thanks & licences, which everyone may read (the owner finds it in the settings form). */+/**+ * About's links: Thanks & licences and the source on GitHub for everyone, and the owner's Models & licences (its+ * switches; also its own section of the settings form).+ */+export function AboutLinks({ owner }: { owner?: boolean }) {+ return (+ <div className="flex flex-wrap content-start gap-2">+ <Link href="/settings/licences" className={linkCard}>+ <Heart className="size-4 text-muted-foreground" /> Thanks & licences+ </Link>+ {owner && (+ <Link href="/settings/models" className={linkCard}>+ <Scale className="size-4 text-muted-foreground" /> Models & licences+ </Link>+ )}+ <a href={FUOBE_REPO} target="_blank" rel="noreferrer" className={linkCard}>+ <GitHubMark className="size-4 text-muted-foreground" /> Source on GitHub+ </a>+ </div>+ );+}++/** About, which everyone may read (the owner finds it in the settings form). */function Licences() {return (<section id="about" aria-labelledby="about-title" className="grid grid-cols-[minmax(0,1fr)] gap-4 py-8 md:grid-cols-[260px_minmax(0,1fr)]">@@ -69,13 +93,9 @@ function Licences() {<h2 id="about-title" className="text-[15px] font-semibold">About</h2>- <p className="mt-1 text-[13px] text-muted-foreground">The open models, LoRAs and code Fuobe is built on, who made them, and their licences.</p>- </div>- <div className="flex flex-wrap content-start gap-2">- <Link href="/settings/licences" className={linkCard}>- <Heart className="size-4 text-muted-foreground" /> Thanks & licences- </Link>+ <p className="mt-1 text-[13px] text-muted-foreground">The open models, LoRAs and code Fuobe is built on, who made them and their licences, and Fuobe’s own source code.</p></div>+ <AboutLinks /></section>);}diff --git a/src/components/settings-form.tsx b/src/components/settings-form.tsxindex ea0b2174..ec018ca9 100644--- a/src/components/settings-form.tsx+++ b/src/components/settings-form.tsx@@ -1,7 +1,7 @@"use client";import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";-import { CheckCircle2, CircleAlert, Cloud, Cpu, ExternalLink, Heart, Info, Layers, Link2, Loader2, RefreshCw, Scale } from "lucide-react";+import { CheckCircle2, CircleAlert, Cloud, Cpu, ExternalLink, Info, Layers, Link2, Loader2, RefreshCw, Scale } from "lucide-react";import Link from "next/link";import { useEffect, useState, useSyncExternalStore } from "react";import { toast } from "sonner";@@ -17,6 +17,7 @@ import { PLACEHOLDER_SETTING, placeholdersOn } from "@/lib/demo-mode";import { AccountsChip } from "@/components/accounts-admin";import { ConnectField, useSettings, type PublicSetting } from "@/components/connect-field";import { GetStarted } from "@/components/get-started";+import { AboutLinks } from "@/components/owner-settings";import { LlmProviderSettings } from "@/components/llm-provider-settings";import { LoraSettings } from "@/components/lora-settings";import { useStatus, type StatusInfo } from "@/lib/api";@@ -765,10 +766,8 @@ export function SettingsForm({ prices }: { prices?: string }) {</Link></Section>- <Section id="about" title="About" description="The open models, LoRAs and code Fuobe is built on, who made them, and their licences.">- <Link href="/settings/licences" className="inline-flex items-center gap-2 rounded-xl border px-4 py-3 text-[13px] font-medium transition-colors hover:bg-accent">- <Heart className="size-4 text-muted-foreground" /> Thanks & licences- </Link>+ <Section id="about" title="About" description="The open models, LoRAs and code Fuobe is built on, who made them and their licences, and Fuobe's own source code.">+ <AboutLinks owner /></Section></div>);diff --git a/tests/e2e/nav.mjs b/tests/e2e/nav.mjsindex 27a8c2aa..b1d22c7e 100644--- a/tests/e2e/nav.mjs+++ b/tests/e2e/nav.mjs@@ -488,6 +488,54 @@ try {await ctx.close();}+ // 10b. The menu and the You sheet keep Settings and the theme; Thanks & licences, Models & licences and the source on+ // GitHub are in Settings → About (Models & licences for the owner only).+ for (const who of ["guest", "owner", ...(publicSignup ? ["account"] : [])]) {+ const ctx = await as(who);+ const p = await page(ctx);+ await openRoute(p, `${app}/image`);+ const bar = p.locator("[data-top-bar]");+ const openMenu = () => (who === "guest" ? bar.getByRole("button", { name: "Menu", exact: true }) : bar.getByRole("button", { name: who === "owner" ? /^Account and settings/ : /^Account: / })).click();+ await openMenu();+ const menu = p.getByRole("menu");+ await menu.getByRole("menuitem", { name: /^Settings$/ }).waitFor();+ const rows = (await menu.getByRole("menuitem").allInnerTexts()).map((t) => t.trim());+ const moved = rows.filter((t) => /Thanks & licences|Models & licences|Source on GitHub/.test(t));+ check(moved.length === 0 && rows.some((t) => /^(Light|Dark) mode$/.test(t)), `${who}: the menu has Settings and the theme, and no licence or GitHub rows`, rows.join(" | "));+ const theme = menu.getByRole("menuitem", { name: /^(Light|Dark) mode$/ });+ const before = await p.evaluate(() => document.documentElement.classList.contains("dark"));+ await theme.click();+ await p.waitForTimeout(200);+ const after = await p.evaluate(() => document.documentElement.classList.contains("dark"));+ check(after !== before, `${who}: the menu's theme row still switches the theme`);+ await theme.click();+ await p.keyboard.press("Escape");+ await menu.getByRole("menuitem", { name: /^Settings$/ }).waitFor({ state: "detached" }).catch(() => {});+ await openMenu();+ await p.getByRole("menu").getByRole("menuitem", { name: /^Settings$/ }).click();+ await p.waitForURL((u) => new URL(u).pathname === "/settings", { timeout: 20_000 });+ const about = p.locator("#about");+ await about.waitFor({ timeout: 15_000 });+ const links = await about.getByRole("link").evaluateAll((els) => els.map((e) => [e.textContent.trim(), e.getAttribute("href"), e.getAttribute("target")]));+ const has = (name, href) => links.some(([t, h]) => t.includes(name) && h === href);+ check(has("Thanks & licences", "/settings/licences"), `${who}: Settings → About links to Thanks & licences`, JSON.stringify(links));+ check(links.some(([t, h, target]) => t.includes("Source on GitHub") && /^https:\/\/github\.com\//.test(h) && target === "_blank"), `${who}: Settings → About links to the source on GitHub (new tab)`);+ check(has("Models & licences", "/settings/models") === (who === "owner"), `${who}: Settings → About links to Models & licences ${who === "owner" ? "" : "only for the owner"}`.trim());+ const phone = await browser.newContext({ ...PHONE, storageState: await ctx.storageState() });+ const q = await phone.newPage();+ await openRoute(q, `${app}/image`);+ await q.locator("[data-phone-tabs]").getByRole("button", { name: "You" }).tap();+ const sheet = q.locator("#phone-sheet");+ await sheet.waitFor({ state: "visible" });+ const sheetText = await sheet.innerText();+ check(+ /Settings/.test(sheetText) && /(Light|Dark) mode/.test(sheetText) && !/Thanks & licences|Models & licences|Source on GitHub/.test(sheetText),+ `${who}: the You sheet has Settings and the theme, and no licence or GitHub rows`,+ );+ await phone.close();+ await ctx.close();+ }+// 11. Reduced motion: no transitions on the launcher, sheets and band.{const ctx = await as("guest", DESKTOP, { reducedMotion: "reduce" });diff --git a/tests/nav-bar.test.ts b/tests/nav-bar.test.tsindex 61fe9a6d..42d80c23 100644--- a/tests/nav-bar.test.ts+++ b/tests/nav-bar.test.ts@@ -268,6 +268,9 @@ describe("the bar's shell", () => {describe("the account menu's sections (as the phone's You sheet shows them)", () => {const sheet = () => render(createElement(AccountSections, { variant: "sheet" }));+ /** Rows that live in Settings → About, not in the menu, for every viewer. */+ const IN_ABOUT = ["Thanks & licences", "Models & licences", "Source on GitHub"];+ const inAbout = (html: string) => IN_ABOUT.filter((w) => words(html).replaceAll("&", "&").includes(w));it("shows a guest how to sign up and their own GPU, nothing of the install", () => {state.hydrated = true;@@ -279,10 +282,11 @@ describe("the account menu's sections (as the phone's You sheet shows them)", ()expect(hrefs(html)).toContain("/login?signup=1&next=%2Fimage");expect(hrefs(html)).toContain("/login?signup=1&next=%2Fconnect");expect(words(html)).toContain("Your GPU");- expect(words(html)).toContain("Source on GitHub");- // Thanks & licences is everyone's to read.- expect(hrefs(html)).toContain("/settings/licences");- for (const w of [...OWNER_WORDS, "Settings", "Sign out"]) expect(words(html), w).not.toContain(w.replace("&", "&"));+ // Settings (its About has Thanks & licences and the source) and the theme.+ expect(hrefs(html)).toContain("/settings");+ expect(words(html)).toContain("Dark mode");+ expect(inAbout(html)).toEqual([]);+ for (const w of [...OWNER_WORDS, "Sign out"]) expect(words(html), w).not.toContain(w.replace("&", "&"));});it("shows an account its email, its own GPU, Settings and Sign out, nothing of the install", () => {@@ -291,8 +295,9 @@ describe("the account menu's sections (as the phone's You sheet shows them)", ()state.status = install({ viewer: { kind: "account", gpu: { connected: false } } });const html = sheet();expect(words(html)).toContain("[email protected]");- for (const w of ["Settings", "Your GPU", "Sign out", "Source on GitHub"]) expect(words(html), w).toContain(w);- expect(hrefs(html)).toEqual(expect.arrayContaining(["/settings", "/connect", "/settings/licences"]));+ for (const w of ["Settings", "Your GPU", "Dark mode", "Sign out"]) expect(words(html), w).toContain(w);+ expect(hrefs(html)).toEqual(expect.arrayContaining(["/settings", "/connect"]));+ expect(inAbout(html)).toEqual([]);for (const w of OWNER_WORDS) expect(words(html), w).not.toContain(w.replace("&", "&"));});@@ -309,8 +314,10 @@ describe("the account menu's sections (as the phone's You sheet shows them)", ()state.viewer = OWNER;state.status = install({ providers: { fal: { label: "fal.ai", configured: true }, comfyui: { label: "ComfyUI", configured: false } } });const html = sheet();- for (const w of ["Your setup", "Cloud models", "connected", "ComfyUI", "offline", "Placeholders on", "Models & licences", "Settings"]) expect(words(html).replaceAll("&", "&"), w).toContain(w);+ for (const w of ["Your setup", "Cloud models", "connected", "ComfyUI", "offline", "Placeholders on", "Settings", "Dark mode"]) expect(words(html).replaceAll("&", "&"), w).toContain(w);expect(words(html)).not.toContain("Sign out");+ // Models & licences is in Settings (its own section, and a link in About).+ expect(inAbout(html)).toEqual([]);state.mode = "open";expect(words(sheet())).toContain("Open source only");expect(words(sheet())).not.toContain("Cloud models");@@ -320,7 +327,8 @@ describe("the account menu's sections (as the phone's You sheet shows them)", ()state.status = install();const html = sheet();for (const w of [...OWNER_WORDS, "Sign out", "Settings", "Sign up"]) expect(words(html), w).not.toContain(w.replace("&", "&"));- expect(words(html)).toContain("Source on GitHub");+ expect(words(html)).toContain("Dark mode");+ expect(inAbout(html)).toEqual([]);});});