WIP: 补充 AGC 动效层与交互反馈系统主规范及首个里程碑文档 #576
Draft
suzmii
wants to merge 2 commits from
feat/agc-ui-motion-ux into master
pull from: feat/agc-ui-motion-ux
merge into: GenarrativeAI:master
GenarrativeAI:master
GenarrativeAI:fix/vite-watch-ignore
GenarrativeAI:chore/rust-compile-warnings
GenarrativeAI:style/polish-taonier-publish
GenarrativeAI:feat/gptimage2to2.5
GenarrativeAI:feat/tribo3d-integeration
GenarrativeAI:feat/thread-manager-fork
GenarrativeAI:codex/agc-harness-cloud-config
GenarrativeAI:codex/agc-error-convergence-20261004
GenarrativeAI:chore/agc-warnings-misc
GenarrativeAI:chore/agc-warnings-session
GenarrativeAI:chore/agc-warnings-agent
GenarrativeAI:chore/agc-compile-warnings
GenarrativeAI:feat/tn-ads-sdk
GenarrativeAI:feat/ui-editor-model-override
GenarrativeAI:fix/agc-release-gate-channel
GenarrativeAI:fix/dev-loopback-token-trust
GenarrativeAI:fix/api-timeout
GenarrativeAI:codex/admin-gray-game-publish
GenarrativeAI:codex/remove-agc-codex-restrictions
GenarrativeAI:backup/agc-macos-dualarch-node-runtime
GenarrativeAI:codex/preview-llm-router-config
GenarrativeAI:fix/stroke-width-regression-from-285
GenarrativeAI:agent-organize
GenarrativeAI:feat/game-agent-canvas-resource-workbench-v2
GenarrativeAI:feat/agc-new-workflow
GenarrativeAI:fix/agc-release-version-sync
GenarrativeAI:codex/shared-components-followup
GenarrativeAI:codex/game-agent-runtime-interaction-design
GenarrativeAI:feat/spine-sequence-export-v2
GenarrativeAI:codex/game-agent-run
GenarrativeAI:codex/ui-spritesheet-durable-transaction-latest
GenarrativeAI:feat/art-agent-more-tools
GenarrativeAI:codex/editor-canvas-null-source-repair
GenarrativeAI:hotfix/editor-layout-2mib
GenarrativeAI:codex/showcase
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: GenarrativeAI/Genarrative#576
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "feat/agc-ui-motion-ux"
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?
关联 Issue #563。
本 PR 当前只含文档产物,用于让方案进入评审。按
AGENTS.md,「复杂 UI 状态链路」属必须走 SDD 的范围,评审通过后再按里程碑逐个落地代码。为什么是这个方案
调研后的判断:这个需求的根因不是「动效太少」,而是 AGC 没有动效层。
package.json:243有motion@^12.23.24,vite.config.ts:649已为它切motion-vendorchunk,全仓库零 importpackages/shared/src/theme.css有 100+ 个--platform-*,无一个 duration / easingstyles.css中 23 处 transition 用了 120 / 140 / 150 / 160 / 180ms 五种值cubic-bezier(0.2, 0.8, 0.2, 1)(styles.css:797)vs TS 里cubic-bezier(0.2, 0.78, 0.2, 1)(resourceBookController.ts:23)prefers-reduced-motion仅覆盖 5 处反馈点名的两个对象也已核实:
view/home/index.tsx:305-319,一个 28px 圆形ArrowUp,全部动效是hover:scale-105。ComposerControls.tsx:455注释原文写着「Codex 的停止方块」;对应.project-chat-submit-button(styles.css:3091)是#1f6feb通用蓝,连 transition 都没有。反馈里「我们不是 codex」有了字面证据。.local-game-preview-frame(styles.css:2659)只有黑底 + iframe,无进场、无加载态、无高亮。所以顺序是先立地基再改表现,否则会一边加动效一边制造新的不一致。
复用而非新写
ui-editor-status-attention(styles.css:738-830)已是一套克制的三段式强调(落位 + 扩散 + 呼吸),且带 reduced-motion 降级,注释明确「收敛动画但不收敛可见性」。首次生成引导泛化它。resourceBook已有完整 JS 动效引擎(420ms + 最小时长下限 + reduced-motion 抑制)。tests/styleCascade.ts支持声明级 CSS 断言,已有 6 个样式测试 —— 动效可被测试钉死,不会改回去。OverflowActions。里程碑
两个明确的不做项
motion库做路由级页面转场。 AGC 是桌面壳 + 离线前端,转场拖慢体感,且向渲染层引新运行时依赖收益不匹配。全部用 CSS token + 既有 JS 引擎。已切好的motion-vendor保持原状。styles.css的结构。 本次只收口动效声明,文件拆分是独立议题。本次验证
npm run check:encoding通过(5174 文件)。git diff --check无异常。请评审
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.