补齐画布验收待办:review 修复与生图浮层美化的进展记录
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
- 记下在途拦截补齐生成动画、样式守卫扩到三面板、窄屏差异显式放行、生图浮层紧凑化与基类 token - 更正「appSurface 16 条既有失败」的口径:那是从 apps 目录跑造成的 cwd 假红,仓库根跑为 0 失败
This commit is contained in:
@@ -40,6 +40,15 @@
|
||||
- 生图弹窗那个是 `<label>` 转发点击:`<label>` 会把点击交给内部第一个可标注控件,而这一格里第一个正是引用输入区的「插入素材引用」按钮。输入区改为 `<div>` 包裹(可访问名仍由控件自身 `aria-label` 提供),并补一条「点输入区不该自己弹出选择框、只有 @ 按钮才开」的用例——先用旧代码复现出红灯再修。
|
||||
- 本机执行过:定向 `projectResourceLiveIntegration` 32 条、`resourceCanvasQuickEditDraft` 10 条、`resourceCanvasFloatingDismiss` 18 条、样式守卫 3 条、`resourceCanvasAssetGenerationReferences` 10 条(含新增复现用例)等全绿;网页端 `ImageCanvasEditorGenerationIntegration` 44 条 + 面板 6 条全绿;`typecheck`、`check:encoding`、`git diff --check`、prettier、eslint 通过;`tests/appSurface.test.ts` 与基线逐条一致(16 失败均为本分支既有)。远程 CI 与真实客户端观感仍需复看。
|
||||
|
||||
### 2026-09-21 复核收口(review 修复 + 生图浮层美化)
|
||||
|
||||
- 在途拦截补齐**生成动画**:提交记录里「这笔属于哪张资源」从 `draftKey` 拆成 `resourcePath`,快速编辑与生成动画共用同一条 `…BlocksResource` 判据。此前动画这条键对不上拦不住——重开面板再提交会复用同一 `operationId` 卡在原生 per-operation 锁上,或(改了提示词)直接多出一笔付费生成。
|
||||
- 样式缺口守卫**扩到三块面板**(动画面板 / 快速编辑面板 / 生图面板),判据改为按「选择器分支 + 声明」逐条比对:只比类名会漏同名覆盖,只比整串选择器会逼宿主连不相干的兄弟支一起搬。实测把快速编辑面板的两条缺口一并照抄补上(其中两条按宿主差异显式登记:窄屏底栏与 `overflow: auto`)。
|
||||
- 网页端 `@media (max-width: 760px)` 只搬**动画面板**那一支:AGC 的快速编辑浮层是「居中贴资源卡」的绝对定位,跟随网页端改成整宽底栏会压住栏目工具栏与左侧「生成任务」侧栏。
|
||||
- **生图浮层紧凑化**(验收现场那条滚动条):字段行改两列、比例与尺寸并排、提示词 6 行降到 3 行、润色 / 参考计数 / 两个动作收进同一行——面板高度回落到几何上界以内,滚动条物理上不再出现(`overflow` 只作极端窗口兜底)。相关卡片外形收敛到 `.game-project-workbench` 上的 `--game-canvas-card-*` 基类 token(取值照抄网页端画布面板),占位卡与生成浮层/弹窗共用一套圆角 / 描边 / 底色 / 投影。
|
||||
- **口径更正**:此前记的「`appSurface` 16 条既有失败」是**从 `apps/ai-game-creator-shell` 目录跑**造成的 cwd 假红(`resolve(process.cwd(), 'apps/…')` 路径翻倍 → ENOENT),不是用例本身红。规范跑法是仓库根 `npm test`;本次新增 `apps/ai-game-creator-shell/tests/repoPath.ts`(按 `import.meta.url` 反推仓库根)并把 19 个用例文件改成用它,另修掉 `HOST_STYLE_SHEETS.filter(existsSync)` 把仓库相对路径交给 cwd 解析的同类假红。改完从仓库根跑 `appSurface`:**538 通过 / 17 跳过 / 0 失败**。
|
||||
- 本机执行过(均在合并 master 之后):`typecheck`、`check:encoding`、`git diff --check`、prettier、eslint 通过;AGC 定向 `projectResourceLiveIntegration` 32 + `resourceCanvasQuickEditDraft` 10 + `resourceCanvasFloatingDismiss` 18 + 样式守卫 5 + `resourceCanvasAssetGenerationReferences` 11 + 派生任务模型 9 等全绿;网页端 50 条全绿;`appSurface` 从仓库根 0 失败。真实客户端观感与远程 CI 仍需复看(CI 目前按用户要求不追)。
|
||||
|
||||
## 后续需求
|
||||
|
||||
- 资源卡顶部独立名称区与全类型统一样式,确认 assetName/用户素材名的正式来源。
|
||||
|
||||
Reference in New Issue
Block a user