Repository navigation
feat: 同步流程入口放到待办中心「全部流程」页签 (#281) - #83
Merged
Merged
Conversation
- 待办中心「全部流程」页签操作栏新增「同步流程」,仅对未完成(运行中)的流程展示, 按记录自身的 workCode + processId 把该实例的配置同步为最新流程设计; - 操作按流程管理员权限显隐(复用 /api/query/workflow/permission/forceSync); - 移除流程列表与流程设计页的同步入口,删除不再使用的实例选择弹窗组件及其测试; - 补充强制同步接口封装。 Refs #281
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.
背景
关联 codingapi/flow-engine#281。按最新确认调整入口:同步流程操作应放在待办中心 →「全部流程」页签,且仅对未完成的流程展示,按钮名称为「同步流程」。
改动
apps/app-pc/src/pages/todo.tsx详情 / 同步流程;同步流程仅在flowState === 0(运行中/未完成)时展示,点击后二次确认,按该行记录的workCode+processId调用强制同步接口,成功后提示并刷新列表;GET /api/query/workflow/permission/forceSync,非流程管理员不展示该操作(后端同样校验,防止绕过)。apps/app-pc/src/api/workflow.ts:补充forceSync接口封装与类型。apps/app-pc/src/components/workflow-list/index.tsx:移除列表操作栏的「强制同步」。packages/flow-design:设计页头部原本已移除该入口,本次一并删除不再使用的DesignSyncInstance实例选择弹窗(含selection.ts、样式与单元测试)及flow-core中对应的两个消息键。行为说明
permission.access.denied);验证
packages/flow-design:npx rstest run→ 13 个测试文件 39 例全部通过;packages/flow-design:tsc --noEmit→ 0 error;apps/app-pc:pages/todo.tsx、api/workflow.ts、workflow-list/index.tsx无类型错误(其余 14 处为dev基线已有问题:unused import、type-only import 等);flow-core/flow-types/flow-icons/flow-pc-ui/flow-pc-form/flow-approval-presenter/flow-design构建成功(pkg build:flow-pc因本地 IDE 的 node-safe-delete shim 拦截 public 目录复制而失败,单包构建均成功)。