From 947f2eef6eb944f6d51317ed8eff2960cb172bf1 Mon Sep 17 00:00:00 2001 From: Mariana Martinho Date: Sun, 27 Sep 2026 00:30:20 +0000 Subject: [PATCH 1/3] feat(website): the catalogue names the Hub and keeps one line under it The page holds models and the workflows built on them, so its eyebrow names the Hub rather than one of its halves, and the line under the title says what the whole page is instead of changing as the tabs do. --- .../components/workshop/ModelsCatalogue.test.ts | 17 +++++++++++++++++ .../src/components/workshop/ModelsCatalogue.vue | 11 ++--------- apps/website/src/i18n/translations.ts | 1 + 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/apps/website/src/components/workshop/ModelsCatalogue.test.ts b/apps/website/src/components/workshop/ModelsCatalogue.test.ts index cf392dd16ec..429bebeb822 100644 --- a/apps/website/src/components/workshop/ModelsCatalogue.test.ts +++ b/apps/website/src/components/workshop/ModelsCatalogue.test.ts @@ -87,6 +87,23 @@ describe('ModelsCatalogue', () => { ).toBeNull() }) + // One page, one promise: the shelves hold models and the workflows built on + // them, so the line under the title does not change as the tabs do. + it('names the Hub once and keeps one line under it across the tabs', async () => { + const user = userEvent.setup() + render(ModelsCatalogue, { props: { models: launchModels } }) + const subtitle = + 'Models and the workflows built on them, by what you want to make.' + + const hero = () => screen.getByTestId('workshop-hero') + expect(hero()).toHaveTextContent('Hub') + expect(hero()).toHaveTextContent(subtitle) + + await user.click(screen.getByRole('button', { name: 'Workflows' })) + expect(hero()).toHaveTextContent('Hub') + expect(hero()).toHaveTextContent(subtitle) + }) + it('opens the workflow tab from its return link and filters by its own categories', async () => { history.replaceState(null, '', '/models/?type=workflows') const user = userEvent.setup() diff --git a/apps/website/src/components/workshop/ModelsCatalogue.vue b/apps/website/src/components/workshop/ModelsCatalogue.vue index 2005864f481..650e3f0593f 100644 --- a/apps/website/src/components/workshop/ModelsCatalogue.vue +++ b/apps/website/src/components/workshop/ModelsCatalogue.vue @@ -79,16 +79,9 @@ watch(