Commit Graph
210 Commits
Author SHA1 Message Date
nocobase[bot] 51ea7505f1 chore(versions): 😊 publish v2.1.0-beta.5 2026-02-26 08:25:37 +00:00
nocobase[bot] 5b82bdabcf chore(versions): 😊 publish v2.1.0-beta.4 2026-02-25 17:52:00 +00:00
chenos 656f4eeedc Merge branch 'main' into next
# Conflicts:
#	packages/core/client-v2/package.json
#	packages/core/client/package.json
#	packages/core/sdk/package.json
#	packages/plugins/@nocobase/plugin-acl/package.json
#	packages/plugins/@nocobase/plugin-action-export/package.json
#	packages/plugins/@nocobase/plugin-action-import/package.json
#	packages/plugins/@nocobase/plugin-ai/package.json
#	packages/plugins/@nocobase/plugin-api-keys/package.json
#	packages/plugins/@nocobase/plugin-backup-restore/package.json
#	packages/plugins/@nocobase/plugin-block-iframe/package.json
#	packages/plugins/@nocobase/plugin-block-list/package.json
#	packages/plugins/@nocobase/plugin-block-template/package.json
#	packages/plugins/@nocobase/plugin-error-handler/package.json
#	packages/plugins/@nocobase/plugin-field-formula/package.json
#	packages/plugins/@nocobase/plugin-field-markdown-vditor/package.json
#	packages/plugins/@nocobase/plugin-field-sequence/package.json
#	packages/plugins/@nocobase/plugin-field-sort/package.json
#	packages/plugins/@nocobase/plugin-graph-collection-manager/package.json
#	packages/plugins/@nocobase/plugin-logger/package.json
#	packages/plugins/@nocobase/plugin-multi-app-manager/package.json
#	packages/plugins/@nocobase/plugin-snapshot-field/package.json
#	packages/plugins/@nocobase/plugin-system-settings/package.json
#	packages/plugins/@nocobase/plugin-ui-schema-storage/package.json
#	packages/plugins/@nocobase/plugin-ui-templates/package.json
#	packages/plugins/@nocobase/plugin-users/package.json
#	packages/plugins/@nocobase/plugin-verification/package.json
#	packages/plugins/@nocobase/plugin-workflow-action-trigger/package.json
#	packages/plugins/@nocobase/plugin-workflow-aggregate/package.json
#	packages/plugins/@nocobase/plugin-workflow-cc/package.json
#	packages/plugins/@nocobase/plugin-workflow-delay/package.json
#	packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/package.json
#	packages/plugins/@nocobase/plugin-workflow-loop/package.json
#	packages/plugins/@nocobase/plugin-workflow-mailer/package.json
#	packages/plugins/@nocobase/plugin-workflow-manual/package.json
#	packages/plugins/@nocobase/plugin-workflow-notification/package.json
#	packages/plugins/@nocobase/plugin-workflow-parallel/package.json
#	packages/plugins/@nocobase/plugin-workflow-request/package.json
#	packages/plugins/@nocobase/plugin-workflow-sql/package.json
#	packages/plugins/@nocobase/plugin-workflow-test/package.json
#	packages/plugins/@nocobase/plugin-workflow/package.json
#	packages/presets/nocobase/package.json
2026-02-24 20:41:41 +08:00
b263a83a12 chore: open source commercial plugins and update license from AGPL-3.0 to Apache-2.0 (#8682)
* feat: open-source plugin source code

* fix: fdw

* feat: update readme.md

* fix: gitignore

* fix: peerDependencies

* fix: remove zh-cn.md

* feat: update license

* fix: peerDependencies

* fix: peerDependencies

* test(ai): fix breaking test case of tools loader

* fix(verification): dep

* fix: deps

* fix: version

* feat: plugin-comments

* fix: deps

---------

Co-authored-by: Drol <cgyrock@gmail.com>
Co-authored-by: xilesun <2013xile@gmail.com>
2026-02-24 20:34:06 +08:00
nocobase[bot] da0c38c25b chore(versions): 😊 publish v2.0.2 2026-02-22 12:23:29 +00:00
nocobase[bot] e200a081c6 chore(versions): 😊 publish v2.1.0-beta.2 2026-02-22 11:49:05 +00:00
nocobase[bot] 80d6ff46af chore(versions): 😊 publish v2.0.1 2026-02-16 06:01:31 +00:00
nocobase[bot] f2fab88272 chore(versions): 😊 publish v2.0.0 2026-02-14 15:35:52 +00:00
nocobase[bot] fe9595f629 chore(versions): 😊 publish v2.1.0-beta.1 2026-02-14 14:29:45 +00:00
chenos 1ab39cc05a Merge branch 'next' into develop
# Conflicts:
#	packages/core/flow-engine/src/flowContext.ts
#	yarn.lock
2026-02-14 16:42:12 +08:00
Zeke Zhang 7fd50c9c15 fix(CCTaskCardGridModel): enforce defaultHeight mode to avoid scrollbars 2026-02-13 20:33:38 +08:00
nocobase[bot] ade891487c chore(versions): 😊 publish v2.0.0-beta.23 2026-02-12 02:22:18 +00:00
nocobase[bot] d924347209 chore(versions): 😊 publish v2.0.0-alpha.71 2026-02-10 05:23:48 +00:00
nocobase[bot] 153de33c35 chore(versions): 😊 publish v2.0.0-beta.22 2026-02-09 23:34:42 +00:00
nocobase[bot] 1c45d71b53 Merge branch 'next' into develop 2026-02-09 01:02:01 +00:00
Zeke Zhang b1d8980ec8 feat(workflow-cc): support FlowModel UI and task cards (#8405)
* feat(workflow-cc): support FlowModel UI and task cards (v2) with v1 compatibility

* refactor(SchemaConfig): remove unused parameters from SchemaConfig function

* fix(workflow-cc): improve null safety, deps optimization and error handling

* feat(instruction): add CC interface and task card config

* refactor(instruction): improve visibility logic and remove unused uid

* Revert "refactor(instruction): improve visibility logic and remove unused uid"

This reverts commit ebb232b18d.

* Revert "feat(instruction): add CC interface and task card config"

This reverts commit e5af6b3f71.

* Revert "fix(workflow-cc): improve null safety, deps optimization and error handling"

This reverts commit cb279ebf90.

* Revert "refactor(SchemaConfig): remove unused parameters from SchemaConfig function"

This reverts commit 5254dc7087.

* Revert "feat(workflow-cc): support FlowModel UI and task cards (v2) with v1 compatibility"

This reverts commit 69b534703a.

* feat(workflow-cc): add v2 user interface and task card models

* fix(workflow-cc): add null check for viewCtx before adding delegate

* feat(workflow-cc): refactor task card configuration logic

* refactor(workflow-cc): update CCTaskCardDrawerContent props

* refactor(workflow-cc): remove approval nodes from data blocks

* refactor(workflow-cc): enhance FlowModelRenderer settings

* refactor(workflow-cc): update CCTaskCardConfigButton styles

* refactor(workflow-cc): update icon and button style in CCTaskCardConfigButton

* refactor(workflow-cc): update useTodoActionParams to include node.config

* refactor(workflow-cc): add filterTargetKey to workflowCcTasks

* refactor(workflow-cc): restructure model context definition

* refactor(workflow-cc): add disableBlockGridPadding property

* refactor(workflow-cc): remove unused parameters from SchemaConfig

* refactor(instruction): remove default ccDetail in config

* refactor(CCTaskCardConfigButton): remove unused themeToken

* refactor(CCTaskCardDetailsAssociationFieldGroupModel): update whitelist and blacklist fields

* refactor(tasks): remove unused import for useTrigger

* refactor(tasks): simplify props in action functions

* refactor(workflow): enhance task card functionality

* style(model): update label template syntax

* feat(workflow): add uiSchema for CC node

* style(model): update TEMP_ASSOCIATION_PREFIX value

* style(model): update comment for TEMP_ASSOCIATION_PREFIX

* refactor(workflow): optimize association field handling

* refactor(tasks): simplify appends array in FlowContextProvider

* refactor(workflow): simplify key handling in associations

* refactor(workflow): enhance temporary association field handling

* refactor(actions): improve task field value handling

* refactor(workflow): enhance temporary association handling

* feat(models): add CCTriggerBlockGridModel class

* fix(CCAddBlockButton): handle optional chaining for trigger data

* refactor(workflow): simplify temp association handling

* refactor(tests): improve temporary association handling

* refactor(actions): remove unnecessary return statement

* refactor(actions): remove unused temp association logic

* refactor(CCAddBlockButton): use lodash for trigger data handling

* refactor(CCTaskCardGridModel): remove sync call on mount

* refactor(tasks): remove unused imports and add cache option

* refactor(hooks): extract useTempAssociationSources hook

* refactor(SchemaConfig): remove unused useTriggerTempAssociationSource hook

* refactor(tasks): simplify upstream retrieval logic

* feat(workflow-cc): add CCDetailsCustomItemModel and update references

* feat(workflow-cc): add TaskCardCommonItemModel and update exports

* refactor(workflow-cc): remove CCDetailsCustomItemModel and update references

* fix(workflow-cc): refresh task card model on workflow change

* fix(workflow-cc): duplicate v2 ui models for cc nodes

* fix(workflow-cc): reduce repeated task card model loads

* fix(workflow-cc): refresh task card on node updates

* fix(workflow): expose schedule trigger data for cc

* fix(workflow-action-trigger): hide trigger data without context

* fix(workflow): exclude update node from cc data sources

* fix(workflow): include loop scopes for variables

* fix(workflow-cc): append associations for temp data

* fix(workflow-cc): load popup record with node info

* fix(flow): keep click-to-open tag clickable when empty

* fix(workflow-cc): enable read-all when counts missing

* fix(workflow-cc): normalize task card reload key

* fix(workflow-cc): reapply task card click handler

* Revert "fix(workflow-cc): reapply task card click handler"

This reverts commit 0ca3f3ff5b.

* feat(workflow-cc): add getCreateModelMenuItem method

* Revert "fix(workflow): include loop scopes for variables"

This reverts commit 41b07a0cc4.

* Revert "fix(flow): keep click-to-open tag clickable when empty"

This reverts commit 58619a7d8a.

* feat(flow): show placeholder for empty click-to-open

* Revert "feat(flow): show placeholder for empty click-to-open"

This reverts commit e1b3271ce9.

* feat(model): add disableFieldClickToOpen property

* fix(model): update resource refresh method to return promise

* refactor(model): optimize workflow association field updates

* fix(CCTaskCardConfigButton): use form values directly for uid

* feat(locale): add new translations for task fields

* feat(locale): add translations for refresh and filter actions

* fix(workflow-cc): avoid pruning temp association fields

* Revert "fix(workflow-cc): avoid pruning temp association fields"

This reverts commit e34f15a3b1.

* Revert "refactor(model): optimize workflow association field updates"

This reverts commit f56c1d73e4.

* feat(workflow): add NodeDetailsGridModel for enhanced grid functionality

* feat(workflow): update grid model to NodeDetailsGridModel

* fix(workflow): correct DetailsCustomItemModel reference

* fix(workflow): add nodeType to trigger data retrieval

* refactor(CCTaskCardConfigButton): clean up temporary association fields
2026-02-09 09:01:32 +08:00
nocobase[bot] e95e439f39 chore(versions): 😊 publish v2.0.0-beta.21 2026-02-07 03:42:29 +00:00
nocobase[bot] a6672a17a7 chore(versions): 😊 publish v2.0.0-alpha.70 2026-02-06 02:51:35 +00:00
nocobase[bot] cf7de83ae4 chore(versions): 😊 publish v2.0.0-alpha.69 2026-02-05 07:09:38 +00:00
nocobase[bot] 19e4fe6427 chore(versions): 😊 publish v2.0.0-beta.20 2026-02-05 04:27:41 +00:00
nocobase[bot] af170659d8 chore(versions): 😊 publish v2.0.0-beta.19 2026-02-05 00:44:14 +00:00
nocobase[bot] 83f304d4c9 chore(versions): 😊 publish v2.0.0-beta.18 2026-02-02 01:30:33 +00:00
nocobase[bot] 5b0b3e7845 chore(versions): 😊 publish v2.0.0-beta.17 2026-01-28 04:27:38 +00:00
nocobase[bot] 58bb74b7fb chore(versions): 😊 publish v2.0.0-beta.16 2026-01-27 13:03:52 +00:00
nocobase[bot] 4fbdd9ee10 chore(versions): 😊 publish v2.0.0-alpha.68 2026-01-27 02:44:58 +00:00
nocobase[bot] 8243bb23af chore(versions): 😊 publish v2.0.0-alpha.67 2026-01-26 10:42:38 +00:00
chenos 932a1699ac fix: update version 2026-01-26 10:35:41 +08:00
chenos 8bd1b54d4a chore: update version 2026-01-25 21:29:00 +08:00
nocobase[bot] 3f301d3feb chore(versions): 😊 publish v2.0.0-alpha.66 2026-01-16 08:45:48 +00:00
nocobase[bot] d1b1eb5a67 chore(versions): 😊 publish v2.0.0-alpha.65 2026-01-16 06:33:32 +00:00
nocobase[bot] 4ef70a9557 Merge branch 'next' into develop 2026-01-13 01:49:53 +00:00
Zeke Zhang 21481dea37 Revert "feat(workflow-cc): support FlowModel UI and task cards"
This reverts commit f5f26f6e20.
2026-01-13 09:49:16 +08:00
nocobase[bot] e432b9f1d8 Merge branch 'next' into develop 2026-01-13 01:48:29 +00:00
Zeke Zhang f5f26f6e20 feat(workflow-cc): support FlowModel UI and task cards
<!--
First of all, thank you for your contribution! 
For bug fixes or other non-feature modifications, please base your branch on the main branch.
For new features or API modifications, please make sure your branch is based on the next branch. 
Thank you!
-->

### This is a ...
- [x] New feature
- [ ] Improvement
- [ ] Bug fix
- [ ] Others

### Motivation
重构抄送(CC)插件,支持基于 FlowModel 的界面(v2),使工作流界面与配置可以作为可复用的 FlowModel 构建;同时保持对旧版 v1 UI 的兼容,并新增任务卡片功能以增强任务列表的展示体验。

### Description 
主要变更:
- 新增 FlowModel 渲染器与封装(`RemoteFlowModelRenderer`),并注册两个模型:`CcChildPageModel` 与 `CcTaskCardDetailsModel`。
- 指令配置:新增 `CcInterfaceConfig`(用于 v2 UI 的切换与 FlowModel 配置)和 `CcTaskCardConfigButton`(任务卡片配置);保留 legacy 的 `ccDetail` schema UI,并通过可见性反应进行兼容。
- 任务界面:支持基于 FlowModel 的详情页(`ccUid`)与任务卡片(`taskCardUid`),若未配置则回退为 legacy 的 schema 实现。
- 服务端:在复制工作流配置时会复制 FlowModel(`ccUid` / `taskCardUid`)的 uid,同时保留对 `ccDetail`(ui schema)的复制行为。
- 在插件的 peerDependencies 中声明 `@nocobase/flow-engine` 与 `@nocobase/plugin-flow-engine`。

风险:
- 依赖运行时提供 `@nocobase/flow-engine`;切换到 v2 后用户可能需要重新配置界面,但 v1 将继续保持兼容。

测试建议:
- 新建带 v1 界面的 CC 节点,验证行为与之前一致。
- 通过 FlowModel 配置器创建 v2 界面,验证详情对话框与任务卡片能正常渲染且关闭/刷新功能正常。
- 复制工作流并验证 FlowModel 的 uid 已被正确复制。
- 在本地运行 lint 与相关测试以确认无语法/逻辑错误。

### Related issues

### Showcase

### Changelog

| Language   | Changelog |
| ---------- | --------- |
| 🇺🇸 English | Support flow model-based UI for CC and add task cards |
| 🇨🇳 Chinese | 为抄送插件增加基于 FlowModel 的界面支持并添加任务卡片 |

### Docs

| Language   | Link |
| ---------- | ---- |
| 🇺🇸 English |  |
| 🇨🇳 Chinese |  |

### Checklists
- [ ] All changes have been self-tested and work as expected
- [ ] Test cases are updated/provided or not needed
- [ ] Doc is updated/provided or not needed
- [ ] Component demo is updated/provided or not needed
- [ ] Changelog is provided or not needed
- [ ] Request a code review if it is necessary
2026-01-13 09:48:01 +08:00
nocobase[bot] 264dd2aa86 chore(versions): 😊 publish v2.0.0-beta.9 2026-01-12 07:09:29 +00:00
nocobase[bot] 02d4b228ab chore(versions): 😊 publish v2.0.0-beta.8 2026-01-09 15:36:23 +00:00
nocobase[bot] 02f7e9ad5a chore(versions): 😊 publish v2.0.0-beta.7 2026-01-09 02:16:26 +00:00
nocobase[bot] d85b5e476a chore(versions): 😊 publish v2.0.0-alpha.64 2026-01-08 10:23:32 +00:00
nocobase[bot] bbb81941c9 Merge branch 'next' into develop 2026-01-07 14:36:49 +00:00
887017edbb Refactor/workflow 2.0 (#8114)
* refactor(DialogComponent, DrawerComponent): use document.body for modal container

* refactor(flow): export SkeletonFallback component

* style(ChildPageModel): simplify conditional rendering logic

* feat(workflow): add getCreateModelMenuItem method

* feat(workflow): add getCreateModelMenuItem method

* feat(workflow): add NodeDetailsModel and export it

* feat(workflow): update models to use NodeDetailsModel

* feat(workflow): add cardSettings for create and query nodes

* feat(workflow): introduce NodeValueModel and update references

* fix(workflow): correct import path for parse utility

* feat(ActionTrigger): add getCreateModelMenuItem method

* feat(workflow): register collections to data source

* feat(workflow): add workflowStats and workflowVersionStats collections

* feat(trigger): return null if workflow type is missing

* Revert "refactor(DialogComponent, DrawerComponent): use document.body for modal container"

This reverts commit 9a68b9a1e2.

* feat(ActionDrawer): use container for Drawer component

* feat(GridModel): add enableUIConfiguration getter

* fix(details): ensure UI configuration check in renderAddSubModelButton

* fix(useDialog): ensure config props are passed correctly

* feat(modal): use container for modal rendering

* refactor(useUpdateAction): extract updateNodeConfig function

* refactor(updateNodeConfig): add resourceName parameter

* style(BlockGridModel): conditionally apply padding in render

* refactor(plugin-flow-engine): export repository class

* refactor(GridModel): use enableUIConfiguration for button display

* fix(CollectionBlockModel): add optional chaining for filterManager

* fix(CollectionBlockModel): handle missing targetCollectionName

* refactor(AssociationFieldGroupModel): simplify display logic

* refactor(NodeValueModel): define hide property

* refactor(CurrentUserProvider): enhance user context handling

* fix(flow-engine): handle context absence in useFlowEngine

* refactor(processor): enhance scope handling in run method

* feat(workflow): add dynamic expression model menu item

* fix(plugin-workflow): fix duplicate instruction

* fix(SubTableColumnModel): handle undefined props in render

* refactor: unify UI configuration handling

* feat(SubTableColumnModel): add enableUIConfiguration getter

* feat: support field template for details and approval

* chore: improve code

* fix(plugin-workflow): fix duplicate

* fix: submit try catch

* refactor: use getInterfaceOptions to retrieve field interface (#8284)

* docs(plugin-workflow-approval): add docs for trigger configuration

* fix: supports adding records for associations

* fix(plugin-workflow): after change data source password collection trigger invalid (#8207)

* refactor(data-source): reuse database instance in data source refresh action

* refactor(data-source): resolve options naming conflicts

* fix(work-flow): after change data source password colletcion trigger invalid

* test(data-source-manager): add testcase for database reuse after data source reload

* test(data-source-manager): modify testcase

* fix(data-source-manager): breaking build packages

* fix(data-source-manager): fix breaking testcase

* test(data-source-manager): move testcase to pro-plugins

* fix(database): include through scope when querying m2m relationships (#8277)

* fix(plugin-workflow-manual): error thrown in filter form block settings (#8282)

* fix(plugin-async-task-manager): fix locales (#8245)

* fix: attachmentURL

* fix: errors if js block has been set to be hidden (#8286)

* fix: exit event flow on form submission failure

* fix: record picker table will not refresh after creating record (#8289)

* fix: collection selector incorrect height (#8288)

* fix: js item not refresh after update record in details block (#8291)

* fix(flow-engine): eager load root items in LazyDropdown (#8290)

* fix(plugin-file-manager): s3 limit (#8275)

* fix(plugin-file-manager): fix s3 limit error

* refactor(plugin-file-manager): use stream instead of disk io

* refactor: Improve plugin symlink

* fix: issue where adding new data in subform is overwritten by selected data (#8292)

* feat(locales): add "Display fields" translation

* fix(RecordPickerFieldModel): enable flow settings in model context

* refactor(workflow): export specific models instead of all

* fix(modal): prevent multiple close actions on modal

* fix(CurrentUserProvider): cast flowEngine context user as any

* fix(fields): handle optional chaining in find method

* fix(DisplayEnumFieldModel): add icon support to tags

* fix(CollectionField): handle null or undefined values

* fix(FormItemModel): handle missing blockModel in aclCheck

* chore: hide template in apply task form

* chore: hide template for ApprovalTaskCardDetailsModel

---------

Co-authored-by: mytharcher <mytharcher@gmail.com>
Co-authored-by: gchust <gchust@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Katherine <katherine_15995@163.com>
Co-authored-by: Drol <cgyrock@gmail.com>
Co-authored-by: YANG QIA <2013xile@gmail.com>
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
2026-01-07 22:36:21 +08:00
nocobase[bot] cb21161af4 chore(versions): 😊 publish v2.0.0-alpha.63 2026-01-07 00:25:55 +00:00
nocobase[bot] b7c0a3b935 chore(versions): 😊 publish v2.0.0-beta.6 2026-01-06 23:48:46 +00:00
nocobase[bot] 2ac747b727 chore(versions): 😊 publish v2.0.0-beta.5 2026-01-06 05:00:44 +00:00
nocobase[bot] 7baeaf4c58 chore(versions): 😊 publish v2.0.0-alpha.62 2026-01-05 12:06:13 +00:00
nocobase[bot] 61b34e1ac2 chore(versions): 😊 publish v2.0.0-beta.4 2026-01-05 08:04:31 +00:00
nocobase[bot] 6447527b95 chore(versions): 😊 publish v2.0.0-beta.3 2026-01-05 00:48:48 +00:00
nocobase[bot] 4640523d84 chore(versions): 😊 publish v2.0.0-beta.2 2026-01-04 03:33:29 +00:00
nocobase[bot] f2617a0d15 chore(versions): 😊 publish v2.0.0-alpha.61 2026-01-01 02:01:09 +00:00
chenos 11e76f00ef fix: version 2026-01-01 09:36:26 +08:00
nocobase[bot] 43acc10c31 chore(versions): 😊 publish v2.0.0-beta.1 2025-12-31 17:03:34 +00:00