From 69e2da558210de755c69589c8ba5b917b3f8c161 Mon Sep 17 00:00:00 2001 From: Mariana Martinho Date: Tue, 1 Sep 2026 23:05:11 +0000 Subject: [PATCH 001/224] feat(website): add Workshop nav entry, header sign-in mock and /workshop catalog Coded wireframes for the Comfy Workshop milestone 1: - WORKSHOP top-level nav item (desktop + mobile) with NEW badge - Header account control with a mock session: Sign in button, signed-in avatar + credits + workspace dropdown, zero-balance state, sign out - /workshop with Models | Workflows tabs; models grid reads partner-node models from generated-models.json with search and modality filters - /workshop/workflows placeholder for milestone 2 - Display metadata Router does not serve yet lives in workshop-model-display.json (placeholder values) Pages are noindex and locale-invariant while the prototype settles. --- apps/website/e2e/navigation.spec.ts | 21 ++- .../common/HeaderMain/HeaderAccount.vue | 158 ++++++++++++++++++ .../common/HeaderMain/HeaderMain.vue | 7 +- .../components/workshop/WorkshopHero.astro | 24 +++ .../components/workshop/WorkshopModelCard.vue | 99 +++++++++++ .../workshop/WorkshopModelsGrid.vue | 146 ++++++++++++++++ .../components/workshop/WorkshopTabs.astro | 48 ++++++ .../WorkshopWorkflowsPlaceholder.astro | 35 ++++ .../src/composables/useMockSession.test.ts | 32 ++++ .../website/src/composables/useMockSession.ts | 106 ++++++++++++ apps/website/src/config/routes.ts | 10 +- .../src/config/workshop-model-display.json | 152 +++++++++++++++++ apps/website/src/config/workshop.test.ts | 85 ++++++++++ apps/website/src/config/workshop.ts | 92 ++++++++++ apps/website/src/data/mainNavigation.ts | 1 + apps/website/src/i18n/translations.ts | 96 +++++++++++ apps/website/src/pages/workshop/index.astro | 20 +++ .../src/pages/workshop/workflows.astro | 19 +++ 18 files changed, 1145 insertions(+), 6 deletions(-) create mode 100644 apps/website/src/components/common/HeaderMain/HeaderAccount.vue create mode 100644 apps/website/src/components/workshop/WorkshopHero.astro create mode 100644 apps/website/src/components/workshop/WorkshopModelCard.vue create mode 100644 apps/website/src/components/workshop/WorkshopModelsGrid.vue create mode 100644 apps/website/src/components/workshop/WorkshopTabs.astro create mode 100644 apps/website/src/components/workshop/WorkshopWorkflowsPlaceholder.astro create mode 100644 apps/website/src/composables/useMockSession.test.ts create mode 100644 apps/website/src/composables/useMockSession.ts create mode 100644 apps/website/src/config/workshop-model-display.json create mode 100644 apps/website/src/config/workshop.test.ts create mode 100644 apps/website/src/config/workshop.ts create mode 100644 apps/website/src/pages/workshop/index.astro create mode 100644 apps/website/src/pages/workshop/workflows.astro diff --git a/apps/website/e2e/navigation.spec.ts b/apps/website/e2e/navigation.spec.ts index ce0a3ed0823..2f784fb2812 100644 --- a/apps/website/e2e/navigation.spec.ts +++ b/apps/website/e2e/navigation.spec.ts @@ -8,6 +8,7 @@ const minimaxRoute = '/minimax-h3' const minimaxRouteZh = '/zh-CN/minimax-h3' const TOP_LEVEL_LABELS = [ + 'Workshop', 'Products', 'Pricing', 'Community', @@ -36,10 +37,17 @@ test.describe('Desktop navigation @smoke', () => { } }) - test('NEW badge shows on Products and Community only', async ({ page }) => { + test('NEW badge shows on Workshop, Products and Community only', async ({ + page + }) => { const nav = page.getByRole('navigation', { name: 'Main navigation' }) const desktopLinks = nav.getByTestId('desktop-nav-links') + await expect( + desktopLinks + .getByRole('link', { name: 'Workshop' }) + .getByText('NEW', { exact: true }) + ).toBeVisible() for (const label of ['Products', 'Community']) { await expect( desktopLinks @@ -137,16 +145,23 @@ test.describe('Mobile menu @mobile', () => { const menu = page.getByRole('dialog') await expect(menu).toBeVisible() - for (const label of ['Products', 'Pricing', 'Community']) { + for (const label of ['Workshop', 'Products', 'Pricing', 'Community']) { await expect(menu.getByText(label, { exact: true }).first()).toBeVisible() } }) - test('NEW badge shows on Products and Community only', async ({ page }) => { + test('NEW badge shows on Workshop, Products and Community only', async ({ + page + }) => { await page.getByRole('button', { name: 'Toggle menu' }).click() const menu = page.getByRole('dialog') + await expect( + menu.getByRole('link', { name: 'Workshop' }).getByText('NEW', { + exact: true + }) + ).toBeVisible() for (const label of ['Products', 'Community']) { await expect( menu.getByRole('button', { name: label }).getByText('NEW', { diff --git a/apps/website/src/components/common/HeaderMain/HeaderAccount.vue b/apps/website/src/components/common/HeaderMain/HeaderAccount.vue new file mode 100644 index 00000000000..4fca5179d05 --- /dev/null +++ b/apps/website/src/components/common/HeaderMain/HeaderAccount.vue @@ -0,0 +1,158 @@ + + + diff --git a/apps/website/src/components/common/HeaderMain/HeaderMain.vue b/apps/website/src/components/common/HeaderMain/HeaderMain.vue index 2376485f6f2..4380427261d 100644 --- a/apps/website/src/components/common/HeaderMain/HeaderMain.vue +++ b/apps/website/src/components/common/HeaderMain/HeaderMain.vue @@ -3,6 +3,7 @@ import type { Locale } from '../../../i18n/translations.ts' import { t } from '../../../i18n/translations.ts' import { externalLinks, getRoutes } from '../../../config/routes.ts' import GitHubStarBadge from '../GitHubStarBadge.vue' +import HeaderAccount from './HeaderAccount.vue' import HeaderMainDesktop from './HeaderMainDesktop.vue' import HeaderMainMobile from './HeaderMainMobile.vue' import Button from '@/components/ui/button/Button.vue' @@ -59,7 +60,10 @@ const ctaButtons = [