重构AGC资源画布菜单与卡片入口 #410

Merged
suzmii merged 4 commits from refactor/agc-resource-menu into master 2026-09-17 20:56:44 +08:00
Member

关联需求

Closes #409

产品确认

采用「常用直达 + 更多」,不采用分类收纳方案 B。

前后对照

修改前 修改后
资源操作横向全部平铺,菜单较长 按现有顺序直显前 5 项,其余收入「更多」
类型和信息占用工具栏位置 下沉资源卡右上角:类型标签 + 信息圆钮
需先选中资源再查看信息或类型 可直接从未选中卡片打开信息和类型面板

落地方案

  • 共享 OverflowActions 实现悬停/点击展开、键盘导航、外部/Escape 关闭;优先向上展开,顶边空间不足时避让,长列表内部滚动。
  • AGC 启用 5 项上限,Web 选中工具栏默认不折叠;原动作顺序、禁用状态、权限和资源命令不变。
  • Web 与 AGC 共用 CanvasCardCornerActions;卡片入口阻断拖拽/选择误触,信息状态绑定资源身份。
  • portal 浮层沿用现有关闭与滚轮归属,换选时收起旧菜单。
  • 同步当前技术规范和共享约定,保留待真实客户端验收的实施计划。
  • A/B 演示页面、日志和本地依赖均在忽略目录,不包含在本 PR。

验证结果

  • 完整 appSurface:450 项通过、20 项跳过。
  • 8 组定向测试:178 项通过,覆盖共享菜单/Web 卡片、类型修改、重命名、替换/删除确认、动作可用性与浮层判据。
  • 追加工作台边界测试:2 项通过,覆盖更多浮层滚轮、Escape、换选及跨卡片信息身份。
  • 根目录 typecheck、AGC typecheck(含 skill-pack/config)通过。
  • check:encoding、check:doc-index、git diff --check 通过。
  • 浏览器真实组件预览已确认上方展开、动作执行后关闭、卡片信息入口;使用演示数据而非真实资源命令。

风险与未验证项

  • 尚未进行真实 AGC 客户端、原生保存对话框和触摸板手感验收。
  • 测试有 React key/act 及 jsdom 媒体能力告警;未把这些告警称为已消除。
  • 不修改后端、schema、资源操作业务规则;未部署、未更新飞书。
  • 上述为本地验证结果,远程 CI 状态需另行确认。
## 关联需求 Closes #409 ## 产品确认 采用「常用直达 + 更多」,不采用分类收纳方案 B。 ## 前后对照 | 修改前 | 修改后 | | --- | --- | | 资源操作横向全部平铺,菜单较长 | 按现有顺序直显前 5 项,其余收入「更多」 | | 类型和信息占用工具栏位置 | 下沉资源卡右上角:类型标签 + 信息圆钮 | | 需先选中资源再查看信息或类型 | 可直接从未选中卡片打开信息和类型面板 | ## 落地方案 - 共享 OverflowActions 实现悬停/点击展开、键盘导航、外部/Escape 关闭;优先向上展开,顶边空间不足时避让,长列表内部滚动。 - AGC 启用 5 项上限,Web 选中工具栏默认不折叠;原动作顺序、禁用状态、权限和资源命令不变。 - Web 与 AGC 共用 CanvasCardCornerActions;卡片入口阻断拖拽/选择误触,信息状态绑定资源身份。 - portal 浮层沿用现有关闭与滚轮归属,换选时收起旧菜单。 - 同步当前技术规范和共享约定,保留待真实客户端验收的实施计划。 - A/B 演示页面、日志和本地依赖均在忽略目录,不包含在本 PR。 ## 验证结果 - 完整 appSurface:450 项通过、20 项跳过。 - 8 组定向测试:178 项通过,覆盖共享菜单/Web 卡片、类型修改、重命名、替换/删除确认、动作可用性与浮层判据。 - 追加工作台边界测试:2 项通过,覆盖更多浮层滚轮、Escape、换选及跨卡片信息身份。 - 根目录 typecheck、AGC typecheck(含 skill-pack/config)通过。 - check:encoding、check:doc-index、git diff --check 通过。 - 浏览器真实组件预览已确认上方展开、动作执行后关闭、卡片信息入口;使用演示数据而非真实资源命令。 ## 风险与未验证项 - 尚未进行真实 AGC 客户端、原生保存对话框和触摸板手感验收。 - 测试有 React key/act 及 jsdom 媒体能力告警;未把这些告警称为已消除。 - 不修改后端、schema、资源操作业务规则;未部署、未更新飞书。 - 上述为本地验证结果,远程 CI 状态需另行确认。
suzmii added 1 commit 2026-09-17 18:52:42 +08:00
重构AGC资源画布菜单与卡片入口(#409)
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 / 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 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
7edc452c6a
主菜单保留前五项,其余操作通过向上展开的更多菜单访问
类型与信息入口下沉资源卡片,并复用共享画布角标
补充菜单键盘、滚轮归属、换选及资源操作链路回归
同步方案A规范与待人工验收记录
suzmii changed title from 重构AGC资源画布菜单与卡片入口(方案A) to 重构AGC资源画布菜单与卡片入口 2026-09-17 19:00:02 +08:00
suzmii added 1 commit 2026-09-17 19:30:03 +08:00
Merge branch 'master' into refactor/agc-resource-menu
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Successful in 5m43s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Failing after 5m58s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Successful in 5m29s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Failing after 4m40s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m19s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m43s
Project CI / Native shell tests (pull_request) Failing after 2m15s
Project CI / Repository checks (pull_request) Failing after 1m55s
Project CI / Frontend tests (pull_request) Failing after 3m30s
Project CI / AI game creator shell web tests (pull_request) Failing after 4m34s
Project CI / Backend tests (pull_request) Successful in 8m43s
959beebf63
suzmii added 1 commit 2026-09-17 20:22:41 +08:00
修复资源画布PR的CI回归(#410)
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 / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend 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 2/4 (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 1/4 (pull_request) Has been cancelled
c329c438d9
修复活动回合空快照引用及停用后晚到请求覆盖问题
对齐共享卡片角标与窗口发布次数回归断言
同步原生HTTP权限检查与图集显式切片测试契约
整理菜单组件导入顺序并记录本地验证范围
suzmii added 1 commit 2026-09-17 20:45:23 +08:00
Merge branch 'master' into refactor/agc-resource-menu
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Successful in 7m11s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Successful in 7m17s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Successful in 7m24s
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Successful in 7m32s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m20s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 3m51s
Project CI / Native shell tests (pull_request) Failing after 9m7s
Project CI / Backend tests (pull_request) Successful in 11m14s
Project CI / Repository checks (pull_request) Successful in 7m42s
Project CI / AI game creator shell web tests (pull_request) Failing after 2m37s
Project CI / Frontend tests (pull_request) Successful in 11m53s
e6849d2a45
suzmii merged commit c16e32cc89 into master 2026-09-17 20:56:44 +08:00
suzmii deleted branch refactor/agc-resource-menu 2026-09-17 20:56:44 +08:00
Sign in to join this conversation.