Skip to content

Commit

Permalink
Fix search behavior in tree (#794)
Browse files Browse the repository at this point in the history
* Fix searchg behavior in tree

* Automatic frontend build

---------

Co-authored-by: vin0401 <[email protected]>
  • Loading branch information
vin0401 and vin0401 authored Dec 3, 2024
1 parent afa66e6 commit 7d37a0d
Show file tree
Hide file tree
Showing 35 changed files with 1,907 additions and 1,902 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { Box } from '../box/box'

export interface TreeSearchProps {
node: TreeNodeProps
isLoading?: boolean
mergeAdditionalQueryParams?: Dispatch<unknown>
total: number
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const TreeList = ({ node }: TreeListProps): React.JSX.Element => {
const { isLoading, isFetching, isError, data } = apiHookResult
const { uploadFileList, uploadingNode } = useContext(UploadContext)!

if (isLoading === true || isFetching === true) {
if (isLoading === true) {
return (
<Skeleton style={ { paddingLeft: token.paddingSM + (node.level + 1.5) * 24 } } />
)
Expand All @@ -54,6 +54,7 @@ export const TreeList = ({ node }: TreeListProps): React.JSX.Element => {
style={ { paddingLeft: token.paddingSM + (node.level + 1) * 24 } }
>
<RenderFilter
isLoading={ isFetching }
mergeAdditionalQueryParams={ mergeAdditionalQueryParams }
node={ node }
total={ total }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const SearchContainer = (props: TreeSearchProps): React.JSX.Element => {
const { t } = useTranslation()
return (
<BaseSearchContainer
{ ...props }
label={ t('asset.asset-tree.search', { folderName: props.node.label }) }
node={ props.node }
total={ props.total }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const SearchContainer = (props: TreeSearchProps): React.JSX.Element => {
const { t } = useTranslation()
return (
<BaseSearchContainer
{ ...props }
label={ t('data-object.data-object-tree.search', { folderName: props.node.label }) }
node={ props.node }
total={ props.total }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const SearchContainer = (props: SearchContainerProps): React.JSX.Element => {
return (
<Search
aria-label={ props.label }
loading={ props.isLoading }
onSearch={ onSearch }
placeholder={ props.label }
size='small'
Expand Down

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/build/0a1a0a5f-e169-4c5b-b107-1591f630254f/core-dll.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/build/0a1a0a5f-e169-4c5b-b107-1591f630254f/entrypoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"entrypoints": {
"core-dll": {
"css": [
"/bundles/pimcorestudioui/build/0a1a0a5f-e169-4c5b-b107-1591f630254f/core-dll.css"
],
"js": [
"/bundles/pimcorestudioui/build/0a1a0a5f-e169-4c5b-b107-1591f630254f/core-dll.js"
]
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"main": {
"js": [
"/bundles/pimcorestudioui/build/1699de6e-f6c7-4629-93c2-7f156f5e2764/main.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/1699de6e-f6c7-4629-93c2-7f156f5e2764/main.js": "/bundles/pimcorestudioui/build/1699de6e-f6c7-4629-93c2-7f156f5e2764/main.js"
}

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/44b37049-db4f-4146-9a7f-9c30ff6aacea/core-dll.js

This file was deleted.

12 changes: 0 additions & 12 deletions public/build/44b37049-db4f-4146-9a7f-9c30ff6aacea/entrypoints.json

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"vendor": {
"js": [
"/bundles/pimcorestudioui/build/e0cd0b29-8931-451e-950d-a8be133c96e1/vendor.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/e0cd0b29-8931-451e-950d-a8be133c96e1/vendor.js": "/bundles/pimcorestudioui/build/e0cd0b29-8931-451e-950d-a8be133c96e1/vendor.js"
}

0 comments on commit 7d37a0d

Please sign in to comment.