diff --git a/packages/core/apps/core-apps-browser-internal/src/status/lib/load_status.ts b/packages/core/apps/core-apps-browser-internal/src/status/lib/load_status.ts index e8519030c3fdf..189f42ee448ad 100644 --- a/packages/core/apps/core-apps-browser-internal/src/status/lib/load_status.ts +++ b/packages/core/apps/core-apps-browser-internal/src/status/lib/load_status.ts @@ -155,7 +155,9 @@ function formatStatus(id: string, status: ServiceStatus): FormattedStatus { }, }; } - +/** + * Maps status to health color for frontend views + */ export const STATUS_LEVEL_UI_ATTRS: Record = { critical: { title: i18n.translate('core.status.redTitle', { diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx b/packages/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx index a53bbcdebc468..64d4c75e228ce 100755 --- a/packages/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx +++ b/packages/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx @@ -211,8 +211,14 @@ const FieldTopValuesBucket: React.FC = ({ ); }; +// copied from x-pack/plugins/banners/server/utils.ts +const hexColorRegexp = /^#([0-9a-f]{6}|[0-9a-f]{3})$/i; +const isHexColor = (color: string) => { + return hexColorRegexp.test(color); +}; + const getPercentageColor = (euiTheme: EuiThemeComputed, color: string) => - euiTheme.themeName?.toLowerCase().includes('borealis') + euiTheme.themeName?.toLowerCase().includes('borealis') && isHexColor(color) ? makeHighContrastColor(color)(euiTheme) : color; // FIXME: remove in 9.x when Borealis becomes the default theme diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.scss b/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.scss index 4b46c1244e246..0dc6b0e3ddc5d 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.scss +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.scss @@ -8,11 +8,11 @@ } .savedObjectsManagementImportSummary__createdCount { - color: $euiColorSuccessText; + color: $euiColorTextSuccess; } .savedObjectsManagementImportSummary__errorCount { - color: $euiColorDangerText; + color: $euiColorTextDanger; } .savedObjectsManagementImportSummary__icon { diff --git a/x-pack/test/api_integration/apis/management/index_management/inference_endpoints.ts b/x-pack/test/api_integration/apis/management/index_management/inference_endpoints.ts index 586c546414850..f1e1a381fb3ba 100644 --- a/x-pack/test/api_integration/apis/management/index_management/inference_endpoints.ts +++ b/x-pack/test/api_integration/apis/management/index_management/inference_endpoints.ts @@ -17,7 +17,7 @@ export default function ({ getService }: FtrProviderContext) { const ml = getService('ml'); const inferenceId = 'my-elser-model'; const taskType = 'sparse_embedding'; - const service = 'elser'; + const service = 'elasticsearch'; const modelId = '.elser_model_2'; describe('Inference endpoints', function () { diff --git a/x-pack/test_serverless/functional/test_suites/search/inference_management.ts b/x-pack/test_serverless/functional/test_suites/search/inference_management.ts index ecb49911edb18..c22694d0b648d 100644 --- a/x-pack/test_serverless/functional/test_suites/search/inference_management.ts +++ b/x-pack/test_serverless/functional/test_suites/search/inference_management.ts @@ -26,10 +26,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { const endpoint = 'endpoint-1'; const taskType = 'sparse_embedding'; const modelConfig = { - service: 'elser', + service: 'elasticsearch', service_settings: { num_allocations: 1, num_threads: 1, + model_id: '.elser_model_2', }, };