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(