mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-24 08:58:06 +00:00
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:
parent
6d64fbf9c5
commit
2cf510764d
@ -210,7 +210,9 @@ const ExploreV1: React.FC<ExploreProps> = ({
|
|||||||
|
|
||||||
const exploreLeftPanel = useMemo(() => {
|
const exploreLeftPanel = useMemo(() => {
|
||||||
if (tabItems.length === 0) {
|
if (tabItems.length === 0) {
|
||||||
return (
|
return loading ? (
|
||||||
|
<Loader />
|
||||||
|
) : (
|
||||||
<FilterErrorPlaceHolder
|
<FilterErrorPlaceHolder
|
||||||
className="h-min-80 d-flex flex-col justify-center border-none"
|
className="h-min-80 d-flex flex-col justify-center border-none"
|
||||||
size={SIZE.MEDIUM}
|
size={SIZE.MEDIUM}
|
||||||
|
@ -357,20 +357,6 @@ class SearchClassBase {
|
|||||||
|
|
||||||
public getTabsInfo(): Record<ExploreSearchIndex, TabsInfoData> {
|
public getTabsInfo(): Record<ExploreSearchIndex, TabsInfoData> {
|
||||||
return {
|
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]: {
|
[SearchIndex.DATABASE]: {
|
||||||
label: i18n.t('label.database-plural'),
|
label: i18n.t('label.database-plural'),
|
||||||
sortingFields: entitySortingFields,
|
sortingFields: entitySortingFields,
|
||||||
@ -385,6 +371,20 @@ class SearchClassBase {
|
|||||||
path: ExplorePageTabs.DATABASE_SCHEMA,
|
path: ExplorePageTabs.DATABASE_SCHEMA,
|
||||||
icon: SchemaIcon,
|
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]: {
|
[SearchIndex.DASHBOARD]: {
|
||||||
label: i18n.t('label.dashboard-plural'),
|
label: i18n.t('label.dashboard-plural'),
|
||||||
sortingFields: entitySortingFields,
|
sortingFields: entitySortingFields,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user