From 22f20fc09286e25f4ae549bd677fb9cf7cdb04c1 Mon Sep 17 00:00:00 2001 From: Jiajia Date: Thu, 18 Jun 2026 20:09:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A3=E5=8F=91=E7=B4=A0?= =?UTF-8?q?=E6=9D=90=E8=BE=93=E5=85=A5=E6=A1=86=E9=BB=98=E8=AE=A4=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将宣发素材三类卡片的游戏名提示改为马戏团午夜惊魂 将游戏分类提示改为非对称对抗 将一句话描述提示改为马戏团逃脱题材文案 补充卡片默认提示测试和设计文档说明 --- docs/【编辑器】宣发素材工具演示入口设计-2026-06-17.md | 2 ++ .../ImageCanvasPublicationMaterialsDemoPanelView.tsx | 6 +++--- .../useImageCanvasGenerationSurface.test.tsx | 11 +++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/【编辑器】宣发素材工具演示入口设计-2026-06-17.md b/docs/【编辑器】宣发素材工具演示入口设计-2026-06-17.md index 43cde8439..3b9088964 100644 --- a/docs/【编辑器】宣发素材工具演示入口设计-2026-06-17.md +++ b/docs/【编辑器】宣发素材工具演示入口设计-2026-06-17.md @@ -6,6 +6,8 @@ Prompt 输入摘要与 Prompt 约束只作为内部生成契约维护,不在 UI 中默认暴露;真实生图请求会把结构化游戏输入和对应工作流约束合并为内部 Prompt。 +三个工作流的输入框默认提示统一为:游戏名 `马戏团午夜惊魂`,游戏分类 `非对称对抗`,一句话描述游戏 `神奇数字马戏团里,帕姆尼失控了,找到钥匙,开门逃离马戏团,千万别被抓住了`。提示只作为占位文案,用户未填写时不进入生图 Prompt。 + ## 入口 - 页面:`/editor/canvas` diff --git a/src/components/image-editor/ImageCanvasPublicationMaterialsDemoPanelView.tsx b/src/components/image-editor/ImageCanvasPublicationMaterialsDemoPanelView.tsx index 750d0fe31..37b1970f4 100644 --- a/src/components/image-editor/ImageCanvasPublicationMaterialsDemoPanelView.tsx +++ b/src/components/image-editor/ImageCanvasPublicationMaterialsDemoPanelView.tsx @@ -142,7 +142,7 @@ export function ImageCanvasPublicationMaterialsDemoPanelView({ aria-label={`${workflow.label}游戏名`} value={publicationGameInfo.gameName} disabled={dialog.status === 'generating'} - placeholder="重庆洪崖洞火锅" + placeholder="马戏团午夜惊魂" size="sm" density="compact" className="image-canvas-editor__publication-input" @@ -168,7 +168,7 @@ export function ImageCanvasPublicationMaterialsDemoPanelView({ aria-label={`${workflow.label}游戏分类`} value={publicationGameInfo.gameCategories} disabled={dialog.status === 'generating'} - placeholder="抓大鹅、休闲、治愈、手绘风" + placeholder="非对称对抗" size="sm" density="compact" className="image-canvas-editor__publication-input" @@ -195,7 +195,7 @@ export function ImageCanvasPublicationMaterialsDemoPanelView({ aria-label={`${workflow.label}一句话描述游戏`} value={publicationGameInfo.gameDescription} disabled={dialog.status === 'generating'} - placeholder="在一堆物品里点击,找到三个一样的物品将其消除" + placeholder="神奇数字马戏团里,帕姆尼失控了,找到钥匙,开门逃离马戏团,千万别被抓住了" size="sm" density="compact" className="image-canvas-editor__publication-description" diff --git a/src/components/image-editor/useImageCanvasGenerationSurface.test.tsx b/src/components/image-editor/useImageCanvasGenerationSurface.test.tsx index 8f46176f5..0c1e0f472 100644 --- a/src/components/image-editor/useImageCanvasGenerationSurface.test.tsx +++ b/src/components/image-editor/useImageCanvasGenerationSurface.test.tsx @@ -207,6 +207,17 @@ describe('useImageCanvasGenerationSurface', () => { expect(gameNameInput).toBeTruthy(); expect(screen.getByLabelText('游戏首图游戏分类')).toBeTruthy(); expect(screen.getByLabelText('游戏首图一句话描述游戏')).toBeTruthy(); + expect(gameNameInput.getAttribute('placeholder')).toBe('马戏团午夜惊魂'); + expect( + screen.getByLabelText('游戏首图游戏分类').getAttribute('placeholder'), + ).toBe('非对称对抗'); + expect( + screen + .getByLabelText('游戏首图一句话描述游戏') + .getAttribute('placeholder'), + ).toBe( + '神奇数字马戏团里,帕姆尼失控了,找到钥匙,开门逃离马戏团,千万别被抓住了', + ); fireEvent.change(gameNameInput, { target: { value: '重庆洪崖洞火锅' } }); expect(screen.getByRole('button', { name: '添加参考图' })).toBeTruthy(); expect(