mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[PR #891] [MERGED] v0.4 workflow designer #1068
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#1068
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/certimate-go/certimate/pull/891
Author: @fudiwei
Created: 7/25/2025
Status: ✅ Merged
Merged: 8/11/2025
Merged by: @fudiwei
Base:
next← Head:dev📝 Commits (10+)
c37cb4arefactor: clean codebc268dffeat(ui): new workflow routerse20cf8ffix(ui): missing bgcolor7d63313fix(ui): unsynchronized running status after WorkflowDetail subpage changed3308bcbdev2861a61feat: support configuring node name on deployment to 1panel site85c3545feat(ui): update workflow base info editorcd68c49chore(i18n): improve i18n396be6frefactor(ui): optimize stores344e9c7refactor(ui): extract css📊 Changes
231 files changed (+18231 additions, -1528 deletions)
View changed files
📝
internal/certificate/service.go(+3 -5)📝
internal/domain/settings.go(+10 -0)📝
internal/workflow/service.go(+3 -5)➖
ui/dist/.gitkeep(+0 -0)📝
ui/package-lock.json(+1609 -260)📝
ui/package.json(+19 -16)📝
ui/src/App.tsx(+4 -0)📝
ui/src/components/AppVersion.tsx(+4 -2)📝
ui/src/components/CodeInput.tsx(+1 -1)📝
ui/src/components/DrawerForm.tsx(+19 -3)📝
ui/src/components/ModalForm.tsx(+1 -1)📝
ui/src/components/MultipleInput.tsx(+4 -4)📝
ui/src/components/MultipleSplitValueInput.tsx(+1 -1)📝
ui/src/components/TextFileInput.tsx(+2 -2)➕
ui/src/components/Tips.tsx(+30 -0)📝
ui/src/components/access/AccessEditDrawer.tsx(+21 -6)📝
ui/src/components/access/AccessForm.tsx(+2 -6)📝
ui/src/components/access/AccessFormDiscordBotConfig.tsx(+1 -1)📝
ui/src/components/access/AccessFormSlackBotConfig.tsx(+1 -1)📝
ui/src/components/access/AccessFormTelegramBotConfig.tsx(+2 -2)...and 80 more files
📄 Description
该 PR 包含以下内容变更:
备注
1. 新旧工作流节点类型映射关系:
👀 展开查看
flowgram.ai 内置了一些节点类型与旧版编辑器节点类型冲突,需做如下转换:
start→startend→endbranch→conditioncondition→branchBlockexecute_result_branch→tryCatchexecute_success→tryBlockexecute_failure→catchBlockapply→bizApplyupload→bizUploadmonitor→bizMonitordeploy→bizDeploynotify→bizNotify(为避免自定义的业务节点与后续 flowgram.ai 迭代时可能新增的节点类型冲突,此类节点类型统一增加前缀
biz)2. 关于 TryCatch 节点
👀 展开查看
v0.3.x 中的
execute_result_branch节点存在两个缺陷:例如,若存在 “申请” → “部署到 A” → “部署到 B” 这样的业务流程,若希望任一流程失败后均能发送消息通知,则需要:
execute_failure会隐式中断工作流(见 #641)。新的
TryCatch节点旨在解决上述两个问题。对于问题一,新的编排方案为
对于问题二,新引入
end类型节点,如需在执行失败时中断,可以显式添加此节点,否则会继续执行tryCatch之后的节点。行为类似某些编程语言中的try-catch-finally的异常处理流程。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.