From c8ad2273a277933ba5cd94c342ad28bb5b06b15d Mon Sep 17 00:00:00 2001
From: Maanil Verma
Date: Mon, 5 Oct 2026 20:02:50 +0530
Subject: [PATCH 1/7] fix(website): show video thumbnails as a still frame in
hub search suggestions
---
.../workshop/WorkshopSearchPanel.test.ts | 15 +++++++++++++++
.../components/workshop/WorkshopSearchPanel.vue | 13 ++++++++++++-
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts b/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts
index ff120de86ca..0f203794c6c 100644
--- a/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts
+++ b/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts
@@ -59,6 +59,21 @@ describe('WorkshopSearchPanel', () => {
).toBeTruthy()
})
+ it('shows a video thumbnail as a still frame, not a broken image', () => {
+ const clip = 'https://media.comfy.org/clip.mp4'
+ const videoModel: WorkshopModel = {
+ ...models[1],
+ thumbnailUrl: clip,
+ thumbnail: { url: clip, kind: 'video' }
+ }
+ render(WorkshopSearchPanel, {
+ props: { models: [videoModel], query: 'alpha' }
+ })
+ expect(
+ screen.getByTestId('workshop-search-model-video').getAttribute('src')
+ ).toBe(`${clip}#t=0.1`)
+ })
+
it('shows an empty state for a query without matches', () => {
render(WorkshopSearchPanel, {
props: { models, query: 'missing' }
diff --git a/apps/website/src/components/workshop/WorkshopSearchPanel.vue b/apps/website/src/components/workshop/WorkshopSearchPanel.vue
index 5f712bd830a..1582ad1a61c 100644
--- a/apps/website/src/components/workshop/WorkshopSearchPanel.vue
+++ b/apps/website/src/components/workshop/WorkshopSearchPanel.vue
@@ -8,6 +8,7 @@ import {
filterWorkshopModels,
sortWorkshopModels
} from '@/config/models-catalogue'
+import { isVideoUrl, videoPosterUrl } from '@/config/workshop-playground'
import type { Locale } from '@/i18n/translations'
import { translationsFor } from '@/i18n/translations'
@@ -83,8 +84,18 @@ function sourceOf(model: WorkshopModel): string | undefined {
@mousedown.prevent
@click="emit('pick', model)"
>
+
Date: Mon, 5 Oct 2026 20:05:09 +0530
Subject: [PATCH 2/7] docs(website): describe the catalogue at /hub/models/
instead of /models
---
apps/website/README.md | 15 ++++++++++-----
apps/website/src/config/routes.ts | 2 +-
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/apps/website/README.md b/apps/website/README.md
index 642376d3301..3121c25ba87 100644
--- a/apps/website/README.md
+++ b/apps/website/README.md
@@ -273,12 +273,17 @@ refresh preserves the last confirmed answer for the same identity; a new
identity never inherits a grant. Disabling it restores the public site:
- The header and homepage retain their existing navigation and model links.
-- `/models` shows the existing Models marketing page.
-- Model render pages show the public marketing content until enabled.
+- `/hub/models/` shows the Models marketing page in place of the catalogue.
+ The old `/models` address redirects there.
+- Router model pages at `/hub/models//` render their public content.
+ Workflow pages show the marketing content until enabled.
- Catalogue and playground markup is absent from public HTML; their components
and page data load after enablement. Homepage islands still serialize public
- model and provider summaries. `/models` remains indexable with its marketing content.
-- Render pages stay out of sitemaps and markdown exports. `/models/showcase`
+ model and provider summaries. `/hub/models/` remains indexable with its
+ marketing content.
+- Router model pages are indexable and listed in the sitemap and markdown
+ exports (`launchedModelPages`). Workflow pages stay out until
+ `launchedWorkflowPages` is on. `/models/showcase`
is the unlisted public copy of the marketing page: noindex and out of the
sitemap.
- Once enabled, a neutral loading frame replaces the public content while a
@@ -296,7 +301,7 @@ sign in through the website never join that cohort.
The website identifies signed-in people with their Firebase UID, matching
Cloud's PostHog identity. For a verified `comfy.org` or `drip.art` email it
also sets `comfy_staff: true`; every other account sends nothing beyond the
-UID. Give staff `/login/?returnTo=%2Fmodels%2F` so they can sign in before
+UID. Give staff `/login/?returnTo=%2Fhub%2Fmodels%2F` so they can sign in before
their Models flag is evaluated. Anyone who signed in before `comfy_staff`
existed must sign out and back in once. Authentication is available before
PostHog answers, including when flags are missing or unavailable; no separate
diff --git a/apps/website/src/config/routes.ts b/apps/website/src/config/routes.ts
index 248a519c99f..ab3beaeb5e6 100644
--- a/apps/website/src/config/routes.ts
+++ b/apps/website/src/config/routes.ts
@@ -263,7 +263,7 @@ export const externalLinks = {
/**
* The platform creates a key on arrival and shows this product's onboarding.
- * `model` is the website's model page id (`/models/`), not the Router id.
+ * `model` is the website's model page id (`/hub/models//`), not the Router id.
*/
type ApiKeysOnboarding =
| { onboarding: 'router' | 'comfy_api' }
From 35defe8201c341167648d12dccaaafd036aeecf0 Mon Sep 17 00:00:00 2001
From: Maanil Verma
Date: Mon, 5 Oct 2026 22:14:00 +0530
Subject: [PATCH 3/7] fix(website): pick the search thumbnail element from its
declared media kind
Use thumbnail.kind when the model declares it, so an extensionless video URL renders as a video and an audio thumbnail falls back to the initial. The URL extension is the fallback for workflows that only set thumbnailUrl.
---
.../workshop/WorkshopSearchPanel.test.ts | 50 +++++++++++++++----
.../workshop/WorkshopSearchPanel.vue | 12 ++++-
2 files changed, 50 insertions(+), 12 deletions(-)
diff --git a/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts b/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts
index 0f203794c6c..b21293d2fc9 100644
--- a/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts
+++ b/apps/website/src/components/workshop/WorkshopSearchPanel.test.ts
@@ -59,19 +59,49 @@ describe('WorkshopSearchPanel', () => {
).toBeTruthy()
})
- it('shows a video thumbnail as a still frame, not a broken image', () => {
- const clip = 'https://media.comfy.org/clip.mp4'
- const videoModel: WorkshopModel = {
- ...models[1],
- thumbnailUrl: clip,
- thumbnail: { url: clip, kind: 'video' }
+ it.for([
+ [
+ 'a declared video',
+ 'https://comfy-hub-assets.comfy.org/uploads/3f2a9c',
+ 'video'
+ ],
+ [
+ 'a .mp4 URL with no declared kind',
+ 'https://media.comfy.org/clip.mp4',
+ undefined
+ ]
+ ] as const)(
+ 'shows %s as a still frame, not a broken image',
+ ([, clip, kind]) => {
+ const videoModel: WorkshopModel = {
+ ...models[1],
+ thumbnailUrl: clip,
+ ...(kind ? { thumbnail: { url: clip, kind } } : {})
+ }
+ render(WorkshopSearchPanel, {
+ props: { models: [videoModel], query: 'alpha' }
+ })
+ expect(
+ screen.getByTestId('workshop-search-model-video').getAttribute('src')
+ ).toBe(`${clip}#t=0.1`)
}
+ )
+
+ it('shows the initial instead of a broken image for an audio thumbnail', () => {
+ const sound = 'https://media.comfy.org/sound.mp3'
render(WorkshopSearchPanel, {
- props: { models: [videoModel], query: 'alpha' }
+ props: {
+ models: [
+ {
+ ...models[1],
+ thumbnailUrl: sound,
+ thumbnail: { url: sound, kind: 'audio' }
+ }
+ ],
+ query: 'alpha'
+ }
})
- expect(
- screen.getByTestId('workshop-search-model-video').getAttribute('src')
- ).toBe(`${clip}#t=0.1`)
+ expect(screen.getByText('A')).toBeTruthy()
})
it('shows an empty state for a query without matches', () => {
diff --git a/apps/website/src/components/workshop/WorkshopSearchPanel.vue b/apps/website/src/components/workshop/WorkshopSearchPanel.vue
index 1582ad1a61c..bb916e67101 100644
--- a/apps/website/src/components/workshop/WorkshopSearchPanel.vue
+++ b/apps/website/src/components/workshop/WorkshopSearchPanel.vue
@@ -43,6 +43,14 @@ const suggestions = computed(() =>
: []
)
+function thumbnailKind(model: WorkshopModel) {
+ if (!model.thumbnailUrl) return undefined
+ return (
+ model.thumbnail?.kind ??
+ (isVideoUrl(model.thumbnailUrl) ? 'video' : 'image')
+ )
+}
+
function sourceOf(model: WorkshopModel): string | undefined {
if (model.type === 'APP') return t('workshop.card.comfyApp')
if (model.routerId === undefined) return model.models?.join(', ')
@@ -85,7 +93,7 @@ function sourceOf(model: WorkshopModel): string | undefined {
@click="emit('pick', model)"
>
Date: Mon, 5 Oct 2026 22:19:44 +0530
Subject: [PATCH 4/7] refactor(website): resolve search thumbnails once per
suggestion row
---
.../workshop/WorkshopSearchPanel.vue | 25 +++++++++++--------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/apps/website/src/components/workshop/WorkshopSearchPanel.vue b/apps/website/src/components/workshop/WorkshopSearchPanel.vue
index bb916e67101..1e8b5892291 100644
--- a/apps/website/src/components/workshop/WorkshopSearchPanel.vue
+++ b/apps/website/src/components/workshop/WorkshopSearchPanel.vue
@@ -43,14 +43,17 @@ const suggestions = computed(() =>
: []
)
-function thumbnailKind(model: WorkshopModel) {
- if (!model.thumbnailUrl) return undefined
- return (
- model.thumbnail?.kind ??
- (isVideoUrl(model.thumbnailUrl) ? 'video' : 'image')
- )
+function thumbnailOf(model: WorkshopModel) {
+ const url = model.thumbnailUrl
+ if (!url) return undefined
+ const kind = model.thumbnail?.kind ?? (isVideoUrl(url) ? 'video' : 'image')
+ return kind === 'audio' ? undefined : { url, kind }
}
+const rows = computed(() =>
+ suggestions.value.map((model) => ({ model, thumbnail: thumbnailOf(model) }))
+)
+
function sourceOf(model: WorkshopModel): string | undefined {
if (model.type === 'APP') return t('workshop.card.comfyApp')
if (model.routerId === undefined) return model.models?.join(', ')
@@ -84,7 +87,7 @@ function sourceOf(model: WorkshopModel): string | undefined {
({{ matching.length }})