Commit Graph

3688 Commits

Author SHA1 Message Date
Zeke Zhang
fdbdbac3c6 fix: fix filter param of data scope of list block 2024-01-03 17:59:32 +08:00
katherinehhh
b8df21a75a refactor: pluginsetting replaceRouteParams 2024-01-03 17:51:15 +08:00
jack zhang
4c42dd8a13
fix: in the dev environment, all plugins are loaded locally (#3309)
* fix: cna plugin load

* fix: support storage

* fix: storage plugins

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-01-03 17:31:58 +08:00
katherinehhh
7808f97611 Merge branch 'main' into T-2771 2024-01-03 16:37:40 +08:00
dream2023
bd3f86e44f Merge remote-tracking branch 'origin/main' into T-2327 2024-01-03 11:20:15 +08:00
Junyi
c4c7b7a6b6
fix(plugin-workflow): adjust locale (#3308) 2024-01-03 11:15:18 +08:00
dream2023
78c8b9ff2c Merge remote-tracking branch 'origin/main' into T-2327 2024-01-03 11:12:53 +08:00
xilesun
004998a80a chore(versions): 😊 publish v0.18.0-alpha.9 2024-01-03 10:00:45 +08:00
Junyi
cebd8efd2e
chore(plugin-workflow): add metric example (#3305)
* chore(plugin-workflow): add metric example

* refactor(plugin-workflow): refactor some code

* refactor(plugin-workflow): remove type for less dependencies
2024-01-03 09:59:33 +08:00
Junyi
e8b7fbd699
chore(vscode): add inspect argument for attaching to debug port (#3307) 2024-01-03 09:19:51 +08:00
katherinehhh
4dbac496be
fix(client): detail block should support save as block template (#3303)
* fix: detail block should support save as block template

* test: detail block setting test
2024-01-02 22:24:17 +08:00
Junyi
64e0659f7b
feat(plugin-workflow-request): allow to use variable in url (#3304) 2024-01-02 21:35:09 +08:00
katherinehhh
1bbae2cc4f refactor: input interface support uid as availableTypes 2024-01-02 17:57:39 +08:00
katherinehhh
fda30fd519
fix: dateformat setting should support sub-table/table block (#3297)
* fix: dateformat should effect immediately in sub-table

* refactor: dateformat setting for sub-table/table block

* refactor: dateformat setting for sub-table/table block

* refactor: schemaSettingsDateFormat
2024-01-02 17:36:28 +08:00
katherinehhh
e8759588b5
fix: record picker should support popupsize setting (#3299) 2024-01-02 15:48:42 +08:00
chenos
5de28cd4c4 fix(ui-schema-storage): duplicate of empty schema 2024-01-02 14:44:54 +08:00
chenos
29b47c1d40 fix: plugin does not exist 2024-01-02 12:32:47 +08:00
YANG QIA
0dbc01c330
feat: telemetry (#3279)
* feat: telemetry

* fix: build

* chore: update

* refactor: improve api

* fix: test

* fix: version

* fix: build

* feat: support for adding views

* fix: typo

* fix: version

* chore: update

* chore(env): `true` -> `on`

* fix: metric version
2024-01-02 12:17:46 +08:00
katherinehhh
e5f068baa5 Merge branch 'main' into T-2771 2024-01-02 11:56:43 +08:00
YANG QIA
66ee3f6864
chore(logger): append url to request log message (#3296) 2024-01-02 09:35:46 +08:00
Zeke Zhang
e99c2f2011
fix(defaultValue): fix unparsed default value in edit form's subtable (#3289)
* chore: yarn.lock

* fix: fix unparsed default value in edit form's subtable

* test: fix test

* fix: fix T-2805

* chore: increase timeout

* chore: increase expect timeout

* test: optimize parallelism mode

* test: reduce expect timeout

* test: mack test more stable

* chore: test

* chore: test

* test: fix parallelism mode

* chore: restart
2024-01-01 18:44:42 +08:00
dream2023
ae9227356f Merge remote-tracking branch 'origin/main' into T-2327 2024-01-01 17:39:15 +08:00
dream2023
65488a7cc7 fix: bug 2024-01-01 17:38:18 +08:00
katherinehhh
cc251b3222
fix: previewFields (#3293) 2024-01-01 17:10:12 +08:00
Chareice
4f51fcea7a
Merge branch 'main' into T-2844 2024-01-01 08:58:53 +08:00
YANG QIA
318b433482
chore(logger): improve format (#3290)
* chore(logger): improve format

* fix: build

* feat: develop format

* chore: develop -> console
2023-12-30 23:34:40 +08:00
katherinehhh
2836df2f10
fix: view collection should set title value when sync form database (#3287) 2023-12-29 17:51:07 +08:00
chenos
467f3b6b79
fix: remove require cache (#3288) 2023-12-29 17:34:12 +08:00
chenos
8bac8dac71 chore(versions): 😊 publish v0.18.0-alpha.8 2023-12-29 15:49:02 +08:00
chenos
6816aded87 fix: add LICENSE 2023-12-29 13:11:56 +08:00
Zeke Zhang
c739cff581 Revert "test: fix 'window is not defined'"
This reverts commit aefabffd77.
2023-12-29 12:19:19 +08:00
katherinehhh
7334e0b3fb
refactor: record picker submit button display by association type (#3283) 2023-12-29 11:53:04 +08:00
Zeke Zhang
c6915c69f8
fix: use appends param to load association data (#3282)
* fix: use appends param to load association data

* chore: update yarn.lock

* test: add test

* test: remove the 'BUG:' text

* test: fix 'window is not defined'

* test: increase timeout
2023-12-29 11:34:27 +08:00
katherinehhh
a6930bab12 Merge branch 'main' into T-2771 2023-12-29 09:56:25 +08:00
chenos
501e3f1db2 chore(versions): 😊 publish v0.18.0-alpha.3 2023-12-29 09:42:06 +08:00
chenos
95a5cab44c feat: add plugin.t() method 2023-12-29 09:40:17 +08:00
Junyi
7f0d699590
refactor(plugin-workflow): adjust some api and packages (#3281)
* fix(plugin-workflow): fix locale and some api

* fix(plugin-workflow-test): fix test package

* fix(plugin-workflow): fix package and types

* test(plugin-workflow): test package
2023-12-29 09:29:37 +08:00
katherinehhh
c9d5292d03
test(e2e): acl e2e test (#3249)
* test: acl test

* test: acl action test

* test: acl test

* test: acl test

* test: acl collection block test

* test: acl e2e test

* test: acl e2e test

* test: acl test

* test: acl collection test

* test: acl collectin test

* test: acl association test

* test: association acl test

* test: collection acl test

* test: collection acl test

* test: acl test

* test: acl updateRole test

* test: menu permission test

* test: menu permission test

* test: menu permission test

* test: menu permission test

* test: acl test

* test: acl test

* test: acl test

* test: acl test

* test: acl test

* test: menu acl test

* test: acl test

* refactor: setDefaultRole

* fix: merge bug

* fix: merge bug

* test: acl test
2023-12-29 09:15:57 +08:00
Zeke Zhang
4121075a98
test(e2e): add tests for collection manager (#3253)
* refactor: optimize file structure

* test: add tests for collection templates

* test: fix errors

* fix: fix errors

* test: schemaInitializer of fields

* fix: test erros

* fix: test error

* test: make tests more stable

* test: fix tree template
2023-12-29 09:14:47 +08:00
hongboji
e7c2c9ff83
test: workflow e2e (#3261)
* test: workflow e2e

* test: workflow e2e

* fix: merge main, fix incompatibility

* test: remove unneeded test cases

* fix: process.env.PLAYWRIGHT_AUTH_FILE

* fix: workflow e2e

* test: increase e2e timeout-minutes to 180

* fix: error

* fix: workflow aggregate e2e test

* fix: cancel useTransaction

* fix: updateRecord

* fix: queryRecord

* fix: queryRecord

* fix: queryRecord

* fix: formEvent

* fix: format files

* fix: test

* fix: error

* fix: error

* fix: split files

* fix: ci

* fix: error

* fix: error

* fix: client end

* fix: test

* fix: test

* feat: concurrency=10

* fix: concurrency=3

* test: increase timeout

* test: p-test

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Zeke Zhang <958414905@qq.com>
2023-12-29 09:13:00 +08:00
Chareice
c0c19983e2
chore: append getDb inoto context 2023-12-29 08:56:47 +08:00
katherinehhh
7b4dacd79f refactor: collection manager export 2023-12-28 21:02:31 +08:00
katherinehhh
0c60780b50
fix: associaion block failed to create in internalViewer (#3274) 2023-12-28 19:42:51 +08:00
katherinehhh
540338935b refactor: pluginsetting manager 2023-12-28 16:30:41 +08:00
katherinehhh
1f4a303581 refactor: admin layout 2023-12-28 16:19:05 +08:00
Zeke Zhang
50851dc441
fix: z-index should be the same value (#3278) 2023-12-28 16:18:07 +08:00
Chareice
b3a3457e88
fix: test 2023-12-28 15:49:23 +08:00
Chareice
f812826df9
chore: setDb 2023-12-28 15:33:51 +08:00
Chareice
d61ad37be7
feat: support multiple database instances in application 2023-12-28 15:22:04 +08:00
katherinehhh
2074e5e4b8
style: collection manger fields style improve (#3276) 2023-12-28 14:51:24 +08:00
katherinehhh
f834173be0 Merge branch 'main' into T-2771 2023-12-28 14:31:46 +08:00
chenos
8108107779
fix: require module (#3277)
* fix: require module

* fix: include utils
2023-12-28 13:40:11 +08:00
katherinehhh
e7c445d2e7 refactor: collection manager export 2023-12-28 10:28:48 +08:00
katherinehhh
3df49a4a7b refactor: collection manager export 2023-12-28 10:24:31 +08:00
Zeke Zhang
80335aa23c
chore: optimize jsdom and vitest configuration (#3269) 2023-12-27 17:29:07 +08:00
katherinehhh
886c953d7c refactor: pluginsettingmanager support databse connection 2023-12-27 16:19:19 +08:00
katherinehhh
3f2cff9bb9 refactor: pluginsetting 2023-12-27 16:12:58 +08:00
dream2023
0da46b6f89 fix: bug 2023-12-27 14:24:29 +08:00
xilesun
1c3b5c1645 fix(logger): colorize 2023-12-27 14:02:22 +08:00
YANG QIA
8633ec3735
refactor(logger): improve logger format (#2664)
* refactor(logger): improve logger format

* chore: improve log format

* feat(logger): plugin-logger

* feat: allow to download log files, close T-1917

* chore: update yarn.lock

* chore: improve log format

* fix: add maxsize params

* chore: add userId field to request

* chore: remove userId from request

* chore: change userId in response

* chore: change action in response

* chore: add database logger

* fix: build

* fix: test

* chore: solve conflicts

* fix: escape delimiter in message

* refactor: improve create logger api

* chore: update app logger options

* chore: remove colorize for json

* fix: bug of data2tree

* fix: test

* chore: log

* chore: remove GITHUB_ACTION check

* fix: bug

* chore: change version

* fix: transports

* fix: mockServer

* chore: use new plugin settings api

* fix: version

* fix: build

* feat: support logfmt

* fix: build

* fix: build

* fix: test

* chore: update config

* fix: test

* fix: bug

* fix: test

* fix: format

* chore: update path

* fix: build

* fix: bug

* chore: update comment

* fix: allow to custom format

* fix: package.json

* fix: version

* fix: bug
2023-12-27 13:56:13 +08:00
Junyi
8ee8ab7d6d
refactor(plugin-workflow): refactor apis (#3267)
* refactor(plugin-workflow): refactor apis

* fix(plugin-workflow-parallel): fix import in test cases

* fix(plugin-workflow): fix some module import source

* fix(plugin-workflow): move manual table acl to manual plugin

* fix(plugin-workflow-manual): fix folder typo
2023-12-27 13:55:48 +08:00
katherinehhh
11c9085182 feat: support databse connection 2023-12-27 11:24:17 +08:00
katherinehhh
7c674cc1c2 feat: support databse connection 2023-12-27 11:07:35 +08:00
katherinehhh
edcaf1ddf2 feat: support databse connection 2023-12-27 11:02:38 +08:00
katherinehhh
6e300503d8 feat: support databse connection 2023-12-27 10:52:15 +08:00
Zeke Zhang
57c7dd3e95 docs: fix typo 2023-12-26 18:51:01 +08:00
katherinehhh
76e95729e4
fix: record picker display incorrect data when field has default value in collection (#3266)
* fix: default value should not set when field is readpretty or readonly

* fix: record picker display incorrect data when field has default value in collection
2023-12-26 17:21:25 +08:00
katherinehhh
641ca2dcca
fix: useParseDefaultValue (#3264) 2023-12-26 10:43:12 +08:00
katherinehhh
894e1c8bf8
refactor: local improve (#3265) 2023-12-26 10:42:14 +08:00
Chareice
9c645d3482
chore: import 2023-12-26 09:20:52 +08:00
Junyi
b68fde9d47
fix(plugin-workflow): defend unimplemented trigger type (#3263) 2023-12-25 23:59:45 +08:00
chenos
e8f481ae68 chore(versions): 😊 publish v0.18.0-alpha.2 2023-12-25 22:26:05 +08:00
chenos
313d252c71 fix: migration error 2023-12-25 22:24:28 +08:00
ChengLei Shao
bb07625af5
fix(database): belongs to association only in eager loading tree (#3259)
* chore: test

* chore: test

* fix: belongs to association only in eager loading tree
2023-12-25 19:44:27 +08:00
dream2023
4a32c58f01 fix: improve code 2023-12-25 17:55:33 +08:00
Junyi
f17e10caa4
fix(plugin-workflow): queueing execution of disabled workflow block dispatching (#3256)
* fix(plugin-workflow): queueing execution of disabled workflow block dispatching

* fix(plugin-workflow): fix typo
2023-12-25 17:44:07 +08:00
dream2023
e7e7a28cfe fix: bug 2023-12-25 16:11:51 +08:00
dream2023
d8a397d452 fix: review 2023-12-25 15:50:49 +08:00
chenos
cc2b132aa1
fix: tsx cli (#3254) 2023-12-25 15:03:48 +08:00
Junyi
0330e33704
feat(plugin-workflow): add space control to RadioWithTooltip (#3252) 2023-12-24 17:14:38 +08:00
chenos
e4c97651bf fix: incorrect tsx version on windows 2023-12-23 15:27:11 +08:00
Dunqing
e112a644ea
feat(plugin-calendar): add calendar plugin (#3109)
* feat: init calendar plugin

* feat: move files to plugin

* feat: handle CalendarBlockInitializer in plugin

* feat: add todo

* feat: move collection template to plugin and fix i18n

* chore: update deps

* feat: export genStyleHook

* feat: handle i18n

* chore: remove react-i18next

* docs: update info

* test: move e2e test

* test: move to client

* chore: update version

* fix: merge revert

* fix: merge revert

* fix: missing SchemaSettings.xxx

* test: fix e2e failed

* test: update

* test: fix case failed

* fix: data blocks

* fix: remove provider

* fix: missing CalendarV2

* fix: missing CalendarActionInitializers

* fix: version

* fix: error

* fix: calender block form action should support print

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-12-23 15:16:41 +08:00
chenos
2e038a651b fix: locale resource name 2023-12-22 18:49:58 +08:00
dream2023
23b241a338 fix: bug 2023-12-22 15:37:14 +08:00
Junyi
3b5240cc0a
fix(plugin-workflow-dynamic-calculation): fix missed component (#3247) 2023-12-22 15:01:11 +08:00
Junyi
3e99ad1483
refactor(client): allow fixed layout table and action link class (#3246) 2023-12-22 15:00:54 +08:00
dream2023
9efea727dc Merge remote-tracking branch 'origin/main' into T-2327 2023-12-22 11:38:06 +08:00
dream2023
37230ccf8f docs: collection manager 2023-12-22 11:36:48 +08:00
Zeke Zhang
d570a2c704
feat: the $anyof and $noneOf operators should support non-array values (#3244)
* fix: the $anyof and $noneOf operators should support non-array values

* chore: add lodash dependency

* test: add unit test

* test: add unit test
2023-12-22 09:52:28 +08:00
chenos
5e89a02044 fix(test): migration error 2023-12-21 21:03:03 +08:00
chenos
95e6a32647 chore(versions): 😊 publish v0.18.0-alpha.1 2023-12-21 20:40:32 +08:00
ChengLei Shao
261d4c4137
refactor: establish a sound testing system (#3179)
* chore: use vitest to replace jest

* chore: support vitest

* feat: vitest 1.0

* fix: test

* chore: yarn.lock

* chore: github actions

* fix: test

* fix: test

* fix: test

* fix: test

* fix: jest.fn

* fix: require

* fix: test

* fix: build

* fix: test

* fix: test

* fix: test

* fix: test

* fix: test

* fix: test

* fix: test

* fix: dynamic import

* fix: bug

* chore: yarn run test command

* chore: package.json

* chore: package.json

* chore: vite 5

* fix: fix variable test

* fix: import json

* feat: initEnv

* fix: env.APP_ENV_PATH

* chore: get package json

* fix: remove GlobalThmeProvider

* chore: update snap

* chore: test env

* chore: test env

* chore: import module

* chore: jest

* fix: load package json

* chore: test

* fix: bug

* chore: test

* chore: test

* chore: test

* chore: test

* chore: test

* fix: import file in windows

* chore: import module with absolute file path

* fix: test error

* test: update snapshot

* chore: update yarn.lock

* fix: front-end tests do not include utils folder

* refactor: use vitest-dom

* fix: fix build

* fix: test error

* fix: change to vitest.config.mts

* fix: types error

* fix: types error

* fix: types error

* fix: error

* fix: test

* chore: test

* fix: test package

* feat: update dependencies

* refactor: test

* fix: error

* fix: error

* fix: __dirname is not defined in ES module scope

* fix: allow only

* fix: error

* fix: error

* fix: error

* fix: create-app

* fix: install-deps

* feat: update docs

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: dream2023 <1098626505@qq.com>
Co-authored-by: Zeke Zhang <958414905@qq.com>
2023-12-21 20:39:11 +08:00
YANG QIA
06f11a2d08
refactor(auth): move auth client from core to the plugin & refactor auth client api (#3215)
* refactor(auth): auth client api

* fix: build

* fix: dependencies

* fix: fix T-2777

* fix: fix T-2776

* chore: update type

* fix: build

* fix: allowSignUp

* fix: file name

* fix: file name

* refactor: client api

* fix: build

* chore: update name

* fix: tsx must be loaded with --import instead of --loader

* fix: type

* fix: type

* fix: type

* fix: type

* fix: bug

* chore: improve wording

* fix: test

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-21 20:19:25 +08:00
Zeke Zhang
e68053b006
fix(drawer): fix z-index (#3242) 2023-12-21 11:39:34 +08:00
katherinehhh
b8244bfb9a
fix: failed to duplicate value in sub-table when setting data scope in association select (#3239) 2023-12-21 10:18:19 +08:00
Junyi
978c4c5f61
refactor(plugin-audit-log): remove useless function wrap (#3237) 2023-12-20 23:18:02 +08:00
Zeke Zhang
e7b9737920
perf: remove lazy load association fields (#3222)
* perf: remove lazy load association fields

* test: fix error

* chore: fix workflows

* test: fix error

* test: fix errors
2023-12-20 13:56:24 +08:00
Zeke Zhang
aaee46e0c2
feat(acl): supports 'current role' variable and collections filtering (#3181)
* feat(acl): support current role variable

* feat(acl): support to filter collections

* fix: the save conditions button should not be shown

* feat(formDataTemplates): supports to use variables for data scope

* test: make testing more stable

* fix: should only support filtering title and name

* fix: fix parse

* test: make testing more stable

* fix: should not use async function
2023-12-20 12:52:54 +08:00
dream2023
d0847c6f17 Merge remote-tracking branch 'origin/main' into T-2327 2023-12-20 12:01:48 +08:00
dream2023
4a33b04414 Merge branch 'T-2327' of https://github.com/nocobase/nocobase into T-2327 2023-12-20 12:01:36 +08:00
dream2023
10ca3359be fix: review 2023-12-20 12:00:55 +08:00
Junyi
2f892f00d7
refactor(plugin-workflow): add logs and try/catch for preparing (#3236) 2023-12-20 10:13:08 +08:00
ChengLei Shao
2289bb7418
chore: remove field from db (#3233)
* chore: remove field from db

* fix: test

* chore: test
2023-12-19 20:49:34 +08:00
Zeke Zhang
24446166db fix(filter): fix operatror 2023-12-19 15:50:53 +08:00
katherinehhh
2808440426
fix(kanban): kanban data on a page should be isolated (#3232)
* fix: kanban block data on a page influences each other

* test: kanban test
2023-12-19 15:27:00 +08:00
chenos
2cd3ed6383
Merge branch 'main' into T-2327 2023-12-19 14:55:25 +08:00
Zeke Zhang
c2f3cfd6ce
fix(filter): fix $in operatror (#3235) 2023-12-19 14:23:09 +08:00
YANG QIA
a6c23d58a1
fix(localization): compatibility with plugin package names as namespaces (#3234) 2023-12-19 13:51:26 +08:00
katherinehhh
4be8812912
fix: customize add record cusomeizeCreateFormBlockInitializers (#3230) 2023-12-19 12:02:18 +08:00
ChengLei Shao
f60c7626e0
fix: update assocations in belongs to many repository (#3229) 2023-12-19 10:07:25 +08:00
Zeke Zhang
c129889df6
fix: fix switch role and input style (#3226)
* fix: fix switch role and input style

* refactor: remove useless code
2023-12-19 07:50:53 +08:00
chenos
b86193c349 fix: remove UpdateMode 2023-12-18 21:01:32 +08:00
by
9b1c02b63c
feat: add a secondary confirmation function to the direct execution o… (#3161)
* feat: add a secondary confirmation function to the direct execution of the move operation button

* feat: add a secondary confirmation function to the direct execution of the move operation button

* fix: fix the problem of uncontrolled confirm

* fix: copywriting repair

---------

Co-authored-by: zhangboya3 <zhangboya3@xiaomi.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-18 20:45:37 +08:00
katherinehhh
5a55987033
fix(graph-collection-manager): application context missing (#3224)
* fix: appicationContext

* fix: appicationContext

* fix: update position
2023-12-18 20:19:36 +08:00
dream2023
9ee161610d fix: bug 2023-12-18 17:57:25 +08:00
Zeke Zhang
de902c538b
fix(variable): local variables should not affect global variables (#3214) 2023-12-18 15:48:39 +08:00
dream2023
5d70012f50 Merge remote-tracking branch 'origin/main' into T-2327 2023-12-18 15:46:07 +08:00
dream2023
c172fd9548 feat: collection manager 2023-12-18 15:45:46 +08:00
Zeke Zhang
6bd0568d08
chore: upgrade antd to v5.12.2 (#3185)
* chore: upgrade antd to v5.12.2

* refactor: rename to StablePopover

* fix: fix tests

* test: fix e2e

* chore(CI): optimize E2E workflow

* chore: fix playwright

* fix: re-generate yarn.lock to fix e2e errors

* test: update locator

* fix: fix build errors

* fix: fix unit tests

* fix: fix e2e tests

* fix: should not auto close when clicking menu item

* fix: fix column width

* test: increase e2e timeout-minutes to 90

* test: fix e2e

* fix: update dockerfile

* fix: npmignore

* fix: app component false

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-18 15:21:57 +08:00
dream2023
b12b7c5ef6 fix: bug 2023-12-17 21:53:56 +08:00
Zeke Zhang
1eee7f5f4e fix(e2e): change the value of adminSchemaUid 2023-12-17 15:51:28 +08:00
Dunqing
1cbdfa4f60
feat(mobile-client): update the text of the preview button (#3189) 2023-12-17 11:17:18 +08:00
chenos
f82b4d8726
feat(ui-schema): nocobase-admin-menu & nocobase-mobile-container (#3213)
* feat(ui-schema): nocobase-admin-menu & nocobase-mobile-container

* fix: db.sync

* fix: error

* fix: error

* fix: error

* fix: add test case

* fix: migration error

* fix: test error
2023-12-17 11:16:30 +08:00
katherinehhh
b1610e6994
feat: kanban& gantt&bulk edit& bulk update& duplicate& print action pluggable (#3019)
* fix: bug

* test: kanban test

* test: gantt block test

* test: gantt test

* test: gantt test

* test: gantt test

* refactor: convert parameters to destructured object

* test: add tests choices

* test: add tests media

* test: add tests for datetime in creating form

* feat(plugin-mock-collection): generate faker time

* test: add tests for datetime in editing form

* test: add tests for datetime in details form

* test: gantt block test

* test: gantt test

* test: gantt test

* test: gantt test

* fix: bug

* feat: improve code

* test: add tests for relation fields

* refactor: style improve

* fix: rename SchemaSettings

* fix: type bug

* refactor: useDesinger()

* fix: bug

* fix: bug

* fix: build tip

* refactor: kanban setting

* refactor: gantt setting

* refactor: bulk update setting

* refactor: bulk update setting

* refactor: bulk edit settings

* refactor: duplicate settings

* refactor: print action setting

* refactor: duplicate settings

* refactor: bulk update refactor

* refactor: bulk update refactor

* fix: designableState

* fix: bug

* fix: designable

* refactor: bulk update

* fix: designable

* test: add tests for relation fields

* test: add tests for relation fields

* test: add tests for relation fields

* feat: client api doc

* test: add tests for relation fields

* test: avoid errors

* test: make tests passing

* fix: bug

* test: gantt test

* test: make tests passing

* test: add tests for advanced fields

* test: increase e2e timeout-minutes to 60

* fix: bug

* fix: improve code

* feat: add schema initailizer component  demos

* test: make tests passing

* fix: schema settings demos

* feat: shallowMerge & deepMerge

* test: reduce number of tests

* test: make tests passing

* feat: updates

* fix: add Initializer Internal

* demos:  useSchemaSettingsRender

* test: make tests passing

* test: make tests passing

* test: bulk update test

* refactor: useSchemaToolbar

* fix: improve docs

* fix: bug

* test: duplicate action test

* test: duplicate action test

* test: duplicate action test

* test: duplicate action test

* chore: upgrade dumi theme

* test: make tests passing

* test: add tests for linkage rules

* test: add test for form data templates

* test: add tests for default value

* test: reduce number of tests

* refactor: bulk edit setting

* test: bulk edit action test

* test: bulk edit action test

* fix: dn.deepMerge

* fix: bug

* test: bulk edit action test

* test: kanban test

* refactor: bulk update version

* refactor: print action version

* fix: bug

* fix: toolbar

* fix: docs ssr

* test: add tests for system fields

* test: add tests for actions

* fix:  bug

* test: add tests for lazy loading of variables

* test: make testing more stable

* test: bulk edit test

* test: bulk update action test

* fix: update docs

* test: print test

* test: kanban test

* test: kanban test

* refactor: duplicate version

* fix: merge bug

* refactor: bulk update

* fix: merge bug

* refactor: bulk edit

* refactor: import

* refactor: export action

* refactor: code improve

* refactor: kanban code improve

* fix: merge bug

* refactor: readPrettyFormActionInitializers

* test: print action test

* test: print action test

* refactor: print action

* test: action test

* refactor: gantt date change

* style: gantt  style improve

* test: gantt &bulkUpdate test

* test: bulk update test

* test: duplicate action test

* test: print action test

* test: bulk edit action test

* test: gantt block test

* test: kanban block test

* test: test file name

* test: test file name

* test: bulk update action tst

* refactor: rename test file name

* refactor: bulk update action

* refactor: gantt test

* fix: block template

* fix: block template

* fix: useFieldModeOptions

* refactor: code improve

* fix: merge bug

---------

Co-authored-by: dream2023 <1098626505@qq.com>
Co-authored-by: Rain <958414905@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-16 21:59:33 +08:00
Dunqing
823a112435
fix(core): cannot add a record block in new tab in Drawer (#3196) 2023-12-16 19:39:46 +08:00
YANG QIA
cb6a6b87c9
fix(acl): optimize error handling when logged user has no roles (#3190)
* fix: fix T-2720

* fix: localization

* fix: test

* fix: build

* chore: update

* fix: update title

* chore: update title

* fix: app load error

* fix: load error

* fix: test error

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-15 21:03:16 +08:00
dream2023
e5503204d1 docs: improve documentation 2023-12-15 18:12:15 +08:00
xilesun
d6dbc970a5 chore(versions): 😊 publish v0.17.0-alpha.7 2023-12-15 11:39:15 +08:00
YANG QIA
231c9b02e9
fix: update dependent version of cache-manager (#3195) 2023-12-15 11:38:09 +08:00
YANG QIA
33779d3da2
fix: fix T-2749 (#3194) 2023-12-15 11:33:08 +08:00
Chareice
f6fdec1226
chore(database): update event listener scope in collection 2023-12-14 21:16:10 +08:00
dream2023
b35db3ae7a fix: review 2023-12-14 18:27:54 +08:00
dream2023
0636ddbe3d Merge remote-tracking branch 'origin/main' into T-2327 2023-12-14 10:08:35 +08:00
Junyi
58f1918e73
feat(plugin-workflow-form): add role name to form trigger context (#3182)
* feat(plugin-workflow-form): add role name to form trigger context

* refactor(plugin-workflow-dynamic-calculation): move to extended group
2023-12-13 04:08:02 -08:00
dream2023
201341113e docs: block provider docs 2023-12-13 17:05:57 +08:00
Zeke Zhang
5880c979ca test: make testing more stable 2023-12-13 16:57:18 +08:00
chenos
a702762cca chore(versions): 😊 publish v0.17.0-alpha.6 2023-12-13 16:36:59 +08:00
jack zhang
6fd774e173
fix: create-app dev plugin load (#3183) 2023-12-13 16:10:11 +08:00
Zeke Zhang
3b7c1345cc
test(e2e): add tests for client (#3144)
* test: add tests for lazy loading of association fields

* refactor: migrate

* test: add tests for page

* test: add tests for page menu

* test: add tests for tabs

* test: add tests for detail block

* test: add tests for list block

* test: add tests for grid card block

* test: add tests for filter collapse block

* test: add tests for markdown block

* test: add tests for table block

* test: add tests for table block

* test: add tests for lazy loading of association fields

* test: add tests for data scope

* test: add tests for filter block

* test: add tests for block template

* test: add tests for drag and sorting

* test: add tests for sorting rules

* test: make testing more stable

* Revert "test: make testing more stable"

This reverts commit 78b7badeb6.

* perf: remove enableToConfig

* test: make testing more stable

* test: make testing more stable

* test: delete newly created records to make tests more stable

* fix: fix error when deleting records

* test: make testing more stable

* test: make testing more stable

* test: fix tests

* refactor: optimize file structure

* test: fix tests

* test: fix tests

* refactor: optimize description

* refactor: optimize description

* refactor: use __e2e__ as the root directory for test files

* fix: fix build

* test: make testing more stable
2023-12-13 14:14:33 +08:00
Junyi
35c4b5c55a
fix(plugin-workflow-manual): fix schema config component (#3172) 2023-12-12 19:50:13 -08:00
xilesun
35301358de chore(versions): 😊 publish v0.17.0-alpha.5 2023-12-12 23:07:55 +08:00
YANG QIA
474b09c7f2
perf(server): optimize performance of APIs (#3079)
* perf: add perf_hooks

* perf: add cache

* fix: test

* feat: support bloom filter

* feat: caching token black list

* perf: caching i18n instance

* fix: test

* fix: test

* chore: remove prePerfHooks on app

* chore: improve i18n instances cache

* chore: remove performance measure

* fix: package.json

* perf: optimize cache strategy

* fix: test

* fix: bug

* test: storer of auth-manager

* fix: afterDestroy hook when updating null value

* fix: version

* chore: fix bug and add test

* fix: test

* fix: test
2023-12-12 23:02:09 +08:00
Chareice
2c37910894
chore: field type map 2023-12-12 21:28:42 +08:00
ChengLei Shao
439940cd22
chore: query interface (#3177)
* chore: query interface

* fix: build

* chore: typo
2023-12-12 21:24:52 +08:00
chenos
cf9ccfe4f9 chore(versions): 😊 publish v0.17.0-alpha.4 2023-12-12 14:10:36 +08:00
YANG QIA
8c1738db83
fix(theme-editor): "No permission" error when updating default theme of system (#3171)
* fix: fix T-2703

* fix: bug

* fix: migration

* chore: switch type to radio

* fix: collection.sync

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-12 14:09:30 +08:00
dream2023
fa5232fb35 fix: review 2023-12-12 11:42:11 +08:00
Chareice
7166409c75
fix: quote ident in postgres get table definition 2023-12-12 09:58:14 +08:00
jack zhang
cb0d757a6b
fix: dev load remote plugin (#3175) 2023-12-11 16:16:04 +08:00
chenos
efb6580eaf fix(mock-collections): mock unique 2023-12-10 23:44:17 +08:00
katherinehhh
a7176770fb
fix: sub-form(popover)in sub-table value mutual influence (#3164) 2023-12-10 19:21:41 +08:00
Junyi
7bb50fea34
fix(plugin-workflow-manual): fix initializer (#3170) 2023-12-09 15:17:01 +08:00
Zeke Zhang
a2be1a0e33
feat(variable): add current role (#3167)
* feat(variable): add current role

* chore: translate

* feat: parsing in the backend

* fix: fix tests
2023-12-08 19:19:53 +08:00
chenos
d782776a8d
fix: plugin version not updated after upgrade (#3166) 2023-12-08 19:19:38 +08:00
jack zhang
810ab3294d
fix: sub menu hide (#3168) 2023-12-08 17:59:52 +08:00
dream2023
5ad7f61c6e fix: demos 2023-12-08 17:09:36 +08:00
YANG QIA
4665095372
fix(bi): import bug (#3165) 2023-12-08 16:56:05 +08:00
Junyi
0e7cb9e5cf
refactor(plugin-workflow): split workflow features into plugins (#3115)
* refactor(plugin-workflow): split manual and dynamic calculation into plugins

* refactor(plugin-workflow): move loop to plugin

* refactor(plugin-workflow): move parallel to plugin

* fix(plugin-dynamic-calculation): fix package title

* fix(plugin-workflow): fix plugin name

* refactor(plugin-workflow): move delay to plugin

* refactor(plugin-workflow): simplify exporting names

* refactor(plugin-workflow): move aggregate to plugin

* refactor(plugin-workflow): move sql to plugin

* refactor(plugin-workflow): move reqeust to plugin

* refactor(plugin-workflow): move form trigger to plugin

* refactor(plugin-workflow): move locale to plugins

* fix(plugin-workflow): fix test cases

* fix(plugin-workflow-request): package name typo

* fix(plugin-workflow): remove clean db from testkit

* fix(plugin-workflow-sql): skip independent case

* fix(plugin-workflow-sql): skip independent case

* fix(plugin-workflow-delay): fix test cases

* test(plugin-workflow-delay): fix test cases

* test(plugin-workflow-delay): fix test cases

* test(plugin-workflow-delay): fix test cases

* test(plugin-workflow-delay): fix test cases

* fix(plugin-workflow): fix migration version matching

* test(plugin-workflow): fix test case

* refactor(plugin-workflow): correct exporting of testkit

* fix(plugin-workflow): fix testkit and require module

* refactor(plugin-workflow): add workflow-test package for testing

* test(plugin-workflow): test weird case

* fix(plugin-workflow-test): remove workflow dependency to avoid cycling

* fix(plugin-workflow): fix migration version

* fix(plugin-workflow): fix migration and packages

* fix(plugin-workflow): fix package dependencies

* fix(preset): fix builtin list in preset

* fix(plugin-workflow): add package entry file

* fix(plugin-workflow): fix migrations

* refactor(plugin-workflow): remove require

* fix(plugin-workflow): fix locale namespace

* fix(plugin-workflow): fix merged errors

* fix(plugin-workflow): fix import cycling references

* refactor(plugin-workflow): change instruction and triggers to classes in client

* fix(plugin-workflow): fix migration version
2023-12-07 05:46:58 -08:00
YANG QIA
8708765f43
fix(bi): localization (#3159)
* fix(bi): localization

* fix: bug

* fix(map): localization

* fix: antd config provider
2023-12-07 21:15:40 +08:00
dream2023
e6413693e2 fix: demos 2023-12-07 18:00:28 +08:00
dream2023
5cc72f2e2b Merge remote-tracking branch 'origin/main' into T-2327 2023-12-07 15:47:56 +08:00
dream2023
c2fed7bab0 fix: review 2023-12-07 15:47:32 +08:00
Zeke Zhang
1fddf0bcb5
fix: fix default value is not working in sutable (#3155) 2023-12-07 14:08:28 +08:00
Junyi
a86a65cf2c
fix(plugin-workflow): fix destroy node locale (#3150) 2023-12-06 08:06:10 -08:00
YANG QIA
e0e91c2c95
fix(lm): texts update hook after collection update (#3151)
* fix(lm): texts update hook after collection update

* fix: validate language

* fix: typo
2023-12-07 00:02:23 +08:00
Chareice
3b324f31a2
fix(database): phantom dependency 2023-12-06 22:29:13 +08:00
chenos
eef101c177 chore(versions): 😊 publish v0.17.0-alpha.3 2023-12-06 17:19:35 +08:00
jack zhang
8e7cb832cc
fix: delete root docs (#3145)
* fix: delete root docs

* docs: update useSchemaOptionsContext()

* chore: change ci

* chore: upgrade dumi theme

* fix: upgrade tsx
2023-12-06 16:20:31 +08:00
YANG QIA
269467ebb0
fix(lm): wrong version of migration (#3148)
* fix(lm): wrong version of migration

* fix: typo
2023-12-06 15:07:23 +08:00
YANG QIA
ff097936dd
fix(lm): reserve i18n namespaces for plugins to avoid conflicts (#3121)
* fix: fix T-2063

* fix: fix T-2589

* chore: remove translation of page header

* chore: add version check for migration

* chore: switch locale files to JSON format

* fix: bug

* fix(auth): fix translation

* fix: add App provider

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-06 14:30:17 +08:00
chenos
36fd4881b2 chore(versions): 😊 publish v0.17.0-alpha.2 2023-12-06 13:20:48 +08:00
chenos
e418d31eb8
fix: default action schema settings (#3146)
* fix: default action schema settings

* fix: customRequest
2023-12-06 12:48:21 +08:00
xilesun
ad25fe704c fix: issue with SQL collection when the source collection is deleted 2023-12-06 10:09:42 +08:00
Chareice
95bec2278f
fix: load field when source collection not found 2023-12-06 09:45:32 +08:00
YANG QIA
16ad19b18d
feat(bi): filter block for charts (#2851)
* refactor:  SchemaInitializer

* feat: render

* feat: finish BlockInitializers

* feat: finish TableActionInitializers

* refactor: new SchemaInitializerV2

* feat: support useChildren

* feat: finish TableColumnInitializers

* refactor: tableActionColumnInitializers

* fix: bug

* refactor: xx

* docs: schemaInitializer demo1

* docs: schema-initializer demo2

* feat: demo3

* docs: schema-initializer

* fix: form

* feat(bi): filter block for charts

* refactor: schema-initializer

* fix: bug

* feat: add filter block in chart block

* refactor: schema initializer

* refactor: rename

* fix: delete SchemaInitializerProvider

* refactor: props `insert` to hooks `useSchemaInitializerV2`

* fix: bug

* refactor: improve code & style

* feat: add expand/collapse button

* fix: filter & reset bug

* fix: configure data conflict

* refactor: delete `SchemaInitializer.Button`

* refactor: delete old SchemaInitializer

* feat: support for adding custom filter field

* fix: bug

* fix: workflow

* fix: docs

* feat: support for editing operator of collection field

* fix: bug

* fix: bug

* feat: support for editing options of custom fields

* feat: style

* fix: remove v2

* feat: init chart with filter

* fix: visible

* fix: bug

* fix: item hook

* feat: support for setting default value

* feat: item hook

* feat: support for filtering by associate fields

* fix: bug of associate field

* fix: get field bug

* fix: bug of adding filter block

* fix: bug of empty filter

* fix: filter parse issues

* fix: add search DataBlockInitializer

* fix: build bug

* fix: fix bug and improve

* fix: bug

* fix: variable

* fix: hook dependencies

* fix: style bug

* fix: style bug

* fix: test bug

* fix: test bug

* fix: rerender bug

* fix: remove menu select

* fix: bug

* chore: add aria-label for SchemaInitializerButton

* refactor: rename name to camel case

* fix: menu height bug

* fix: build errors

* fix: build errors

* fix: bug

* fix: bug

* fix: performance

* fix: fix T-2388, T-2384

* test: add test for header

* fix: sidebar is not refresh (T-2422)

* feat(e2e): support to add group page and link page

* chore: make sure the page is configurable when using page.goto

* test: add tests for menu initializer

* fix: imporve  code

* fix: fix T-2383

* fix: variables

* fix: variables

* fix: fix T-2441

* chore: fix build error

* chore: optimize locator of menu item

* refactor: rename testid for select

* feat: select source field for custom field, fix T-2416

* fix: bug

* test: make tests passing

* fix: make tests passing

* chore: upgrade vitest to v0.34.6

* chore: increase timeout of e2e

* feat: core

* fix: revert schema initializer demos

* test: menu, page tabs, page grid, table column

* fix: schema button interface

* fix: fix T-2386

* feat: refactor: page tab settings

* feat: page settings

* fix: dumirc

* fix: export CSSVariableProvider

* feat: lazy render

* fix: fix T-2473, T-2474

* fix: fix T-2476

* fix: fix T-2472

* fix: form-item

* fix: general schema desinger

* feat: filter form item settings

* fix: fix T-2484, T-2482

* refactor: form-v2 schema settings

* refactor: form-v1 schema settings

* refactor: action schema settings

* fix: dependency

* fix: action bug

* fix: form-item bug

* fix: types error

* docs: schema settings  doc

* docs: schema settings

* feat: schema setting  item add name

* fix: visible lazy render bug

* fix: revert form item filter

* fix: test bug

* fix: test JSON.parse bug

* fix: test bug

* fix: improve styling

* fix: styling

* fix: cleanup

* fix: token.borderRadiusSM

* fix: bug

* test: add tests

* fix: style bug

* fix: add chart performance

* feat: add SchemaDesignerContext

* fix: bug

* fix: test bug

* style: create record action style improve

* fix: make test passing

* chore: mack tests passing

* chore: make tests passing

* test: fix tests

* style: style revert

* fix: bug

* fix: data selector

* fix: fix tests

* fix: fix tests

* fix: delete PluginManagerContext

* refactor: improve router and add SchemaComponentProvider & CSSVariableProvider to MainComponent

* fix: add dn and field builtin to SchemaSettingWrapper

* feat: update docs

* refactor: application providers

* fix: test bug

* fix: fix tests

* chore: make test passing

* feat: update docs

* chore: rename collection name

* feat: update docs

* chore: skip weird test

* fix: blockInitializers media to otherBlocks

* fix: cancel to skip test

* fix: bug

* test: add test

* refactor: migrate to small files

* test: add tests for form block settings

* chore: format

* fix: add chart scroll bug

* refactor: action designer improve

* refactor: formitem designer schemaSetting

* feat: schemaSettingsManager and schemaInitializerManager addItem and removeItem

* test: add tests for color field in creating block

* test: add tests for email field in creating block

* test: make tests passing

* perf: reduce fields number

* fix: sub menu bug

* chore: update filter hook

* chore: fix association fields

* fix: build

* chore: use `default` instead of `componentProps.defaultValue`

* chore: remove chinaRegion in custom field components

* fix: menu height

* fix: duplicate keys warning

* fix: variable issues

* fix: filter bug

* fix: operator bug

---------

Co-authored-by: Your Name <1098626505@qq.com>
Co-authored-by: Rain <958414905@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-12-05 20:45:18 +08:00
dream2023
0962cab756 fix: bug 2023-12-05 16:35:30 +08:00
dream2023
0c938410fa refactor: component DataBlockProvider 2023-12-05 16:10:45 +08:00
katherinehhh
536001eaba
fix: validate uid rule (#3140) 2023-12-05 16:09:44 +08:00
katherinehhh
d573e6ff17
refactor: collection template support forbidDeletion setting (#3139) 2023-12-05 15:58:36 +08:00
jack zhang
cb200de34e
fix: menu height bug (#3137) 2023-12-05 10:15:08 +08:00
jack zhang
f3cb6bf62c
fix: menu height 50vh (#3135) 2023-12-04 19:49:13 +08:00
katherinehhh
1b80cc431b
refactor: uid validate rule (#3134) 2023-12-04 17:56:08 +08:00
chenos
1757a96b51 chore(versions): 😊 publish v0.17.0-alpha.1 2023-12-04 14:58:09 +08:00
jack zhang
bf1a19426a
refactor: new schema initializer and schema settings (#2802)
* fix: form

* refactor: schema-initializer

* fix: bug

* refactor: schema initializer

* refactor: rename

* fix: delete SchemaInitializerProvider

* refactor: props `insert` to hooks `useSchemaInitializerV2`

* fix: bug

* refactor: delete `SchemaInitializer.Button`

* refactor: delete old SchemaInitializer

* fix: bug

* fix: workflow

* fix: docs

* fix: bug

* fix: bug

* feat: style

* fix: remove v2

* fix: visible

* fix: bug

* fix: item hook

* feat: item hook

* fix: add search DataBlockInitializer

* fix: build bug

* fix: style bug

* fix: style bug

* fix: test bug

* fix: test bug

* fix: rerender bug

* fix: remove menu select

* fix: bug

* chore: add aria-label for SchemaInitializerButton

* refactor: rename name to camel case

* fix: menu height bug

* fix: build errors

* fix: build errors

* fix: bug

* fix: bug

* fix: performance

* test: add test for header

* fix: sidebar is not refresh (T-2422)

* feat(e2e): support to add group page and link page

* chore: make sure the page is configurable when using page.goto

* test: add tests for menu initializer

* fix: imporve  code

* chore: fix build error

* chore: optimize locator of menu item

* refactor: rename testid for select

* test: make tests passing

* fix: make tests passing

* chore: upgrade vitest to v0.34.6

* chore: increase timeout of e2e

* feat: core

* fix: revert schema initializer demos

* test: menu, page tabs, page grid, table column

* fix: schema button interface

* feat: refactor: page tab settings

* feat: page settings

* fix: dumirc

* fix: export CSSVariableProvider

* feat: lazy render

* fix: form-item

* fix: general schema desinger

* feat: filter form item settings

* refactor: form-v2 schema settings

* refactor: form-v1 schema settings

* refactor: action schema settings

* fix: action bug

* fix: form-item bug

* fix: types error

* docs: schema settings  doc

* docs: schema settings

* feat: schema setting  item add name

* fix: visible lazy render bug

* fix: revert form item filter

* fix: test bug

* fix: test JSON.parse bug

* fix: test bug

* fix: improve styling

* fix: styling

* fix: cleanup

* fix: token.borderRadiusSM

* fix: bug

* test: add tests

* fix: style bug

* fix: add chart performance

* feat: add SchemaDesignerContext

* fix: bug

* fix: test bug

* style: create record action style improve

* fix: make test passing

* chore: mack tests passing

* chore: make tests passing

* test: fix tests

* style: style revert

* fix: bug

* fix: data selector

* fix: fix tests

* fix: fix tests

* fix: delete PluginManagerContext

* refactor: improve router and add SchemaComponentProvider & CSSVariableProvider to MainComponent

* fix: add dn and field builtin to SchemaSettingWrapper

* feat: update docs

* refactor: application providers

* fix: test bug

* fix: fix tests

* chore: make test passing

* feat: update docs

* chore: rename collection name

* feat: update docs

* chore: skip weird test

* fix: blockInitializers media to otherBlocks

* fix: cancel to skip test

* fix: bug

* test: add test

* refactor: migrate to small files

* test: add tests for form block settings

* chore: format

* fix: add chart scroll bug

* refactor: action designer improve

* refactor: formitem designer schemaSetting

* feat: schemaSettingsManager and schemaInitializerManager addItem and removeItem

* test: add tests for color field in creating block

* test: add tests for email field in creating block

* test: make tests passing

* perf: reduce fields number

* fix: sub menu bug

* test: add tests basic in editing form

* test: add tests basic in details form

* fix: improve code

* test: make tests passing

* test(plugin-mock-collections): add color for enum options

* refactor: improve code

* fix: bug

* fix: bug

* refactor: convert parameters to destructured object

* test: add tests choices

* test: add tests media

* test: add tests for datetime in creating form

* feat(plugin-mock-collection): generate faker time

* test: add tests for datetime in editing form

* test: add tests for datetime in details form

* fix: bug

* feat: improve code

* test: add tests for relation fields

* fix: rename SchemaSettings

* fix: type bug

* refactor: useDesinger()

* fix: bug

* fix: bug

* fix: build tip

* fix: designableState

* fix: bug

* fix: designable

* fix: designable

* test: add tests for relation fields

* test: add tests for relation fields

* test: add tests for relation fields

* feat: client api doc

* test: add tests for relation fields

* test: avoid errors

* test: make tests passing

* fix: bug

* test: make tests passing

* test: add tests for advanced fields

* test: increase e2e timeout-minutes to 60

* fix: bug

* fix: improve code

* feat: add schema initailizer component  demos

* test: make tests passing

* fix: schema settings demos

* feat: shallowMerge & deepMerge

* test: reduce number of tests

* test: make tests passing

* feat: updates

* fix: add Initializer Internal

* demos:  useSchemaSettingsRender

* test: make tests passing

* test: make tests passing

* fix: improve docs

* fix: bug

* chore: upgrade dumi theme

* test: make tests passing

* test: add tests for linkage rules

* test: add test for form data templates

* test: add tests for default value

* test: reduce number of tests

* fix: dn.deepMerge

* fix: bug

* fix: bug

* fix: toolbar

* fix: docs ssr

* test: add tests for system fields

* test: add tests for actions

* fix:  bug

* test: add tests for lazy loading of variables

* test: make testing more stable

* fix: update docs

* fix: bug

---------

Co-authored-by: Rain <958414905@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-12-04 14:56:46 +08:00
xilesun
9d644304c1 chore(versions): 😊 publish v0.16.0-alpha.6 2023-12-04 11:01:24 +08:00
katherinehhh
bdf49cd38a
fix: association field should support json field as title field (#3129) 2023-12-03 19:14:33 +08:00
Junyi
c1c91095b8
fix(client): allow match query case insensitive (#3127) 2023-12-01 22:57:56 -08:00
Junyi
9bf3be222a
fix(plugin-workflow): fix condition branch node finding logic (fix #3082) (#3128) 2023-12-01 21:32:43 -08:00
chenos
7adb162cc8 feat(test): add quickstart 2023-12-02 09:40:22 +08:00
katherinehhh
52c83cadb3
refactor: url& sequence support availableType as string (#3126) 2023-12-01 16:38:34 +08:00
katherinehhh
a436b59268
refactor: view collection support json field (#3125) 2023-12-01 15:36:32 +08:00
Zeke Zhang
6fc644d506 feat(e2e): support for custom data when using mockRecords 2023-12-01 14:58:45 +08:00
chenos
bfeaf456b9 feat: improve mock records 2023-12-01 13:54:24 +08:00
YANG QIA
cb7f1d7aa9
chore(users): remove deprecated code (#3122)
* chore: remove deprecated code in user plugin

* chore: update

* fix: test

* fix: test
2023-12-01 13:23:41 +08:00
Chareice
1efedee68c
fix: test params 2023-12-01 12:46:51 +08:00
katherinehhh
4f9696035a
refactor: collection template support configureActions (#3123) 2023-12-01 11:27:38 +08:00
katherinehhh
1d01a66193
fix: onTemplateSuccess undefined (#3119) 2023-11-30 17:32:42 +08:00
chenos
8977420eec chore(versions): 😊 publish v0.16.0-alpha.5 2023-11-30 12:41:50 +08:00
jack zhang
d973ed8dba
fix(pm): create plugin bug (#3117)
* fix: build bug

* fix: app template package.json add workspaces

* fix: plugin manager packageName

* fix: remove template tsconfig  paths
2023-11-30 12:41:15 +08:00
katherinehhh
cb22d0f2ed
fix: fields options undefined (#3116) 2023-11-30 11:47:16 +08:00
katherinehhh
300d8f4eb3
refactor: map field support connect as remote table field (#3114) 2023-11-30 10:22:30 +08:00
Rain
f3c6f066ec fix(linkageRules): remove throttle to prevent unexpected behavior 2023-11-29 17:53:33 +08:00
Zeke Zhang
357a081199
fix(linkageRules): fix autorun (#3105)
* fix(linkageRules): avoid accidentally triggering autorun

* fix(linkageRules): fix the order of autorun triggers

* fix: avoid crashing

* fix: fix variable of expression

* perf: use throttle to improve performance

* chore: reduce wait time from 1000 to 500

* fix: fix init state

* Revert "fix: fix init state"

This reverts commit 3f46973177.

* refactor: rename

* fix: fix init state
2023-11-29 14:57:03 +08:00
ChengLei Shao
79d2647c51
chore: sync collection after set collection fields (#3112) 2023-11-29 14:09:22 +08:00
Junyi
f62134a4ed
fix(client): adjust error message (#3108) 2023-11-28 17:38:24 -08:00
Junyi
bd6fbcd319
fix(plugin-workflow): fix form event parse variables (#3106) 2023-11-28 04:58:15 -08:00
ChengLei Shao
d2d885b2a6
chore: view primary key (#3107) 2023-11-28 19:45:38 +08:00
ChengLei Shao
9ed6993130
fix: query view collection with primaryKey (#3104) 2023-11-28 14:59:43 +08:00
katherinehhh
0cf045d142
fix: association data params missing appends (#3103)
* fix: association data params missing appends

* refactor: code improve
2023-11-28 11:12:42 +08:00
Chareice
f5dc8cebf8
chore: field type map 2023-11-28 09:38:21 +08:00
Dunqing
7b66def487
fix(plugin-api-doc): non-main application crashes (#3100) 2023-11-27 20:42:29 +08:00
被雨水过滤的空气-Rain
723cc45d0f
fix(linkageRules): avoid infinite loop (#3095)
* Revert "refactor: avoid errors (#3091)"

This reverts commit 85be616f35.

* fix(linkageRules): avoid infinite loop

* chore: remove console.log

* chore: remove useless code
2023-11-27 19:27:35 +08:00
YANG QIA
6819366049
fix(bi): fix T-2643 (#3101) 2023-11-27 16:24:47 +08:00
ChengLei Shao
cbcf70e587
chore: cache effective snippets results in acl role (#3102) 2023-11-27 15:49:50 +08:00
chenos
5ebd5d5c62 fix(cli): unsafe shell command constructed from library input 2023-11-27 09:07:16 +08:00
ChengLei Shao
c7ef9618a9
feat(database): support find with filter and where (#3097) 2023-11-26 21:41:40 +08:00
Junyi
d574c8c7ce
fix(plugin-workflow): fix schedule trigger (#3096)
* fix(plugin-workflow): fix schedule trigger

* fix(plugin-workflow): fix increment bug based on dialect
2023-11-25 23:07:50 -08:00
ChengLei Shao
2dff989f70
fix: test db creator types (#3094) 2023-11-25 19:53:13 +08:00
ChengLei Shao
fd454d78b3
test: load through collection with primaryKeys (#3093) 2023-11-25 19:52:42 +08:00
chenos
ffb300d357 chore(versions): 😊 publish v0.16.0-alpha.4 2023-11-24 23:15:10 +08:00
被雨水过滤的空气-Rain
85be616f35
refactor: avoid errors (#3091)
* refactor: avoid errors

* refactor: remove useless code
2023-11-24 21:46:19 +08:00
被雨水过滤的空气-Rain
e5f711ec66
fix: avoid infinite loop (#3089) 2023-11-24 17:35:45 +08:00
katherinehhh
641d59421d
refactor: import interface getOptions (#3088) 2023-11-24 17:01:16 +08:00
chenos
992f2d442d fix: dev plugins path 2023-11-24 15:49:37 +08:00
YANG QIA
039deac92b
fix: sql collection creation issue (#3087) 2023-11-24 15:43:04 +08:00
Junyi
2630f25e51
refactor(plugin-workflow): show header of manual drawer (#3085) 2023-11-23 19:28:36 -08:00
被雨水过滤的空气-Rain
771ebaaaec
fix: should load association data in subform (#3083) 2023-11-23 21:05:07 +08:00
katherinehhh
78bd78ca3d
fix: view collection json field rendering error (#3077) 2023-11-23 11:50:34 +08:00
Rain
e2ed6be305 fix: avoid crashing 2023-11-23 11:22:25 +08:00
katherinehhh
b3dfc939f3
fix: m2o association field should support pattern configure (#3074)
* fix: m2o association field should support pattern configure

* fix: setInitialValueundefined
2023-11-22 21:12:08 +08:00
被雨水过滤的空气-Rain
ea136ab6bc
fix: subform disappears (#3073) 2023-11-22 17:22:09 +08:00
Dunqing
cc40849c59
fix(plugin-mobile-client): page content disappears when tab is disabled (#3059)
* fix(plugin-mobile-client): page content disappears when tab is disabled

* feat: make sure include tabs schema
2023-11-22 12:19:55 +08:00
Junyi
e0c7d09cab
fix(client): fix variable input style when disabled (#3071) 2023-11-21 18:42:05 -08:00
ChengLei Shao
c81fb46071
fix: update inherited collection performance issue (#3070) 2023-11-21 21:36:08 +08:00
被雨水过滤的空气-Rain
19bad669af
fix(linkage): avoid infinite loop (#3069) 2023-11-21 17:28:37 +08:00
chenos
45dcdab083
fix: add i18n resources after server app load (#3068)
* fix: add i18n resources after server app load

* fix: skip cache
2023-11-21 11:39:19 +08:00
katherinehhh
78c4334e19
fix: linkage rule in action set both disable and enable (#3065) 2023-11-21 10:31:07 +08:00
chenos
cba967933e chore(versions): 😊 publish v0.16.0-alpha.3 2023-11-20 19:36:12 +08:00
chenos
dfb940e091
feat: node >= 18 (#3066)
* feat: node >= 18

* fix: release version

* chore(versions): test publish packages xxx

* fix: gitignore
2023-11-20 19:35:30 +08:00
chenos
91053b31ef chore(versions): 😊 publish v0.16.0-alpha.1 2023-11-20 17:19:09 +08:00
YANG QIA
daac2ae0db
refactor(cache): improve cache (#3004)
* feat: improve cache

* fix: bug

* fix: test

* fix: test

* fix: test

* chore: add cache test

* feat: add wrapWithCondition

* fix: test

* refactor: improve api

* fix: test

* fix: test

* fix: test

* fix: improve code

* fix: test

* feat: register redis store

* fix: tst

* fix: test

* fix: bug

* chore: update

* fix: ttl unit

* chore: cachemanager constructor

* chore: remove code

* feat: support close connection

* chore: add close options for redis store
2023-11-20 17:14:20 +08:00
chenos
379248e5c5
fix: local storage base url (#3063)
* fix: local storage base url

* fix: test error
2023-11-20 15:53:09 +08:00
ChengLei Shao
57d6a82fcc
feat: show table definition (#3061)
* feat: show table definition

* chore: test
2023-11-20 09:58:28 +08:00
ChengLei Shao
d7d2eb634e
feat: mariadb support (#3052)
* feat: mariadb support

* feat: mariadb test

* chore: mariadb test

* chore: test

* fix: sort field test

* fix: sort field test

* fix: test

* fix: test

* fix(bi): chart query support mariadb

* chore: test timeout

* chore: test

---------

Co-authored-by: xilesun <2013xile@gmail.com>
2023-11-20 08:54:40 +08:00
Junyi
fbe3d2d9a5
fix(plugin-workflow): client minor fixes (#3062) 2023-11-19 03:24:34 -08:00
ChengLei Shao
eac8559104
chore: view inference (#3060) 2023-11-18 22:35:20 +08:00
ChengLei Shao
0acd7b6dd3
fix: sort by association collection (#3058)
* fix: sort by association collection

* fix: test

* chore: test

* chore: create sortfield if hasmany sortable set true

* fix: drag sort

* chore: update sort by options

* chore: sync collection after update sortBy

* chore: test

* chore: test

* chore: test

* fix: sort by

* fix: model.syncSortByField

* fix: hasmany only

* fix: sortBy

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-18 22:02:21 +08:00
chenos
ef1b9db2a9 chore(versions): 😊 publish v0.15.0-alpha.4 2023-11-18 21:22:03 +08:00
chenos
4a26b9b208 fix: import @nocobase/utils/client 2023-11-18 21:20:30 +08:00
Dunqing
2c688dba43
fix(calendar): cannot switch week in week mode (#3057) 2023-11-17 23:17:30 +08:00