feat: unify phase one creation flow

This commit is contained in:
2026-05-30 05:05:02 +08:00
parent 3a87b2d966
commit 26975644b5
33 changed files with 2037 additions and 539 deletions

18
quality-gates/README.md Normal file
View File

@@ -0,0 +1,18 @@
# 提交前质量门禁
本目录记录一期创作流程统一化提交前必须执行的检查。门禁既可以是自动脚本,也可以是需要人工确认的体验流程。
## 一期必跑
- [【玩法创作】统一创作页门禁-2026-05-29.md](./【玩法创作】统一创作页门禁-2026-05-29.md)
- [【玩法创作】统一生成页门禁-2026-05-29.md](./【玩法创作】统一生成页门禁-2026-05-29.md)
- [【开发运维】dev-stack状态文件门禁-2026-05-29.md](./【开发运维】dev-stack状态文件门禁-2026-05-29.md)
## 基线脚本
```bash
npm run check:encoding
npm run test -- src/components/unified-creation/unifiedCreationSpecs.test.ts src/components/unified-creation/UnifiedGenerationPage.test.tsx
npm run test -- scripts/dev.test.ts
node --check scripts/dev.mjs
```

View File

@@ -0,0 +1,16 @@
# dev-stack 状态文件门禁
## 自动检查
```bash
node --check scripts/dev.mjs
npm run test -- scripts/dev.test.ts
```
## 体验检查
- `npm run dev` 启动后根目录生成 `.app/dev-stack.json`
- `npm run dev:web``npm run dev:api-server``npm run dev:spacetime``npm run dev:admin-web` 单独启动时会更新对应服务状态。
- 文件包含 `schemaVersion``command``repoRoot``database``updatedAt` 和四个服务条目。
- 每个服务条目包含 `status``pid``host``port``url``command``updatedAt`
- 端口漂移后文件记录实际端口;服务退出或重启后 PID 与状态会更新。

View File

@@ -0,0 +1,16 @@
# 统一创作页门禁
## 自动检查
```bash
npm run test -- src/components/unified-creation/unifiedCreationSpecs.test.ts
npm run test -- src/components/wooden-fish-creation/WoodenFishWorkspace.test.tsx
```
## 体验检查
- 拼图、抓大鹅、敲木鱼均从 `/creation/<playId>` 进入创作工作台。
- 三条链路都经过 `UnifiedCreationPage`,字段 spec 只包含 `text``select``image``audio` 四类。
- 拼图参考图仍走 `CreativeImageInputPanel`,不新增专属上传入口。
- 敲木鱼音频槽位走 `CreativeAudioInputPanel`,上传、录音、重置和默认音效状态可用。
- 抓大鹅难度只显示轻松、标准、进阶、硬核四档,提交 payload 仍派生 `clearCount``difficulty`

View File

@@ -0,0 +1,16 @@
# 统一生成页门禁
## 自动检查
```bash
npm run test -- src/components/unified-creation/UnifiedGenerationPage.test.tsx
npm run test -- src/services/miniGameDraftGenerationProgress.test.ts
```
## 体验检查
- `/creation/puzzle/generating``/creation/match3d/generating``/creation/wooden-fish/generating` 均渲染 `UnifiedGenerationPage`
- 生成页展示后端阶段、当前步骤、总进度、错误和重试动作。
- 等待时间以生成状态里的 `startedAtMs` 为准;创建该状态时优先使用后端 session 时间戳。
- 失败后生成页保持可见错误和重试入口,作品架恢复时不得只依赖前端内存 notice。
- 不为一期新增客户端直连 SpacetimeDB 状态通道。