Game creator extract home view #80
Reference in New Issue
Block a user
Delete Branch "game-creator-extract-home-view"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
抽取homeview方便后续修改
审查结论
暂不建议合并,有 1 个阻断项和 4 个明确回归。
[P1] 必跑测试已撞红。 文件 input 删除了
.launcher-file-input,现有测试因此获取到null。实跑appSurface.test.ts:231 passed / 1 failed,错误为Unable to fire a "change" event。index.tsx[P2] 创建成功后没有清空首页草稿。 返回首页后,上一个项目的 prompt 和附件
File仍在,可能被再次导入新项目。基线原本会成功后清空。App.tsx[P2] 首页状态拆分后反馈丢失。
HomeView展示自己的homeStatus,父组件仍更新另一份status。非空目录弹窗点取消后,首页仍显示旧提示;确认后创建失败还会产生未处理 Promise,错误不会回显。index.tsx[P2] 移动断点从
760px漂成了720px。 在721–760px区间,外壳已进入移动布局,首页却仍显示 5 列项目和 6 列灵感。740px浏览器实测已明显挤压。index.tsx仓库规范符合度
目标分支和 merge-base 正确,无冲突。类型检查、AGC Vite 生产构建、编码检查和
git diff --check通过。但 PR 没有更新任何测试或对应方案文档,两个提交标题也都是英文,不符合仓库提交规范。::code-comment{title="[P1] 首页上传测试失效" body="文件 input 删除了现有测试依赖的 .launcher-file-input,且没有提供稳定的可访问名称,导致必跑 appSurface 套件 232 项中 1 项失败。请恢复契约,或补 aria-label 并同步测试。" file="/tmp/genarrative-pr80-review/apps/ai-game-creator-shell/src/view/home/index.tsx" start=217 end=220 priority=1}
::code-comment{title="[P2] 成功后未清空草稿" body="成功进入项目开发后直接返回,没有重置全局首页 store。返回首页会恢复上一个项目的文字和 File 附件,可能误提交到下一项目。" file="/tmp/genarrative-pr80-review/apps/ai-game-creator-shell/src/App.tsx" start=2424 end=2437 priority=2}
::code-comment{title="[P2] 首页状态源发生分叉" body="HomeView 改为展示局部 homeStatus,但非空目录取消、确认失败和最近项目打开失败仍只更新父层 status。请统一状态源,并捕获继续新建路径抛出的异常。" file="/tmp/genarrative-pr80-review/apps/ai-game-creator-shell/src/view/home/index.tsx" start=83 end=86 priority=2}
::code-comment{title="[P2] 响应式断点不一致" body="首页在 720px 才切单列,外层壳仍在 760px 切换。740px 实测项目卡仍为五列并严重挤压,应继续与壳层使用同一断点。" file="/tmp/genarrative-pr80-review/apps/ai-game-creator-shell/src/view/home/index.tsx" start=267 end=267 priority=2}
::code-comment{title="[P2] Preflight 影响非首页控件" body="全局引入 Tailwind Preflight 会清除未显式样式化按钮的默认边框、背景和 padding,影响项目组、Agent 聊天和项目开发页面。请限制影响范围或补齐这些控件样式。" file="/tmp/genarrative-pr80-review/apps/ai-game-creator-shell/src/styles.css" start=1 end=1 priority=2}
fixed 1 2 3 4
5 后来打算复用样式表的时候再调整

