fix(ui): data assets order for search in explore page (#20963)

* fix: asset order and sort order for search

* revert sort order change
This commit is contained in:
Pranita Fulsundar 2025-04-25 20:28:03 +05:30 committed by GitHub
parent 6d64fbf9c5
commit 2cf510764d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 15 deletions

View File

@ -210,7 +210,9 @@ const ExploreV1: React.FC<ExploreProps> = ({
const exploreLeftPanel = useMemo(() => {
if (tabItems.length === 0) {
return (
return loading ? (
<Loader />
) : (
<FilterErrorPlaceHolder
className="h-min-80 d-flex flex-col justify-center border-none"
size={SIZE.MEDIUM}

View File

@ -357,20 +357,6 @@ class SearchClassBase {
public getTabsInfo(): Record<ExploreSearchIndex, TabsInfoData> {
return {
[SearchIndex.TABLE]: {
label: i18n.t('label.table-plural'),
sortingFields: tableSortingFields,
sortField: INITIAL_SORT_FIELD,
path: ExplorePageTabs.TABLES,
icon: TableIcon,
},
[SearchIndex.STORED_PROCEDURE]: {
label: i18n.t('label.stored-procedure-plural'),
sortingFields: entitySortingFields,
sortField: INITIAL_SORT_FIELD,
path: ExplorePageTabs.STORED_PROCEDURE,
icon: IconStoredProcedure,
},
[SearchIndex.DATABASE]: {
label: i18n.t('label.database-plural'),
sortingFields: entitySortingFields,
@ -385,6 +371,20 @@ class SearchClassBase {
path: ExplorePageTabs.DATABASE_SCHEMA,
icon: SchemaIcon,
},
[SearchIndex.TABLE]: {
label: i18n.t('label.table-plural'),
sortingFields: tableSortingFields,
sortField: INITIAL_SORT_FIELD,
path: ExplorePageTabs.TABLES,
icon: TableIcon,
},
[SearchIndex.STORED_PROCEDURE]: {
label: i18n.t('label.stored-procedure-plural'),
sortingFields: entitySortingFields,
sortField: INITIAL_SORT_FIELD,
path: ExplorePageTabs.STORED_PROCEDURE,
icon: IconStoredProcedure,
},
[SearchIndex.DASHBOARD]: {
label: i18n.t('label.dashboard-plural'),
sortingFields: entitySortingFields,