Skip to content

feat(workflow-editor): add controller-backed card canvas - #108

Closed
xyh202131 wants to merge 11 commits into
1024XEngineer:mainfrom
xyh202131:feat/workflow-editor
Closed

feat(workflow-editor): add controller-backed card canvas#108
xyh202131 wants to merge 11 commits into
1024XEngineer:mainfrom
xyh202131:feat/workflow-editor

Conversation

@xyh202131

@xyh202131 xyh202131 commented Aug 4, 2026

Copy link
Copy Markdown

功能项

将工作流编辑器从占位页实现为可执行的卡片加号式手动创作界面。页面只调用 WorkflowController,并使用 Controller 返回的 phase 渲染角色候选、动作首帧和动画审核,不维护第二套工作流状态。

包含

  • /workflow-editor 新任务界面与 /:runId 恢复界面所需页面能力。
  • 角色任务创建、四张角色候选选择和正式角色确认。
  • 角色母版加号菜单,只展示合法动作类型。
  • 动作设定、四张动作首帧选择和完整动画审核。
  • 审核通过后使用 approveAction() 返回的稳定 ID 打开 Playtest。
  • 刷新恢复、失败重试和请求期间重复点击保护。
  • 卡片视觉拖动与系统生成的连接关系;没有用户手绘连线入口。
  • 响应式桌面/移动布局。

架构边界

  • 页面唯一业务依赖为 WorkflowController;不直接访问 Store、Generation、Character API、fetch 或 localStorage。
  • 不迁移旧 features/reviewfeatures/publish 和旧 Workflow Editor Service。
  • 临时候选 URL 只保留在当前组件状态,不写入 WorkflowRun。
  • index.ts 只负责公开导出,页面实现和样式留在模块内部。
  • 不包含 Project、Quick Start、Playtest、History、Asset Library、AppShell 或后端改动。

依赖说明

验证

  • 测试先行:占位页主流程 7 项先失败;恢复错误重试单独完成红绿循环。
  • Workflow Editor 定向测试:8 项通过。
  • 前端全量测试:45 项通过(合入最新 main 后重新验证)。
  • TypeScript:通过。
  • Lint:通过。
  • 目标目录格式检查:通过。
  • 生产构建:通过。
  • git diff --check:通过。
  • 禁止依赖扫描:通过。
  • 已在 PR 分支内合入最新 main 并解决占位 index.tsx 的 modify/delete 冲突;保留本 PR 的 index.ts + page.tsx 结构。

Depends on #86
Depends on #107
Closes #102

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
windup Ready Ready Preview Aug 4, 2026 7:08am

@xyh202131

Copy link
Copy Markdown
Author

按当前任务范围撤销 Workflow Editor 拆分。本 PR 未合并,后续如由其他成员负责,可继续参考 Issue #102

@xyh202131 xyh202131 closed this Aug 4, 2026
@xyh202131
xyh202131 deleted the feat/workflow-editor branch August 4, 2026 07:09

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found in this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 将工作流编辑器接入 WorkflowRun 与 WorkflowController(Refs #87)

1 participant