1135 Commits

Author SHA1 Message Date
Katherine
dcaad79370
feat: date type fields support setting the picker type (#5271)
* refactor: date field support picker

* refactor: date field support picker

* refactor: date time field

* refactor: date time field

* refactor: locale improve

* refactor: defaultValue

* refactor: datetime field

* refactor: remove week

* fix: bug

* fix: bug

* fix:  bug

* fix: test

* fix: test

* fix: test

* fix: test

* fix: test

* refactor: test

* refactor: test

* fix: bug

* fix:  bug

* fix: bug

* refactor: expiresRadio

* refactor: datepicker

* fix: bug

* fix: bug

* fix: bug

* fix: test

* refactor: change operator

* refactor: change picker

* refactor: datetime operator schema

* refactor: filterWithPicker

* refactor: support linkage rule

* fix: bug

* refactor: useFilterFormItemInitializerFields

* refactor: useFilterFormItemInitializerFields

* fix: default value for datetime

* fix: bug

* fix: filter date time

* fix: filter date time

* fix: bug

* fix: bug

* refactor: datePicker RangePicker

* refactor: datePicker RangePicker

* style: date picker style improve

* fix: bug

* fix: bug

* fix: bug

* fix: default value

* fix: bulk edit datetime field

* fix: picker support third party data source

* fix: test
2024-09-29 17:49:44 +08:00
Zeke Zhang
8068707d63 Merge branch 'main' into next 2024-09-29 09:55:08 +08:00
Zeke Zhang
570df86261
fix(varaible): fix Table selected records (#5337)
* fix(varaible): fix Table selected records

* test: add e2e test

* chore: make unit tests pass

* chore: make unit test pass
2024-09-29 09:35:46 +08:00
GitHub Actions Bot
b7c4d44e54 Merge branch 'main' into next 2024-09-28 23:40:21 +00:00
Zeke Zhang
6b07fc4352
fix(subpage): fix z-index (#5338) 2024-09-29 07:39:57 +08:00
Sheldon Guo
ff116acc42
feat: notification manager and email channel notification (#4926)
* feat: init plugin

* feat: core  fix schema

* feat: mail init plugin

* feat: core change plugin name

* feat:  notificationType初步可以正常工作

* feat: 动态表单可以正常渲染

* feat: 修改notification type从form或record获取

* feat: 修复关联字段无法正常渲染问题

* fix: change node version

* feat: delete useless code

* feat: change Notification Sever to class

* feat: change plugin name

* feat: change plugin name

* feat: add nodemailer

* feat: change message name

* feat: change field name

* feat: temp change collection name

* feat: 初步能加载所有messageLog,  筛选还不起作用

* feat: messageLog可以显示,  但是messageId还不显示

* feat: fix bugs

* feat: fefactor message create form

* feat: temp

* feat: use mail config

* feat: add plugin preset

* feat: use array items

* feat: fix message config bug

* feat: use next yarn.lock

* feat: change dependencies to devDependencies

* feat: not improt name from package.json

* fix: fix import error

* fix: resolve confict in yarn.lock

* feat: update messageLog to Log

* feat: add workflow

* feat: add variables support

* feat: use raw textarea

* feat: temp

* feat: temp

* chore: fix variable input null value bug. Add content custom form

* feat: upgrade plugin

* feat: upgrade plugin

* feat: upgrade plugin

* feat: remove channel options title

* chore: fix some problem

* feat: temp

* feat: make field vertical

* feat: make form vertical

* feat: add locale support

* feat: refactor notification server registration to use notificationManager

* feat: add notification manager locales

* chore: remove useless file

* feat: update channel ID field type to string

* refactor: add logs locale support

* refactor: remove unused NotificationPluginStorer class

* feat: update mail channel title localization

* feat: register snippet for notification messages and allow sending messages for logged-in users

* refactor: update mail server to write logs for successful and failed email deliveries

* refactor: update mail server to write logs for successful and failed email deliveries

* refactor: optimize notification sending process and add logging for successful and failed deliveries

* refactor: update logger messages for notification delivery status

* feat: add channel collection to LogManager component

* refactor: update mail server to write logs for successful and failed email deliveries

* refactor: change message send api access right

* refactor: add id field to channel form schema and update channel collection UI

* refactor: update messageLog collection to use UUID for primary key

* refactor: update mail server to write logs for successful and failed email deliveries

* refactor: update mail server configuration form schema and UI

* refactor: update mail server configuration form schema and UI

* refactor: update channel collection name and form schema

* refactor: update mail server to write logs for successful and failed email deliveries

* refactor: update NotificationInstruction to use options instead of res and error for job result

* refactor: rename mail plugin package to use SMTP in the name

* refactor: update mail plugin package name to include SMTP

* refactor: update channel collection name and form schema

* refactor: update channel collection name and form schema

* refactor: update channel collection name and form schema

* fix: filterTargetKey

* refactor: update channel sort key

* refactor: update channel collection name and form schema

* refactor: update localization strings for email notifications

* chore: add register type unit test

* refactor: remove unused imports in registerType.test.ts

* refactor: remove unused imports in NotificationInstruction.tsx

* feat: add 'notification-manager' to the list of required plugins

* refactor: update notification sending logic in NotificationInstruction.ts

* feat: notification-core: add plugin context

* feat: add receiverType field to MessageConfigForm

* feat: add receiverType field to MessageConfigForm

* feat: add receiverType field to MessageConfigForm

* feat: refactor ReceiverConfigForm component structure

* feat: add description to channel name field

* feat: update channel schema with ellipsis for long values

* feat: update channel schema with ellipsis for long values, use tablev2 and formv2

* refactor: improve workflow execute logs

* feat: update channel schema with ellipsis for long values, use tablev2 and formv2

* feat: update channel schema with refresh and filter actions

* feat: update nocobase presets with workflow notification and notification manager plugins

* feat: remove unused channelId property from SendOptions interface

* feat: update @nocobase/plugin-notification-manager dependency to version >=0.17.0-alpha.3

* feat: update package descriptions and display names for notification plugins

* feat: update MessageConfigForm to use variableOptions for ReceiverInputComponent

* chore: update plugin versions to 1.4.0-alpha

* feat: update channel schema to include channelTitle property

* feat: update notification manager plugin locale and form components

* feat: update mail-server.ts to support sending emails to multiple receivers, cc, and bcc

* feat: update channel manager component to handle empty channel types

* feat: update channel manager component to handle empty channel types

* feat: update channel manager component to handle empty channel types

* feat: update rowKey fallback value in useTableBlockProps

* feat: temp

* refactor: update mail-server.ts and tsconfig.json

* refactor: update mail-server.ts and tsconfig.json

* refactor: update tsconfig.json to enable strictNullChecks and disallow JavaScript files

feat: Add 'workflow-notification' plugin to the list of presets in server/index.ts

* refactor: update localization files for channel display name and failed reason

* chore: improve UI

* refactor: update localization files for message

* refactor: update delete action confirmation message

* refactor: update constant for notification logs collection name

* refactor: update channel schema for action buttons and delete confirmation

* refactor: update provider name retrieval in MessageConfigForm

* refactor: update localization files for message

* refactor: update sendParams in NotificationInstruction

* refactor: update channel type constant to 'smtp-mail'

* refactor: remove unused code related to delete action in channel manager

* refactor: remove unused code related to delete action in channel manager

* refactor: update channel collection name constant

* refactor: update log detail visibility condition

* refactor: rename ContentConfigForm to MessageConfigForm

* refactor: update register and send api

* feat: update channel registerType function params

* refactor: update channel type key in ConfigForm component

(cherry picked from commit a00c75a8fb972938a22b959cfcd5cc8e9decfc21)

* refactor: remove unused import in ConfigForm component

* fix: improve code

* refactor: fix channelTypes reference in PluginNotificationManagerClient

* refactor: add permission for notificationChannels in PluginNotificationManagerServer

* fix: improve code

* fix: improve code

* fix: improve code

* fix: improve code

* fix: improve code

* fix: acl

* fix: build error

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-09-28 23:55:04 +08:00
GitHub Actions Bot
f3d9c411e0 Merge branch 'main' into next 2024-09-27 03:04:36 +00:00
Zeke Zhang
ab0f029280
fix: refresh block data when closing sub-page by clicking page menu (#5331)
* fix: refresh block data when closing sub-page by clicking page menu

* test: add e2e test
2024-09-27 11:04:18 +08:00
GitHub Actions Bot
066cb261c6 Merge branch 'main' into next 2024-09-27 03:02:40 +00:00
Zeke Zhang
3513303022
fix(embed): fix issue with unable to open subpage (#5335) 2024-09-27 11:02:15 +08:00
Katherine
0924ddfa80
fix: after success setting for the submit button (#5332)
* fix: submit action should support after uccess setting

* fix: after success
2024-09-27 08:52:06 +08:00
Junyi
51423a37ac
refactor(client): add nullable option for variable input component (#5223)
* refactor(client): add nullable option for variable input component

* fix(client): fix test case
2024-09-26 21:50:09 +08:00
Zeke Zhang
23d55412a0
feat(custom-request): support concatenation of variables and strings (#5317)
* feat(custom-request): support concatenation of variables and strings

* chore: fix build

* chore: make e2e tests pass

* chore: make e2e more stable

* chore: fix the issue of unit tests not stopping after completion
2024-09-26 20:54:51 +08:00
chenos
c3e740b552
feat: public forms (#5142)
* feat: public forms plugin

* refactor: public form

* refactor: parseCollectionData

* refactor: parseToken

* refactor: handleEditPublicForm

* refactor: parseACL

* refactor: enable form

* refactor: copy link

* refactor: edable password

* refactor: qr code

* refactor: create public form

* refactor: create public form

* refactor: bulk destroy

* fix: bug

* refactor: support nester form

* refactor: show message under control

* refactor: support bulk destroy

* refactor: support bulk destroy

* refactor: adapt to mobile devices

* refactor: settings

* refactor: locale improve

* refactor: parseAcl

* refactor: parseAcl

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* refactor: dataSourceCollectionCascaderReadPretty

* fix: bug

* fix: bug

* fix: bug

* fix: collection template

* fix: style improve

* refactor: locale improve

* refactor: parseToken

* fix: bug

* style: brand style improve

* refactor: settings

* fix: bug

* fix: bug

* refactor: locale improve

* refactor: locale improve

* refactor: locale improve

* refactor: locale improve

* refactor: package.json

* refactor: create form schema

* refactor: create form schema

* fix: bug

* fix: parseToken

* fix: publicFormsSchema

* fix: publicFormsSchema

* fix: useSubmitActionProps

* fix: useSubmitActionProps

* fix: password

* fix: password

* refactor: custom request

* refactor: variable for public form

* style: style improve

* fix: bug

* style: style improve

* style: style improve

* refactor: filter

* refactor: locale improve

* refactor: locale improve

* refactor: locale improve

* fix: bug

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
2024-09-26 17:12:16 +08:00
Zeke Zhang
cdc188c8c8 Merge branch 'main' into next 2024-09-26 10:28:12 +08:00
Zeke Zhang
eb49b8fec0
fix(embed): fix issue with unable to open popup in kanban (#5326) 2024-09-26 10:21:04 +08:00
Zeke Zhang
c3afb5ee91 fix(ellipsis): optimize text style 2024-09-24 18:02:34 +08:00
Zeke Zhang
ea5aeb3a09 fix(Table): optimize text style 2024-09-24 16:45:11 +08:00
Zeke Zhang
3c3efaa654 fix(Table): header text should not wrap when overflowing 2024-09-24 15:51:48 +08:00
Zeke Zhang
dc11670f54
feat(fieldSettings): add a Settings named 'Ellipsis' (#5306)
* feat(fieldSettings): add a Settings named 'Ellipsis'

* chore: add translation

* chore: fix build

* chore: fix build

* chore: skip some unit tests

* fix: fix hidden prop

* test: add e2e test

* style(Kanban): optimize text style

* chore: make e2e test more stable
2024-09-24 13:45:32 +08:00
GitHub Actions Bot
2107c86c63 Merge branch 'main' into next 2024-09-24 04:31:55 +00:00
Zeke Zhang
35198b715e
fix(variable): should show all collection fields (#5310) 2024-09-24 12:29:16 +08:00
Katherine
da426635ee
fix: markdown report error with each (#5305) 2024-09-23 17:19:27 +08:00
Zeke Zhang
597ee9d42c fix(Collapse): fix default value 2024-09-23 13:26:42 +08:00
Zeke Zhang
cfd5ff8b10
feat(Collapse): support to set default value (#5300)
* fix: remove configuration items that should not be displayed

* feat(Collapse): support to set default value

* fix: update UI after updating default value

* chore: fix build error

* chore: skip failed unit tests

* fix: fix the issue of default values for different fields not merging
2024-09-22 10:14:51 +08:00
猫鱼豆腐
af0c442268
feat(client): supports setting the text align in the style configuration item of the field (#5272)
* feat(client): table text align

* refactor: remove useless code

* refactor: extract schemas outside the component

* chore: make e2e tests pass

* test: add e2e tests

* chore: fix build

---------

Co-authored-by: Zeke Zhang <958414905@qq.com>
2024-09-20 01:24:35 +08:00
katherinehhh
ba46b69ff3 Merge branch 'main' into next 2024-09-19 16:55:44 +08:00
Katherine
ccea048f65
fix: cannot select the option to delete the schedule in delete event action (#5274)
* fix: issue with deleteEven option

* fix: issue with deleteEven option

* fix: bug
2024-09-19 11:17:22 +08:00
GitHub Actions Bot
330f908cfb Merge branch 'main' into next 2024-09-18 08:11:42 +00:00
Zeke Zhang
4ba512ed17
fix(Table): prevent empty lines at the beginning (#5284)
* fix(Table): prevent empty lines at the beginning

* refactor: rename index to rowIndex
2024-09-18 16:11:16 +08:00
Katherine
28d08f619a
fix: recordpicker rowSelection (#5273) 2024-09-14 16:10:30 +08:00
GitHub Actions Bot
0d061a6c58 Merge branch 'main' into next 2024-09-14 07:42:58 +00:00
Katherine
ab719cf960
fix: column width issue with scroll.y when table has no data (#5256) 2024-09-14 15:39:18 +08:00
Katherine
2d518c755a
feat: add common handlebars helpers (#5262)
* refactor: handlebar support dateFormat

* refactor: handlebars register budibase/handlebars-helpers

* refactor: getRenderContent

* fix: bug

* refactor: support tz

* refactor: urlparse

* fix: variableDate

* fix: variableDate

* fix: test

* fix: test

* refactor: locale
2024-09-14 10:04:16 +08:00
GitHub Actions Bot
e315d42c7b Merge branch 'main' into next 2024-09-13 23:35:57 +00:00
Zeke Zhang
961e14bcef
fix(filterForm): fix date variables (#5257) 2024-09-14 07:35:38 +08:00
GitHub Actions Bot
b830604348 Merge branch 'main' into next 2024-09-11 09:21:37 +00:00
Zeke Zhang
f24972c01d
feat: do not update x-action-context when doNotUpdateContext is true (#5253) 2024-09-11 17:21:13 +08:00
Katherine
fe0d003e99
fix: markdown handlebars rendering issue with this context (#5250) 2024-09-11 11:18:20 +08:00
Katherine
24b3b08876
fix: issue with tree table nodes not expanding (#5252) 2024-09-11 10:58:26 +08:00
Katherine
0d32ba4ff5
chore: support composite record unique key (#5007)
* refactor: filterTargetkey support mutiple

* refactor: getRowKey

* fix: bug

* chore: test

* chore: test

* chore: test

* fix: bug

* fix: build

* fix: useBulkDestroyActionProps support join primary key

* fix: build

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: fieldNames

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* refactor: sourceIdValue

* fix: remoteselect

* chore: test

* chore: multi target key in has many relation repository

* chore: test

* chore: multiple relation repository

* fix: test

* refactor: target collection not support join collection

* Update update-associations.ts

---------

Co-authored-by: Chareice <chareice@live.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2024-09-10 21:51:37 +08:00
Katherine
5112b8e77e
refactor: secondary confirmation information supports customization (#5199)
* refactor: secondary confirmation information supports customization

* fix: bug

* fix: bug

* refactor: locale improve

* refactor: locale improve

* fix: test

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* refactor: locale improve

* fix: test

* fix: bug
2024-09-10 16:48:59 +08:00
ChengLei Shao
a7df0e3fd3
refactor: datetime field (#5084)
* refactor: date field support timezone, defaultToCurrentTime, and onUpdateToCurrentTime

* refactor: availableTypes unixTimestamp

* chore: defaultToCurrentTime

* chore: unix timestamp field

* fix: bug

* chore: field type map

* refactor: local improve

* fix: bug

* fix: bug

* chore: timezone test

* chore: test

* fix: test

* fix: test

* chore: field setter

* chore: test

* chore: date only field

* chore: test

* chore: test

* fix: bug

* fix: unixTimestamp

* fix: unixTimestamp

* chore: accuracy

* fix: bug

* fix: bug

* fix: unixTimestamp

* fix: unixTimestamp

* fix: date & datetime

* refactor:  add DateFieldInterface

* fix: bug

* chore: test

* chore: test

* chore: test

* refactor: locale improve

* refactor: local improve

* fix: bug

* refactor: unixTimestamp not support default value

* refactor: timezone

* refactor: datetimeNoTzFieldInterface

* refactor: locale improve

* refactor: locale improve

* fix: test

* fix: bug

* chore: datetime no tz field

* refactor: datetimeNoTz

* refactor: datetime

* fix: bug

* refactor: timeFormat

* style: collection fields style improve

* refactor: defaultToCurrentTime

* fix: datetime no tz

* chore: field type map

* fix: bug

* fix: bug

* refactor: createAt & updateAt

* fix: bug

* fix: no tz field with timezone

* refactor: dateonly

* fix: test

* chore: data type map

* fix: dateonly

* fix: dateonly

* fix: datetime

* refactor: locale improve

* refactor: unixtimestamp

* fix: merge bug

* fix: bug

* fix: datetime

* fix: datetime no tz

* fix: datetime no tz

* chore: mysql datetime map

* chore: test

* chore: test

* chore: test

* chore: datetimeTz field

* fix: no interface option

* refactor: update type

* refactor: update type

* fix: pg no tz field

* chore: save iso8601 format to no tz field

* fix: test

* fix: test

* refactor: gannt & calender startTime & endTime

* refactor: unixTimestamp

* chore: filter of datetime field

* chore: test

* chore: test

* fix: test

* fix: datetime no tz filter

* chore: test

* chore: test

* fix: datetime default value in mysql

* fix: sqlite test

* chore: test

* fix: test

* fix: test

* fix: $dateOn

* fix: bug

* fix: bug

* refactor: datepicker

* fix: test

* refactor: datePicker

* refactor: gantt setting

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
2024-09-10 15:25:20 +08:00
GitHub Actions Bot
10dbed8918 Merge branch 'main' into next 2024-09-10 03:52:27 +00:00
Zeke Zhang
97d2ad6f52
feat: support for displaying deeper level association fields in data blocks (#5243)
* feat(table): add support for selecting child fields of association fields

* style: fix style

* feat(details): add support for selecting child fields of association fields

* fix: correct sourceId retrieval

* test: add tests

* chore: fix build error

* chore: remove ConfigProvider

* test: update e2e tests
2024-09-10 11:13:37 +08:00
GitHub Actions Bot
84523160b7 Merge branch 'main' into next 2024-09-09 11:42:38 +00:00
Katherine
4399856eae
fix: menu modifications do not take effect in real-time (#5207)
* fix: menu modifications do not take effect in real-time

* fix: bug
2024-09-09 19:42:12 +08:00
GitHub Actions Bot
4e3b7dd8b5 Merge branch 'main' into next 2024-09-09 09:33:21 +00:00
Katherine
db57b21e1a
refactor: support association field preloading in Handlebars templates (#5236)
* chore: update ci

* chore: update ci

* fix: support association field preloading in Handlebars templates

* fix: bug

---------

Co-authored-by: xilesun <2013xile@gmail.com>
2024-09-09 17:33:03 +08:00
GitHub Actions Bot
919bfcc4ca Merge branch 'main' into next 2024-09-08 14:15:08 +00:00