feat: add condition configuration handling and improve branch summary display in workflow editor

This commit is contained in:
mlogclub
2026-06-27 17:14:29 +08:00
parent 2143bfa06b
commit d0cd01cbf6
2 changed files with 87 additions and 40 deletions
@@ -31,6 +31,7 @@ export type WorkflowBranchSummary = {
targetNodeId: string
targetName: string
conditionLabel: string
conditionSet: boolean
isDefault: boolean
}
@@ -555,7 +556,8 @@ function decodeConditionRight(value: string, variable?: WorkflowVariableRef) {
function normalizeBranch(branch: WorkflowConditionBranch): WorkflowConditionBranch {
if (branch.default) {
const { condition: _condition, ...rest } = branch
const rest = { ...branch }
delete rest.condition
return rest
}
return {