From 05caba0d3ea63134d868e3113a1b7868e5783c1d Mon Sep 17 00:00:00 2001 From: Mariana Martinho Date: Fri, 25 Sep 2026 22:53:20 +0000 Subject: [PATCH 1/2] feat(website): one name and one mark on a catalogue card A workflow card carried its name twice: once over the artwork under a gradient, once again below it beside the model it runs on. A model card carried its name below beside a bare provider logo, so the two kinds of card in the same grid were built differently. Both now read the same way. Who answers for the card - the provider of a model, the model a workflow runs on - rides over the artwork as a mark that opens to its name on hover, the way the type badge already does. The line under the artwork is the card's own name and nothing else, and the chips under it are unchanged. --- .../components/workshop/WorkshopCardMark.vue | 36 ++++++ .../workshop/WorkshopModelCard.test.ts | 5 +- .../components/workshop/WorkshopModelCard.vue | 108 +++--------------- .../workshop/WorkshopSections.test.ts | 4 +- 4 files changed, 56 insertions(+), 97 deletions(-) create mode 100644 apps/website/src/components/workshop/WorkshopCardMark.vue diff --git a/apps/website/src/components/workshop/WorkshopCardMark.vue b/apps/website/src/components/workshop/WorkshopCardMark.vue new file mode 100644 index 00000000000..648bf336fa2 --- /dev/null +++ b/apps/website/src/components/workshop/WorkshopCardMark.vue @@ -0,0 +1,36 @@ + + + diff --git a/apps/website/src/components/workshop/WorkshopModelCard.test.ts b/apps/website/src/components/workshop/WorkshopModelCard.test.ts index 2c371f5a44d..ecfb753aebc 100644 --- a/apps/website/src/components/workshop/WorkshopModelCard.test.ts +++ b/apps/website/src/components/workshop/WorkshopModelCard.test.ts @@ -26,9 +26,10 @@ describe('WorkshopModelCard', () => { render(WorkshopModelCard, { props: { model: base } }) const link = screen.getByTestId('workshop-model-card') expect(link.getAttribute('href')).toBe('/models/flux/') - expect(screen.getByText('Flux')).toBeTruthy() - expect(screen.getByRole('img', { name: 'Black Forest Labs' })).toBeTruthy() expect(screen.getByTestId('model-card-name').textContent).toBe('Flux') + expect(screen.getByTestId('model-card-provider')).toHaveTextContent( + 'Black Forest Labs' + ) expect(screen.getByTestId('model-card-task').textContent).toBe( 'Image to Image' ) diff --git a/apps/website/src/components/workshop/WorkshopModelCard.vue b/apps/website/src/components/workshop/WorkshopModelCard.vue index 96610ff8795..63e42c20644 100644 --- a/apps/website/src/components/workshop/WorkshopModelCard.vue +++ b/apps/website/src/components/workshop/WorkshopModelCard.vue @@ -1,8 +1,6 @@