From a00830e5244fff5241fcb528445c6e22fb1817ac Mon Sep 17 00:00:00 2001 From: Mariana Martinho Date: Tue, 29 Sep 2026 09:25:13 +0000 Subject: [PATCH 1/7] fix(website): Re-shoot's aim badges fit a phone and the header reads ready --- apps/website/e2e/workshop-apps.spec.ts | 15 +++++++++++++++ .../cinematic-studio/reshoot/ReshootHeader.vue | 6 +++--- .../cinematic-studio/reshoot/ReshootViewport.vue | 13 +++++++++---- .../lib/workshop/cinematic-studio/reshoot-copy.ts | 9 +++++---- 4 files changed, 32 insertions(+), 11 deletions(-) diff --git a/apps/website/e2e/workshop-apps.spec.ts b/apps/website/e2e/workshop-apps.spec.ts index 73be193df75..db6ecadd904 100644 --- a/apps/website/e2e/workshop-apps.spec.ts +++ b/apps/website/e2e/workshop-apps.spec.ts @@ -73,3 +73,18 @@ test('sends the old studio address to the app page it named', async ({ await page.goto('/cinematic-studio/?app=reshoot&ux=d&model=flux') await expect(page).toHaveURL(/\/models\/apps\/reshoot\/\?ux=d&model=flux$/) }) + +test('@mobile keeps the Re-shoot aim badges to one line on a phone', async ({ + page, + context +}) => { + await mockFlags(context, { apps: true, workflows: false }) + await page.goto('/models/apps/reshoot/') + await page.getByText('Sci-fi pilot').first().click() + + const viewport = page.getByTestId('reshoot-viewport').first() + await expect( + viewport.getByText('Drag to orbit', { exact: true }) + ).toBeVisible() + await expect(viewport.getByText(/Scroll to move closer/)).toBeHidden() +}) diff --git a/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootHeader.vue b/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootHeader.vue index c2995334421..0f42f97e328 100644 --- a/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootHeader.vue +++ b/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootHeader.vue @@ -15,9 +15,9 @@ const { locale = 'en' } = defineProps<{ locale?: Locale }>()

{{ rc('reshoot.pick.lead', locale) }}

-

- {{ rc('reshoot.credit', locale) }} · - {{ rc('reshoot.demoNote', locale) }} +

+ {{ rc('reshoot.credit', locale) }} + {{ rc('reshoot.demoNote', locale) }}

diff --git a/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootViewport.vue b/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootViewport.vue index c029c99916c..722c242102d 100644 --- a/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootViewport.vue +++ b/apps/website/src/components/workshop/cinematic-studio/reshoot/ReshootViewport.vue @@ -126,13 +126,18 @@ function zoom(event: WheelEvent) { class="absolute inset-x-4 bottom-4 flex items-center justify-between gap-3 text-xs text-primary-warm-white" > - {{ camera.azimuth }}° · {{ camera.elevation }}° diff --git a/apps/website/src/lib/workshop/cinematic-studio/reshoot-copy.ts b/apps/website/src/lib/workshop/cinematic-studio/reshoot-copy.ts index 7670429244d..695f9971806 100644 --- a/apps/website/src/lib/workshop/cinematic-studio/reshoot-copy.ts +++ b/apps/website/src/lib/workshop/cinematic-studio/reshoot-copy.ts @@ -120,8 +120,8 @@ const copy = { 'zh-CN': '闲置一段时间后的首次运行还需要加载模型。' }, 'reshoot.take.exampleHelp': { - en: 'Example result: the clip re-shot from a new angle at 768p. Aim a camera of your own on the left.', - 'zh-CN': '示例结果:该片段以 768p 从新角度重拍。在左侧设置你自己的机位。' + en: 'Example result: the clip re-shot from a new angle at 768p. Aim a camera of your own to try it.', + 'zh-CN': '示例结果:该片段以 768p 从新角度重拍。设置你自己的机位试试。' }, 'reshoot.frames': { en: '{frames} frames at 24 fps ({seconds} s)', @@ -191,6 +191,7 @@ const copy = { en: 'Drag to orbit · Scroll to move closer', 'zh-CN': '拖动以环绕 · 滚动以靠近' }, + 'reshoot.dragHint.touch': { en: 'Drag to orbit', 'zh-CN': '拖动以环绕' }, 'reshoot.needsDepth': { en: 'Analyze depth to aim a new camera.', 'zh-CN': '分析深度后即可设置新机位。' @@ -245,8 +246,8 @@ const copy = { 'reshoot.take.cancelled': { en: 'Cancelled', 'zh-CN': '已取消' }, 'reshoot.download': { en: 'Download', 'zh-CN': '下载' }, 'reshoot.demoNote': { - en: 'Design prototype: no jobs run. Takes show the example result.', - 'zh-CN': '设计原型:不会运行任务,镜头显示示例结果。' + en: 'Preview: takes play the example result for now.', + 'zh-CN': '预览版:目前镜头播放示例结果。' } } as const satisfies Record From 39544f7d9da36a41f77c04cfcdceacbcd2f307f7 Mon Sep 17 00:00:00 2001 From: Mariana Martinho Date: Tue, 29 Sep 2026 09:36:43 +0000 Subject: [PATCH 2/7] fix(website): a workflow's example output leaves no gap under it on a phone --- apps/website/e2e/workshop-api-actions.spec.ts | 13 +++++++++++++ .../src/components/workshop/PlaygroundOutput.vue | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/apps/website/e2e/workshop-api-actions.spec.ts b/apps/website/e2e/workshop-api-actions.spec.ts index de1efbdf88e..650e4d00e36 100644 --- a/apps/website/e2e/workshop-api-actions.spec.ts +++ b/apps/website/e2e/workshop-api-actions.spec.ts @@ -75,3 +75,16 @@ test('the workflow API tab opens with the key action and what it needs beside th expect(action.y).toBeLessThanOrEqual(code.y) expect(action.x).toBeGreaterThanOrEqual(code.x + code.width) }) + +test('@mobile the workflow example output is as tall as its 16:9 media', async ({ + page, + context +}) => { + await allowWorkflows(context) + await page.goto(WORKFLOW_PATH) + + const output = page.getByTestId('playground-output') + await expect(output).toHaveAttribute('data-state', 'example') + const media = await frame(output.getByTestId('output-media')) + expect(media.height).toBeCloseTo((media.width * 9) / 16, 0) +}) diff --git a/apps/website/src/components/workshop/PlaygroundOutput.vue b/apps/website/src/components/workshop/PlaygroundOutput.vue index 54f7d170479..e53624213e4 100644 --- a/apps/website/src/components/workshop/PlaygroundOutput.vue +++ b/apps/website/src/components/workshop/PlaygroundOutput.vue @@ -290,7 +290,12 @@ const earlierClass = (active: boolean) =>