From fb49ba53ed8b0306fdbd136689a88c6f07a659b5 Mon Sep 17 00:00:00 2001 From: scottybollinger Date: Fri, 16 Oct 2020 14:48:13 -0400 Subject: [PATCH 1/3] Update route path for prioritizations --- .../public/applications/workplace_search/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/routes.ts b/x-pack/plugins/enterprise_search/public/applications/workplace_search/routes.ts index dfe664c33198c..fb47b0a090f56 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/routes.ts +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/routes.ts @@ -52,7 +52,7 @@ export const SECURITY_PATH = `${ORG_PATH}/security`; export const GROUPS_PATH = '/groups'; export const GROUP_PATH = `${GROUPS_PATH}/:groupId`; -export const GROUP_SOURCE_PRIORITIZATION_PATH = `${GROUPS_PATH}/:groupId/source-prioritization`; +export const GROUP_SOURCE_PRIORITIZATION_PATH = `${GROUPS_PATH}/:groupId/source_prioritization`; export const SOURCES_PATH = '/sources'; export const ORG_SOURCES_PATH = `${ORG_PATH}${SOURCES_PATH}`; From 6d5434af089468c7ed69211d5d38071aaeb92e5e Mon Sep 17 00:00:00 2001 From: scottybollinger Date: Fri, 16 Oct 2020 14:55:57 -0400 Subject: [PATCH 2/3] Update prioritization spacing --- .../components/layout/kibana_header_actions.tsx | 12 +++++++----- .../components/group_source_prioritization.tsx | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx index b7da5b4281aa0..f74c6bb254cd6 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { EuiButtonEmpty } from '@elastic/eui'; +import { EuiButtonEmpty, EuiText } from '@elastic/eui'; import { externalUrl, getWorkplaceSearchUrl } from '../../../shared/enterprise_search_url'; @@ -14,10 +14,12 @@ export const WorkplaceSearchHeaderActions: React.FC = () => { if (!externalUrl.enterpriseSearchUrl) return null; return ( - - {i18n.translate('xpack.enterpriseSearch.workplaceSearch.headerActions.searchApplication', { - defaultMessage: 'Go to search application', - })} + + + {i18n.translate('xpack.enterpriseSearch.workplaceSearch.headerActions.searchApplication', { + defaultMessage: 'Go to search application', + })} + ); }; diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/components/group_source_prioritization.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/components/group_source_prioritization.tsx index 659f7f209e498..4bdff20bde888 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/components/group_source_prioritization.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/components/group_source_prioritization.tsx @@ -152,7 +152,7 @@ export const GroupSourcePrioritization: React.FC = () => { - + { } /> - +
{activeSourcePriorities[id]}
From 9adf87fba64790ba0290aa6bce379a140bd4ca38 Mon Sep 17 00:00:00 2001 From: scottybollinger Date: Fri, 16 Oct 2020 14:57:07 -0400 Subject: [PATCH 3/3] Lint fix --- .../components/layout/kibana_header_actions.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx index f74c6bb254cd6..fe73098f044c0 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx @@ -14,7 +14,12 @@ export const WorkplaceSearchHeaderActions: React.FC = () => { if (!externalUrl.enterpriseSearchUrl) return null; return ( - + {i18n.translate('xpack.enterpriseSearch.workplaceSearch.headerActions.searchApplication', { defaultMessage: 'Go to search application',