From 8140effe0ba094d84177047fc7cd996da62e7f79 Mon Sep 17 00:00:00 2001 From: saarikabhasi Date: Tue, 25 Apr 2023 16:29:33 -0400 Subject: [PATCH] with scss --- .../engine/engine_connect/engine_connect.tsx | 4 + .../engine_search_preview.tsx | 126 ++++++++---------- .../engine/search_application_content.tsx | 3 + .../engine/search_application_layout.scss | 5 + .../layout/engines_page_template.tsx | 2 - 5 files changed, 64 insertions(+), 76 deletions(-) create mode 100644 x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/search_application_layout.scss diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_connect/engine_connect.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_connect/engine_connect.tsx index 4681ee7417d48..d07951ba74444 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_connect/engine_connect.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_connect/engine_connect.tsx @@ -26,6 +26,8 @@ import { EngineViewLogic } from '../engine_view_logic'; import { SearchApplicationAPI } from './search_application_api'; +import '../search_application_layout.scss'; + const pageTitle = i18n.translate( 'xpack.enterpriseSearch.content.searchApplications.connect.pageTitle', { @@ -69,6 +71,7 @@ export const EngineConnect: React.FC = () => { isLoading={isLoadingEngine} pageHeader={{ bottomBorder: false, + className: 'searchApplciationHeaderBackgroundColor', pageTitle, rightSideItems: [], }} @@ -86,6 +89,7 @@ export const EngineConnect: React.FC = () => { isLoading={isLoadingEngine} pageHeader={{ bottomBorder: false, + className: 'searchApplciationHeaderBackgroundColor', pageTitle, rightSideItems: [], tabs: [ diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_search_preview/engine_search_preview.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_search_preview/engine_search_preview.tsx index ffea55611693e..35c8d6d3d57ae 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_search_preview/engine_search_preview.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/engine_search_preview/engine_search_preview.tsx @@ -18,7 +18,6 @@ import { EuiHorizontalRule, EuiIcon, EuiLink, - EuiPageSection, EuiPanel, EuiPopover, EuiSpacer, @@ -73,7 +72,7 @@ import { ResultsView, Sorting, } from './search_ui_components'; -import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template'; +import '../search_application_layout.scss'; class InternalEngineTransporter implements Transporter { constructor( @@ -306,7 +305,6 @@ export const EngineSearchPreview: React.FC = () => { return ( { ]} pageViewTelemetry={EngineViewTabs.PREVIEW} isLoading={isLoadingEngine} - // pageHeader={{ - // bottomBorder: false, - // pageTitle: ( - // - // ), - // rightSideItems: [ - // <> - // setShowConfigurationPopover(!showConfigurationPopover)} - // /> - // , - // ], - // }} + pageHeader={{ + bottomBorder: false, + className: 'searchApplciationHeaderBackgroundColor', + pageTitle: ( + + ), + rightSideItems: [ + <> + setShowConfigurationPopover(!showConfigurationPopover)} + /> + , + ], + }} engineName={engineName} > - - - } - rightSideItems={[ - <> - setShowConfigurationPopover(!showConfigurationPopover)} - /> - , - ]} - /> - - - - - - - - - - - - - - - - - - - - - - - - - - - {/* + + + + + + + + + + + + + + + + + + + + + + + + + + + {/* Uncomment when view this API call needed {showAPICallFlyout && lastAPICall && ( @@ -396,8 +375,7 @@ export const EngineSearchPreview: React.FC = () => { /> )} */} - - + ); }; diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/search_application_content.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/search_application_content.tsx index 6705d46ae2e0b..b06409adc1015 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/search_application_content.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/engine/search_application_content.tsx @@ -30,6 +30,7 @@ import { EngineIndices } from './engine_indices'; import { EngineIndicesLogic } from './engine_indices_logic'; import { EngineSchema } from './engine_schema'; import { EngineViewLogic } from './engine_view_logic'; +import './search_application_layout.scss'; const pageTitle = i18n.translate( 'xpack.enterpriseSearch.content.searchApplications.content.pageTitle', @@ -79,6 +80,7 @@ export const SearchApplicationContent = () => { isLoading={isLoadingEngine} pageHeader={{ bottomBorder: false, + className: 'searchApplciationHeaderBackgroundColor', pageTitle, rightSideItems: [], }} @@ -121,6 +123,7 @@ export const SearchApplicationContent = () => { ), }, ], + className: 'searchApplciationHeaderBackgroundColor', pageTitle, rightSideItems: [