From cdf95e354675c753f49120d3675e2088f93575c2 Mon Sep 17 00:00:00 2001 From: Catherine Liu Date: Tue, 14 Jul 2020 14:27:55 -0700 Subject: [PATCH] Fixed logos --- .../solutions_panel/solutions_panel.tsx | 38 ++++++------------- .../enterprise_search/public/plugin.ts | 2 +- 2 files changed, 13 insertions(+), 27 deletions(-) diff --git a/src/plugins/home/public/application/components/solutions_panel/solutions_panel.tsx b/src/plugins/home/public/application/components/solutions_panel/solutions_panel.tsx index daa6e8c161bbc..ccae82cb591a9 100644 --- a/src/plugins/home/public/application/components/solutions_panel/solutions_panel.tsx +++ b/src/plugins/home/public/application/components/solutions_panel/solutions_panel.tsx @@ -31,6 +31,7 @@ interface Props { securitySolution?: FeatureCatalogueEntry; } +// TODO: Bolding the first word/verb won't look write in other languages const getActionsText = (actions: Array<{ verb: string; text: string }>) => ( {actions.map(({ verb, text }) => ( @@ -224,16 +225,16 @@ export const SolutionsPanel: FunctionComponent = ({ observability, securitySolution, }) => ( - + {appSearch || observability || securitySolution ? ( + {/* TODO: once app search is merged, register add to feature catalogue and remove hard coded text here */} {appSearch ? ( @@ -245,8 +246,8 @@ export const SolutionsPanel: FunctionComponent = ({ alt="Enterprise search top left background graphic" /> = ({ alt="Enterprise search bottom right background graphic" /> - - {getActionsText(solutionCTAs.appSearch)} - + {getActionsText(solutionCTAs.appSearch)} ) : null} {observability ? ( - + = ({ subtitle={observability.description} /> - - {getActionsText(solutionCTAs.observability)} - + {getActionsText(solutionCTAs.observability)} @@ -298,7 +291,6 @@ export const SolutionsPanel: FunctionComponent = ({ {securitySolution ? ( @@ -317,7 +309,7 @@ export const SolutionsPanel: FunctionComponent = ({ subtitle={securitySolution.description} /> - + {getActionsText(solutionCTAs.securitySolution)} @@ -328,11 +320,7 @@ export const SolutionsPanel: FunctionComponent = ({ ) : null} - + = ({ alt="Kibana bottom right background graphic" /> - - {getActionsText(solutionCTAs.kibana)} - + {getActionsText(solutionCTAs.kibana)} diff --git a/x-pack/plugins/enterprise_search/public/plugin.ts b/x-pack/plugins/enterprise_search/public/plugin.ts index a7967972ea407..fbc9f5f246a93 100644 --- a/x-pack/plugins/enterprise_search/public/plugin.ts +++ b/x-pack/plugins/enterprise_search/public/plugin.ts @@ -44,7 +44,7 @@ export class EnterpriseSearchPlugin implements Plugin { core.application.register({ id: 'appSearch', - title: 'App Search', + title: 'Enterprise search', appRoute: '/app/enterprise_search/app_search', category: DEFAULT_APP_CATEGORIES.enterpriseSearch, mount: async (params: AppMountParameters) => {