Ai game creator app home sidebar #86

Merged
kdletters merged 48 commits from ai-game-creator-app-home-sidebar into codex/ai-game-creator-app 2026-07-20 15:03:23 +08:00
Member

shotmd-1784186268.jpg
shotmd-1784186877.jpg
shotmd-1784186948-compressed.webp
TODO: 补充说明书链接

![shotmd-1784186268.jpg](/attachments/c828773c-4f1a-4654-b76d-c944b82ec023) ![shotmd-1784186877.jpg](/attachments/f1782ba3-245a-40c1-8caa-cbd7e4cce74b) ![shotmd-1784186948-compressed.webp](/attachments/f3d02ac3-db7a-439b-9a84-7aceefad9048) TODO: 补充说明书链接
k88936 added 20 commits 2026-07-16 15:28:05 +08:00
k88936 added 1 commit 2026-07-16 15:30:48 +08:00
k88936 requested review from kdletters 2026-07-16 15:55:21 +08:00
k88936 added 1 commit 2026-07-16 19:35:02 +08:00
# Conflicts:
#	apps/ai-game-creator-shell/src-tauri/Cargo.lock
#	apps/ai-game-creator-shell/src-tauri/Cargo.toml
#	apps/ai-game-creator-shell/src-tauri/src/main.rs
#	apps/ai-game-creator-shell/src/App.tsx
#	apps/ai-game-creator-shell/tests/appSurface.test.ts
#	docs/technical/【技术方案】AI游戏创作智能体App实施计划-2026-06-24.md
k88936 added 4 commits 2026-07-16 20:20:54 +08:00
Member

高:组件改成目录 index.tsx 后,仍有旧的显式 .tsx 导入,会导致构建 / 类型解析失败。
src/components/image-editor/ImageCanvasTopbarView.tsx:10
src/components/rpg-entry/RpgEntryHomeView.tsx:43
本次 push 删除 / 重命名了 packages/shared/src/components/PlatformMudPointWalletEntry.tsx,新文件是 packages/shared/src/components/PlatformMudPointWalletEntry/index.tsx。但上述两个文件仍导入 @/packages/shared/src/components/PlatformMudPointWalletEntry.tsx。这个路径在 after 提交中已经不存在,涉及这些入口的构建会直接报 module not found。需要同步改为目录导入或补兼容 re-export 文件。
中:泥点详情弹层展示的分项余额与总余额不一致,限时泥点被丢掉。
packages/shared/src/components/PlatformMudPointWalletEntry/index.tsx:234
ProfileMudPointBalance 包含 limitedPoints,测试数据也有 limitedPoints: 80,但弹层只渲染 permanentPoints 和 dailyFreePoints。例如总余额 207,弹层只显示 100 + 27,用户会看到详情与总额对不上。如果限时泥点仍是有效余额,应补一行 “限时泥点” 及到期信息;如果产品明确隐藏,也需要提供解释性文案,否则容易被认为余额异常。

高:组件改成目录 index.tsx 后,仍有旧的显式 .tsx 导入,会导致构建 / 类型解析失败。 src/components/image-editor/ImageCanvasTopbarView.tsx:10 src/components/rpg-entry/RpgEntryHomeView.tsx:43 本次 push 删除 / 重命名了 packages/shared/src/components/PlatformMudPointWalletEntry.tsx,新文件是 packages/shared/src/components/PlatformMudPointWalletEntry/index.tsx。但上述两个文件仍导入 @/packages/shared/src/components/PlatformMudPointWalletEntry.tsx。这个路径在 after 提交中已经不存在,涉及这些入口的构建会直接报 module not found。需要同步改为目录导入或补兼容 re-export 文件。 中:泥点详情弹层展示的分项余额与总余额不一致,限时泥点被丢掉。 packages/shared/src/components/PlatformMudPointWalletEntry/index.tsx:234 ProfileMudPointBalance 包含 limitedPoints,测试数据也有 limitedPoints: 80,但弹层只渲染 permanentPoints 和 dailyFreePoints。例如总余额 207,弹层只显示 100 + 27,用户会看到详情与总额对不上。如果限时泥点仍是有效余额,应补一行 “限时泥点” 及到期信息;如果产品明确隐藏,也需要提供解释性文案,否则容易被认为余额异常。
k88936 added 7 commits 2026-07-17 11:19:53 +08:00
k88936 added 1 commit 2026-07-17 12:51:06 +08:00
Member

[P1] 新增依赖没有进入根安装契约。 子包 package.json:25 新增 Lexical、clipboard、opener,但仓库没有 npm workspaces,根 package.json/package-lock.json 也没有这些依赖。按文档执行根目录 npm install 后,客户端 typecheck 会报模块不存在。

