Repository navigation
feat: 强制同步入口移至列表操作栏并按流程管理员权限显示 (#281) - #82
Merged
Merged
Conversation
- 移除流程设计页头部的强制同步按钮,改为从 @coding-flow/flow-design 导出 DesignSyncInstance 组件,供列表复用; - 示例应用流程列表操作栏新增「强制同步」,仅流程管理员可见; - 新增强制同步权限查询接口封装(GET /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。按反馈调整强制同步的入口位置与权限:
workCode);改动
packages/flow-designDesignSyncInstance组件改为对外导出,供列表页复用。apps/app-pcforceSyncPermission(),列表挂载时查询权限,非流程管理员不展示该操作。验证
packages/flow-design:npx rstest run→ 14 个测试文件 43 例全部通过;packages/flow-design:tsc --noEmit→ 0 error;apps/app-pc:tsc --noEmit中workflow-list/index.tsx、api/workflow.ts无错误(其余 18 处为dev基线已有问题:缺失@coding-flow/flow-pc-approval构建产物、unused import 等);build:flow-core/build:flow-types/build:flow-icons/build:flow-pc-ui/build:flow-approval-presenter/build:flow-design均构建成功。