更新宣发素材输入框默认提示

将宣发素材三类卡片的游戏名提示改为马戏团午夜惊魂

将游戏分类提示改为非对称对抗

将一句话描述提示改为马戏团逃脱题材文案

补充卡片默认提示测试和设计文档说明
This commit is contained in:
Jiajia
2026-06-18 20:09:35 +08:00
parent ed8cff77f1
commit 22f20fc092
3 changed files with 16 additions and 3 deletions
@@ -6,6 +6,8 @@
Prompt 输入摘要与 Prompt 约束只作为内部生成契约维护,不在 UI 中默认暴露;真实生图请求会把结构化游戏输入和对应工作流约束合并为内部 Prompt。
三个工作流的输入框默认提示统一为:游戏名 `马戏团午夜惊魂`,游戏分类 `非对称对抗`,一句话描述游戏 `神奇数字马戏团里,帕姆尼失控了,找到钥匙,开门逃离马戏团,千万别被抓住了`。提示只作为占位文案,用户未填写时不进入生图 Prompt。
## 入口
- 页面:`/editor/canvas`
@@ -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"
@@ -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(