From 34d8dc355df01bc2e961ce73942ec1f5e98533ba Mon Sep 17 00:00:00 2001 From: Michael DeFazio Date: Thu, 12 Dec 2024 11:27:01 -0500 Subject: [PATCH 1/6] Prop name fixes for borealis update --- .../components/cloud_details.tsx | 2 +- .../panels/api_key_panel_content.tsx | 2 +- .../search_labs_banner/search_labs_banner.tsx | 7 +++--- .../dev_tools_console_code_block.tsx | 2 +- .../public/components/notebooks_button.tsx | 4 ++-- .../application/components/overview.scss | 4 ++-- .../application/components/overview.tsx | 24 +++++++++---------- 7 files changed, 22 insertions(+), 23 deletions(-) diff --git a/packages/kbn-search-api-panels/components/cloud_details.tsx b/packages/kbn-search-api-panels/components/cloud_details.tsx index df2cc6bb6837d..78f1a3bb17a9a 100644 --- a/packages/kbn-search-api-panels/components/cloud_details.tsx +++ b/packages/kbn-search-api-panels/components/cloud_details.tsx @@ -97,7 +97,7 @@ export const CloudDetailsPanel = ({ - + = ({ apiKeys, open 0 ? 'success' : 'warning'} + color={(apiKeys?.length || 0) > 0 ? 'accentSecondary' : 'warning'} data-test-subj="api-keys-count-badge" > { { @@ -86,7 +87,7 @@ export const SearchLabsBanner: React.FC = () => { {i18n.translate('xpack.enterpriseSearch.shared.searchLabsBanner.notebooksLabel', { diff --git a/x-pack/plugins/enterprise_search/public/applications/vector_search/components/dev_tools_console_code_block/dev_tools_console_code_block.tsx b/x-pack/plugins/enterprise_search/public/applications/vector_search/components/dev_tools_console_code_block/dev_tools_console_code_block.tsx index d48011d54cdff..46a60456be7cc 100644 --- a/x-pack/plugins/enterprise_search/public/applications/vector_search/components/dev_tools_console_code_block/dev_tools_console_code_block.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/vector_search/components/dev_tools_console_code_block/dev_tools_console_code_block.tsx @@ -39,7 +39,7 @@ export const DevToolsConsoleCodeBlock: React.FC = return ( - + div { @@ -13,4 +13,4 @@ .serverlessSearchCloudDetailsCopyPanel { word-break: break-all; -} \ No newline at end of file +} diff --git a/x-pack/plugins/serverless_search/public/application/components/overview.tsx b/x-pack/plugins/serverless_search/public/application/components/overview.tsx index 678eadb6b5cb6..3d745308f78f6 100644 --- a/x-pack/plugins/serverless_search/public/application/components/overview.tsx +++ b/x-pack/plugins/serverless_search/public/application/components/overview.tsx @@ -96,9 +96,7 @@ export const ElasticsearchOverview = () => { return ( - - - + { links={[ ...(selectedLanguage.basicConfig ? [ - { - href: selectedLanguage.basicConfig, - label: i18n.translate( - 'xpack.serverlessSearch.configureClient.basicConfigLabel', - { - defaultMessage: 'Basic configuration', - } - ), - }, - ] + { + href: selectedLanguage.basicConfig, + label: i18n.translate( + 'xpack.serverlessSearch.configureClient.basicConfigLabel', + { + defaultMessage: 'Basic configuration', + } + ), + }, + ] : []), ]} title={i18n.translate('xpack.serverlessSearch.configureClient.title', { From 156b0a02308dbb7152059dbc991e8601e6e23cda Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:32:50 +0000 Subject: [PATCH 2/6] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../application/components/overview.tsx | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/x-pack/plugins/serverless_search/public/application/components/overview.tsx b/x-pack/plugins/serverless_search/public/application/components/overview.tsx index 3d745308f78f6..d20706a6aa804 100644 --- a/x-pack/plugins/serverless_search/public/application/components/overview.tsx +++ b/x-pack/plugins/serverless_search/public/application/components/overview.tsx @@ -14,7 +14,6 @@ import { EuiIcon, EuiPageTemplate, EuiPanel, - EuiText, EuiBadge, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; @@ -199,16 +198,16 @@ export const ElasticsearchOverview = () => { links={[ ...(selectedLanguage.basicConfig ? [ - { - href: selectedLanguage.basicConfig, - label: i18n.translate( - 'xpack.serverlessSearch.configureClient.basicConfigLabel', - { - defaultMessage: 'Basic configuration', - } - ), - }, - ] + { + href: selectedLanguage.basicConfig, + label: i18n.translate( + 'xpack.serverlessSearch.configureClient.basicConfigLabel', + { + defaultMessage: 'Basic configuration', + } + ), + }, + ] : []), ]} title={i18n.translate('xpack.serverlessSearch.configureClient.title', { From 63689924c4f34033a6cfe3aed1e268707cfcf80c Mon Sep 17 00:00:00 2001 From: Michael DeFazio Date: Fri, 13 Dec 2024 09:55:44 -0500 Subject: [PATCH 3/6] Updates notebooks button and more badges --- .../public/applications/shared/api_key/api_key_panel.tsx | 2 +- .../search_notebooks/public/components/notebooks_button.tsx | 4 ++-- .../public/application/components/api_key/api_key.tsx | 2 +- .../public/application/components/overview.scss | 4 ---- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx index 2a99b60f3745f..17b96c2d86bfa 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx @@ -136,7 +136,7 @@ export const ApiKeyPanel: React.FC = () => { 0 ? 'success' : 'warning'} + color={apiKeys.length > 0 ? 'accentSecondary' : 'warning'} data-test-subj="api-keys-count-badge" > 0 ? 'success' : 'warning'} + color={data.apiKeys.length > 0 ? 'accentSecondary' : 'warning'} data-test-subj="api-keys-count-badge" > {data.apiKeys.length} diff --git a/x-pack/plugins/serverless_search/public/application/components/overview.scss b/x-pack/plugins/serverless_search/public/application/components/overview.scss index 7e4ce10b02a3d..195fbd2fdf018 100644 --- a/x-pack/plugins/serverless_search/public/application/components/overview.scss +++ b/x-pack/plugins/serverless_search/public/application/components/overview.scss @@ -1,7 +1,3 @@ -.serverlessSearchHeaderSection { - // background-color: $euiColorPrimary; -} - .serverlessSearchHeaderSection > div { padding-bottom: 0; padding-top: 0; From b54cc60d1cea09bb7ab45e422b77e9c40bc31be7 Mon Sep 17 00:00:00 2001 From: Michael DeFazio Date: Mon, 16 Dec 2024 10:07:39 -0500 Subject: [PATCH 4/6] Update color variables with new guidance --- packages/kbn-search-api-panels/components/cloud_details.tsx | 2 +- .../shared/getting_started/panels/api_key_panel_content.tsx | 2 +- .../shared/search_labs_banner/search_labs_banner.tsx | 4 ++-- .../public/application/components/api_key/api_key.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/kbn-search-api-panels/components/cloud_details.tsx b/packages/kbn-search-api-panels/components/cloud_details.tsx index 78f1a3bb17a9a..ba4992c713954 100644 --- a/packages/kbn-search-api-panels/components/cloud_details.tsx +++ b/packages/kbn-search-api-panels/components/cloud_details.tsx @@ -97,7 +97,7 @@ export const CloudDetailsPanel = ({ - + = ({ apiKeys, open 0 ? 'accentSecondary' : 'warning'} + color={(apiKeys?.length || 0) > 0 ? 'success' : 'warning'} data-test-subj="api-keys-count-badge" > { @@ -87,7 +87,7 @@ export const SearchLabsBanner: React.FC = () => { {i18n.translate('xpack.enterpriseSearch.shared.searchLabsBanner.notebooksLabel', { diff --git a/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx b/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx index 38a3147b84a5a..38f880ec5298b 100644 --- a/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx +++ b/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx @@ -193,7 +193,7 @@ export const ApiKeyPanel = ({ setClientApiKey }: { setClientApiKey: (value: stri values={{ number: ( 0 ? 'accentSecondary' : 'warning'} + color={data.apiKeys.length > 0 ? 'success' : 'warning'} data-test-subj="api-keys-count-badge" > {data.apiKeys.length} From 7dfac522f41a256311c239846add1dfcd2216fc9 Mon Sep 17 00:00:00 2001 From: Michael DeFazio Date: Mon, 16 Dec 2024 10:12:34 -0500 Subject: [PATCH 5/6] Missed one of the badge reverts --- .../public/applications/shared/api_key/api_key_panel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx index 17b96c2d86bfa..2a99b60f3745f 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/api_key/api_key_panel.tsx @@ -136,7 +136,7 @@ export const ApiKeyPanel: React.FC = () => { 0 ? 'accentSecondary' : 'warning'} + color={apiKeys.length > 0 ? 'success' : 'warning'} data-test-subj="api-keys-count-badge" > Date: Mon, 16 Dec 2024 16:02:11 -0500 Subject: [PATCH 6/6] Updates web crawlers --- .../kbn-search-api-panels/components/cloud_details.tsx | 2 +- .../authentication_panel/authentication_panel_actions.tsx | 2 +- .../crawler/domain_management/domains_panel.tsx | 2 +- .../pipelines/ml_inference/add_ml_inference_button.tsx | 2 +- .../ml_inference/text_expansion_callout/deploy_model.tsx | 8 ++++---- .../components/search_index/pipelines/pipelines.tsx | 2 +- .../inline_editable_table/inline_editable_table.tsx | 2 +- .../home/index_list/details_page/semantic_text_banner.tsx | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/kbn-search-api-panels/components/cloud_details.tsx b/packages/kbn-search-api-panels/components/cloud_details.tsx index ba4992c713954..0c406b4c31855 100644 --- a/packages/kbn-search-api-panels/components/cloud_details.tsx +++ b/packages/kbn-search-api-panels/components/cloud_details.tsx @@ -97,7 +97,7 @@ export const CloudDetailsPanel = ({ - + { ) : currentAuth === null ? ( enableEditing(currentAuth)} diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/domain_management/domains_panel.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/domain_management/domains_panel.tsx index 41af7db78b6be..60f2e52211972 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/domain_management/domains_panel.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/domain_management/domains_panel.tsx @@ -47,7 +47,7 @@ export const DomainsPanel: React.FC = () => { data-telemetry-id="entSearchContent-crawler-domainManagement-addDomain-addDomain" onClick={openFlyout} size="s" - color="success" + color="primary" iconType="plusInCircle" > {i18n.translate('xpack.enterpriseSearch.crawler.addDomainFlyout.openButtonLabel', { diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/add_ml_inference_button.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/add_ml_inference_button.tsx index 1f8bc30e2903c..c7c296a443ebf 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/add_ml_inference_button.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/add_ml_inference_button.tsx @@ -79,7 +79,7 @@ const AddButton: React.FC<{ + - + - +

{i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.title', @@ -87,7 +87,7 @@ export const DeployModel = ({ > { hasIndexIngestionPipeline ? ( - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.ingestionPipeline.customBadge', { defaultMessage: 'Custom' } diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx index d14acc91ac581..df53a0dc26a39 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx @@ -140,7 +140,7 @@ export const InlineEditableTableContents = ({ iconType="plusInCircle" disabled={isEditing} onClick={editNewItem} - color="success" + color="primary" data-test-subj="inlineEditableTableActionButton" > {addButtonText || diff --git a/x-pack/plugins/index_management/public/application/sections/home/index_list/details_page/semantic_text_banner.tsx b/x-pack/plugins/index_management/public/application/sections/home/index_list/details_page/semantic_text_banner.tsx index b07886c4526f5..2ebcde354bab3 100644 --- a/x-pack/plugins/index_management/public/application/sections/home/index_list/details_page/semantic_text_banner.tsx +++ b/x-pack/plugins/index_management/public/application/sections/home/index_list/details_page/semantic_text_banner.tsx @@ -57,10 +57,10 @@ export function SemanticTextBanner({ return isSemanticTextBannerDisplayable && isSemanticTextEnabled ? ( <> - + - + {isPlatinumLicense ? platinumLicenseMessage : defaultLicenseMessage}