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
Top bar: Studios shows its name with no count beside it
Adarsh164941ad6938
diff --git a/src/components/nav/mega-launcher.tsx b/src/components/nav/mega-launcher.tsxindex 0365d1a2..e078f2dc 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, studioCount, subActive } from "@/lib/nav-model";+import { launcherActive, subActive } from "@/lib/nav-model";import { cn } from "@/lib/utils";import { useBarMenu } from "./bar-menus";import { BarTrigger } from "./bar-split";@@ -132,26 +132,13 @@ export function MegaLauncher({ id, active, className }: { id: MegaId; active?: bif (open) warmNav(WARM[id]);}, [open, id]);- const n = id === "studios" ? studioCount() : undefined;return (<><BarTriggerid={id}panelId={megaPanelId(id)}href={area.href}- label={- n !== undefined ? (- /* Spoken "Studios, 29 studios": the visible words start the name (no separate label to drift from them). */- <span className="inline-flex items-center gap-1.5">- {area.label}- <span className="sr-only">, </span>- <span className="rounded-full bg-brand-faint px-1.5 py-px text-[11px] leading-4 font-semibold text-brand-text tabular-nums">{n}</span>- <span className="sr-only"> studios</span>- </span>- ) : (- area.label- )- }+ label={area.label}active={active}open={open}handlers={trigger}diff --git a/tests/e2e/nav.mjs b/tests/e2e/nav.mjsindex b0fa184e..0b5de366 100644--- a/tests/e2e/nav.mjs+++ b/tests/e2e/nav.mjs@@ -80,7 +80,7 @@ try {if (i > 0 && !f?.ring) rings = false;}// Create, Studios, Apps, Motions & effects and Canvas are one button each (their page is the menu's See all).- const want = ["Skip to content", "Fuobe home", "Create", /^Studios, [0-9]+ studios$/, "Apps", "Motions & effects", "Canvas", "Assist", "Library", /^Search/, "New creation"];+ const want = ["Skip to content", "Fuobe home", "Create", "Studios", "Apps", "Motions & effects", "Canvas", "Assist", "Library", /^Search/, "New creation"];for (let i = order.length; i < want.length; i++) {await p.keyboard.press("Tab");order.push((await focused(p))?.name ?? "");diff --git a/tests/nav-bar.test.ts b/tests/nav-bar.test.tsindex f9644e17..41bb3689 100644--- a/tests/nav-bar.test.ts+++ b/tests/nav-bar.test.ts@@ -278,7 +278,8 @@ describe("the bar's shell", () => {expect(html).toContain(`aria-controls="${LAUNCHER_ID}"`);expect(html).toMatch(new RegExp(`<section[^>]*id="${LAUNCHER_ID}"[^>]*hidden`));expect(html).toContain('aria-expanded="false"');- expect(html).toContain(`>${studioCount()}<`);+ // Studios is its name only: no count beside it.+ expect(html).not.toContain(`>${studioCount()}<`);for (const h of ["/", "/assist", "/library", "/?new=1"]) expect(hrefs(html), h).toContain(h);for (const h of ["/create", "/studios", "/apps", "/motions-and-effects", "/canvas"]) expect(html, h).toContain(`data-href="${h}"`);// Search's name is the words it shows (sr-only below lg).@@ -455,9 +456,9 @@ describe("menu items: one button each, the area's page inside its menu", () => {}expect(item(html, "more")).toContain('aria-expanded="false"');expect(item(html, "more")).not.toContain("data-href");- // Its spoken name starts with its visible words ("Studios, 29 studios"): the count's words are hidden text, not a label.+ // Its name is its visible word: no label, and no count beside it.expect(item(html, "studios")).not.toContain("aria-label=");- expect(html).toMatch(new RegExp(`Studios<span class="sr-only">, </span><span[^>]*>${studioCount()}</span><span class="sr-only"> studios</span>`));+ 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 & effects menu", "Canvas menu"]) expect(html, name).not.toContain(`aria-label="${name}"`);