katherinehhh
431b16cdad
refactor: parse variables
2025-02-05 17:24:38 +08:00
Sheldon Guo
cc6928c7d0
feat(auth): support token security ( #5948 )
...
* feat(auth): support token security config
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: xilesun <2013xile@gmail.com>
2025-01-18 22:18:51 +08:00
Katherine
5d5f455b3c
feat: supports configuring dynamic environment variables and secrets ( #5966 )
...
* feat: environments plugin
* feat: improve code
* fix: improve code
* feat: improve code
* refactor: package description
* feat: bulk import
* fix: remove
* refactor: file manager support environment variables
* refactor: file manager support environment variables
* refactor: map manager support environment variables
* refactor: support environment variables
* refactor: support environment variables
* refactor: support delete environment variables
* fix: bug
* refactor: workflow support environment variables
* refactor: email environment variables
* refactor: support bulk import
* refactor: support bulk import
* refactor: support bulk import
* refactor: support bulk import
* refactor: code improve
* feat: env
* chore: update
* feat: environment
* fix: bug
* fix: acl snippet
* fix: acl snippets
* chore: map manager
* refactor: support line break
* refactor: support password
* chore: environment variables
* fix: bug
* fix: bug
* chore: enviroment variables
* chore: system settings
* fix: improve code
* feat: verification
* feat: map
* feat: file-manager
* feat: notification
* fix: bug
* feat: workflow
* fix: improve code
* fix: bug
* feat: data-source
* feat: auth
* fix: error
* fix: bug
* refactor: description
* refactor: locale
* refactor: locale
* refactor: locale
* refactor: code improve
* refactor: locale
* refactor: locale
* style: style improve
* fix: error
* fix: bug
* fix: bug
* refactor: environment
* fix: ellipsis
* refactor: password
* fix: bug
* fix: bug
* fix: bug
* fix: bug
* fix: bug
* chore: test
* fix: cache
* fix: mysql dialect options
* refactor: email config form
* fix: bug
* fix: bug
* fix: authenticator.dataValues parse
* fix: include undefined
* fix: json
* fix: json parse
* chore: enviromentProvider
* fix: acl
* fix: rowKey
* fix: update ProviderOptions.tsx
* feat: get app instance
* fix: bug
* fix: text
* fix: build error
* fix: error
* chore: migration rules options
* chore: migration rules
* refactor: code improve
* feat: env v2
* chore: environment varibales
* chore: environment serve
* fix: getVariables
* feat: improve code
* fix: bug
* chore: collection options for migration
* chore: tree collection options
* chore: migration rules
* chore: migration rules
* chore: env api
* chore: env api
* fix: optionsKeysNotAllowedInEnv
* fix: required true
* fix: improve code
* fix: app refresh
* fix: remove db.import
* fix: type error
* fix: map
* refactor: locale improve
* refactor: tx-cos
* fix: undefined
* refactor: code improve
* chore: use bookworm
* fix: npm add user
* fix: npm login
* fix: npm adduser
* fix: npm adduser
* fix: expect
* fix: expect
* fix: environmentVariables
* refactor: support bulk delete & filter
* refactor: locale improve
* feat: filter
* refactor: useGlobalVariable
* fix: scope
* fix: bug
* fix: optionsKeysNotAllowedInEnv
* fix: test error
* fix: test
* fix: test
* feat: improve code
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Chareice <chareice@live.com>
2025-01-08 09:32:49 +08:00
katherinehhh
12df6e42e5
Merge branch 'next' into develop
2024-12-09 20:54:08 +08:00
Katherine
bda94f9c1b
fix: issue with Markdown string templates not loading data of association variable ( #5791 )
...
* fix: issue with Markdown string templates not loading data of association variables
* fix: bug
2024-12-09 19:35:00 +08:00
Zeke Zhang
384271fb90
fix: fix the issue where association field values are empty in block templates ( #5777 )
...
* fix(template): fix appends issue
* fix(variable): resolve variable parsing issue in third-party data sources
* chore(e2e): make e2e more stable
2024-12-03 20:39:27 +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
nocobase[bot]
fdee3f0afe
Merge branch 'main' into next
2024-10-25 00:27:45 +00:00
YANG QIA
18d31564b3
fix(client): string operators "contains/does not contains" should handle null
value ( #5509 )
2024-10-25 08:27:22 +08:00
Zeke Zhang
4e981ed339
perf(Table): improve performance ( #5438 )
...
* perf(Table): improve performance
* perf(RecordProvider): improve performance
* perf(Table): improve performance
* refactor: migrate component to out
* perf(Action): improve performance
* perf(useInView): registor in row instead of cell
* perf(useCompile): improve performance
* fix: fix undefined error
* perf: use startTransition API
* fix: make e2e test pass
* fix: make e2e test pass
* fix: make unit test pass
* chore: fix unit test
* perf: replace antd skeleton component with custom skeleton component
* perf: split useParentObjectVariable
* perf(ColumnFieldProvider): remove observer and use useMemo
* perf(ReadPretty.JSON): remove Typography
* refactor(Map): use new API
* perf(markdown): use memoize
* fix: make unit test pass
* refactor: extract constant
* perf(ButtonLinkList): use asynchronous rendering to prevent blocking the main process
* fix(ButtonLinkList): fix render issue
* refactor: remove observer
* perf: optimize code
* refactor(EllipsisWithTooltip): extract function out
* refactor(EllipsisWithTooltip): optimize code
* perf(SelectReadPretty): improve performance
* chore: make e2e test more stable
2024-10-24 11:58:20 +08:00
Zeke Zhang
d0a85bf2ab
Merge branch 'main' into next
2024-10-21 09:01:53 +08:00
Zeke Zhang
dd71cdaaa4
feat(variable): add a new variable named Parent object ( #5449 )
...
* feat(variable): add a new variable named Parent object
* test: add tests and fix bug
* fix(linkageRules): fix issue with variable options in subtables
* test: add e2e test
2024-10-21 08:46:04 +08:00
nocobase[bot]
6bd15fb558
Merge branch 'main' into next
2024-10-13 08:58:51 +00:00
Zeke Zhang
30febb30be
fix(dateVariable): fix default value issue in chart filter block ( #5405 )
...
* fix(dateVariable): fix default value issue in chart filter block
* test: add e2e test
* chore: update unit test
2024-10-13 16:58:32 +08:00
Zeke Zhang
85a751fc77
fix(defaultValue): fix the issue of not displaying the value in the default value input box ( #5400 )
...
* chore: add comment
* fix(defaultValue): fix the issue where the default value input box does not display the set value
* test: add e2e test
2024-10-13 08:55:36 +08:00
GitHub Actions Bot
ec20b74157
Merge branch 'main' into next
2024-10-10 01:37:51 +00:00
Zeke Zhang
c99c5f12d9
feat(variable): do not disable date variables ( #5376 )
...
* feat(variable): do not disable date variables
* chore: fix unit tests
* Revert "chore: fix unit tests"
This reverts commit 54e696af989cb96b8d0de2a932551168e3972bcb.
* chore: fix unit tests
* chore: fix unit tests
2024-10-10 09:37:32 +08:00
chenos
9465a83500
fix(variable): fix issue with using variables in subtables ( #5363 )
...
* fix(variable): fix issue with using variables in subtables
* fix: mark as new in special cases
* fix: prevent infinite loop
* chore: unskip e2e test
---------
Co-authored-by: Zeke Zhang <958414905@qq.com>
2024-10-10 07:11:59 +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
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
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
Katherine
fe0d003e99
fix: markdown handlebars rendering issue with this context ( #5250 )
2024-09-11 11:18:20 +08:00
YANG QIA
a04aeb17e6
feat(data-vi): support for adding chart blocks in popups/drawers/sub-pages ( #5248 )
2024-09-11 10:17:01 +08:00
Zeke Zhang
6e45780565
chore: update comment
2024-08-30 11:07:45 +08:00
Zeke Zhang
67d2f85a99
fix(defaultValue): ignores variable values that do not match the current field ( #5122 )
...
* refactor(variable): refactor parseVariable to support return more context
* fix(defaultValue): ignore no matching value
* fix: make unit tests pass
* chore: fix unit test
2024-08-28 11:53:52 +08:00
GitHub Actions Bot
b860078857
Merge branch 'main' into next
2024-08-11 05:24:14 +00:00
Zeke Zhang
d6c2cfe602
fix(linkageRules): fix an exception when the condition contains a association field ( #5037 )
2024-08-11 13:23:56 +08:00
Zeke Zhang
4d84516697
Merge branch 'main' into next
2024-07-09 14:44:15 +08:00
Zeke Zhang
c2260c76c0
feat(variable): add a new variable named 'API token' ( #4850 )
...
* feat(variable): add a variable named 'Current token'
* refactor: rename to 'API Token'
* test: add e2e tests
* chore: update unit test
2024-07-09 14:42:12 +08:00
Zeke Zhang
05cf9986b0
feat: enable direct dialog opening via URL and support for page mode ( #4706 )
...
* refactor: optimize page tabs routing
* test: add e2e test for page tabs
* feat: add popup routing
* fix: resolve nested issue
* refactor: rename file utils to pagePopupUtils
* perf: enhance animation and overall performance
* fix: fix filterByTK
* fix(sourceId): resolve error when sourceId is undefined
* fix: fix List and GridCard
* fix: fix params not fresh
* fix: fix parent record
* fix: resolve the issue on block data not refreshing after popup closure
* feat: bind tab with URL in popups
* feat(sub-page): enable popup to open in page mode
* chore: optimize
* feat: support association fields
* fix: address the issue of no data in associaiton field
* fix: resolve the issue with opening nested dialog in association field
* fix: fix the issue of dialog content not refreshing
* perf: use useNavigateNoUpdate to replace useNavigate
* perf: enhance popups performance by avoiding unnecessary rendering
* fix: fix tab page
* fix: fix bulk edit action
* chore: fix unit test
* chore: fix unit tests
* fix: fix bug to pass e2e tests
* chore: fix build
* fix: fix bugs to pass e2e tests
* chore: avoid crashing
* chore: make e2e tests pass
* chore: make e2e tests pass
* chore: fix unit tests
* fix(multi-app): fix known issues
* fix(Duplicate): should no page mode
* chore: fix build
* fix(mobile): fix known issues
* fix: fix open mode of Add new
* refactor: rename 'popupUid' to 'popupuid'
* refactor: rename 'subPageUid' tp 'subpageuid'
* refactor(subpage): simplify configuration of router
* fix(variable): refresh data after value change
* test: add e2e test for sub page
* refactor: refactor and add tests
* fix: fix association field
* refactor(subPage): avoid blank page occurrences
* chore: fix unit tests
* fix: correct first-click context setting for association fields
* refactor: use Action's uid for subpage
* refactor: rename x-nb-popup-context to x-action-context and move it to Action schema
* feat: add context during the creation of actions
* chore: fix build
* chore: make e2e tests pass
* fix(addChild): fix context of Add child
* fix: avoid loss or query string
* fix: avoid including 'popups' in the path
* fix: resolve issue with popup variables and add tests
* chore(e2e): fix e2e test
* fix(sideMenu): resolve the disappearing sidebar issue and add tests
* chore(e2e): fix e2e test
* fix: should refresh block data after mutiple popups closed
* chore: fix e2e test
* fix(associationField): fix wrong context
* fix: address issue with special characters
2024-06-30 23:25:01 +08:00
Zeke Zhang
99a0fcae1c
feat(variable): add a new variable named 'Parent popup record' ( #4748 )
...
* refactor: extract CurrentPopupRecordProvider component
* refactor: rename
* feat(variable): add a new variable named 'Parent popup record'
* chore: add translation
* fix: fix known issues
* test: add e2e tests
2024-06-26 08:59:01 +08:00
Zeke Zhang
6e0074fb66
fix(variable): resolve the issue of incorrect sourceKey in variable lazy loading ( #4691 )
...
* test: add e2e test
* fix(variable): resolve the issue of incorrect sourceKey in variable lazy loading
* chore: optimize e2e test
* chore: fix unit tests
* chore: make e2e more stable
2024-06-18 19:28:22 +08:00
Zeke Zhang
7d4ae69f08
fix(variable): should remove through collection field ( #4590 )
2024-06-07 14:05:39 +08:00
Zeke Zhang
837f4f4158
refactor(variable): support default value setting ( #4583 )
...
* refactor(variable): support default value setting
* chore: add e2e test for URL search params variable
* fix: resolve field linkage errors
* chore: fix unit test
* test: association select data scope linkage
---------
Co-authored-by: katherinehhh <katherine_15995@163.com>
2024-06-07 10:23:28 +08:00
Zeke Zhang
4743b2b689
fix(linkage-rules): resolve issue with invalid expressions ( #4580 )
...
* fix(linkage-rules): resolve issue with invalid expressions
* test: add e2e test for expression
* refactor: extract template
2024-06-06 19:38:38 +08:00
Zeke Zhang
f66edb5d27
feat(client): add new variable named 'URL search params' and support link action ( #4506 )
...
* feat: support link action
* feat(client): add new variable named 'URL search params'
* chore: add translation
* fix: avoid crashing
* chore: fix failed test
* feat: link action
* feat: link action
* fix: remove filter parameters with undefined values
* feat: link action
* feat: add support for default values in filter form fields
* refactor: code improve
* refactor: locale improve
* refactor: locale improve
* test: add e2e test
* refactor: locale improve
* refactor: locale improve
* fix: resolve operation issues with variables
* refactor: code improve
* chore: enable direct selection of variables as default value
* chore: use qs to parse query string
* fix: menu selectKeys (T-4373)
* refactor: use qs to stringify search params
* refactor: locale improve
* refactor: locale improve
* chore: fix failed tests
* fix: resolve issue where setting Data scope is not work
* chore: fix failed e2e tests
* chore: make e2e tests more stable
* chore: add translation
* chore: make e2e tests more stable
* fix: resolve the issue of error when saving data scope
* feat: trigger variable parsing after context change
* test: add unit tests
* test: add e2e test
* refactor: extract template
* chore: fix failed unit tests
* chore: fix failed e2e test
* fix(Link): hide linkage rules in top link (T-4410)
* fix(permission): remove URL search params variable from data scope
* chore: make more stable
* chore: make e2e test more stable
* fix(Link): reduce size for variable
* fix: clear previous context (T-4449)
* fix(calendar, map): resolve initial data scope setting error (T-4450)
* fix: correct concatenation of query string (T-4453)
---------
Co-authored-by: katherinehhh <katherine_15995@163.com>
Co-authored-by: jack zhang <1098626505@qq.com>
2024-06-04 20:57:03 +08:00
Zeke Zhang
cedb5046dd
fix(core): support selecting the first level of variables as the default value ( #4439 )
2024-05-22 08:43:32 +08:00
jack zhang
62b2b5c68b
chore: add copyright information to the file header ( #4028 )
...
* fix: add license code
* fix: bug
* fix: bug
* fix: upgrade
* fix: improve
* chore: add copyright information to the file header
* fix: d.ts bug
* fix: bug
* fix: e2e bug
* fix: merge main
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-30 15:51:31 +08:00
Zeke Zhang
0274e65cec
feat(Variable): add a new variable ( #4025 )
...
* feat: add DeclareVariable
* feat: add a new variable
* test: add e2e
* fix: current form variable
* chore: rename '弹窗记录' to 'Current popup record'
* fix(Details): fix data scope error
* fix(Calendar): fix data scope
* fix: varaible's data souce
* fix: data souce
2024-04-15 14:50:38 +08:00
jack zhang
454d1d34ed
fix: add displayName ( #3628 )
...
* fix: context add displayName
* fix: observer add displayName
* fix: memo component add displayName
* fix: forwordRef component add displayName
2024-03-06 18:22:31 +08:00
katherinehhh
af6113c8ef
feat: support for multiple data sources ( #3418 )
...
* refactor: collectionName display with tablePrefix
* fix: bug
* fix: schema toolbar no ddata source (T-3182)
* fix: unit test bug
* fix: useAssociationNames support data source
* chore(RecordProvider_deprecated): add collectionName
* fix: deprecated
* refactor: default value
* refactor: default value
* fix: fastRefresh=false
* style: fix action link style (T-3228)
* fix: should not diaplay Save mode for some Action (T-3217)
* chore: remove group title (T-3194)
* fix: extend collections bug
* chore: transaction
* fix: filter block only current data source (T-3226)
* fix: fix filter block in drawer (T-3224)
* fix: avoid error when editing field (T-3232)
* fix: primary key name in postgres
* chore: test
* chore: test
* refactor: forgin key support select and input
* fix: doc bug
* fix: change duplllicte divier name
* feat: throughScope
* fix: bug
* refactor: local improve
* fix: fix parent record of Add child in tree table (T-3235)
* fix: block template filter by dataSource(T-3234)
* chore: change table primary key
* refactor: index for primarykey & unique
* chore: test
* fix: should not display filter blocks option if no association field (T-3242)
* fix: dataSourceKey
* refactor: sourcekey & forginkey & targetkey limit type
* fix: bug
* chore: test
* fix: upload action
* fix: unit test
* fix: useSourceIdFromParentRecord
* fix: permissions
* fix: oho association field should has default fieldnames
* fix: useSourceIdFromParentRecord
* fix: tableSelectorProvider collection undefined
* fix: bug
* chore: validate association keys
* fix: apply mixin bug
* fix: getPrimaryKey
* fix: bug T-3253
* fix: collection unit test
* chore: validate association keys
* fix: create collection
* fix: getCollection in TableBlockProvider
* refactor: association key in data source manager
* fix: improve doc
* fix(relationshipBlocks): fix sourceId (T-3257,T-3264)
* fix: plugin acl test
* chore: correct field options
* fix: dataScope resource
* fix: improve doc
* fix: appVersion = '<0.20.0-alpha.1'
* refactor: fieldNames
* refactor: primarykey & unique & autoIncrement shuld not support edit in third dataSource
* fix: bug
* fix: gantt block params tree
* fix: style
* fix: wording & icon
* fix: bug
* fix: roles cache
* refactor: calender & express & file collection support preset fields
* fix: decode uri
* refactor: migrate files [wip] (#3584 )
* refactor: migrate blockSettings:table
* refactor: migrate fieldSettings:TableColumn
* refactor: migrate TableBlockInitializer
* fix: fix import path
* refactor: migrate TableActionInitailizers
* refactor: migrate TableColumnInitializers
* refactor: migrate TableActionColumnInitializers
* refactor: migrate TableColumnSchemaToolbar
* refactor: migrate TableSelectorInitializer
* refactor: migrate blockSettings:tableSelector
* refactor(tableSelector): migrate e2e
* refactor(form): migrate e2e
* refactor: migrate FormBlockInitializer
* refactor: migrate CreateFormBlockInitializer
* refactor: migrate RecordFormBlockInitializer
* refactor: migrate blockSettings:createForm
* refactor: rename file name
* refactor: migrate blockSettings:editForm
* refactor: migrate FormActionInitailizers
* refactor: move to a new file
* refactor: migrate formItemInitializers
* refactor: migrate FormItemSchemaToolbar
* refactor: migrate fieldSettings:FormItem
* chore: fix build
* fix: fix weird path error
* fix: rename formActionInitializers
* fix: create collection field
* refactor: throughCollection
* fix: datasources get permission
* fix: throughCollection
* fix: throughCollection
* fix: register initializer components
* refactor: targetkey & source key must be unique
* refactor: targetkey & source key must be unique index
* fix(customRequest): avoid error when clicking button
* chore: error message when add multiple primary keys
* fix: target key in hasMany
* fix: default value should not support edit in outside dataSource
* fix: test
* fix: update associations (#3586 )
* fix: source key
* fix: addAccessor
* fix: updateAssociations
* fix: bugs
* fix: remove test.only
* refactor: migrate RecordReadPrettyFormBlockInitializer
* refactor: migrate singleDataDetailsBlockSettings
* fix(users): filter bug
* refactor: migrate readPrettyFormActionInitializers
* refactor: migrate readPrettyFormItemInitializers
* refactor: migrate DetailsBlockInitializer
* refactor: migrate multiDataDetailsBlockSettings
* feat: validate association key pairs
* chore: default title
* refactor: migrate detailsActionInitializers
* refactor: migrate e2e
* refactor: migrate ListBlockInitializer
* refactor: migrate listBlockSettings
* refactor: migrate listActionInitializers
* refactor: migrate listItemActionInitializers
* fix: create collection
* fix: remove fieldsHistoryRepository.createMany
* test(e2e): fix error message for roles.name
* fix: sync indexes in postgres
* chore: test
* test: acl test
* test(e2e): fix sort error
* refactor: remove useless code
* test: kanban e2e
* fix: load user
* fix: test
* test: fix unit tests
* fix: db.sync
* test: updateRole
* fix: test
* fix: settings and initializer performance improve
* fix: update role resources
* fix: add block
* fix: fix T-3308
* test: fix e2e
* test(e2e): skip fix block
* chore: skip test in sqlite
* fix: change initializer menu key
* test(collectionManager): fix e2e
* refactor: sort field availableTypes
* fix: client core performance optimization
* refactor(GridCard): migrate e2e
* refactor: migrate GridCard
* fix: bug
* refactor: migrate utils
* refactor: migrate filter-form
* fix: change Record to CollectionRecord
* chore: acl migration
* chore: acl migration
* chore: migration of acl
* refactor: migrate Collapse
* chore: error message
* fix: update associations
* chore: update collection search to be case-insensitive
* refactor: migrate Markdown
* fix(WorkflowTodos): x-toolbar typo
* feat: admin change password
* feat: check foreign key && target key value in update associations
* chore: dataSource permission
* refactor: dataSource permission
* fix: acl support data source permission
* fix: fix T-3307
* chore: test
* refactor: locale improve
* chore: locale
* chore: sqlite test config
* chore: create user with roles test
* chore: test
* test: fix mock data to avoid duplication
* chore: test
* fix: load table with tablePrefix
* chore: move action in datasource
* chore: number field to sort field type
* test: optimize dropdown
* chore: upgrade @playwright/test to v1.42.1
* fix: fix invalid path for Windows
* test: fix e2e
* chore: kanban Sort field
* fix: kanban
* fix: kanban
* refactor: create sort in kanban
* refactor: create sort field in kanban
* refactor: locale improve
* refactor: locale improve
* fix: sync with null default value
* refactor: collectionFieldInterfaceSelect
* fix: move action
* fix: update associations
* fix: test case
* chore: test
* test: optimize e2e
* feat: remvoe Duplicate for single details block (T-3195)
* fix(fieldNames): should use primaryKey as default value (T-3322, T-3319)
* fix: use filterTargetKey as fieldNNames.value
* test: fix e2e
* test: fix e2e
* test(kanban): fix e2e
* test(blockTemplate): should clear template at end of test
* refactor: migrate fields
* refactor: migrate actions
* refactor: migrate menu
* refactor: migrate page
* refactor(SchemaSettings): unify naming style
* fix: scopeKeyOptions undefined
* refactor(SchemaInitializers): unify naming stle
* fix(bi): chart filter fields
* chore: acl snippets
* refactor: replace CreateFormBlockInitializers to blockInitializers:createForm
* refactor: replace to blockInitializers:customizeCreateForm
* refactor: replace block intializers name
* refactor: replace action initializers name
* refactor: replace field initializers name
* style: fix hover style for column action (T-3297)
* refactor: revert some codes
* chore: update comment
* fix: revert record deprected
* fix: remove pro-plugins
* fix: bug
* chore: replace iframeBlockSchemaSettings to blockSettings:iframe
* Revert "refactor: revert some codes"
This reverts commit 991021ceaeecc5d27113a51e501a4abd439edcd2.
* Revert "refactor: replace field initializers name"
This reverts commit b47b808d06305741b56302e3dad1dd256658fad4.
* Revert "refactor: replace action initializers name"
This reverts commit eab1b6e3d986d1c3dc80d75fa6230fa948e3a33e.
* Revert "refactor: replace block intializers name"
This reverts commit 50ab9da177f344d037184a17746cb1d0e037a826.
* Revert "refactor: replace to blockInitializers:customizeCreateForm"
This reverts commit 77b9f59bb14d944fd8c42006e899861196589748.
* Revert "refactor: replace CreateFormBlockInitializers to blockInitializers:createForm"
This reverts commit e9a38b0b4d9fabc571b7d9cdc8929914f5e2a367.
* Revert "refactor(SchemaInitializers): unify naming stle"
This reverts commit 542390899fa84d212a8dbbe7f77e0f19befa6ae8.
* Revert "refactor(SchemaSettings): unify naming style"
This reverts commit 8566735922c4a157efccdb3830deaedeb08c6f6a.
* Revert "chore: replace iframeBlockSchemaSettings to blockSettings:iframe"
This reverts commit 884f6df92fdc860a50500025f132904e9528002f.
* refactor: create sorting field in kanban
* refactor: create sorting field in kanban
* fix: style
* fix: bug
* fix(SideMenu): fix the problem of invalid add menu (T-3331)
* fix: translation
* feat: client en-US docs
---------
Co-authored-by: xilesun <2013xile@gmail.com>
Co-authored-by: dream2023 <1098626505@qq.com>
Co-authored-by: Zeke Zhang <958414905@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Chareice <chareice@live.com>
2024-03-03 23:06:24 +08:00
Zeke Zhang
bb46697e71
fix(LinkageRules): avoid to change observable object ( #3538 )
2024-02-21 11:22:47 +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
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
Zeke Zhang
de902c538b
fix(variable): local variables should not affect global variables ( #3214 )
2023-12-18 15:48:39 +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
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