Restore one-click workflow publishing - #3276
Open
AbigailDeng wants to merge 13 commits into
Open
Conversation
Contributor
Author
Local verification: single workflow editor title
Commit: |
Contributor
Author
Local verification
|
AbigailDeng
force-pushed
the
fix/2026-08-06_one-click-workflow-publish
branch
from
August 7, 2026 07:52
417cbe8 to
12c4207
Compare
…y-vnext' into HEAD # Conflicts: # apps/aevatar-console-web/src/pages/workflow-activity-vnext/hooks/useWorkflowPublication.test.ts # apps/aevatar-console-web/src/pages/workflow-activity-vnext/index.test.tsx # apps/aevatar-console-web/src/pages/workflow-activity-vnext/workflows/NewWorkflowPage.test.tsx # apps/aevatar-console-web/src/pages/workflow-activity-vnext/workflows/NewWorkflowPage.tsx # apps/aevatar-console-web/src/pages/workflow-activity-vnext/workflows/WorkflowsPage.tsx # apps/aevatar-console-web/src/pages/workflow-activity-vnext/workflows/workflowArchival.test.ts
Contributor
Author
|
Local verification after resolving the target-branch merge and test-contract conflicts: Local verification
|
Contributor
Author
|
CI remediation follow-up (2026-08-07) Fixed the two deterministic
Focused verification:
The local production build was intentionally not run; full frontend suite/build verification remains delegated to GitHub CI. |
Contributor
Author
Local verification
|
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.
问题与方案
Workflow Activity vNext 之前只复用了 Studio 的低层 canvas 组件,未复用完整编辑合同,并另外实现了一套 Publish 路径。这导致边编辑能力缺失,且 vNext Publish 与已经稳定运行的 Team Member Studio 行为不一致。
本 PR 将两条路径收敛到现有 Studio 能力:
WorkflowStudioEditorSurface,统一 Canvas、Node library、节点/边选择、连接、删除和布局移动等完整编辑合同。branches,不再错误写入线性next。Publish 与隐藏 authority
后端接口保持不变。用户只感知 Workflow;每个 Workflow 自动拥有一套用户不可见的 system-managed Team 和 Member:
implementationRef.workflowId建立关联。revisionId。bindMemberWorkflow。202 accepted只表示 dispatch accepted;前端继续读取 exactgetMemberBindingRun(scopeId, memberId, bindingRunId)。succeeded且 revision 匹配时,才从result.publishedServiceId显示 Published。deleteMember -> archiveTeam -> deleteWorkflowDraft清理其 exact typed authority;各步 404 按已清理处理。身份边界
teamId、memberId、workflowId、publishedServiceId、revisionId和bindingRunId始终是独立身份。member.implementationKind === 'workflow'、member.implementationRef.implementationKind === 'workflow'和member.implementationRef.workflowId === workflowId解析 backing authority。studioApi.publishWorkflow,也不把 workflow ID 传给 member API。feat/2026-08-04_workflow-activity-vnext没有后端代码差异。影响路径
Local verification
pnpm exec jest src/pages/workflow-activity-vnext/workflows/workflowBackingAuthority.test.ts src/pages/workflow-activity-vnext/workflows/NewWorkflowPage.test.tsx src/pages/workflow-activity-vnext/hooks/useWorkflowPublication.test.ts src/pages/workflow-activity-vnext/index.test.tsx src/pages/team-member-workflow-studio/index.test.tsx --runInBandfromapps/aevatar-console-web- 5 suites, 230 tests passed.pnpm exec jest --findRelatedTests src/pages/team-member-workflow-studio/hooks/useTeamMemberWorkflowStudio.ts src/pages/workflow-activity-vnext/hooks/useWorkflowEditor.ts src/pages/workflow-activity-vnext/hooks/useWorkflowPublication.ts src/pages/workflow-activity-vnext/workflows/NewWorkflowPage.tsx src/pages/workflow-activity-vnext/workflows/WorkflowEditorPage.tsx src/pages/workflow-activity-vnext/workflows/WorkflowsPage.tsx src/shared/studio/workflowBackingAuthority.ts --runInBandfromapps/aevatar-console-web- 5 suites, 230 tests passed.pnpm exec jest src/pages/workflow-activity-vnext/index.test.tsx --runInBandfromapps/aevatar-console-web- 1 suite, 106 tests passed.pnpm exec biome check <11 task files>fromapps/aevatar-console-web- checked 11 files, no fixes required.bash tools/ci/test_stability_guards.sh- passed.git diff --cached --check- passed.浏览器验证
此前已复用当前登录的 Chrome 会话,对连接远端后端的目标 Workflow Activity vNext 路由完成 authenticated smoke check:
weekly_report_five_nodes成功加载。Configure Guard。Design baseline
Conflict and CI remediation (2026-08-07)
be74bab5302b0ec9b5d4b2d6eecb9156dbf829a0; merge commit9ef206ff3.pnpm exec jest src/pages/team-member-workflow-studio/index.test.tsx src/pages/teams/workflowOperationalUnits.test.ts src/pages/workflow-activity-vnext/activity/RunDetailPage.test.tsx src/pages/workflow-activity-vnext/hooks/useWorkflowPublication.test.ts src/pages/workflow-activity-vnext/index.test.tsx src/pages/workflow-activity-vnext/workflows/NewWorkflowPage.test.tsx src/pages/workflow-activity-vnext/workflows/WorkflowPublishDialog.test.tsx src/pages/workflow-activity-vnext/workflows/workflowArchival.test.ts src/pages/workflow-activity-vnext/workflows/workflowBackingAuthority.test.ts src/shared/api/scopesApi.test.ts src/shared/studio/api.test.ts --runInBand- 10 suites / 302 tests passed.CODEX_ALLOW_FULL_FRONTEND_VALIDATION=1 pnpm tscfromapps/aevatar-console-web- passed.pnpm exec biome check <31 existing analyzer-selected changed files>- 31 files passed.bash tools/ci/test_stability_guards.sh- passed.git diff --cached --check- passed.