@@ -31,6 +31,7 @@ interface Props {
3131 securitySolution ?: FeatureCatalogueEntry ;
3232}
3333
34+ // TODO: Bolding the first word/verb won't look write in other languages
3435const getActionsText = ( actions : Array < { verb : string ; text : string } > ) => (
3536 < EuiText size = "s" style = { { padding : '16px' } } >
3637 { actions . map ( ( { verb, text } ) => (
@@ -224,16 +225,16 @@ export const SolutionsPanel: FunctionComponent<Props> = ({
224225 observability,
225226 securitySolution,
226227} ) => (
227- < EuiFlexGroup justifyContent = "spaceAround" >
228+ < EuiFlexGroup >
228229 { appSearch || observability || securitySolution ? (
229230 < EuiFlexItem >
231+ { /* TODO: once app search is merged, register add to feature catalogue and remove hard coded text here */ }
230232 < EuiFlexGroup direction = "column" >
231233 { appSearch ? (
232234 < EuiFlexItem className = "homSolutionsPanel__appSearch" >
233235 < EuiPanel
234- className = "homSolutionsPanel__solutionWrapper"
235236 paddingSize = "none"
236- onClick = { createAppNavigationHandler ( appSearch . path ) } // TODO: double check this url once enterprise search plugin is merged
237+ onClick = { createAppNavigationHandler ( '/app/app_search' ) } // TODO: double check this url once enterprise search plugin is merged
237238 >
238239 < EuiFlexGroup gutterSize = "none" >
239240 < EuiFlexItem grow = { 1 } className = "homSolutionsPanel__appSearchHeader" >
@@ -245,8 +246,8 @@ export const SolutionsPanel: FunctionComponent<Props> = ({
245246 alt = "Enterprise search top left background graphic"
246247 />
247248 < SolutionsTitle
248- iconType = { appSearch . icon }
249- title = { appSearch . title }
249+ iconType = "logoEnterpriseSearch"
250+ title = "Enterprise Search"
250251 subtitle = { i18n . translate ( 'home.solutionsPanel.appSearchSubtitle' , {
251252 defaultMessage : 'Search everything' ,
252253 } ) }
@@ -259,20 +260,14 @@ export const SolutionsPanel: FunctionComponent<Props> = ({
259260 alt = "Enterprise search bottom right background graphic"
260261 />
261262 </ EuiFlexItem >
262- < EuiFlexItem grow = { 1 } className = "homSolutionsPanel__CTA" >
263- { getActionsText ( solutionCTAs . appSearch ) }
264- </ EuiFlexItem >
263+ < EuiFlexItem grow = { 1 } > { getActionsText ( solutionCTAs . appSearch ) } </ EuiFlexItem >
265264 </ EuiFlexGroup >
266265 </ EuiPanel >
267266 </ EuiFlexItem >
268267 ) : null }
269268 { observability ? (
270269 < EuiFlexItem className = "homSolutionsPanel__observability" >
271- < EuiPanel
272- className = "homSolutionsPanel__solutionWrapper"
273- paddingSize = "none"
274- onClick = { createAppNavigationHandler ( observability . path ) }
275- >
270+ < EuiPanel paddingSize = "none" onClick = { createAppNavigationHandler ( observability . path ) } >
276271 < EuiFlexGroup gutterSize = "none" >
277272 < EuiFlexItem grow = { 1 } className = "homSolutionsPanel__observabilityHeader" >
278273 < EuiImage
@@ -288,17 +283,14 @@ export const SolutionsPanel: FunctionComponent<Props> = ({
288283 subtitle = { observability . description }
289284 />
290285 </ EuiFlexItem >
291- < EuiFlexItem grow = { 1 } className = "homSolutionsPanel__CTA" >
292- { getActionsText ( solutionCTAs . observability ) }
293- </ EuiFlexItem >
286+ < EuiFlexItem grow = { 1 } > { getActionsText ( solutionCTAs . observability ) } </ EuiFlexItem >
294287 </ EuiFlexGroup >
295288 </ EuiPanel >
296289 </ EuiFlexItem >
297290 ) : null }
298291 { securitySolution ? (
299292 < EuiFlexItem className = "homSolutionsPanel__securitySolution" >
300293 < EuiPanel
301- className = "homSolutionsPanel__solutionWrapper"
302294 paddingSize = "none"
303295 onClick = { createAppNavigationHandler ( securitySolution . path ) }
304296 >
@@ -317,7 +309,7 @@ export const SolutionsPanel: FunctionComponent<Props> = ({
317309 subtitle = { securitySolution . description }
318310 />
319311 </ EuiFlexItem >
320- < EuiFlexItem grow = { 1 } className = "homSolutionsPanel__CTA" >
312+ < EuiFlexItem grow = { 1 } >
321313 { getActionsText ( solutionCTAs . securitySolution ) }
322314 </ EuiFlexItem >
323315 </ EuiFlexGroup >
@@ -328,11 +320,7 @@ export const SolutionsPanel: FunctionComponent<Props> = ({
328320 </ EuiFlexItem >
329321 ) : null }
330322 < EuiFlexItem className = "homSolutionsPanel__kibana" >
331- < EuiPanel
332- className = "homSolutionsPanel__solutionWrapper"
333- paddingSize = "none"
334- onClick = { createAppNavigationHandler ( '/app/dashboards' ) }
335- >
323+ < EuiPanel paddingSize = "none" onClick = { createAppNavigationHandler ( '/app/dashboards' ) } >
336324 < EuiFlexGroup gutterSize = "none" >
337325 < EuiFlexItem grow = { 1 } className = "homSolutionsPanel__kibanaHeader" >
338326 < EuiImage
@@ -353,9 +341,7 @@ export const SolutionsPanel: FunctionComponent<Props> = ({
353341 alt = "Kibana bottom right background graphic"
354342 />
355343 </ EuiFlexItem >
356- < EuiFlexItem grow = { 1 } className = "homSolutionsPanel__CTA" >
357- { getActionsText ( solutionCTAs . kibana ) }
358- </ EuiFlexItem >
344+ < EuiFlexItem grow = { 1 } > { getActionsText ( solutionCTAs . kibana ) } </ EuiFlexItem >
359345 </ EuiFlexGroup >
360346 </ EuiPanel >
361347 </ EuiFlexItem >
0 commit comments