From 08f2c9b3055060eec9f1ae53e6b4171339984177 Mon Sep 17 00:00:00 2001 From: Cemre Mengu Date: Thu, 8 Dec 2022 01:56:53 +0300 Subject: [PATCH] refactor(frontend): Make dashboard search box the first filter (#19721) --- .../src/views/CRUD/dashboard/DashboardList.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx b/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx index f2eda98874..b972e7f6e0 100644 --- a/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx +++ b/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx @@ -463,6 +463,13 @@ function DashboardList(props: DashboardListProps) { const filters: Filters = useMemo( () => [ + { + Header: t('Search'), + key: 'search', + id: 'dashboard_title', + input: 'search', + operator: FilterOperator.titleOrSlug, + }, { Header: t('Owner'), key: 'owner', @@ -533,13 +540,6 @@ function DashboardList(props: DashboardListProps) { { label: t('No'), value: false }, ], }, - { - Header: t('Search'), - key: 'search', - id: 'dashboard_title', - input: 'search', - operator: FilterOperator.titleOrSlug, - }, ], [addDangerToast, favoritesFilter, props.user], );