335 Commits

Author SHA1 Message Date
chenos
5fbc7697c6
feat: release 202502 (#6259)
* chore(versions): 😊 publish v1.6.0-alpha.24

* chore(versions): 😊 publish v1.6.0-alpha.25

* feat: support extending frontend filter operators (#6085)

* feat: operator extension

* fix: bug

* refactor: code improve

* fix: jsonLogic

---------

Co-authored-by: chenos <chenlinxh@gmail.com>

* refactor: remove registerOperators (#6224)

* refactor(plugin-workflow): trigger workflow action settings (#6143)

* refactor(plugin-workflow): move bind workflow settings to plugin

* refactor(plugin-block-workbench): move component to core

* refactor(plugin-block-workbench): adjust component api

* fix(plugin-workflow-action-trigger): fix test cases

* fix(plugin-workflow): fix component scope

* fix(plugin-workflow-action-trigger): fix test cases

* chore(versions): 😊 publish v1.6.0-alpha.26

* feat: support the extension of preset fields in collections (#6183)

* feat: support the extension of preset fields in collections

* fix: bug

* fix: bug

* fix: bug

* refactor: create collection

* fix: config

* fix: test case

* refactor: code improve

* refactor: code improve

* fix: bug

* fix: bug

---------

Co-authored-by: chenos <chenlinxh@gmail.com>

* feat: support for the extension of optional fields for Kanban, Calendar, and Formula Field plugins (#6076)

* feat: kanban field extention

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* feat: calender title fields

* feat: background color fields

* fix: bug

* fix: bug

* feat: formula field expression support field

* feat: preset fields

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* refactor: code improve

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* refactor: code improve

* revert: preset fields

* refactor: code improve

* refactor: code improve

* fix: bug

* fix: bug

* fix: bug

* refactor: code improve

* fix: bug

* refactor: code improve

* refactor: code improve

* fix: bug

* fix: locale

* refactor: code improve

* fix: bug

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: locale

* fix: test

* fix: bug

* fix: test

* fix: test

---------

Co-authored-by: chenos <chenlinxh@gmail.com>

* chore(versions): 😊 publish v1.6.0-alpha.27

* fix(data-source-main): update order

* fix: improve code

* fix: getFontColor (#6241)

* chore(versions): 😊 publish v1.6.0-alpha.28

* fix: print action e2e test (#6256)

* fix: print action e2e test

* fix: test

* fix: version

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
Co-authored-by: nocobase[bot] <179432756+nocobase[bot]@users.noreply.github.com>
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
2025-02-21 13:25:17 +08:00
katherinehhh
c8aa0aeeba Merge branch 'main' into next 2025-02-16 11:59:45 +08:00
Katherine
0a8a609a52
refactor: block height setting (#6225) 2025-02-16 11:57:41 +08:00
Katherine
a25438c9ec
refactor: adjust block height settings, set the minimum value to 100 (#6220)
* refactor: adjust block height settings, set the minimum value to 100

* fix: bug
2025-02-15 22:02:41 +08:00
nocobase[bot]
34df510621 Merge branch 'main' into next 2025-02-12 13:17:46 +00:00
Katherine
6912403127
fix: issue with high precision number formatting not applying (#6202) 2025-02-12 21:17:24 +08:00
nocobase[bot]
bbae7f6d5b Merge branch 'next' into develop 2025-02-10 09:14:25 +00:00
Zeke Zhang
cfd940e18c
fix: linkage rules issue (#6182)
* fix: linkage rules issue

* chore: e2e
2025-02-10 17:13:37 +08:00
nocobase[bot]
de49e21245 Merge branch 'next' into develop 2025-02-06 02:50:54 +00:00
Zeke Zhang
7bb0084a88
fix: subform default value (#6165)
* fix: default value

* chore: add e2e test
2025-02-06 10:50:10 +08:00
nocobase[bot]
8eb3b87dc3 Merge branch 'next' into develop 2025-01-24 15:06:35 +00:00
katherinehhh
cae5d68211 Merge branch 'main' into next 2025-01-24 23:05:50 +08:00
Katherine
3f68c5b836
fix: incorrect variable display in association field quick-add form (#6119)
* fix: incorrect variable display in association field quick-add form

* fix: current popup record

* fix: bug
2025-01-24 21:30:45 +08:00
nocobase[bot]
22bb0eba39 Merge branch 'next' into develop 2025-01-22 09:16:20 +00:00
Katherine
778d98e038
fix: merge bug (#6118)
* fix: merge bug

* fix: merge bug
2025-01-22 14:32:41 +08:00
nocobase[bot]
8a06af7295 Merge branch 'next' into develop 2025-01-22 06:22:41 +00:00
katherinehhh
8243db5e3d fix: merge bug 2025-01-22 14:21:42 +08:00
nocobase[bot]
d441e523a4 Merge branch 'next' into develop 2025-01-22 02:15:14 +00:00
katherinehhh
982936963b Merge branch 'main' into next 2025-01-22 10:13:55 +08:00
Katherine
dddd4616ca
fix: drag issue in quick popup add action for association field (#6112) 2025-01-21 20:01:37 +08:00
Katherine
2945532630
feat: support setting description property in block (#6015)
* feat: support setting description property in block

* fix: bug

* fix: bug

* fix: test

* chore: set block height

* fix: bug

* fix: bug

* fix: test
2025-01-17 20:39:39 +08:00
Zeke Zhang
64a7ca31b5 Merge branch 'main' into next 2025-01-10 11:10:36 +08:00
Zeke Zhang
e1889ef502
fix(variable): fix incorrect field display of current record in sub-details (#6030) 2025-01-10 10:56:52 +08:00
nocobase[bot]
f5635f8067 Merge branch 'main' into next 2025-01-10 01:35:36 +00:00
Katherine
a1c0d6b969
refactor: support linkage rules in the details block to hide(reserved value) (#6031) 2025-01-10 09:35:10 +08:00
Zeke Zhang
ea82812222
fix(linkageRules): fix invalid issue of form linkage rules (#5876) (#6023)
* fix(linkageRules): fix invalid issue of form linkage rules (#5876)

* test: add e2e test

* fix: complete the fix

* fix: fix e2e errors

* fix: fix e2e errors

* feat(table): add support for conditional styling based on pretty mode

* feat(FormItem): enhance wrapperStyle to conditionally apply padding based on background color

* chore: skip e2e test

---------

Co-authored-by: sheldon guo <sheldon_66@163.com>
2025-01-09 19:08:18 +08:00
nocobase[bot]
1b49e542cf Merge branch 'main' into next 2024-12-31 02:40:23 +00:00
YANG QIA
f229f9f0f9
feat(m2m-array): supports using "Table selected records" variable in m2m array fields (#5974) 2024-12-31 10:40:01 +08:00
nocobase[bot]
55c6a5d577 Merge branch 'main' into next 2024-12-24 05:40:32 +00:00
Katherine
06e5c49d89
fix: property field search in linkage rules not matching correct data (#5925) 2024-12-24 13:40:10 +08:00
chenyongxin
5dee3427de
feat: datePickerComponentFieldSettingAddDateLimitRange (#5852)
* feat: datePickerComponentFieldSettingAddDateLimitRange

* feat: handling sub tables and sub forms
2024-12-23 09:40:24 +08:00
Zeke Zhang
29f9daae21
fix(linkageRules): fix invalid issue of form linkage rules (#5876)
* test: add e2e test

* fix: complete the fix

* fix: fix e2e errors

* fix: fix e2e errors
2024-12-22 00:28:21 +08:00
nocobase[bot]
25a9165d7a Merge branch 'main' into next 2024-12-12 02:28:07 +00:00
Zeke Zhang
d5ac3eee04
fix(dataScope): fix issue with nested association field variables (#5866) 2024-12-12 10:27:42 +08:00
Zeke Zhang
70e592e341
fix(custom-request): fix refresh issue (#5845)
* fix(custom-request): fix the issue of not displaying immediately after adding

* test: add e2e test

* fix: fix the issue that blocks added through schema toolbar are not immediately displayed

* chore: make e2e tests more stable
2024-12-10 09:39:36 +08:00
Zeke Zhang
23d7d1e0e3
fix(KeepAlive): prevent hidden pages from affecting interaction with … (#5836)
* fix(KeepAlive): prevent hidden pages from affecting interaction with other pages

* chore: fix build error

* chore: make e2e test more stable
2024-12-09 22:33:20 +08:00
Zeke Zhang
0fa56d7407
perf(Table): remove Formily components to improve performance (#5738)
* perf(Table): remove Formily components to improve performance

* refactor: rename and modify comments

* fix(UIEditor): fix hover style

* fix(Table): fix style configuration option not showing

* fix(ellipsis): fix refresh issue

* fix: need to update field value

* perf(Table): improve performance of configuring top buttons

* refactor: skip style-related code when no style rules are set

* chore(e2e): fix e2e errors

* fix(e2e): fix e2e errors

* fix(workflow): fix refresh issue

* fix(workflow): fix refresh issue

* fix(Action.Container): fix refresh issue

* fix(drawer): fix refresh issue

* fix(Table): fix refresh issue

* fix(AssociationField): fix refresh issues

* fix(NocoBaseRecursionField): fix refresh code

* refactor(SchemaComponentContext): remove useless code

* refactor: rename RefreshContext to RefreshFieldSchemaContext

* refactor(useDataBlockRequestGetter): optimize comment

* refactor: rename and new refresh context

* fix(Table): fix some refresh issues

* fix(AssociationField): fix refresh issue

* refactor(Table): make code better

* fix: replace RecursionField with NocoBaseRecursionField

* refactor: remove useless code

* fix(Menu): fix draging issue

* fix: refresh entire page after drag and drop operation

* fix(Page): fix draging issue

* chore: fix build error

* fix(test): make unit tests pass

* chore(test): fix unit test

* chore(e2e): fix e2e errors

* chore(e2e): update e2e to make it pass

* chore(e2e): update e2e to make it pass

* chore(e2e): fix e2e errors

* fix(e2e): fix some e2e errors

* fix(SchemaComponent): fix onChange issue

* chore(e2e): make e2e more stable
2024-12-04 21:05:50 +08:00
Zeke Zhang
e35768ce61
fix(variable): fix issues where variables cannot be properly used in third-party data source blocks (#5782)
* fix(variable): resolve field visibility issues in multi-data source variables

* fix(test): fix unit test error
2024-12-03 20:49:37 +08:00
Katherine
b144d30ac9
feat: support associate and disassociate action in association blocks (#5695)
* feat: association block support assocaition action

* test: e2e test

* test: e2e test

* fix: bug

* fix: bug

* fix: bug

* fix: bug
2024-11-28 20:43:44 +08:00
Zeke Zhang
7c997293f0 fix(desktop): fix page scrolling issue 2024-11-28 18:54:39 +08:00
Zeke Zhang
c0055ce826
perf(Page): improve performance (#5515)
* refactor(Tabs): remove observer and add memo

* refactor(useFilterFieldProps): use useCallback

* perf(FilterProvider): use startTransition

* perf(BlockRequestProvider): split context to improve rendering performance

* fix: make e2e tests pass

* perf(FilterBlockProvider): avoid rerender when updating state

* perf(DocumentTitleProvider): avoid rerender when updating state

* chore: set the default page title to empty string

* perf(BlockRequestProvider_deprecated): remove useless code

* perf(RecordProvider): add memo

* chore(Table): add comment

* perf: add memo to avoid rerender

* perf(InternalSchemaToolbar): improve style performance

* perf(ActionPage): improve style performance

* perf(BlockItem): improve style performance

* perf(Grid): improve style performance

* perf(IconField): improve style performance

* perf(MenuItem): improve style performance

* refactor(style): remove useless code

* perf(ArrayCollapse): improve style performance

* perf(acl): improve style performance

* perf(LinkageRules): improve style performance

* perf(ActionDrawerUsedInMobile): improve style performance

* perf(InternalPopoverNesterUsedInMobile): improve style performance

* perf(MobileActionPage): improve style performance

* perf(MobileTabsForMobileActionPage): improve style performance

* perf(Mobile): improve style performance

* perf(MobileTabBar): improve style performance

* perf(MobilePageContentContainer): improve style performance

* perf(MobilePageHeader): improve style performance

* perf(MobilePageNavigationBar): improve style performance

* perf(MobileNavigationBarAction): improve style performance

* chore: fix build error

* perf: some minor optimizations

* perf(CollectionFieldInternalField): optimize performance of default value processing

* refactor(CollectionFieldInternalField): remove useless code

* perf(PageContent): improve performance

* refactor(Table): use skeleton component

* perf(Table): improve pagination performance

* perf(TableSkeleton): improve skeleton component performance

* style(TableSkeleton): optimize style

* perf(PageTabs): cache rendered content to prevent re-rendering

* fix: fix add tab

* chore: make unit tests pass

* refactor: remove deprecated API

* fix(filterBlocks): make e2e tests pass

* fix(Action): make e2e tests pass

* perf(CollectionField): use custom RecursionField component to avoid unnecessary re-renders

* perf(Map): extract style

* Revert "perf(CollectionField): use custom RecursionField component to avoid unnecessary re-renders"

This reverts commit 203ecc1334429a8b77177337c8649ece1abdaeed.

* fix: fix e2e error

* fix: fix unit tests

* chore: fix build error

* perf(useResourceName): avoid unnecessary re-renders

* perf(TableBlockProvider): prevent unnecessary re-renders by splitting context

* perf(useDataBlockRequest): prevent unnecessary re-renders

* perf(useBlockCollection): avoid unnecessary re-renders

* perf(ActionContextProvider): add useMemo for context value

* perf(useTableBlockProps): avoid unnecessary re-renders

* perf(Details): add skeleton component

* chore(SchemaSettingsDropdown): make menu visibility more stable

* perf(withSkeletonComponent): use useDeferredValue

* refactor(ErrorBoundary): optimize code

* perf(plugin-charts-old): ignore old plugin context

* perf(CollectionHistoryProvider): optimize location context

* perf(MenuEditor): optimize router context

* fix(InternalAdminLayout): fix the issue of missing left sidebar menu

* perf(MenuEditor): prevent unnecessary re-renders

* perf(RouteSchemaComponent): prevent unnecessary re-renders

* perf(react-router-hooks): improve performance

* perf: add skeleton component for other blocks

* perf(CurrentUserProvider): remove loading

* refactor: remove useless code

* fix: fix the issue of redirecting to the homepage after refreshing the page

* perf(SystemSettingsProvider): remove loading

* perf(CollectionHistoryProvider): remove loading

* perf(useCurrentAppInfo): remove loading

* perf(RemoteCollectionManagerProvider): remove loading

* perf(RequestSchemaComponent): remove loading

* refactor(MenuEditor): remove useless code

* refactor: remove useless code

* perf(Page): reduce white screen time

* Revert "Revert "perf(CollectionField): use custom RecursionField component to avoid unnecessary re-renders""

This reverts commit b3a4201a82617534b9f5c3d16d4769f1327b3b02.

* perf(wip): add custom RecursionField component

* perf(RecursionField): complete custom RecursionField component

* perf(FilterAction): avoid unnecessary re-rendering

* perf(InputReadPretty): improve render performance

* fix(NocoBaseRecursionField): fix the issue where the page does not update

* perf(ReadPrettyInternalViewer): remove observer

* perf(Table): remove unnecessary context

* perf(NocoBaseField): customize a Field component

* chore: add comments

* fix(ButtonEditor): fix the issue where button title does not update after modification

* fix(ellipsis): fix the issue where the page does not refresh after modification

* refactor(NocoBaseField): rename and improve performance

* fix(NocoBaseField): add compile

* perf(Table): avoid rendering popup content

* chore: fix build error

* fix(popup): fix the issue where popups cannot be opened in embedded pages

* perf(CollectionField): remove ErrorBoundary

* chore(NocoBaseRecursionField): add isUseFormilyField

* perf(TemplateBlockProvider): use performance hooks

* refactor(FormV2): optimize skeleton screen effect

* perf(EditableAssociationField): remove observer

* perf(CollectionField): reduce nested component hierarchy

* refactor(SchemaSettingsSwitchItem): prevent UI refresh issues

* fix: fix field issues

* refactor(CollectionField): extract CollectionFieldInternalField component

* fix(DataSources): fix table error issue

* fix(drawer): fix drawer error

* fix(CollectionManagerSchemaComponentProvider): fix incorrect scope value

* fix(BodyRowComponent): fix issue with empty record

* fix(usePopupSettings): fix issue with popup not opening

* fix(BlockTemplates): fix table error issue

* refactor(NocoBaseRecursionField): set default value of isUseFormilyField to true

* refactor(Action): replace RecursionField with NocoBaseRecursionField

* fix(RequestSchemaComponent): fix issue with subpage not opening on mobile devices

* feat(loading): add delay for loading component

* fix(workflow): fix workflow table display issue

* chore(NocoBaseField): add compile method for default value

* fix(CollectionField): compatibility with legacy version

* fix(CollectionField): compatibility with legacy version

* fix(e2e): remove memoize function

* fix: add back dn.refresh

* refactor(CollectionField): reduce component rendering in specific cases

* Revert "fix(drawer): fix drawer error"

This reverts commit da8b43d9322aed39a1adf0ccdf24beca52a228ef.

* fix(popup): fix the issue where the second layer popup cannot be opened

* Revert "fix(popup): fix the issue where the second layer popup cannot be opened"

This reverts commit 71e9a43f361dd806affe9707254ed30882c27178.

* fix(popup): fix the issue where the second layer popup cannot be opened

* fix(popup): fix the issue where content is not displayed when reopening the popup

* fix(NocoBaseRecursionField): add default value

* refactor: revert to RecursionField version

* fix(Duplicate): fix the issue where values are not displayed

* Revert "refactor: revert to RecursionField version"

This reverts commit 087dcd4dc4d8d83f41272ac1b270dea281f49e08.

* fix(association-field): use NocoBaseRecursionField

* fix(menu): fix the issue where menu items are not displayed after adding

* fix(grid-card): make e2e pass

* fix(NocoBasePageHeader): fix the issue where title is not updated after modification

* fix(AdminLayout): fix page navigation issue

* fix(e2e): make e2e pass

* fix(e2e): fix the issue where data is not refreshed after closing the popup

* fix(e2e): fix the issue where relationship field popup variables are displayed incorrectly

* fix(e2e): fix JSON.stringify circular reference issue

* fix(e2e): make mobile e2e more stable

* fix(e2e): fix subform display issue

* fix(e2e): fix field pattern state

* chore(test): make some unit tests pass

* fix(test): make some unit tests pass

* fix(test): make unit tests pass

* perf(SortableItem): reduce unnecessary component rendering in non-configuration mode

* chore(Table): use startTransition

* perf(page): implement keep-alive effect

* chore: remove loading delay

* chore(e2e): skip one e2e

* chore: fix build error

* refactor: extract KeepAlive component and fix e2e test errors

* fix(test): make unit tests pass

* fix(KeepAlive): children should be a function

* fix(popup): avoid being affected by KeepAlive

* perf(KeepAlive): reduce lag when switching pages

* refactor(DndContext): extract InternalDndContext component

* refactor(KeepAlive): avoid memory overflow

* chore: limit maximum number of cached pages

* refactor: use useEffect instead of useLayoutEffect

* refactor(AdminLayout): extract NocoBaseLogo component

* perf: reduce lag when switching pages

* chore(KeepAlive): increase maximum number of cached pages

* perf(Grid): optimize rendering performance in non-configuration mode

* perf(Table): reduce one re-render when switching pagination

* refactor(SubTable): separate SubTable's Table component from normal Table component

* chore(test): make unit tests pass

* fix(e2e): fix the issue where table data does not refresh after form submission

* chore(e2e): update some e2e tests

* fix(Table): fix the issue where Dropdown component disappears after adding association fields

* perf(Table): optimize refresh performance

* refactor(NocoBaseField): simplify code writing

* perf(Context): improve performance

* perf(Context): improve render performance

* perf(Menu): improve menu performance

* perf: lower the priority of updating title

* perf(Page): avoid re-layout when switching pages

* perf(Table): reduce repainting time

* perf(popup): improve popup opening speed

* perf(popup): using toJSON for deep clone, faster than lodash's cloneDeep

* perf(withSkeletonComponent): defer loading state update

* perf(PopupRouteContextResetter): improve render performance

* perf(popup): improve popup closing speed

* perf(popup): improve popup closing performance

* perf(SchemaToolbar): avoid excessive style calculations

* perf(SchemaSettingsDropdown): avoid using useLayoutEffect

* perf(popup): improve popup opening speed

* fix(pageTab): fix the error when switching tab pages

* fix(popup): fix the issue of duplicate URLs caused by rapid button clicks

* refactor: extract NocoBasePageHeaderTabs

* fix(pageTabs): fix settings not refreshing after changes

* chore(test): make unit tests pass

* chore(test): update test case

* chore(SchemaInitializerSwitch): update unit test

* chore(useVariables): update unit tests

* chore(e2e): make some e2e tests pass

* chore(e2e): make e2e tests pass

* chore(e2e): update tests to make it pass

* fix(SideMenu): fix the issue where is not refresh when adding a page

* fix(Menu): fix the issue where is not refresh when changing menu

* fix(e2e): fix e2e error

* fix(e2e): fix refresh issues

* fix(e2e): fix some bugs

* fix(e2e): fix e2e error

* fix(test): fix unit tests

* fix(popup): prevent rapid clicking issues

* fix(e2e): fix e2e error

* fix(e2e): fix refresh issues

* fix(Table): do not change table pagination after switching pages

* perf(Menu): improve performance

* perf(Table): reduce row render times

* fix(KeepAlive): fix lag when switching designable

* fix(e2e): fix e2e error

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-11-27 07:19:52 +08:00
Zeke Zhang
91b41ddb64
fix(zIndex): fix the issue of modal being obscured (#5701) 2024-11-21 14:01:45 +08:00
nocobase[bot]
aad163c4e1 Merge branch 'main' into next 2024-11-18 04:36:25 +00:00
Katherine
ed5c6edec6
fix: linkage rule saving empty value changes to static empty value (#5667)
* chore(ci): add retry

* fix:  linkage rule saving empty value changes to static empty value

---------

Co-authored-by: xilesun <2013xile@gmail.com>
2024-11-18 12:36:05 +08:00
nocobase[bot]
f15b90b4c3 Merge branch 'main' into next 2024-11-14 02:37:56 +00:00
Katherine
c6eb117899
fix: linkage rule title editing issue (#5644) 2024-11-14 10:20:52 +08:00
Katherine
6075c461d9
refactor: optimize field list: remove relation fields and Duplicate tag (#5616)
* refactor: optimize field list: remove relation fields and Duplicate tag

* fix: test
2024-11-10 19:12:58 +08:00
Zeke Zhang
3d512adade
feat(Table): add 'Hide column' configuration option (#5597)
* chore(deps): bump antd from 5.12.8 to 5.13.3

* chore: update yarn.lock

* chore: fix unit tests

* chore: make e2e tests pass

* feat(Table): add 'Hide column' configuration option

* test: add e2e test

* chore: fix build

* Revert "chore: make e2e tests pass"

This reverts commit a84a22c140c393c055136f90140ff74c657d8b28.

* Revert "chore: fix unit tests"

This reverts commit 436b001c9b3cf75ee2ddcc00915199b12e1d37d4.

* Revert "chore: update yarn.lock"

This reverts commit 0b960251c414a66d8a0a1274bd1cd3330093ccc0.

* Revert "chore(deps): bump antd from 5.12.8 to 5.13.3"

This reverts commit b165d557f68e3cb7dab4172e8f22f631decea277.

* chore: make e2e more stable
2024-11-07 20:47:14 +08:00
Katherine
231b7d641b
chore: add support for Layout parameters (labelAlign, labelWidth, labelWrap) (#5521)
* chore:  support layout settings

* refactor: locale improve

* fix: test

* fix: bug

* refactor: label width

* fix: bug

* refactor: locale improve

* fix: bug

* style: style improve

* fix: test
2024-11-01 16:06:18 +08:00
xilesun
c4b6a004e6 Merge branch 'main' into next 2024-10-30 10:54:41 +08:00