feat(vibe coding PR): 工作流编辑器画布 · 卡片加号编排(验证 #87,不合并) - #88
Draft
huyanxius wants to merge 1 commit into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Issue 1024XEngineer#37 §3.8 defines the canvas as the entry for fine-grained production but never says what users may customize. The live demo shipped a generic node editor whose only legal wiring is a single hard-coded chain, so drawing connections costs effort and buys no choice. Replace user-drawn wiring with a plus button on each card that lists only its legal downstreams. Cards are created and connected by the system; branches fan out from the confirmed master, one per action. Generation is mocked in the browser over real samurai frames, no backend. Validates the customization model for issue 1024XEngineer#87. This is a vibe coding PR for product validation and is not intended to merge.
huyanxius
force-pushed
the
feat/canvas-card-plus
branch
from
August 3, 2026 09:43
a9342f4 to
d5230ec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes nothing. Refs #87、#37 §3.8。
验证了什么
#37 §3.8 只写了画布「面向需要精细控制的生产任务」,没定精细控制的具体内容。live demo 那版把流程拆成七对连接白名单交给用户手连,八张卡片首尾相接没有第二种连法——连线成本非零,选择空间为零。
本 PR 把用户画线换成卡片右下角的加号:加号只列这张卡片的合法下游,用户选一项,新卡片由系统生成并连好。非法组合不出现在菜单里,因此不存在「连错之后报错」这条路径。
怎么试
打开
/workflow-editor:画布支持拖拽平移、双指捏合或 Cmd+滚轮缩放、拖卡片头部搬位置。拖动只改观感不改结构,连线始终由
parentId推出来。落到哪些文件
features/canvas-flow/pages/workflow-editor/shared/ui/public/demo/shared/ui那三个组件来自既有的live-demo-ui-components暂存包,只把强调色从 emerald 调成 slate 以对齐 live demo 的近单色底,逻辑未改。已知边界
自查
npm run format:check、lint、typecheck、test、build全过。features/canvas-flow有 7 个用例,覆盖加号只列合法下游、未确认卡片没有下游、重复展开加号挂并列分支、预设与自定义是同一种卡片、分支各占一行、删除连带下游。AI 参与说明
画布交互形态(卡片加号)由人定,见 #87 的讨论与决策记录;实现由 Claude Code 完成。关键约束写在 #87 正文:加号只在多个合法下游时弹菜单、可重复展开、只列合法项、删除连带下游、拖动不改结构。