From c2af889442772640598386d19f71e8e5e6ccae7a Mon Sep 17 00:00:00 2001
From: Mariana Martinho
Date: Sat, 26 Sep 2026 15:42:05 +0000
Subject: [PATCH 1/4] feat(website): the workflow header stops repeating the
rail, and its shelf leads somewhere
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The header listed the models the workflow runs on and who made the template.
Both of those now sit in the facts card in the Details rail, a few centimetres
away, so the page said them twice — and the header's copies were the ones with
nowhere to go.
What replaces them is the one thing the header can lead somewhere: the shelf
this workflow sits on, as a pill that opens the catalogue already narrowed to
it. The category above it stays a word, because the category is a heading on
a page, not a filter.
Two rows of the design's header are left out because nothing behind this page
carries them: a workflow has no price, and its tag list is empty.
---
.../src/components/workshop/WorkflowPage.vue | 50 +++++++++++--------
apps/website/src/i18n/translations.ts | 4 --
2 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/apps/website/src/components/workshop/WorkflowPage.vue b/apps/website/src/components/workshop/WorkflowPage.vue
index bbf8643afca..949c767eeaa 100644
--- a/apps/website/src/components/workshop/WorkflowPage.vue
+++ b/apps/website/src/components/workshop/WorkflowPage.vue
@@ -3,8 +3,11 @@ import { ChevronLeft } from '@lucide/vue'
import { computed } from 'vue'
import type { WorkflowWorkshopModelDetail } from '../../config/models-catalogue'
+import { catalogSearch, useCaseFor } from '../../config/models-catalogue'
+import { getRoutes } from '../../config/routes'
import { WORKSHOP_CLOUD_BASE_URL } from '../../config/workshop-env'
import { useWorkshopSession } from '../../config/workshop-session-state'
+import { useCaseLabelKey } from '../../lib/workshop/use-case-label'
import { t } from '../../i18n/translations'
import WorkflowPlayground from './WorkflowPlayground.vue'
@@ -16,6 +19,19 @@ const scope = computed(() =>
? JSON.stringify([session.value.uid, session.value.workspace.id])
: 'anonymous'
)
+const routes = getRoutes()
+
+// The one thing the eyebrow can lead somewhere: the shelf this workflow sits
+// on. It was a word before, and a word is not a way back.
+const useCase = computed(() => useCaseFor(model))
+const useCaseHref = computed(() =>
+ useCase.value
+ ? `${routes.workshop}${catalogSearch({ useCase: useCase.value })}`
+ : undefined
+)
+const pillClass =
+ 'inline-flex h-7 items-center rounded-full border border-transparency-white-t20 px-3 text-xs leading-none text-primary-comfy-canvas transition-colors hover:border-primary-comfy-yellow hover:text-primary-comfy-yellow'
+
const template = model.workflow.template
const cloudHref = template
? `${WORKSHOP_CLOUD_BASE_URL}/?template=${encodeURIComponent(template.id)}`
@@ -32,9 +48,18 @@ const cloudHref = template
{{ t('workshop.catalogue.backToWorkflows') }}
-
- {{ name }}
-
- {{
- t('workshop.workflow.templateBy').replace(
- '{author}',
- template.author
- )
- }}
-
-
Date: Sat, 26 Sep 2026 17:18:14 +0000
Subject: [PATCH 2/4] test(website): the eyebrow's shelf leads to that shelf
Nothing held the new link: dropping the filter from its address, or the shelf
from a workflow that has none, both went through unnoticed.
---
.../components/workshop/WorkflowPage.test.ts | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 apps/website/src/components/workshop/WorkflowPage.test.ts
diff --git a/apps/website/src/components/workshop/WorkflowPage.test.ts b/apps/website/src/components/workshop/WorkflowPage.test.ts
new file mode 100644
index 00000000000..4279897aa19
--- /dev/null
+++ b/apps/website/src/components/workshop/WorkflowPage.test.ts
@@ -0,0 +1,35 @@
+import { render, screen } from '@testing-library/vue'
+import { assert, describe, expect, it } from 'vitest'
+
+import { workflowDetailsBySlug } from '../../config/workshop-workflow-content'
+import WorkflowPage from './WorkflowPage.vue'
+
+const model = workflowDetailsBySlug.get('workflows/remove-background')
+assert(model)
+
+// The eyebrow named the shelf this workflow sits on, and a word is not a way
+// back. It is the one thing up there that can lead somewhere.
+describe('WorkflowPage header', () => {
+ it('sends the shelf it names to that shelf, filtered', () => {
+ render(WorkflowPage, { props: { model } })
+
+ const shelf = screen.getByTestId('workflow-use-case')
+ expect(shelf.textContent.trim()).toBe('Edit images')
+ expect(shelf.getAttribute('href')).toBe('/models?useCase=edit-images')
+ })
+
+ it('says nothing about a shelf a workflow has none of', () => {
+ render(WorkflowPage, {
+ props: {
+ model: {
+ ...model,
+ useCases: [],
+ task: undefined,
+ modality: undefined
+ }
+ }
+ })
+
+ expect(screen.queryByTestId('workflow-use-case')).toBeNull()
+ })
+})
From 9f3adc484a18ca74d504638f2327175e860fb70a Mon Sep 17 00:00:00 2001
From: Mariana Martinho
Date: Sat, 26 Sep 2026 18:36:46 +0000
Subject: [PATCH 3/4] test(website): the eyebrow leads back to its shelf, in
the browser too
---
apps/website/e2e/workshop-workflows.spec.ts | 4 ++++
.../components/workshop/WorkflowPage.test.ts | 19 +++++++++++++++++++
.../src/components/workshop/WorkflowPage.vue | 19 +++++++++++--------
3 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/apps/website/e2e/workshop-workflows.spec.ts b/apps/website/e2e/workshop-workflows.spec.ts
index e98f560b14c..da3451e84b0 100644
--- a/apps/website/e2e/workshop-workflows.spec.ts
+++ b/apps/website/e2e/workshop-workflows.spec.ts
@@ -88,6 +88,10 @@ test('workflow launch groups lead to the existing shared form', async ({
await expect(
page.getByRole('heading', { name: 'Change a material', exact: true })
).toBeVisible()
+ // The eyebrow names the shelf this workflow sits on, and leads back to it.
+ const shelf = page.getByTestId('workflow-use-case')
+ await expect(shelf).toHaveText('Edit images')
+ await expect(shelf).toHaveAttribute('href', '/models?useCase=edit-images')
await expect(
page.getByRole('group', { name: 'Your original image' })
).toBeVisible()
diff --git a/apps/website/src/components/workshop/WorkflowPage.test.ts b/apps/website/src/components/workshop/WorkflowPage.test.ts
index 4279897aa19..792ca430cea 100644
--- a/apps/website/src/components/workshop/WorkflowPage.test.ts
+++ b/apps/website/src/components/workshop/WorkflowPage.test.ts
@@ -32,4 +32,23 @@ describe('WorkflowPage header', () => {
expect(screen.queryByTestId('workflow-use-case')).toBeNull()
})
+
+ // The eyebrow's two halves are independent: the category reads its English
+ // label where there is one and the raw category where there is not, and the
+ // shelf link stands whether or not a category sits beside it.
+ it.for([
+ {
+ category: 'Utilities',
+ categoryLabel: { en: 'Clean-up', 'zh-CN': '清理' },
+ reads: 'Clean-up'
+ },
+ { category: 'Utilities', categoryLabel: undefined, reads: 'Utilities' },
+ { category: undefined, categoryLabel: undefined, reads: undefined }
+ ] as const)('reads the category as $reads', ({ reads, ...category }) => {
+ render(WorkflowPage, { props: { model: { ...model, ...category } } })
+
+ if (reads) expect(screen.getByText(reads)).toBeTruthy()
+ else expect(screen.queryByText('Utilities')).toBeNull()
+ expect(screen.getByTestId('workflow-use-case')).toBeTruthy()
+ })
})
diff --git a/apps/website/src/components/workshop/WorkflowPage.vue b/apps/website/src/components/workshop/WorkflowPage.vue
index 949c767eeaa..b1032775fec 100644
--- a/apps/website/src/components/workshop/WorkflowPage.vue
+++ b/apps/website/src/components/workshop/WorkflowPage.vue
@@ -23,12 +23,15 @@ const routes = getRoutes()
// The one thing the eyebrow can lead somewhere: the shelf this workflow sits
// on. It was a word before, and a word is not a way back.
-const useCase = computed(() => useCaseFor(model))
-const useCaseHref = computed(() =>
- useCase.value
- ? `${routes.workshop}${catalogSearch({ useCase: useCase.value })}`
+const shelf = computed(() => {
+ const useCase = useCaseFor(model)
+ return useCase
+ ? {
+ label: useCaseLabelKey[useCase],
+ href: `${routes.workshop}${catalogSearch({ useCase })}`
+ }
: undefined
-)
+})
const pillClass =
'inline-flex h-7 items-center rounded-full border border-transparency-white-t20 px-3 text-xs leading-none text-primary-comfy-canvas transition-colors hover:border-primary-comfy-yellow hover:text-primary-comfy-yellow'
@@ -53,11 +56,11 @@ const cloudHref = template
{{ model.categoryLabel?.en ?? model.category }}
{{ t(useCaseLabelKey[useCase]) }}{{ t(shelf.label) }}
Date: Sun, 27 Sep 2026 00:09:00 +0000
Subject: [PATCH 4/4] feat(website): the workflow header names who made it
The eyebrow repeated the shelf the pill beside it already names. It now carries the author, as the V2 design does, and the pill keeps the way back to the shelf.
---
.../components/workshop/WorkflowPage.test.ts | 27 +++++++------------
.../src/components/workshop/WorkflowPage.vue | 10 +++++--
2 files changed, 18 insertions(+), 19 deletions(-)
diff --git a/apps/website/src/components/workshop/WorkflowPage.test.ts b/apps/website/src/components/workshop/WorkflowPage.test.ts
index 792ca430cea..8fd425853ce 100644
--- a/apps/website/src/components/workshop/WorkflowPage.test.ts
+++ b/apps/website/src/components/workshop/WorkflowPage.test.ts
@@ -7,8 +7,8 @@ import WorkflowPage from './WorkflowPage.vue'
const model = workflowDetailsBySlug.get('workflows/remove-background')
assert(model)
-// The eyebrow named the shelf this workflow sits on, and a word is not a way
-// back. It is the one thing up there that can lead somewhere.
+// Who made the workflow stands over its name, and the shelf it sits on is the
+// one thing up there that leads somewhere.
describe('WorkflowPage header', () => {
it('sends the shelf it names to that shelf, filtered', () => {
render(WorkflowPage, { props: { model } })
@@ -33,22 +33,15 @@ describe('WorkflowPage header', () => {
expect(screen.queryByTestId('workflow-use-case')).toBeNull()
})
- // The eyebrow's two halves are independent: the category reads its English
- // label where there is one and the raw category where there is not, and the
- // shelf link stands whether or not a category sits beside it.
it.for([
- {
- category: 'Utilities',
- categoryLabel: { en: 'Clean-up', 'zh-CN': '清理' },
- reads: 'Clean-up'
- },
- { category: 'Utilities', categoryLabel: undefined, reads: 'Utilities' },
- { category: undefined, categoryLabel: undefined, reads: undefined }
- ] as const)('reads the category as $reads', ({ reads, ...category }) => {
- render(WorkflowPage, { props: { model: { ...model, ...category } } })
-
- if (reads) expect(screen.getByText(reads)).toBeTruthy()
- else expect(screen.queryByText('Utilities')).toBeNull()
+ { author: 'ComfyUI', authors: 1 },
+ { author: undefined, authors: 0 }
+ ] as const)('names $authors author(s)', ({ author, authors }) => {
+ render(WorkflowPage, { props: { model: { ...model, author } } })
+
+ const named = screen.queryAllByTestId('workflow-author')
+ expect(named).toHaveLength(authors)
+ if (author) expect(named[0]).toHaveTextContent(author)
expect(screen.getByTestId('workflow-use-case')).toBeTruthy()
})
})
diff --git a/apps/website/src/components/workshop/WorkflowPage.vue b/apps/website/src/components/workshop/WorkflowPage.vue
index b1032775fec..57487a08dfa 100644
--- a/apps/website/src/components/workshop/WorkflowPage.vue
+++ b/apps/website/src/components/workshop/WorkflowPage.vue
@@ -32,6 +32,8 @@ const shelf = computed(() => {
}
: undefined
})
+const eyebrowClass =
+ 'text-sm leading-none font-medium tracking-widest text-primary-comfy-yellow uppercase'
const pillClass =
'inline-flex h-7 items-center rounded-full border border-transparency-white-t20 px-3 text-xs leading-none text-primary-comfy-canvas transition-colors hover:border-primary-comfy-yellow hover:text-primary-comfy-yellow'
@@ -52,8 +54,12 @@ const cloudHref = template