[P1] 新增充值组件测试必败。 index.test.tsx:9 从 ../../index 导入组件,但该入口明确不导出组件,4 个用例全部报 Element type is invalid。应从 ./index 导入。

[P1] ESLint 门禁失败。 改动文件产生 35 个 error、6 个 warning,包括 App.tsx:16 遗留多个未使用图标、若干 import-sort 错误,以及 账单组件:132 违反 Fast Refresh 规则。

[P2] 余额存在异步倒退。 首屏 dashboard 请求 可能在充值成功后晚返回,用旧余额覆盖新值;顶部又优先展示该旧值。若后端省略可选的 mudPointBalance,充值中心返回的 walletBalance 也可能被丢弃,界面继续显示 --。

[P2] 侧栏覆盖主内容 16px。 Grid 只预留 48px,但 侧栏宽度是 64px。浏览器实测侧栏 [0,64]、主内容 [48,375]。

[P3] 帮助按钮不会关闭账户菜单。 “我的”菜单打开后点击“帮助”,关闭提示弹窗后账户菜单仍保留,因为帮助区域被外部点击处理排除,按钮自身也没有调用 closeMenus()。

[P1] 新增依赖没有进入根安装契约。 [子包 package.json:25](https://git.genarrative.world/git/GenarrativeAI/Genarrative/src/commit/50919a789ddb30df6e800868ad4fbd89b0fb4457/apps/ai-game-creator-shell/package.json#L25) 新增 Lexical、clipboard、opener,但仓库没有 npm workspaces,根 package.json/package-lock.json 也没有这些依赖。按文档执行根目录 npm install 后,客户端 typecheck 会报模块不存在。 [P1] 新增充值组件测试必败。 [index.test.tsx:9](https://git.genarrative.world/git/GenarrativeAI/Genarrative/src/commit/50919a789ddb30df6e800868ad4fbd89b0fb4457/packages/shared/src/components/PlatformProfileRechargeModal/index.test.tsx#L9) 从 ../../index 导入组件,但该入口明确不导出组件,4 个用例全部报 Element type is invalid。应从 ./index 导入。 [P1] ESLint 门禁失败。 改动文件产生 35 个 error、6 个 warning,包括 [App.tsx:16](https://git.genarrative.world/git/GenarrativeAI/Genarrative/src/commit/50919a789ddb30df6e800868ad4fbd89b0fb4457/apps/ai-game-creator-shell/src/App.tsx#L16) 遗留多个未使用图标、若干 import-sort 错误,以及 [账单组件:132](https://git.genarrative.world/git/GenarrativeAI/Genarrative/src/commit/50919a789ddb30df6e800868ad4fbd89b0fb4457/packages/shared/src/components/PlatformProfileWalletLedgerModal/index.tsx#L132) 违反 Fast Refresh 规则。 [P2] 余额存在异步倒退。 [首屏 dashboard 请求](https://git.genarrative.world/git/GenarrativeAI/Genarrative/src/commit/50919a789ddb30df6e800868ad4fbd89b0fb4457/apps/ai-game-creator-shell/src/App.tsx#L5837) 可能在充值成功后晚返回,用旧余额覆盖新值;顶部又优先展示该旧值。若后端省略可选的 mudPointBalance,充值中心返回的 walletBalance 也可能被丢弃,界面继续显示 --。 [P2] 侧栏覆盖主内容 16px。 [Grid 只预留 48px](https://git.genarrative.world/git/GenarrativeAI/Genarrative/src/commit/50919a789ddb30df6e800868ad4fbd89b0fb4457/apps/ai-game-creator-shell/src/styles.css#L148),但 [侧栏宽度是 64px](https://git.genarrative.world/git/GenarrativeAI/Genarrative/src/commit/50919a789ddb30df6e800868ad4fbd89b0fb4457/apps/ai-game-creator-shell/src/view/layout.tsx#L260)。浏览器实测侧栏 [0,64]、主内容 [48,375]。 [P3] 帮助按钮不会关闭账户菜单。 “我的”菜单打开后点击“帮助”,关闭提示弹窗后账户菜单仍保留,因为帮助区域被外部点击处理排除,按钮自身也没有调用 closeMenus()。
k88936 added 7 commits 2026-07-17 14:13:03 +08:00
k88936 added 3 commits 2026-07-17 17:13:26 +08:00
k88936 added 1 commit 2026-07-17 17:23:14 +08:00
k88936 added 2 commits 2026-07-20 10:27:49 +08:00
k88936 added 1 commit 2026-07-20 10:29:04 +08:00
kdletters merged commit 125927e0e8 into codex/ai-game-creator-app 2026-07-20 15:03:23 +08:00
kdletters deleted branch ai-game-creator-app-home-sidebar 2026-07-20 15:03:23 +08:00
Sign in to join this conversation.