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
Example rows on tool pages use the same cover placeholder; test it
Adarsh11ea548b1693
diff --git a/src/components/studio/example-row.tsx b/src/components/studio/example-row.tsxindex 3b055463..459ef770 100644--- a/src/components/studio/example-row.tsx+++ b/src/components/studio/example-row.tsx@@ -44,11 +44,13 @@ export function ExampleRow({ row, className }: { row: StudioExampleRow; classNam<h2 id={heading} className="mb-2 text-center text-[12.5px] font-medium text-muted-foreground">{row.heading}</h2>- <div className="grid grid-cols-2 gap-3 sm:grid-cols-4">- {row.tiles.map((e, i) => (- <ShowcaseTile key={e.card.id} card={e.card} kind={e.kind} caption={e.caption} href={e.href} index={i} sizes={SIZES} small />- ))}- </div>+ <ExampleTilesSuspense count={row.tiles.length}>+ <div className="grid grid-cols-2 gap-3 sm:grid-cols-4">+ {row.tiles.map((e, i) => (+ <ShowcaseTile key={e.card.id} card={e.card} kind={e.kind} caption={e.caption} href={e.href} index={i} sizes={SIZES} small />+ ))}+ </div>+ </ExampleTilesSuspense></section>);}diff --git a/tests/instant-tabs.test.ts b/tests/instant-tabs.test.tsindex 993bfe70..b189f648 100644--- a/tests/instant-tabs.test.ts+++ b/tests/instant-tabs.test.ts@@ -130,6 +130,14 @@ describe("other tab bars switch without a round trip", () => {it("the studio's route skeleton keeps a hub's bar and tabs on the way in", () => {expect(src("src/app/(studio)/loading.tsx")).toMatch(/<StudioRouteSkeleton /);});++ it("example covers (a lazy chunk) load under their own placeholder, so a tapped page never waits for them", () => {+ // Without it the chunk's load suspends the whole page up to the route's skeleton after the tap.+ const row = src("src/components/studio/example-row.tsx");+ expect(row).toMatch(/export function ExampleTilesSuspense/);+ expect(row).toMatch(/<ExampleTilesSuspense count=\{row\.tiles\.length\}>/);+ expect(src("src/components/studio/studio-page.tsx")).toMatch(/<ExampleTilesSuspense count=\{row\.tiles\.length\}>\s*<ExampleTiles /);+ });});describe("idle prefetches: the page's own tabs go before the sidebar's routes", () => {