From 9cae30c52708af1e0a91e54ef309157d0c20df10 Mon Sep 17 00:00:00 2001 From: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> Date: Thu, 31 Jul 2025 15:29:45 +0200 Subject: [PATCH 01/54] [ML] Removes unused translation (#230055) This caused a failure on main, likely due to a PR being merged around the same time as https://github.com/elastic/kibana/pull/229868, which removes the usage of the translation. From 89245c1ed26211c644db3b2da8d2bf51ade4a89c Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 15 Sep 2025 12:44:59 +0200 Subject: [PATCH 02/54] [a11y] Autofixing of new eslint rule 'callout-announce-on-mount' --- .../react_control_example.tsx | 7 +- .../saved_book_react_embeddable.tsx | 1 + .../esql_validation_example/public/app.tsx | 7 +- .../public/app/app.tsx | 2 +- .../pages/page_simple_string_stream/index.tsx | 7 +- .../public/get_message_example.tsx | 2 +- .../public/post_message_example.tsx | 2 +- .../public/random_number_between_example.tsx | 2 +- .../public/random_number_example.tsx | 2 +- .../configuration_form_controlled.tsx | 1 + .../src/components/editor_flyout_warnings.tsx | 2 +- .../src/components/metadata_form.tsx | 2 +- .../settings/application/application.tsx | 2 +- .../configuration/connector_configuration.tsx | 2 + .../scheduling/connector_scheduling.tsx | 1 + .../components/sync_jobs/sync_callouts.tsx | 5 + .../compare_documents/comparison_toolbar.tsx | 1 + .../src/user_profiles_selectable.tsx | 1 + .../src/rule_actions/rule_actions_message.tsx | 2 +- .../src/rule_flyout/rule_flyout_body.tsx | 1 + .../rule_form/src/rule_page/rule_page.tsx | 1 + .../src/ui/components/panel/panel.tsx | 1 + .../public/cluster_configuration_form.tsx | 1 + .../public/submit_error_callout.tsx | 1 + .../vega_inspector/vega_data_inspector.tsx | 1 + .../ai_assistant_selection_page.tsx | 2 + .../data_controls/data_control_editor.tsx | 2 + .../listing_page/dashboard_no_match.tsx | 2 +- .../dashboard_unsaved_listing.tsx | 1 + .../components/field_editor/field_editor.tsx | 2 + .../field_editor/form_fields/format_field.tsx | 1 + .../components/preview/field_preview.tsx | 1 + .../delete_data_view_flyout_content.tsx | 9 +- .../edit_index_pattern/edit_index_pattern.tsx | 1 + .../scripting_call_outs/disabled_call_out.tsx | 1 + .../scripting_call_outs/warning_call_out.tsx | 1 + .../components/scripting_help/test_script.tsx | 1 + .../action_bar/action_bar_warning.tsx | 1 + .../public/application/doc/components/doc.tsx | 5 +- .../layout/selected_vs_available_callout.tsx | 1 + .../plugins/shared/embeddable/common/types.ts | 6 +- .../public/add_from_library/registry.ts | 4 +- .../server/persistable_state/types.ts | 4 +- .../control_flyout/value_control_form.tsx | 1 + .../shared/expressions/common/ast/types.ts | 4 +- .../common/expression_functions/specs/math.ts | 4 +- .../expressions/common/util/create_error.ts | 4 +- .../clusters_table/cluster_view.tsx | 2 + .../common/persistable_state/types.ts | 4 +- .../state_management/set_state_to_kbn_url.ts | 5 +- .../public/history/redirect_when_missing.tsx | 4 +- .../components/delete_confirm_modal.tsx | 2 + .../objects_table/components/flyout.tsx | 1 + .../tabs/link/time_type_section.tsx | 1 + .../components/opt_in_example_flyout.tsx | 2 + .../drilldown_form/drilldown_form.tsx | 7 +- .../doc_viewer_table/table_grid.tsx | 2 +- .../components/visualize_listing.tsx | 2 +- .../components/visualize_no_match.tsx | 2 +- .../utils/get_top_nav_config.tsx | 3 + .../ui/workflow_execute_event_form.tsx | 16 +- .../ui/workflow_execute_manual_form.tsx | 8 +- .../public/alert_types/astros.tsx | 7 +- .../public/components/view_alert.tsx | 6 +- .../public/components/view_astros_alert.tsx | 6 +- .../embedded_lens_example/public/mount.tsx | 1 + .../public/mount.tsx | 1 + .../screenshotting_example/public/app/app.tsx | 1 + .../testing_embedded_lens/public/app.tsx | 2 +- .../testing_embedded_lens/public/mount.tsx | 1 + .../dashboard_hello_world_drilldown/index.tsx | 4 +- .../index.tsx | 4 +- .../dashboard_to_discover_drilldown/types.ts | 4 +- .../ml/data_grid/components/data_grid.tsx | 5 + .../kibana_privilege_table/feature_table.tsx | 2 +- .../kbn-ai-assistant/src/chat/chat_body.tsx | 2 + .../shared_conversation_callout/index.tsx | 1 + .../shared_conversation_callout/owner.tsx | 1 + .../connector_missing_callout/index.tsx | 1 + .../configuration/item_form_row.tsx | 7 +- .../components/document_list.tsx | 1 + .../src/components/api_key_flyout.tsx | 3 + .../public/components/var_config/edit_var.tsx | 1 + .../share_menu/flyout/flyout.component.tsx | 9 +- .../appearance_selector/appearance_modal.tsx | 1 + .../document_count_content.tsx | 7 +- .../field_data_expanded_row/text_content.tsx | 1 + .../file_contents/file_contents.tsx | 2 +- .../import_settings/semantic_text_info.tsx | 1 + .../import_summary/import_summary.tsx | 1 + .../index_data_visualizer_esql.tsx | 1 + .../field_stats/field_stats_factory.tsx | 1 + .../field_stats/field_stats_initializer.tsx | 1 + .../index_data_visualizer.tsx | 1 + .../components/import_complete_view.tsx | 3 + .../guidance_panel/guidance_panel.tsx | 1 + .../graph/public/components/save_modal.tsx | 2 +- .../components/settings/blocklist_form.tsx | 1 + .../edit_policy/components/edit_warning.tsx | 2 + .../components/phases/hot_phase/hot_phase.tsx | 1 + .../components/node_attrs_details.tsx | 1 + .../searchable_snapshot_field.tsx | 4 + .../shared_fields/snapshot_policies_field.tsx | 2 + .../policy_list/components/confirm_delete.tsx | 1 + .../add_lifecycle_confirm_modal.tsx | 2 + .../elasticsearch/ingest_pipeline_modal.tsx | 1 + .../components/kibana/instances/instances.tsx | 1 + .../public/components/logs/logs.tsx | 1 + .../components/setup_mode/listing_callout.tsx | 8 +- .../settings_tab/change_kb_model.tsx | 1 + .../settings_tab/product_doc_setting.tsx | 1 + .../remote_cluster_edit.tsx | 1 + .../components/report_diagnostic.tsx | 2 + .../components/report_info_flyout_content.tsx | 2 + .../scheduled_report_flyout_content.tsx | 4 + .../scheduled_report_flyout_share_wrapper.tsx | 1 + .../public/redirect/redirect_app.tsx | 2 +- .../runtime_field_editor_flyout_content.tsx | 1 + .../runtime_field_form/runtime_field_form.tsx | 1 + .../policy_form/steps/step_logistics.tsx | 1 + .../include_feature_states_field.tsx | 1 + .../components/repository_form/step_one.tsx | 1 + .../steps/step_logistics/step_logistics.tsx | 1 + .../steps/step_settings.tsx | 1 + .../retention_update_modal_provider.tsx | 1 + .../components/snapshot_delete_provider.tsx | 1 + .../policy_details/tabs/tab_summary.tsx | 1 + .../sections/home/policy_list/policy_list.tsx | 1 + .../policy_retention_schedule.tsx | 1 + .../repository_details/repository_details.tsx | 1 + .../components/snapshot_search_bar.tsx | 1 + .../home/snapshot_list/snapshot_list.tsx | 1 + .../sections/policy_edit/policy_edit.tsx | 1 + .../repository_edit/repository_edit.tsx | 1 + .../clone_transform_section.tsx | 1 + .../filter_agg/components/editor_form.tsx | 2 +- .../step_define/latest_function_form.tsx | 2 +- .../step_details/step_details_form.tsx | 2 +- .../create_transform_section.tsx | 7 +- .../expanded_row_column_view.tsx | 2 +- .../expanded_row_stats_pane.tsx | 1 + .../transform_list/transforms_stats_bar.tsx | 1 + .../deprecations_count_callout.tsx | 1 + .../es_deprecation_logs_flyout.tsx | 2 + .../cluster_settings/flyout.tsx | 1 + .../index_settings/flyout.tsx | 1 + .../flyout/steps/reindex/reindex_step.tsx | 1 + .../flyout/steps/warning/warning_step.tsx | 1 + .../steps/warning/warning_step_modal.tsx | 1 + .../deprecation_types/ml_snapshots/flyout.tsx | 2 + .../es_deprecations/es_deprecations.tsx | 1 + .../es_deprecations/es_deprecations_table.tsx | 1 + .../deprecation_details_flyout.tsx | 2 + .../kibana_deprecations.tsx | 1 + .../overview/backup_step/cloud_backup.tsx | 1 + .../overview/logs_step/logs_step.tsx | 3 + .../migrate_system_indices/flyout.tsx | 1 + .../migrate_system_indices.tsx | 3 + .../overview/upgrade_step/upgrade_step.tsx | 1 + .../threshold_watch_action_accordion.tsx | 1 + .../watch_visualization.tsx | 1 + .../watch_list_page/watch_list_page.tsx | 1 + .../components/action_statuses_panel.tsx | 1 + .../change_point_detection_page.tsx | 1 + .../change_point_detection/fields_config.tsx | 1 + .../log_rate_analysis_results.tsx | 1 + .../create_maintenance_windows_form.tsx | 1 + .../authorization/authorization_wrapper.tsx | 1 + .../confirm_settings_step/auth_selection.tsx | 1 + .../confirm_settings_step.tsx | 1 + .../upload_spec_step/upload_spec_step.tsx | 1 + .../data_stream_step/generation_modal.tsx | 1 + .../all_cases/multi_select_filter.tsx | 1 + .../components/all_cases/utility_bar.tsx | 1 + .../components/configure_cases/index.tsx | 1 + .../cases_webhook/case_fields_preview.tsx | 1 + .../connectors/swimlane/case_fields.tsx | 1 + .../swimlane/case_fields_preview.tsx | 1 + .../components/filter_popover/index.tsx | 1 + .../system_actions/cases/cases_params.tsx | 1 + .../use_push_to_service/callout/callout.tsx | 1 + .../comment/registered_attachments.tsx | 7 +- .../components/generated_config_fields.tsx | 1 + .../components/connector_detail/overview.tsx | 5 + .../connector_description_popover.tsx | 2 + .../create_connector/configuration_step.tsx | 1 + .../native_connector_configuration_config.tsx | 1 + .../sync_rules/advanced_sync_rules.tsx | 1 + .../connector/sync_rules/connector_rules.tsx | 1 + .../sync_rules/edit_sync_rules_flyout.tsx | 1 + .../components/search_index/documents.tsx | 1 + .../search_index/index_mappings.tsx | 2 + .../tables/reorderable_table/body_row.tsx | 1 + .../dataset_quality/warnings/warnings.tsx | 7 +- .../components/config_editor_content.tsx | 1 + .../steps/add_fleet_server_host.tsx | 1 + .../steps/get_started.tsx | 1 + .../components/generate_service_token.tsx | 1 + .../fleet/layouts/default/default.tsx | 1 + .../custom_fields/index.tsx | 1 + .../agent_policy_delete_provider.tsx | 2 + .../components/agent_policy_yaml_flyout.tsx | 2 + .../components/confirm_deploy_modal.tsx | 3 + .../steps/step_define_package_policy.tsx | 1 + .../confirm_incoming_data_with_preview.tsx | 1 + .../post_install_azure_arm_template_modal.tsx | 2 +- .../post_install_cloud_formation_modal.tsx | 2 +- .../post_install_google_cloud_shell_modal.tsx | 2 +- .../single_page_layout/index.tsx | 1 + ...agent_details_integration_input_status.tsx | 1 + .../components/agent_logs/agent_logs.tsx | 1 + .../agent_logs/filter_dataset.test.tsx | 3 +- .../agent_activity_flyout/index.test.tsx | 4 +- .../agent_policy_created_callout.tsx | 2 + .../components/agent_unenroll_modal/index.tsx | 1 + .../components/agent_upgrade_modal/index.tsx | 3 + .../fleet/sections/agents/index.test.tsx | 3 +- .../components/agent_policy_debugger.tsx | 2 +- .../debug/components/fleet_index_debugger.tsx | 2 +- .../debug/components/health_check_panel.tsx | 2 +- .../debug/components/integration_debugger.tsx | 2 +- .../components/saved_object_debugger.tsx | 2 +- .../fleet/sections/debug/index.tsx | 2 +- .../edit_output_flyout/confirm_update.tsx | 1 + .../components/edit_output_flyout/index.tsx | 3 + .../output_form_logstash.tsx | 1 + .../output_form_remote_es.tsx | 2 + .../output_form_secret_form_row.tsx | 2 +- .../edit_output_flyout/ssl_form_section.tsx | 2 + .../fleet_server_hosts_flyout/index.tsx | 1 + .../outputs_table/integration_status.tsx | 3 + .../outputs_table/integration_sync_flyout.tsx | 1 + .../epm/screens/detail/assets/assets.tsx | 2 + .../epm/screens/detail/configs/index.tsx | 2 + .../screens/detail/documentation/index.tsx | 1 + .../sections/epm/screens/detail/index.tsx | 1 + .../screens/detail/settings/update_button.tsx | 1 + .../confirm_agent_enrollment.tsx | 1 + .../agent_enrollment_flyout/index.tsx | 4 +- .../steps/configure_standalone_agent_step.tsx | 1 + .../agent_policy_package_badges.tsx | 1 + .../step_confirm_data.tsx | 2 + .../step_confirm_enrollment.tsx | 2 + .../azure_arm_template_instructions.tsx | 2 +- .../cloud_formation_instructions.tsx | 2 +- .../root_privileges_callout.tsx | 1 + .../manage_agent_policies_modal.tsx | 1 + .../package_policy_delete_provider.tsx | 3 + .../uninstall_command_flyout.test.tsx | 3 +- .../shared/fleet/public/layouts/error.tsx | 4 +- .../plugins/shared/fleet/public/plugin.ts | 3 +- .../services/setup_technology_selector.tsx | 1 + .../fleet/server/collectors/agent_policies.ts | 3 +- .../services/agent_policy_update.test.ts | 4 +- .../services/agent_policy_watch.test.ts | 3 +- .../server/services/agent_policy_watch.ts | 1 + .../component_template_details.tsx | 2 + .../tab_summary.tsx | 1 + .../mappings_datastreams_rollover_modal.tsx | 1 + .../component_template_edit.tsx | 1 + .../component_template_form.tsx | 1 + .../simulate_template/simulate_template.tsx | 1 + .../field_parameters/path_parameter.tsx | 1 + .../term_vector_parameter.tsx | 1 + .../fields/edit_field/edit_field.tsx | 1 + .../fields/field_types/text_type.tsx | 1 + .../load_mappings/load_mappings_provider.tsx | 1 + .../components/wizard_steps/step_settings.tsx | 1 + .../components/template_delete_modal.tsx | 1 + .../template_form/steps/step_review.tsx | 1 + .../create_policy_wizard.tsx | 1 + .../steps/field_selection.tsx | 1 + .../data_stream_detail_panel.tsx | 1 + .../data_stream_list/data_stream_list.tsx | 1 + .../edit_data_retention_modal.tsx | 1 + .../create_index/create_index_modal.tsx | 1 + .../details_page_mappings_content.tsx | 1 + .../details_page_settings_content.tsx | 1 + .../trained_models_deployment_modal.tsx | 1 + .../template_details_content.tsx | 1 + .../sections/template_edit/template_edit.tsx | 2 + .../evaluation/scenarios/esql/index.spec.ts | 2 +- .../load_from_json/modal_provider.tsx | 1 + .../processor_output/processor_output.tsx | 9 +- .../test_pipeline/test_pipeline_flyout.tsx | 1 + .../tab_documents/add_document_form.tsx | 1 + .../manage_processors/add_database_modal.tsx | 3 + .../pipelines_preview.tsx | 7 +- .../flyout_content/not_found_panel.tsx | 1 + .../shared/edit_on_the_fly/flyout_wrapper.tsx | 1 + .../datasources/form_based/datapanel.tsx | 1 + .../dimensions_editor_helpers.tsx | 1 + .../new_vector_layer_wizard/wizard.tsx | 2 + .../spatial_join_popover_content.tsx | 2 +- .../layer_settings/layer_settings.tsx | 1 + .../map_container/map_container.tsx | 1 + .../features_tooltip/feature_properties.tsx | 1 + .../layer_toc/toc_entry/legend_details.tsx | 4 +- .../config_validator.tsx | 2 + .../preview_alert_condition.tsx | 1 + .../anomalies_table/anomaly_details.tsx | 1 + .../new_job_awaiting_node.tsx | 2 + .../components/reindex_with_pipeline.tsx | 1 + .../ml_inference/components/test_pipeline.tsx | 1 + .../edit_model_snapshot_flyout.tsx | 1 + .../saved_objects_warning.tsx | 1 + .../scatterplot_matrix/scatterplot_matrix.tsx | 2 +- .../shared/review_and_create_pipeline.tsx | 2 + .../components/upgrade/upgrade_warning.tsx | 1 + .../analysis_fields_table.tsx | 1 + .../create_step_footer/progress_stats.tsx | 1 + .../details_step/details_step_form.tsx | 4 +- .../error_callout/error_callout.tsx | 3 + .../exploration_page_wrapper.tsx | 1 + .../decision_path_regression.tsx | 1 + .../outlier_exploration.tsx | 2 + .../feature_importance_summary.tsx | 2 + .../analytics_list/analytics_list.tsx | 1 + .../source_selection/source_selection.tsx | 1 + .../data_drift_index_patterns_editor.tsx | 6 +- .../data_drift/data_view_editor.tsx | 2 +- .../public/application/explorer/explorer.tsx | 3 + .../json_editor_flyout/json_editor_flyout.tsx | 1 + .../components/data_view/change_data_view.tsx | 4 + .../annotations/annotations_switch.tsx | 1 + .../components/mml_callout.tsx | 1 + .../category_stopped_partitions.tsx | 2 + .../jobs/new_job/pages/job_type/page.tsx | 2 +- .../components/create_result_callout.tsx | 3 + .../jobs/new_job/recognize/page.tsx | 1 + .../model_management/delete_models_modal.tsx | 2 + .../model_management/force_stop_dialog.tsx | 3 + .../model_management/models_list.tsx | 1 + .../test_models/inference_error.tsx | 1 + .../text_expansion/text_expansion_output.tsx | 2 +- .../components/notifications_list.tsx | 2 + .../application/routing/use_active_route.tsx | 1 + .../calendar_form/dst_event_generator.tsx | 1 + .../anomaly_charts_react_container.tsx | 1 + .../anomaly_swimlane_embeddable_factory.tsx | 1 + .../job_creation/aiops/flyout/create_job.tsx | 1 + .../job_creation/common/job_details.tsx | 4 +- .../public/components/insight/insight.tsx | 1 + .../components/agents/edit/agent_form.tsx | 1 + .../index_search/index_search_pattern.tsx | 1 + .../osquery/public/agents/agents_table.tsx | 8 +- ...managed_policy_create_import_extension.tsx | 7 +- .../osquery/public/results/results_table.tsx | 5 +- .../public/routes/packs/edit/index.tsx | 2 +- .../routes/saved_queries/edit/index.tsx | 2 +- .../user_profile/user_profile.tsx | 1 + .../components/login_form/login_form.tsx | 2 + .../api_keys_grid/api_keys_grid_page.tsx | 1 + .../edit_role_mapping_page.tsx | 1 + .../add_role_template_button.tsx | 1 + .../role_selector/role_template_editor.tsx | 1 + .../rule_editor_panel/rule_editor_panel.tsx | 3 +- .../role_mappings_grid_page.tsx | 1 + .../roles/edit_role/edit_role_page.tsx | 1 + .../privilege_space_form.tsx | 2 + .../space_aware_privilege_section.tsx | 1 + .../users/edit_user/change_password_modal.tsx | 1 + .../users/edit_user/edit_user_page.tsx | 3 + ...mbeddable_legacy_url_conflict_internal.tsx | 1 + .../confirm_delete_modal.tsx | 1 + .../enabled_features/feature_table.tsx | 2 +- .../edit_space/edit_space_general_tab.tsx | 1 + .../space_assign_role_privilege_form.tsx | 2 + .../spaces_grid/spaces_grid_page.tsx | 5 +- .../components/share_to_space_form.tsx | 1 + .../es_query/expression/expression.tsx | 1 + .../expression/search_source_expression.tsx | 2 +- .../test_query_row/test_query_row.tsx | 8 +- .../rule_types/threshold/expression.tsx | 2 +- .../rule_types/threshold/visualization.tsx | 2 + .../public/common/auth/auth_config.tsx | 7 +- .../cases_webhook/webhook_params.tsx | 1 + .../connector_types/inference/params.tsx | 2 +- .../swimlane/swimlane_params.tsx | 7 +- .../connector_types/tines/tines_params.tsx | 2 + .../flyout/sample_preview_table.tsx | 3 +- .../processors/processor_field_selector.tsx | 1 + .../general_data/modal.tsx | 1 + .../stream_detail_management/classic.tsx | 1 + .../unmanaged_elasticsearch_assets.tsx | 1 + .../components/delete_modal_confirmation.tsx | 2 +- .../rules_delete_modal_confirmation.tsx | 2 +- .../action_type_form.tsx | 2 +- .../connector_add_inline.tsx | 2 +- .../create_connector_flyout/index.tsx | 1 + .../edit_connector_flyout/index.tsx | 1 + .../system_action_type_form.tsx | 2 +- .../test_connector_form.tsx | 2 +- .../rule_details/components/rule_details.tsx | 3 + .../components/rule_event_log_list_table.tsx | 1 + .../rule_snooze/panel/base_snooze_panel.tsx | 1 + .../public/integration/configuration.tsx | 2 + .../alert_active_time_range_annotation.tsx | 2 +- .../src/components/alert_annotation.tsx | 9 +- .../components/alert_threshold_annotation.tsx | 2 +- .../alert_threshold_time_range_rect.tsx | 2 +- .../src/components/alerts_grouping.tsx | 2 +- .../select_anomaly_severity.tsx | 4 + .../transaction_duration_rule_type/index.tsx | 3 + .../alert_details_app_section/index.tsx | 1 + .../transaction_type_select.tsx | 3 + .../view_in_apm_button.tsx | 4 + .../app/diagnostics/data_stream_tab.tsx | 16 +- .../app/diagnostics/import_export_tab.tsx | 27 ++- .../components/app/diagnostics/index.tsx | 12 +- .../index_pattern_settings_tab.tsx | 21 ++- .../app/diagnostics/index_templates_tab.tsx | 45 ++++- .../app/diagnostics/indices_tab.tsx | 6 +- .../apm_integration_package_status.tsx | 5 +- .../summary_tab/data_streams_status.tsx | 9 +- .../app/diagnostics/summary_tab/index.tsx | 19 ++- .../summary_tab/index_templates_status.tsx | 9 +- .../summary_tab/indicies_status.tsx | 9 +- .../diagnostics/summary_tab/tab_status.tsx | 11 +- .../public/components/app/metrics/index.tsx | 1 + .../service_node_metrics/index.tsx | 1 + .../treemap_select.tsx | 3 + .../mobile_most_affected/treemap_select.tsx | 3 + .../charts/mobile_treemap/treemap_select.tsx | 3 + .../mobile/service_overview/filters/index.tsx | 3 + .../geo_map/embedded_map_select.tsx | 3 + .../instructions/api_key_callout.tsx | 2 + .../onboarding/instructions/django_agent.tsx | 5 +- .../onboarding/instructions/flask_agent.tsx | 5 +- .../app/onboarding/instructions/go_agent.tsx | 5 +- .../onboarding/instructions/node_agent.tsx | 5 +- .../app/onboarding/instructions/php_agent.tsx | 5 +- .../onboarding/instructions/rack_agent.tsx | 4 +- .../onboarding/instructions/rails_agent.tsx | 4 +- .../actions/edit_dashboard.tsx | 3 + .../actions/goto_dashboard.tsx | 3 + .../actions/link_dashboard.tsx | 3 + .../actions/save_dashboard_modal.tsx | 7 + .../actions/unlink_dashboard.tsx | 3 + .../service_dashboards/dashboard_selector.tsx | 3 + .../service_group_save/group_details.tsx | 3 + .../service_group_save/select_services.tsx | 4 + .../diagnostic_tool/diagnostic_flyout.tsx | 1 + .../agent_configuration_create_edit/index.tsx | 1 + .../service_page/service_page.tsx | 1 + .../settings_page/settings_page.tsx | 1 + .../agent_configurations/list/index.tsx | 1 + .../settings/agent_keys/create_agent_key.tsx | 18 +- .../anomaly_detection/add_environments.tsx | 4 +- .../app/settings/apm_indices/index.tsx | 9 +- .../delete_button.tsx | 3 + .../flyout_footer.tsx | 3 + .../settings/schema/confirm_switch_modal.tsx | 1 + .../components/app/storage_explorer/index.tsx | 2 + .../index_lifecycle_phase_select.tsx | 3 + .../trace_explorer/trace_search_box/index.tsx | 3 + .../waterfall_container/waterfall/index.tsx | 1 + .../waterfall/span_flyout/index.tsx | 2 +- .../default_discovery_rule.tsx | 13 +- .../runtime_attachment/discovery_rule.tsx | 8 + .../edit_discovery_rule.tsx | 18 +- .../runtime_attachment/runtime_attachment.tsx | 1 + .../apm_policy_form/settings_form/index.tsx | 4 + .../analyze_data_button.tsx | 3 + .../explore_logs_button.tsx | 3 + .../shared/links/setup_instructions_link.tsx | 3 + .../components/shared/ml_callout/index.tsx | 3 + .../shared/select_with_placeholder/index.tsx | 3 + .../components/shared/slo_callout/index.tsx | 3 + .../custom_link_menu_section/index.tsx | 7 + .../shared/transactions_table/index.tsx | 1 + .../components/shared/try_it_button/index.tsx | 3 + .../opentelemetry_instructions.tsx | 15 +- .../components/expression_editor/criteria.tsx | 3 + .../expression_editor/criterion.tsx | 6 + .../components/expression_editor/editor.tsx | 3 +- .../expression_editor/threshold.tsx | 6 +- .../expression_editor/type_switcher.tsx | 3 + .../custom_equation_editor.tsx | 4 + .../custom_equation/metric_row_controls.tsx | 5 + .../components/expression_row.tsx | 4 + .../overview/kpis/cpu_profiling_prompt.tsx | 3 + .../asset_details/tabs/overview/services.tsx | 1 + .../process_step/process_step.tsx | 8 +- .../setup_flyout/module_list_card.tsx | 4 + .../setup_flyout/setup_flyout.tsx | 5 + .../ml/anomaly_detection/flyout_home.tsx | 8 + .../ml/anomaly_detection/job_setup_screen.tsx | 7 +- .../components/saved_views/upsert_modal.tsx | 8 +- .../alerts/links/create_alert_rule_button.tsx | 4 + .../pages/logs/shared/page_log_view_error.tsx | 5 + .../hosts/components/table/filter_action.tsx | 6 + .../components/bottom_drawer.tsx | 3 + .../metric_control/custom_metric_form.tsx | 10 ++ .../settings/indices_configuration_panel.tsx | 3 + .../settings/ml_configuration_panel.tsx | 6 +- .../source_configuration_settings.tsx | 2 +- .../attachments/page/attachment_children.tsx | 2 + .../alert_overview/overview_columns.tsx | 1 + .../custom_threshold_rule_expression.tsx | 8 +- .../alert_details/components/stale_alert.tsx | 1 + .../public/utils/test_helper.tsx | 9 +- .../public/components/changes/change_list.tsx | 12 +- .../public/components/nav_control/index.tsx | 25 ++- .../components/rca/rca_callout/index.tsx | 8 +- .../components/rca/rca_container/index.tsx | 18 +- .../rca/rca_entity_investigation/index.tsx | 9 +- .../rca_entity_log_pattern_table/index.tsx | 39 ++--- .../rca/rca_observation_panel/index.tsx | 2 +- .../components/rca/rca_report/index.tsx | 2 +- .../components/rca/rca_stop_button/index.tsx | 2 +- .../components/technical_preview_badge.tsx | 4 +- .../public/functions/lens.tsx | 4 +- .../public/functions/visualize_esql.tsx | 49 ++---- .../public/plugin.tsx | 4 +- .../rule_connector/ai_assistant_params.tsx | 24 +-- .../public/rule_connector/translations.ts | 31 ++-- .../evaluation/scenarios/alerts/index.spec.ts | 2 +- .../evaluation/scenarios/apm/index.spec.ts | 2 +- .../scenarios/connector/index.spec.ts | 2 +- .../scenarios/documentation/index.spec.ts | 2 +- .../scenarios/elasticsearch/index.spec.ts | 2 +- .../evaluation/scenarios/esql/index.spec.ts | 2 +- .../evaluation/scenarios/kb/index.spec.ts | 2 +- .../server/rule_connector/index.ts | 2 +- .../public/plugin.ts | 2 +- .../public/application/app.tsx | 9 +- .../application/header/custom_header.tsx | 9 +- .../public/application/header/header.tsx | 4 +- .../onboarding_flow_form.tsx | 68 +++----- .../onboarding_flow_form/use_custom_cards.tsx | 161 +++++++----------- .../package_list_search_form.tsx | 7 +- .../public/application/pages/auto_detect.tsx | 8 +- .../public/application/pages/firehose.tsx | 4 +- .../public/application/pages/kubernetes.tsx | 6 +- .../application/pages/otel_kubernetes.tsx | 4 +- .../public/application/pages/otel_logs.tsx | 6 +- .../auto_detect/auto_detect_panel.tsx | 55 +++--- .../supported_integrations_list.tsx | 2 +- .../firehose/auto_refresh_callout.tsx | 11 +- .../firehose/create_stack_command_snippet.tsx | 8 +- .../firehose/create_stack_in_aws_console.tsx | 6 +- .../firehose/download_template_callout.tsx | 4 +- .../firehose/existing_data_callout.tsx | 11 +- .../quickstart_flows/firehose/index.tsx | 37 ++-- .../firehose/progress_callout.tsx | 15 +- .../use_aws_service_get_started_list.ts | 32 ++-- .../firehose/visualize_data.tsx | 22 +-- .../kubernetes/command_snippet.tsx | 4 +- .../kubernetes/data_ingest_status.tsx | 42 ++--- .../quickstart_flows/kubernetes/index.tsx | 6 +- .../otel_kubernetes/otel_kubernetes_panel.tsx | 80 ++++----- .../quickstart_flows/otel_logs/index.tsx | 81 ++++----- .../multi_integration_install_banner.tsx | 5 +- .../shared/copy_to_clipboard_button.tsx | 7 +- .../quickstart_flows/shared/empty_prompt.tsx | 38 ++--- .../shared/feedback_buttons.tsx | 8 +- .../shared/get_started_panel.tsx | 11 +- .../shared/install_elastic_agent_steps.tsx | 70 ++++---- .../shared/optional_form_row.tsx | 2 +- .../quickstart_flows/shared/step_status.tsx | 6 +- .../shared/troubleshooting_link.tsx | 2 +- .../public/application/shared/back_button.tsx | 2 +- .../application/shared/header_action_menu.tsx | 2 +- .../shared/use_flow_breadcrumbs.ts | 7 +- .../public/hooks/use_fetcher.tsx | 6 +- .../public/hooks/use_install_integrations.ts | 2 +- .../observability_onboarding/server/plugin.ts | 4 +- .../ui/tests/onboarding_ui_validation.spec.ts | 2 +- .../common/embeddable_grouping.ts | 2 +- .../common/utils/get_inspect_response.ts | 53 +++--- .../components/add_data_panel/index.tsx | 15 +- .../add_page_attachment_to_case_modal.tsx | 25 +-- .../components/add_to_case_comment/index.tsx | 6 +- .../bottom_bar_actions/bottom_bar_actions.tsx | 10 +- .../external_resource_links/index.tsx | 28 +-- .../feature_feedback_button.tsx | 2 +- .../field_value_combobox.tsx | 15 +- .../field_value_selection.tsx | 21 +-- .../page_template/nav_name_with_badge.tsx | 2 +- .../nav_name_with_beta_badge.tsx | 4 +- .../page_template/page_template.tsx | 2 +- .../profiling/helpers/component_registry.ts | 4 +- .../profiling/profiling_empty_state.tsx | 8 +- .../public/components/tags_list/tags_list.tsx | 8 +- .../technical_preview_badge.tsx | 4 +- .../public/hooks/use_breadcrumbs.ts | 9 +- .../public/plugin.tsx | 4 +- .../public/components/check_setup.tsx | 1 + .../flamegraph/flamegraph_tooltip.tsx | 4 + .../missing_symbols_callout.tsx | 1 + .../profiling_app_page_template/index.tsx | 1 + .../public/components/stack_traces/index.tsx | 1 + .../public/views/add_data_view/index.tsx | 1 + .../public/views/delete_data_view/index.tsx | 11 +- .../views/settings/bottom_bar_actions.tsx | 4 + .../index_lifecycle_phase_select.tsx | 3 + .../burn_rate_rule_editor.tsx | 1 + .../purge_confirmation_modal.tsx | 1 + .../slo/slo_outdated_callout/index.tsx | 1 + .../components/common/data_preview_chart.tsx | 1 + .../components/common/documents_table.tsx | 4 +- .../common/group_by_cardinality.tsx | 2 +- .../slo_edit_form_objective_section.tsx | 6 +- .../components/monitor_location_select.tsx | 8 +- .../common/components/stderr_logs.tsx | 7 +- .../mws_callout/mws_callout_content.tsx | 1 + .../edit_monitor_not_found.tsx | 10 +- .../fields/script_recorder_fields.tsx | 8 +- .../throttling/throttling_download_field.tsx | 6 +- .../throttling/throttling_latency_field.tsx | 6 +- .../throttling/throttling_upload_field.tsx | 6 +- .../can_use_public_locations_callout.tsx | 1 + .../steps/read_only_callout.tsx | 1 + .../monitor_errors/errors_list.tsx | 4 +- .../monitor_summary/last_test_run.tsx | 1 + .../management/disabled_callout.tsx | 4 +- .../monitor_errors/monitor_async_error.tsx | 1 + .../monitor_list_table/delete_monitor.tsx | 2 +- .../overview/metric_item/metric_item_icon.tsx | 1 + .../global_params/param_value_field.tsx | 1 + .../project_api_keys/help_commands.tsx | 13 +- .../waterfall/waterfall_chart_container.tsx | 1 + .../browser/browser_test_results.tsx | 5 +- .../simple/ping_list/columns/ping_error.tsx | 3 +- .../test_now_mode/test_now_mode.tsx | 2 +- .../test_now_mode/test_now_mode_flyout.tsx | 2 +- .../components/test_run_error_info.tsx | 1 + .../components/common/monitor_tags.tsx | 4 +- ...nthetics_policy_edit_extension_wrapper.tsx | 2 +- .../components/monitor/ml/ml_flyout.tsx | 7 +- .../monitor/ping_list/columns/failed_step.tsx | 3 +- .../monitor/ping_list/columns/ping_error.tsx | 3 +- .../status_bar/monitor_redirects.tsx | 6 +- .../waterfall/waterfall_chart_container.tsx | 1 + .../waterfall_marker_test_helper.tsx | 17 +- .../availability_expression_select.tsx | 9 +- .../columns/cert_status_column.tsx | 9 +- .../monitor_list_drawer/enabled_alerts.tsx | 1 + .../monitor_status_list.tsx | 2 +- .../synthetics/check_steps/stderr_logs.tsx | 2 +- .../synthetics/check_steps/step_duration.tsx | 6 +- .../legacy_uptime/pages/mapping_error.tsx | 4 +- .../public/legacy_uptime/pages/settings.tsx | 2 +- .../local_uifilters/selected_wildcards.tsx | 5 +- .../percentile_annotations.tsx | 26 ++- .../add_analytics_collection_form.tsx | 1 + .../analytics_collection_explorer_callout.tsx | 2 + .../analytics_collection_explorer_table.tsx | 1 + ...nalytics_collection_integrate_searchui.tsx | 3 + .../generate_analytics_api_key_modal.tsx | 1 + ...analytics_collection_no_events_callout.tsx | 2 + .../analytics_collection_overview_table.tsx | 1 + .../analytics_collection_settings.tsx | 1 + .../analytics_collection_toolbar.tsx | 8 +- .../analytics_collection_table.tsx | 2 + .../analytics_overview_empty_page.tsx | 7 +- .../search_application/add_indices_flyout.tsx | 1 + ...erate_search_application_api_key_modal.tsx | 1 + .../connect/search_application_api.tsx | 17 +- .../search_application_api_integration.tsx | 11 +- .../search_application_documentation.tsx | 24 ++- .../docs_explorer/docs_explorer.tsx | 2 + .../docs_explorer/search_ui_components.tsx | 15 +- .../search_application_indices.tsx | 1 + .../search_application_schema.tsx | 25 ++- .../empty_search_applications_prompt.test.tsx | 7 +- .../create_search_application_flyout.tsx | 5 + .../components/generated_config_fields.tsx | 1 + .../connector_detail/connector_stats.tsx | 8 +- .../components/connector_detail/overview.tsx | 5 + .../connector_description_popover.tsx | 2 + .../create_connector/configuration_step.tsx | 1 + .../client_libraries_popover/popover.tsx | 1 + .../generate_api_key_modal/modal.tsx | 1 + .../connector/api_key_configuration.tsx | 3 + .../connector_name_and_description.tsx | 7 +- .../connector_name_and_description_flyout.tsx | 8 +- .../connector_name_and_description_form.tsx | 2 + ...ctor_name_and_description_form_content.tsx | 2 + .../native_connector_configuration_config.tsx | 1 + .../sync_rules/advanced_sync_rules.tsx | 1 + .../connector/sync_rules/connector_rules.tsx | 1 + .../sync_rules/connector_sync_form.tsx | 2 + .../sync_rules/edit_sync_rules_flyout.tsx | 1 + .../sync_rules/editable_basic_rules_table.tsx | 23 ++- .../sync_rules/sync_rules_callouts.tsx | 4 + .../components/search_index/documents.tsx | 1 + .../components/search_index/index_error.tsx | 1 + .../search_index/index_mappings.tsx | 2 + .../name_and_description_stats.tsx | 8 +- .../components/search_index/overview.tsx | 2 + .../delete_inference_pipeline_button.tsx | 2 + .../customize_pipeline_item.tsx | 1 + .../default_pipeline_item.tsx | 1 + .../ingest_pipeline_flyout.tsx | 26 ++- .../manage_custom_pipeline_actions.tsx | 1 + .../add_inference_pipeline_flyout.tsx | 6 + .../ml_inference/add_ml_inference_button.tsx | 1 + .../ml_inference/configure_pipeline.tsx | 2 + .../pipelines/ml_inference/license_badge.tsx | 6 +- .../pipelines/ml_inference/model_select.tsx | 27 ++- .../ml_inference/multi_field_selector.tsx | 2 + .../pipelines/ml_inference/test_pipeline.tsx | 6 +- .../text_expansion_callout/deploy_model.tsx | 7 +- .../text_expansion_callout/model_deployed.tsx | 1 + .../text_expansion_callout/model_started.tsx | 1 + .../text_expansion_callout.tsx | 2 + .../text_expansion_errors.tsx | 6 +- .../search_index/pipelines/pipelines.tsx | 22 ++- .../pipelines_json_configurations.tsx | 10 +- .../search_indices/delete_index_modal.tsx | 1 + .../connector_view_search_indices_details.tsx | 1 + .../search_experiences_guide.tsx | 24 ++- .../add_content_empty_prompt.tsx | 13 +- .../shared/api_key/create_api_key_flyout.tsx | 1 + .../shared/data_panel/data_panel.test.tsx | 138 +++++++++++++-- .../elasticsearch_resources.tsx | 19 ++- .../flash_messages/flash_messages.test.tsx | 13 +- .../shared/layout/page_template.tsx | 1 + .../licensing/manage_license_button.tsx | 8 +- .../licensing_callout/licensing_callout.tsx | 12 +- .../shared/not_found/not_found_prompt.tsx | 6 +- .../page_introduction.test.tsx | 77 +++++++-- .../eui_components.test.tsx | 20 ++- .../react_router_helpers/eui_components.tsx | 28 ++- .../schema/field_type_select/index.test.tsx | 11 +- .../search_labs_banner/search_labs_banner.tsx | 2 + .../inline_editable_table/action_column.tsx | 2 +- .../inline_editable_table.test.tsx | 40 ++++- .../reorderable_table/body_row.test.tsx | 13 +- .../tables/reorderable_table/body_row.tsx | 1 + .../tables/reorderable_table/cell.test.tsx | 4 +- .../reorderable_table/header_row.test.tsx | 15 +- .../reorderable_table.test.tsx | 119 +++++++++++-- .../recent_docs_action_message.tsx | 5 +- .../edit_context/context_fields_select.tsx | 1 + .../message_list/copy_action_button.tsx | 1 + .../message_list/token_estimate_tooltip.tsx | 1 + .../components/select_indices_flyout.tsx | 1 + .../setup_page/create_index_button.tsx | 1 + .../sources_panel/indices_table.tsx | 6 +- .../view_code/create_api_key_form.tsx | 10 +- .../document_selector/draggable_list.tsx | 1 + .../query_rule_flyout/query_rule_flyout.tsx | 4 + .../synonym_sets/create_new_set_modal.tsx | 1 + .../synonym_rule_flyout.tsx | 1 + .../connector_config/connector_link.tsx | 2 + .../latest_check_fields/all_tab/index.tsx | 2 +- .../ecs_compliant_tab/index.tsx | 2 +- .../aws_account_type_selector.tsx | 2 +- .../aws_credentials_form.tsx | 2 +- .../aws_credentials_form_agentless.tsx | 2 +- .../azure_credentials_form.tsx | 4 +- .../gcp_account_type_selector.tsx | 2 +- .../gcp_credential_form.tsx | 2 +- .../gcp_credentials_form_agentless.tsx | 2 +- .../common/component/multi_select_filter.tsx | 1 + .../cnvm_kspm/cnvm_kspm_info.tsx | 1 + .../fleet_extensions/policy_template_form.tsx | 1 + .../components/errors/data_view_not_found.tsx | 1 + .../onboarding/onboarding_success_callout.tsx | 1 + .../components/entity_insight.tsx | 1 + .../from_alerts/host_isolation_panel.tsx | 2 +- .../markdown_editor/plugins/insight/index.tsx | 1 + .../components/markdown_editor/renderer.tsx | 4 +- .../components/ml_popover/ml_popover.tsx | 1 + .../components/rule_actions_field/index.tsx | 2 +- .../required_fields/required_fields.tsx | 1 + .../data_view_selector_field.tsx | 2 + .../components/rule_preview/index.tsx | 2 + .../components/rule_preview/preview_logs.tsx | 1 + .../pages/rule_editing/index.tsx | 7 +- .../components/add_exception_flyout/index.tsx | 1 + .../item_conditions/index.tsx | 6 +- .../components/bulk_fill_rule_gaps/index.tsx | 1 + .../rule_customizations_flyout.tsx | 7 +- .../rule_customizations_flyout_subheader.tsx | 1 + .../rule_upgrade/rule_upgrade_callout.tsx | 2 + .../forms/index_patterns_form.tsx | 21 ++- .../forms/investigation_fields_form.tsx | 1 + .../bulk_actions/forms/rule_actions_form.tsx | 6 +- .../bulk_actions/forms/tags_form.tsx | 7 +- .../endpoint/callout.tsx | 3 + .../response_actions_form.tsx | 1 + .../no_api_integration_key_callout.tsx | 1 + .../components/result_step.tsx | 2 + .../entity_analytics_anomalies/index.tsx | 1 + .../tabs/risk_inputs/risk_inputs_tab.tsx | 1 + .../components/dashboard_enablement_panel.tsx | 1 + .../components/engines_status/index.tsx | 2 +- .../privileged_access_detection/index.tsx | 1 + .../pad_chart/pad_heatmap.tsx | 1 + .../pad_install_prompt.tsx | 1 + .../privileged_users_table/index.tsx | 1 + .../components/risk_level_panel/index.tsx | 1 + .../privileged_user_monitoring/index.tsx | 2 + .../csv_upload_manage_data_source.tsx | 1 + .../index.tsx | 1 + .../components/create_index_modal.tsx | 4 +- .../esql_dashboard_panel.tsx | 2 + .../file_uploader/components/error_step.tsx | 1 + .../components/select_index_modal.tsx | 4 +- .../risk_score_preview_section.tsx | 1 + .../pages/entity_store_management_page.tsx | 2 + .../right/components/investigation_guide.tsx | 2 + .../right/components/response_section.tsx | 2 + .../generic_right/header_data_cards.tsx | 1 + .../user_right/components/managed_user.tsx | 1 + .../components/artifact_flyout.tsx | 1 + .../effected_policy_select.tsx | 6 +- .../components/offline_callout.tsx | 1 + .../components/management_empty_state.tsx | 2 + .../endpoint_policy_create_extension.tsx | 2 +- .../pages/policy/view/policy_details.tsx | 2 +- .../components/advanced_section.tsx | 1 + .../components/policy_form_confirm_update.tsx | 1 + .../protection_updates_layout.tsx | 1 + .../view/panels/node_events_of_type.tsx | 1 + .../cribl/components/custom_cribl_form.tsx | 1 + .../tabs/translation/index.tsx | 1 + .../sourcerer/components/sub_components.tsx | 8 +- .../components/edit_data_provider/index.tsx | 1 + .../modal/actions/save_timeline_modal.tsx | 1 + .../timeline/tabs/query/header/index.tsx | 2 + .../plugins/session_view/common/types/v1.ts | 4 +- .../process_tree_node/split_text.tsx | 4 +- .../process_tree_node/text_highlight.tsx | 4 +- .../tty_player_controls_markers/index.tsx | 8 +- .../public/hooks/use_eui_theme.ts | 4 +- 830 files changed, 2953 insertions(+), 1186 deletions(-) diff --git a/examples/controls_example/public/app/react_control_example/react_control_example.tsx b/examples/controls_example/public/app/react_control_example/react_control_example.tsx index 20960f1dc8d17..f437906fb87a5 100644 --- a/examples/controls_example/public/app/react_control_example/react_control_example.tsx +++ b/examples/controls_example/public/app/react_control_example/react_control_example.tsx @@ -274,12 +274,15 @@ export const ReactControlExample = ({ return ( <> {dataViewNotFound && ( - +

{`Install "Sample web logs" to run example`}

)} {!dataViewNotFound && ( - + { > {showLibraryCallout && ( { /> {currentWarnings.length ? ( - +

Here the list of warnings:

    {currentWarnings.map((message) => ( diff --git a/examples/partial_results_example/public/app/app.tsx b/examples/partial_results_example/public/app/app.tsx index a9de74c4ef105..cf5a3347f2c48 100644 --- a/examples/partial_results_example/public/app/app.tsx +++ b/examples/partial_results_example/public/app/app.tsx @@ -66,7 +66,7 @@ export function App() { items={datatable.rows ?? []} /> ) : ( - +

    Click or press any key.

    )} diff --git a/examples/response_stream/public/containers/app/pages/page_simple_string_stream/index.tsx b/examples/response_stream/public/containers/app/pages/page_simple_string_stream/index.tsx index e525877306f68..667c5ab545b53 100644 --- a/examples/response_stream/public/containers/app/pages/page_simple_string_stream/index.tsx +++ b/examples/response_stream/public/containers/app/pages/page_simple_string_stream/index.tsx @@ -91,7 +91,12 @@ export const PageSimpleStringStream: FC = () => {

    {data}

    {errors.length > 0 && ( - + {errors.length === 1 ? (

    {errors[0]}

    ) : ( diff --git a/examples/routing_example/public/get_message_example.tsx b/examples/routing_example/public/get_message_example.tsx index 95fbf16d59e2f..b3bb462d4843f 100644 --- a/examples/routing_example/public/get_message_example.tsx +++ b/examples/routing_example/public/get_message_example.tsx @@ -71,7 +71,7 @@ export function GetMessageRouteExample({ getMessageById }: Props) { {error !== undefined ? ( - + {error.message} ) : null} diff --git a/examples/routing_example/public/post_message_example.tsx b/examples/routing_example/public/post_message_example.tsx index 69f0b749858bd..dac18ff529dd5 100644 --- a/examples/routing_example/public/post_message_example.tsx +++ b/examples/routing_example/public/post_message_example.tsx @@ -83,7 +83,7 @@ export function PostMessageRouteExample({ postMessage, addSuccessToast }: Props) {error !== undefined ? ( - + {error.message} ) : null} diff --git a/examples/routing_example/public/random_number_between_example.tsx b/examples/routing_example/public/random_number_between_example.tsx index 8567587e0fb73..fa61b42c2213d 100644 --- a/examples/routing_example/public/random_number_between_example.tsx +++ b/examples/routing_example/public/random_number_between_example.tsx @@ -72,7 +72,7 @@ export function RandomNumberBetweenRouteExample({ fetchRandomNumberBetween }: Pr {error !== undefined ? ( - + {error.message} ) : null} diff --git a/examples/routing_example/public/random_number_example.tsx b/examples/routing_example/public/random_number_example.tsx index 889376f66f25e..8c7bbca242405 100644 --- a/examples/routing_example/public/random_number_example.tsx +++ b/examples/routing_example/public/random_number_example.tsx @@ -53,7 +53,7 @@ export function RandomNumberRouteExample({ fetchRandomNumber }: Props) { {error !== undefined ? ( - + {JSON.stringify(error)} ) : null} diff --git a/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx index ee6062d867dc5..cf46717ce4d2c 100644 --- a/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx +++ b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx @@ -41,6 +41,7 @@ export const ConfigurationFormControlled: React.FC - +
      {warningMessages.map((message) => (
    • {message}
    • diff --git a/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx index 191645ae65260..b65df573c7feb 100644 --- a/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx +++ b/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx @@ -61,7 +61,7 @@ export const MetadataForm: FC> = ({ return ( - {isReadonly && } + {isReadonly && } { ))} - +

      {selectedTab.callOutText}

      diff --git a/src/platform/packages/shared/kbn-search-connectors/components/configuration/connector_configuration.tsx b/src/platform/packages/shared/kbn-search-connectors/components/configuration/connector_configuration.tsx index cfe4073d75e2d..d919130a5982a 100644 --- a/src/platform/packages/shared/kbn-search-connectors/components/configuration/connector_configuration.tsx +++ b/src/platform/packages/shared/kbn-search-connectors/components/configuration/connector_configuration.tsx @@ -147,6 +147,7 @@ export const ConnectorConfigurationComponent: FC< {!uncategorizedDisplayList.length && ( = ({ syncJob }) => {!!syncJob.completed_at && ( = ({ syncJob }) => {syncJob.status === SyncStatus.ERROR && ( = ({ syncJob }) => {syncJob.status === SyncStatus.CANCELED && ( = ({ syncJob }) => {syncJob.status === SyncStatus.IN_PROGRESS && ( = ({ syncJob }) => {!!syncJob.started_at && ( comparisonFields.length ? ( { {warning ? ( <> - + ) : null} diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx b/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx index 0e3f0c3076771..814652f2eb03a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx +++ b/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx @@ -158,6 +158,7 @@ export const RuleFlyoutBody = ({ {hasActionsDisabled && ( <> { {hasActionsDisabled && ( <> = ({ selectedNode }) => { console.error(serializeError); return ( = (p ) { return ( { if (error) { return ( {dataViewListError ? ( {fieldListError ? ( +

      { {isSubmitted && errors.length > 0 && ( <> err.message)} color="danger" iconType="cross" diff --git a/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.tsx index dd90814886218..47c4c44ef18b7 100644 --- a/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.tsx +++ b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.tsx @@ -92,6 +92,7 @@ export const FieldPreview = () => { {showWarningPreviewNotAvailable ? ( = ({

      {showRelationshipsCallout ? ( <> - + ) : ( - + )}
      diff --git a/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx index 08eb885232329..bf10d71be7f58 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx +++ b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx @@ -237,6 +237,7 @@ export const EditIndexPattern = withRouter( <> { return isVisible ? ( { if (previewData.error) { return ( {reqState === ElasticRequestState.NotFoundDataView && ( + {' '} diff --git a/src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.tsx index 251a5c665e4ad..20b786f31a03b 100644 --- a/src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.tsx +++ b/src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.tsx @@ -31,6 +31,7 @@ export const SelectedVSAvailableCallout = ({ selectedColumns.length > 0 && selectedColumns.length < esqlQueryColumns.length && ( = { +> { transformOut?: (state: StoredState, references?: Reference[]) => State; transformIn?: (state: State) => { state: StoredState; references?: Reference[]; }; -}; +} diff --git a/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts b/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts index e4cab9421481d..16e4cfdd41921 100644 --- a/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts +++ b/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts @@ -13,13 +13,13 @@ import type { FinderAttributes, SavedObjectCommon } from '@kbn/saved-objects-fin import type { SavedObjectMetaData } from '@kbn/saved-objects-finder-plugin/public'; import { useMemo } from 'react'; -export type RegistryItem = { +export interface RegistryItem { onAdd: ( container: CanAddNewPanel, savedObject: SavedObjectCommon ) => void; savedObjectMetaData: SavedObjectMetaData; -}; +} const registry: Map> = new Map(); diff --git a/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts b/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts index 162eb7435a166..72dceed27d88e 100644 --- a/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts +++ b/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts @@ -10,9 +10,9 @@ import type { PersistableStateService } from '@kbn/kibana-utils-plugin/common'; import type { SerializableRecord } from '@kbn/utility-types'; -export type EmbeddableStateWithType = { +export interface EmbeddableStateWithType { enhancements?: SerializableRecord; type: string; -}; +} export type EmbeddablePersistableStateService = PersistableStateService; diff --git a/src/platform/plugins/shared/esql/public/triggers/esql_controls/control_flyout/value_control_form.tsx b/src/platform/plugins/shared/esql/public/triggers/esql_controls/control_flyout/value_control_form.tsx index 1cdec3a5a1149..16182f1cfb13a 100644 --- a/src/platform/plugins/shared/esql/public/triggers/esql_controls/control_flyout/value_control_form.tsx +++ b/src/platform/plugins/shared/esql/public/triggers/esql_controls/control_flyout/value_control_form.tsx @@ -297,6 +297,7 @@ export function ValueControlForm({ ) : ( & { debug?: ExpressionAstFunctionDebug; }; -export type ExpressionAstFunctionDebug = { +export interface ExpressionAstFunctionDebug { /** * True if function successfully returned output, false if function threw. */ @@ -71,6 +71,6 @@ export type ExpressionAstFunctionDebug = { * timing starts after the arguments have been resolved. */ duration: number | undefined; -}; +} export type ExpressionAstArgument = string | boolean | number | ExpressionAstExpression; diff --git a/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts index 471d8f55592a0..3191016e5ab86 100644 --- a/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts +++ b/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts @@ -11,10 +11,10 @@ import { i18n } from '@kbn/i18n'; import type { ExpressionFunctionDefinition } from '../types'; import type { Datatable } from '../../expression_types'; -export type MathArguments = { +export interface MathArguments { expression: string; onError?: 'null' | 'zero' | 'false' | 'throw'; -}; +} export type MathInput = number | Datatable; diff --git a/src/platform/plugins/shared/expressions/common/util/create_error.ts b/src/platform/plugins/shared/expressions/common/util/create_error.ts index 7d8a2e6edd42d..3b9693ce63527 100644 --- a/src/platform/plugins/shared/expressions/common/util/create_error.ts +++ b/src/platform/plugins/shared/expressions/common/util/create_error.ts @@ -9,11 +9,11 @@ import type { ExpressionValueError } from '..'; -export type SerializedError = { +export interface SerializedError { name: string; message: string; stack?: string; -}; +} export type ErrorLike = SerializedError & { original?: SerializedError; diff --git a/src/platform/plugins/shared/inspector/public/views/requests/components/details/clusters_view/clusters_table/cluster_view.tsx b/src/platform/plugins/shared/inspector/public/views/requests/components/details/clusters_view/clusters_table/cluster_view.tsx index 5043009e9dec5..e9c9bb9bfd82c 100644 --- a/src/platform/plugins/shared/inspector/public/views/requests/components/details/clusters_view/clusters_table/cluster_view.tsx +++ b/src/platform/plugins/shared/inspector/public/views/requests/components/details/clusters_view/clusters_table/cluster_view.tsx @@ -30,6 +30,7 @@ export function ClusterView({ clusterDetails }: Props) { {clusterDetails.timed_out ? ( MigrateFunctionsObject; * accumulated over time. Migration functions are keyed using semver version * of Kibana releases. */ -export type MigrateFunctionsObject = { [semver: string]: MigrateFunction }; +export interface MigrateFunctionsObject { + [semver: string]: MigrateFunction; +} export type MigrateFunction< FromVersion extends Serializable = SerializableRecord, ToVersion extends Serializable = SerializableRecord diff --git a/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts index 62d7c9e826114..e6232bd75af71 100644 --- a/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts +++ b/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts @@ -11,7 +11,10 @@ import { encodeState } from './encode_state'; import { replaceUrlHashQuery, replaceUrlQuery } from './format'; import { createStateHash } from './state_hash'; -export type SetStateToKbnUrlHashOptions = { useHash: boolean; storeInHashQuery?: boolean }; +export interface SetStateToKbnUrlHashOptions { + useHash: boolean; + storeInHashQuery?: boolean; +} export function createSetStateToKbnUrl(createHash: (rawState: State) => string) { return ( diff --git a/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx b/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx index 10eac0544fea1..15cd49bca057a 100644 --- a/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx +++ b/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx @@ -19,10 +19,10 @@ import type { UserProfileService } from '@kbn/core-user-profile-browser'; import type { SavedObjectNotFound } from '..'; import { KibanaThemeProvider } from '../theme'; -type MarkdownRendererProps = { +interface MarkdownRendererProps { basePath: HttpStart['basePath']; children: string; -}; +} const MarkdownRenderer = React.lazy(async () => { const { default: ReactMarkdown } = await import('react-markdown'); diff --git a/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx index 4088e9b4353b2..dc8059bda04d0 100644 --- a/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx +++ b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx @@ -97,6 +97,7 @@ export const DeleteConfirmModal: FC = ({ {hiddenObjects.length > 0 && ( <> = ({ {sharedObjectsCount > 0 && ( <> {isAbsoluteTimeByDefault && ( { if (!hasPrivilegeToRead) { return ( { if (data === null) { return ( > = ({ if (!!triggers && !triggers.items.length) { // Below callout is not translated, because this message is only for developers. return ( - +

      No triggers provided in triggers prop.

      diff --git a/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx index add8cbbe58670..1f196fa3ed958 100644 --- a/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx +++ b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx @@ -218,7 +218,7 @@ export function TableGrid({ {Boolean(warningMessage) && (
      - +
      )} diff --git a/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.tsx index 49a946b21bb37..95888cc4ae33e 100644 --- a/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.tsx +++ b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.tsx @@ -414,7 +414,7 @@ export const VisualizeListing = () => { <> {dashboardCapabilities.createNew && ( <> - + )} diff --git a/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_no_match.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_no_match.tsx index 2ba071d04573e..9f29f44272d4a 100644 --- a/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_no_match.tsx +++ b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_no_match.tsx @@ -37,7 +37,7 @@ export const VisualizeNoMatch = () => { bannerId = services.overlays.banners.replace( bannerId, toMountPoint( - +

      - +

      {errors}

      Make sure you have the proper permissions to access security alerts, or manually enter @@ -309,7 +315,13 @@ export const WorkflowExecuteEventForm = ({ {/* Alert Info */} {selectedAlert && ( - + {selectedAlert._source['kibana.alert.rule.name']} - Severity:{' '} {selectedAlert._source['kibana.alert.severity']} - Status:{' '} diff --git a/src/platform/plugins/shared/workflows_management/public/features/run_workflow/ui/workflow_execute_manual_form.tsx b/src/platform/plugins/shared/workflows_management/public/features/run_workflow/ui/workflow_execute_manual_form.tsx index 8ba1643f998a5..7e1223975adad 100644 --- a/src/platform/plugins/shared/workflows_management/public/features/run_workflow/ui/workflow_execute_manual_form.tsx +++ b/src/platform/plugins/shared/workflows_management/public/features/run_workflow/ui/workflow_execute_manual_form.tsx @@ -115,7 +115,13 @@ export const WorkflowExecuteManualForm = ({ {errors && ( <> - +

      {errors}

      diff --git a/x-pack/examples/alerting_example/public/alert_types/astros.tsx b/x-pack/examples/alerting_example/public/alert_types/astros.tsx index 0ef9b606f313c..94bf273de2e77 100644 --- a/x-pack/examples/alerting_example/public/alert_types/astros.tsx +++ b/x-pack/examples/alerting_example/public/alert_types/astros.tsx @@ -139,7 +139,12 @@ export const PeopleinSpaceExpression: React.FunctionComponent {errorsCallout.length ? ( - + {errorsCallout} ) : ( diff --git a/x-pack/examples/alerting_example/public/components/view_alert.tsx b/x-pack/examples/alerting_example/public/components/view_alert.tsx index 0ce708c846198..5eff64505572f 100644 --- a/x-pack/examples/alerting_example/public/components/view_alert.tsx +++ b/x-pack/examples/alerting_example/public/components/view_alert.tsx @@ -51,7 +51,7 @@ export const ViewAlertPage = withRouter(({ http, id }: Props) => { return alert && alertState ? ( - +

      This is a generic view for all Rules created by the {ALERTING_EXAMPLE_APP_ID} @@ -72,12 +72,12 @@ export const ViewAlertPage = withRouter(({ http, id }: Props) => {

      Alerts

      {isEmpty(alertState.alerts) ? ( - +

      This Rule doesn't have any active alerts at the moment.

      ) : ( - +

      Below are the active Alerts which were activated on the rules last run.
      diff --git a/x-pack/examples/alerting_example/public/components/view_astros_alert.tsx b/x-pack/examples/alerting_example/public/components/view_astros_alert.tsx index 289d803f0dc05..9be3f4bfa08fd 100644 --- a/x-pack/examples/alerting_example/public/components/view_astros_alert.tsx +++ b/x-pack/examples/alerting_example/public/components/view_astros_alert.tsx @@ -59,7 +59,7 @@ export const ViewPeopleInSpaceAlertPage = withRouter(({ http, id }: Props) => { return alert && alertState ? ( - +

      This is a specific view for all example.people-in-space Rules created by the @@ -72,7 +72,7 @@ export const ViewPeopleInSpaceAlertPage = withRouter(({ http, id }: Props) => {

      Alerts

      {isEmpty(alertState.alerts) ? ( - +

      The people in {alert.params.craft as string} at the moment are not{' '} {alert.params.op as string} {alert.params.outerSpaceCapacity as string} @@ -80,7 +80,7 @@ export const ViewPeopleInSpaceAlertPage = withRouter(({ http, id }: Props) => { ) : ( - +

      The rule has been triggered because the people in {alert.params.craft as string} at the moment {alert.params.op as string} {alert.params.outerSpaceCapacity as string} diff --git a/x-pack/examples/embedded_lens_example/public/mount.tsx b/x-pack/examples/embedded_lens_example/public/mount.tsx index f791c115be636..4febcb5ab5769 100644 --- a/x-pack/examples/embedded_lens_example/public/mount.tsx +++ b/x-pack/examples/embedded_lens_example/public/mount.tsx @@ -28,6 +28,7 @@ export const mount = ) : ( ) : ( {hasParsingErrorDebounced && currentSO.current !== currentValid && ( - +

      Check the spec

      )} diff --git a/x-pack/examples/testing_embedded_lens/public/mount.tsx b/x-pack/examples/testing_embedded_lens/public/mount.tsx index 04099e125b968..eeabfaea435b3 100644 --- a/x-pack/examples/testing_embedded_lens/public/mount.tsx +++ b/x-pack/examples/testing_embedded_lens/public/mount.tsx @@ -44,6 +44,7 @@ export const mount = /> ) : ( ; export type ActionContext = ApplyGlobalFilterActionContext & { embeddable: ActionApi }; -export type Config = { +export interface Config { /** * Whether to use a user selected index pattern, stored in `indexPatternId` field. */ @@ -34,6 +34,6 @@ export type Config = { * Whether to carry over source dashboard time range. */ carryTimeRange: boolean; -}; +} export type CollectConfigProps = CollectConfigPropsBase; diff --git a/x-pack/platform/packages/private/ml/data_grid/components/data_grid.tsx b/x-pack/platform/packages/private/ml/data_grid/components/data_grid.tsx index 0ea2fea5e8229..aeb2cdc365a76 100644 --- a/x-pack/platform/packages/private/ml/data_grid/components/data_grid.tsx +++ b/x-pack/platform/packages/private/ml/data_grid/components/data_grid.tsx @@ -161,6 +161,7 @@ export const DataGrid: FC = memo(
      {isWithHeader(props) && } = memo(
      {isWithHeader(props) && } = memo( if (errorMessage && !errorMessage.includes('failed to create query')) { errorCallout = ( = memo( } else { errorCallout = ( = memo( {ccsWarning && (
      { {helpText && ( <> - + )} diff --git a/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx b/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx index 9442c5312d8c2..5b733994e3007 100644 --- a/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx +++ b/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx @@ -647,6 +647,7 @@ export function ChatBody({ > {conversation.error ? ( = ({ ); return localStorageShowConversation && selectedConversation ? ( = React.memo(({ isConnecto <> {showMissingCallout ? ( = ({ {sensitive ? ( <> - + ) : null} diff --git a/x-pack/platform/packages/shared/kbn-search-index-documents/components/document_list.tsx b/x-pack/platform/packages/shared/kbn-search-index-documents/components/document_list.tsx index 01a03e758bd00..d8b3fa075b819 100644 --- a/x-pack/platform/packages/shared/kbn-search-index-documents/components/document_list.tsx +++ b/x-pack/platform/packages/shared/kbn-search-index-documents/components/document_list.tsx @@ -226,6 +226,7 @@ export const DocumentList: React.FC = ({ {meta.totalItemCount > 9999 && ( = ({ {responseError && ( <> = ({ !isOwner ? ( <> = ({ ) : hasExpired ? ( <> = ({ variables, selectedVar, onCancel, onSave }) {!isNew && (
      = ({ , ]; warningText = [ - , + , , ]; } diff --git a/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx index 55a734f535cba..33d597331ac3e 100644 --- a/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx +++ b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx @@ -108,6 +108,7 @@ const ColorModeGroup: FC<{ <> = ({ > - + diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/common/components/stats_table/components/field_data_expanded_row/text_content.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/common/components/stats_table/components/field_data_expanded_row/text_content.tsx index 1cae50e2bde57..98664614a3c04 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/common/components/stats_table/components/field_data_expanded_row/text_content.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/common/components/stats_table/components/field_data_expanded_row/text_content.tsx @@ -33,6 +33,7 @@ export const TextContent: FC = ({ config }) => { > = children, }) => { return wrapInCallout ? ( - + ) : ( <> diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx index cc010fd5938a9..98dd514578347 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx @@ -23,6 +23,7 @@ export const SemanticTextInfo: FC = ({ results }) => { = ({ = (dataVi {unsupportedReasonForQuery ? ( = ({ > {isNewPanel ? ( { if (!isEsqlEnabled) { return ( { if (this.props.failedPermissionCheck) { return ( { : ''; return ( { if (this.props.importResults.failures?.length) { return ( - +

      {i18n.translate('xpack.graph.topNavMenu.save.saveConfigurationOnlyText', { defaultMessage: diff --git a/x-pack/platform/plugins/private/graph/public/components/settings/blocklist_form.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/blocklist_form.tsx index c750e7fb23d1a..c70e21c93da4d 100644 --- a/x-pack/platform/plugins/private/graph/public/components/settings/blocklist_form.tsx +++ b/x-pack/platform/plugins/private/graph/public/components/settings/blocklist_form.tsx @@ -41,6 +41,7 @@ export function BlocklistForm({ ) : ( { {isManagedPolicy && ( <> { {isDeprecatedPolicy && ( <> { {showEmptyRolloverFieldsError && ( <> = ({ close, select const { statusCode, message } = error; content = ( = ({ } else if (repos.length === 0) { calloutContent = ( = ({ ) { calloutContent = ( = ({ if (phase === 'hot' && isUsingSearchableSnapshotInHotPhase) { infoCallout = ( = ({ } else if (isDisabledDueToLicense) { infoCallout = ( { <> { <> { > {isManagedPolicy ? ( { { = (props: Props) => { customRenderResponse.componentToRender = ( { return discoverLink ? ( - +

      {i18n.translate('xpack.monitoring.setupMode.migrateToMetricbeatDescription', { defaultMessage: `These {product} {identifier} are self monitored. @@ -152,7 +156,7 @@ export function ListingCallOut({ setupModeData, productName, customRenderer }: P return ( - +

      {i18n.translate('xpack.monitoring.setupMode.migrateSomeToMetricbeatDescription', { defaultMessage: `Some {product} {identifier} are monitored through self monitoring. Migrate to monitor with Metricbeat.`, diff --git a/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx b/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx index 1c9df42f44e2c..aa8741f195e2a 100644 --- a/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx +++ b/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx @@ -199,6 +199,7 @@ export function ChangeKbModel({ if (error) { return ( = ({ {hasDeprecatedProxySetting ? ( <> { if (state.success && chromeStatus === 'complete') { outcomeCallout = ( { } else if (!state.success && chromeStatus === 'danger') { outcomeCallout = ( = ({ info, config {Boolean(errored) && ( <> = ({ info, config <> {Boolean(errored) && } ) : isReportingHealthError ? ( ) : hasUnmetPrerequisites ? ( {!readOnly && ( = ({ apiClient, screenshotMod } > {error ? ( - +

      {error.message}

      {error.stack && {error.stack}}
      diff --git a/x-pack/platform/plugins/private/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx b/x-pack/platform/plugins/private/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx index a9a259a63dc37..3692ccd1f1d02 100644 --- a/x-pack/platform/plugins/private/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx +++ b/x-pack/platform/plugins/private/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx @@ -120,6 +120,7 @@ export const RuntimeFieldEditorFlyoutContent = ({ {isSubmitted && !isFormValid && ( <> = ({ <> = ({ policy, on /> ) : ( = ({ if (!repositoryTypes.length) { return ( = <> = ( <> = ({ childre {!isSingle && isDeleting ? ( diff --git a/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_details/tabs/tab_summary.tsx b/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_details/tabs/tab_summary.tsx index a64843998b760..4c75964a8be89 100644 --- a/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_details/tabs/tab_summary.tsx +++ b/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_details/tabs/tab_summary.tsx @@ -62,6 +62,7 @@ export const TabSummary: React.FunctionComponent = ({ policy }) => { {isManagedPolicy ? ( <> = ({ return ( = ({ {isManagedRepository ? ( = ({ {error ? ( <> = ({ match, location }) => { {typeof errorMessage !== 'undefined' ? ( <> - + = ({ /> )} {latestFunctionService.sortFieldOptions.length === 0 && ( - +

      = React.memo( {stepDefineState.transformFunction === TRANSFORM_FUNCTION.LATEST ? ( <> - +

      = ({ match }) => { {searchItemsError !== undefined && ( <> - + )} diff --git a/x-pack/platform/plugins/private/transform/public/app/sections/transform_management/components/transform_list/expanded_row_column_view.tsx b/x-pack/platform/plugins/private/transform/public/app/sections/transform_management/components/transform_list/expanded_row_column_view.tsx index 26a16df4ea428..eecb843ad80c6 100644 --- a/x-pack/platform/plugins/private/transform/public/app/sections/transform_management/components/transform_list/expanded_row_column_view.tsx +++ b/x-pack/platform/plugins/private/transform/public/app/sections/transform_management/components/transform_list/expanded_row_column_view.tsx @@ -66,7 +66,7 @@ export const ExpandedRowColumnView: FC = ({ {showErrorCallout && ( <> - +

      = ({ {showNodeInfo && transformNodes === 0 && ( <> = ({ checkpoint if (error) { return ( {warnings.length > 0 && ( <> = {warnings.length > 0 && ( <> { {remoteClusters && remoteClusters.length > 0 && ( <> = ({ 0) && ( <> = ({ if (error) { return ( {migrationStatus === 'NO_MIGRATION_NEEDED' && ( = ({ setIsComplete }) = if (migrationStatus.error) { return ( = ({ setIsComplete }) = {startMigrationStatus.statusType === 'error' && ( <> = ({ setIsComplete }) = {migrationStatus.data?.migration_status === 'ERROR' && ( <> { if (error) { callToAction = ( = ({ {settings && settings.actionTypes[action.type].enabled === false ? ( { ) : ( { queryError && ( <> { { if (metricFieldOptions.length === 0) { return ( = ({ {cardinalityExceeded ? ( <> = ({ <> ( if (!isAuthorized) { return ( ( ( {successfulGeneration && isSelectedPathGenerated ? ( ( /> {successfulGeneration ? ( ( {error ? ( ({ <> = React.memo( { <>

      {(!connector.config?.createCommentUrl || !connector.config?.createCommentJson) && ( = ( <> {showMappingWarning && ( {showMappingWarning && ( {showTimeWindowWarning && ( , children: ( - + ), }, ]; diff --git a/x-pack/platform/plugins/shared/content_connectors/public/components/connector_detail/components/generated_config_fields.tsx b/x-pack/platform/plugins/shared/content_connectors/public/components/connector_detail/components/generated_config_fields.tsx index 35a373c048c05..5fc7138814e0e 100644 --- a/x-pack/platform/plugins/shared/content_connectors/public/components/connector_detail/components/generated_config_fields.tsx +++ b/x-pack/platform/plugins/shared/content_connectors/public/components/connector_detail/components/generated_config_fields.tsx @@ -290,6 +290,7 @@ export const GeneratedConfigFields: React.FC = ({ <> { {isWaitingOnAgentlessDeployment && ( <> { {error && ( <> { {!!connector && !connector.index_name && ( <> { {!!connector?.index_name && !indexData && ( <> { <> {isModalVisible && } = ({ {isWaitingOnAgentlessDeployment && ( diff --git a/x-pack/platform/plugins/shared/content_connectors/public/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx b/x-pack/platform/plugins/shared/content_connectors/public/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx index cc53267fa9e83..ff913ba9fe89b 100644 --- a/x-pack/platform/plugins/shared/content_connectors/public/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx +++ b/x-pack/platform/plugins/shared/content_connectors/public/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx @@ -87,6 +87,7 @@ export const NativeConnectorConfigurationConfig: React.FC< <> { {(!isAdvancedSnippetEmpty || !isLocalSnippetEmpty) && ( { = ({ {errors.map((error, index) => ( { <> {isAccessControlIndexNotFound && ( { {isAccessControlIndexNotFound ? ( { /> ) : ( ({ {errors.map((errorMessage, errorMessageIndex) => ( {!loading && nonAggregatableDatasets.length > 0 && ( - +

      {nonAggregatableWarningDescription(nonAggregatableDatasets)}

      diff --git a/x-pack/platform/plugins/shared/embeddable_alerts_table/public/components/config_editor_content.tsx b/x-pack/platform/plugins/shared/embeddable_alerts_table/public/components/config_editor_content.tsx index 47afadf2362ce..8303c3a00de2b 100644 --- a/x-pack/platform/plugins/shared/embeddable_alerts_table/public/components/config_editor_content.tsx +++ b/x-pack/platform/plugins/shared/embeddable_alerts_table/public/components/config_editor_content.tsx @@ -238,6 +238,7 @@ export const ConfigEditorContent = ({ ) : cannotLoadRuleTypes ? ( = if (status === 'success') { return ( = ({ {!authz.fleet.all || granularPrivilegesCallout.isHidden ? null : ( = ({ <> = ({ {packagePoliciesWithMultiplePolicies && ( <> = ({ /> ) : agentsCount ? ( voi ) : error ? ( voi <> {agentCount > 0 ? ( ) : ( = ({ <> - + )} diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx index 048485fa4670a..fb6352226aea4 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx @@ -79,7 +79,7 @@ export const PostInstallCloudFormationModal: React.FunctionComponent<{ {error && isError && !isLoadingInitialRequest && ( <> - + )} diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx index d1196b8e35871..b533a717844f7 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx @@ -97,7 +97,7 @@ export const PostInstallGoogleCloudShellModal: React.FunctionComponent<{ {error && isError && ( <> - + )} diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx index 35793b82b7a1b..349c296acd726 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx @@ -594,6 +594,7 @@ export const CreatePackagePolicySinglePage: CreatePackagePolicyParams = ({ {showSecretsDisabledCallout && ( <> = memo(({ inputStatusFormatter }) => { return inputStatusFormatter.hasError ? ( = memo( if (!isLogFeatureAvailable) { return ( ) => { return render( diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx index 2cc447d33f89c..bea952a24259f 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx @@ -8,10 +8,10 @@ import React from 'react'; import { act, fireEvent } from '@testing-library/react'; +import { IntlProvider } from '@kbn/i18n-react'; + import type { TestRenderer } from '../../../../../../../mock'; import { createFleetTestRendererMock } from '../../../../../../../mock'; -// eslint-disable-next-line @kbn/eslint/module_migration -import { IntlProvider } from 'react-intl'; import { useActionStatus } from '../../hooks'; import { useGetAgentPolicies, useAuthz } from '../../../../../hooks'; diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx index b73bd7251f853..7cc712da277ca 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx @@ -30,6 +30,7 @@ export const AgentPolicyCreatedCallOut: React.FunctionComponent = ({ crea {createState.status === CREATE_STATUS.CREATED ? ( = ({ crea /> ) : ( = ({ {hasFleetServer && isSingleAgent ? ( <> ({ ...jest.requireActual('../../../../hooks/use_fleet_status'), useFleetStatus: jest.fn().mockReturnValue({}), diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx index 58e9a4ac074f7..7be41d9e01300 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx @@ -72,7 +72,7 @@ export const AgentPolicyDebugger: React.FunctionComponent = () => { if (status === 'error') { return ( - + { {indexResult?.error && ( <> - + {(indexResult?.error as any)?.error?.reason ?? ( { {error && ( <> - + {error?.message ?? ( { if (integrations.status === 'error') { return ( - + { {savedObjectResult && (status === 'error' || namesStatus === 'error') && ( <> - + - + = ({ <> = <> = {output?.is_preconfigured && ( <> = <> = (props) <> = (props) = (props) + = (props) => { {type === 'download_source' ? ( = (props) => { /> ) : ( {fleetServerHost && ( = memo( {syncedIntegrationsStatus?.error && ( = ({ packageInfo }) => { {error ? ( = ({ packageInfo }) => { <> = ({ packageInfo, ) : ( = ({ {conflictCount && conflictCount > 0 ? ( <> = ({ return ( <> {apiKey && ( = ({ <> = ({ return ( <> - + ); } diff --git a/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx index 17b229807ca58..f26d298b44d4c 100644 --- a/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx @@ -36,7 +36,7 @@ export const CloudFormationInstructions: React.FunctionComponent = ({ return ( <> - + ); } diff --git a/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx index 50177698099de..c65bea49069ee 100644 --- a/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx @@ -19,6 +19,7 @@ export const RootPrivilegesCallout: React.FC<{ return rootIntegrations.length > 0 ? ( <> = ({ {removedPolicies.length > 0 && ( = ({ {packagePolicyPackage?.type === 'input' && ( <> = ({ {(hasMultipleAgentPolicies || isShared) && ( <> = ({ ) : agentsCount && agentPolicies ? ( <> ({ useGetUninstallToken: jest.fn(), diff --git a/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx b/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx index 23e05c1109747..bff705b9f0b2e 100644 --- a/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx @@ -14,12 +14,12 @@ import { useStartServices } from '../hooks'; import { MissingESRequirementsPage } from '../applications/fleet/sections/agents/agent_requirements_page'; -import { WithHeaderLayout, WithoutHeaderLayout } from '.'; - import { Error } from '../applications/fleet/components'; import { DefaultLayout, DefaultPageTitle } from '../applications/fleet/layouts/default'; +import { WithHeaderLayout, WithoutHeaderLayout } from '.'; + const Panel = styled(EuiPanel)` max-width: 500px; margin-right: auto; diff --git a/x-pack/platform/plugins/shared/fleet/public/plugin.ts b/x-pack/platform/plugins/shared/fleet/public/plugin.ts index aa30ba89ee3d2..a99f0be005cd6 100644 --- a/x-pack/platform/plugins/shared/fleet/public/plugin.ts +++ b/x-pack/platform/plugins/shared/fleet/public/plugin.ts @@ -55,6 +55,8 @@ import { Subject } from 'rxjs'; import type { AutomaticImportPluginStart } from '@kbn/automatic-import-plugin/public'; import type { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/public'; +import type { EmbeddableStart } from '@kbn/embeddable-plugin/public'; + import type { FleetAuthz } from '../common'; import { appRoutesService, INTEGRATIONS_PLUGIN_ID, PLUGIN_ID, setupRouteService } from '../common'; import { @@ -92,7 +94,6 @@ import type { import { LazyCustomLogsAssetsExtension } from './lazy_custom_logs_assets_extension'; import { setCustomIntegrations, setCustomIntegrationsStart } from './services/custom_integrations'; import { getFleetDeepLinks } from './deep_links'; -import type { EmbeddableStart } from '@kbn/embeddable-plugin/public'; export type { FleetConfigType } from '../common/types'; diff --git a/x-pack/platform/plugins/shared/fleet/public/services/setup_technology_selector.tsx b/x-pack/platform/plugins/shared/fleet/public/services/setup_technology_selector.tsx index 1dca5443f15e3..798258e1f28cd 100644 --- a/x-pack/platform/plugins/shared/fleet/public/services/setup_technology_selector.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/services/setup_technology_selector.tsx @@ -152,6 +152,7 @@ export const SetupTechnologySelector = ({ <> = ({ {!templateIsInUse && ( <> = ( {error && ( <> { {!Boolean(suggestedFields.length) && ( <> { <> { <> = React.memo( {indexMode && ( <> {hasSystemTemplate && ( = React.memo( {hasWildCardIndexPattern ? ( { {createError && ( <> { {!isLoading && hasSelectedMultipleIndices && matchFieldOptions.length === 0 && ( <> = ({ {isDataStreamFullyManagedByILM(dataStream) && ( <> setprojectLevelRetentionCallout(false)} data-test-subj="projectLevelRetentionCallout" title={i18n.translate( diff --git a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/data_stream_list/edit_data_retention_modal/edit_data_retention_modal.tsx b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/data_stream_list/edit_data_retention_modal/edit_data_retention_modal.tsx index 4bff434b7bc59..fd44a24739249 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/data_stream_list/edit_data_retention_modal/edit_data_retention_modal.tsx +++ b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/data_stream_list/edit_data_retention_modal/edit_data_retention_modal.tsx @@ -353,6 +353,7 @@ export const EditDataRetentionModal: React.FunctionComponent = ({ {affectedDataStreams.length > 0 && !formData.infiniteRetentionPeriod && ( = ({ <> +// / import expect from '@kbn/expect'; import type { Logger } from '@kbn/logging'; diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/load_from_json/modal_provider.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/load_from_json/modal_provider.tsx index fa8520c040d24..1021ab4e72005 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/load_from_json/modal_provider.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/load_from_json/modal_provider.tsx @@ -120,6 +120,7 @@ export const ModalProvider: FunctionComponent = ({ onDone, children }) => {error && ( <> = ({ } if (!processorOutput) { - return ; + return ( + + ); } const { diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/test_pipeline/test_pipeline_flyout.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/test_pipeline/test_pipeline_flyout.tsx index e54b769b54bd1..8e066f82390bd 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/test_pipeline/test_pipeline_flyout.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/test_pipeline/test_pipeline_flyout.tsx @@ -127,6 +127,7 @@ export const TestPipelineFlyout: React.FunctionComponent = ({ {testingError ? ( <> = ({ onAddDocuments }) => {documentError && ( <> = ({ {!hasError && ( - +

      = ({ if (displayWarning || (error.statusCode === 404 && isCustom)) { return ( - +

      {i18n.translate('xpack.maps.spatialJoinExpression.noDataViewTitle', { defaultMessage: 'Unable to load data view {dataViewId}.', diff --git a/x-pack/platform/plugins/shared/maps/public/connected_components/edit_layer_panel/layer_settings/layer_settings.tsx b/x-pack/platform/plugins/shared/maps/public/connected_components/edit_layer_panel/layer_settings/layer_settings.tsx index 29807866ab48d..d1ccbff119901 100644 --- a/x-pack/platform/plugins/shared/maps/public/connected_components/edit_layer_panel/layer_settings/layer_settings.tsx +++ b/x-pack/platform/plugins/shared/maps/public/connected_components/edit_layer_panel/layer_settings/layer_settings.tsx @@ -244,6 +244,7 @@ export function LayerSettings(props: Props) { return isLayerGroup(props.layer) ? ( <> { data-description={this.props.description} > { if (this.state.loadPropertiesErrorMsg) { return ( {errors.map(({ title, body }, index) => (

      - + {body} @@ -40,7 +40,7 @@ export function LegendDetails({ inspectorAdapters, layer }: Props) { <> {warnings.map(({ title, body }, index) => (
      - + {body} diff --git a/x-pack/platform/plugins/shared/ml/public/alerting/anomaly_detection_rule/config_validator.tsx b/x-pack/platform/plugins/shared/ml/public/alerting/anomaly_detection_rule/config_validator.tsx index 1a2ba113aafe3..728dea391df43 100644 --- a/x-pack/platform/plugins/shared/ml/public/alerting/anomaly_detection_rule/config_validator.tsx +++ b/x-pack/platform/plugins/shared/ml/public/alerting/anomaly_detection_rule/config_validator.tsx @@ -69,6 +69,7 @@ export const ConfigValidator: FC = React.memo( {configContainsIssues ? ( <> = React.memo( {notifyWhenWarning ? ( <> = ({ <> = () => { return showNodeInfo ? ( <> = () => { ) : ( <> = ({ pipelineName, sourceIndex }) => ) : ( = memo(({ state, sourceIndex, mode }) => { {sourceIndexMissingError && showCallOut ? ( { setShowCallOut(false); }} diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/edit_model_snapshot_flyout/edit_model_snapshot_flyout.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/edit_model_snapshot_flyout/edit_model_snapshot_flyout.tsx index 7523faa29f04a..ea02c96eb20b1 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/edit_model_snapshot_flyout/edit_model_snapshot_flyout.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/edit_model_snapshot_flyout/edit_model_snapshot_flyout.tsx @@ -128,6 +128,7 @@ export const EditModelSnapshotFlyout: FC = ({ snapshot, job, closeFlyout <> = ({ return showWarning === false ? null : ( <> = ({ {splom.messages.length > 0 && ( <> - + {splom.messages.map((m) => ( {m} diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/shared/review_and_create_pipeline.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/shared/review_and_create_pipeline.tsx index 45688685c7327..44ffc94742ac4 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/shared/review_and_create_pipeline.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/shared/review_and_create_pipeline.tsx @@ -120,6 +120,7 @@ export const ReviewAndCreatePipeline: FC = ({ {pipelineCreated === true && pipelineError === undefined ? ( = ({ ) : null} {pipelineError !== undefined ? ( { return ( = ({ currentProgress, failedJobMessage }) {failedJobMessage !== undefined && ( <> = ({ aria-label={i18n.translate('xpack.ml.dataframe.analytics.create.jobIdInputAriaLabel', { defaultMessage: 'Choose a unique analytics job ID.', })} - isInvalid={ - (!jobIdEmpty && !jobIdValid) || jobIdExists || jobIdInvalidMaxLength || jobIdEmpty - } + isInvalid={(!jobIdEmpty && !jobIdValid) || jobIdExists || jobIdInvalidMaxLength} data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput" /> diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/error_callout/error_callout.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/error_callout/error_callout.tsx index 1240ad73f3f7c..3f7fe69a777b3 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/error_callout/error_callout.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/error_callout/error_callout.tsx @@ -30,6 +30,7 @@ export const ErrorCallout: FC = ({ error }) => { if (typeof error === 'string' && error.includes('index_not_found')) { errorCallout = ( = ({ error }) => { // Job was started but no results have been written yet errorCallout = ( = ({ error }) => { // query bar syntax is incorrect errorCallout = ( = ({ return ( = ({ <> {baseline === undefined && ( = React.memo(({ jobId }) = return ( = React.memo(({ jobId }) = {showLegacyFeatureInfluenceFormatCallout && ( <> = ({ if (typeof errorMessage !== 'undefined') { return ( { {isCcsCallOut && ( <> ) : null} - {dataViewMsg ? {dataViewMsg} : null} + {dataViewMsg ? ( + + {dataViewMsg} + + ) : null} diff --git a/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx b/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx index 57174f6c753dd..9a0e487a959ff 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx @@ -160,7 +160,7 @@ export function DataViewEditor({ {errorMessage === mustMatchError ? ( - + = ({ isDisabled, jobEditorMode, datafee <> { {showCallOut && ( { return jobCreator.modelPlot && highCardinality !== null ? ( { <> {
      { {isTimeBasedIndex === false && ( <> - + = memo( <> {saveState === SAVE_STATE.SAVED && ( = memo( )} {saveState === SAVE_STATE.FAILED && ( = memo( )} {saveState === SAVE_STATE.PARTIAL_FAILURE && ( = ({ moduleId, existingGroupIds }) => { {displayQueryWarning && ( <> = ({ models, onClose, {modelsWithPipelines.length > 0 ? ( <> = ({ models, onClose, {modelsWithInferenceAPIs.length > 0 ? ( 0 ? ( <> 0 ? ( <> = ({ isElserCalloutVisible ? ( <> = ({ errorText }) => { return errorText === null ? null : ( <> <> - + { {queryError ? ( <> { bannerId.current, toMountPoint( = ({ addEvents, setTimezone, isDisable = ({ if (error) { return ( = ({ dataView, field, query, timeRange }) => { > = ({ {state === STATE.SAVE_FAILED && createError !== null ? ( <> - + {createError.errorText} @@ -425,7 +425,7 @@ export const JobDetails: FC> = ({ {incomingCreateError ? ( <> - + {incomingCreateError.errorText} diff --git a/x-pack/platform/plugins/shared/observability_ai_assistant/public/components/insight/insight.tsx b/x-pack/platform/plugins/shared/observability_ai_assistant/public/components/insight/insight.tsx index c72fa6174657a..cee3e5c5ce032 100644 --- a/x-pack/platform/plugins/shared/observability_ai_assistant/public/components/insight/insight.tsx +++ b/x-pack/platform/plugins/shared/observability_ai_assistant/public/components/insight/insight.tsx @@ -436,6 +436,7 @@ export function Insight({ } else if (messages.status === FETCH_STATUS.FAILURE) { children = ( = ({ editingAgentId, onDelete } if (error) { return ( { { = ({ agentSelection, onCh if (agentsFetched && agentList?.groups && !options.length) { return ( <> - + - +

      {i18n.translate( 'xpack.osquery.fleetIntegration.osqueryConfig.noAgentsWarningMessage', diff --git a/x-pack/platform/plugins/shared/osquery/public/results/results_table.tsx b/x-pack/platform/plugins/shared/osquery/public/results/results_table.tsx index 123e2dd9b82dc..313c252e158d1 100644 --- a/x-pack/platform/plugins/shared/osquery/public/results/results_table.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/results/results_table.tsx @@ -406,7 +406,10 @@ const ResultsTableComponent: React.FC = ({ {!allResultsData?.edges.length ? ( - + ) : ( diff --git a/x-pack/platform/plugins/shared/osquery/public/routes/packs/edit/index.tsx b/x-pack/platform/plugins/shared/osquery/public/routes/packs/edit/index.tsx index bb46352844bd2..c5fa7b12cb0af 100644 --- a/x-pack/platform/plugins/shared/osquery/public/routes/packs/edit/index.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/routes/packs/edit/index.tsx @@ -108,7 +108,7 @@ const EditPackPageComponent = () => { isReadOnly ? ( <> - + { }} /> {elasticPrebuiltQuery && ( - + = ({ <> { return ( { return ( { {canManageOwnApiKeys && !canManageApiKeys ? ( <> { if (this.checkEmptyAnyAllMappings(this.state.roleMapping!.rules as RoleMappingRule)) { return ( { if (!props.canUseStoredScripts && !props.canUseInlineScripts) { return ( { if (validationResult && validationResult.error) { validationWarning = ( - + ); } @@ -160,6 +160,7 @@ export class RuleEditorPanel extends Component { if (this.state.mode === 'json' && this.state.maxDepth > VISUAL_MAX_RULE_DEPTH) { return ( { return ( = ({ { ) && ( { <> { if (!uiCapabilities.spaces?.manage) { return ( = {isSystemUser ? ( <> = ({ username }) {isDeprecatedUser ? ( <> = ({ username }) ) : isReservedUser ? ( <> = ({ username }) ) : user.enabled === false ? ( <> = ({ {isCurrentSpace && ( <> { {helpText && ( <> - + {helpText} diff --git a/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.tsx index 8c59c453a1b7b..875e96ac60ae9 100644 --- a/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.tsx +++ b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.tsx @@ -249,6 +249,7 @@ export const EditSpaceSettingsTab: React.FC = ({ space, features, history <> = (props) => { {selectedRolesCombinedPrivileges.length > 1 ? ( = (props) => { ) : ( { <> {!this.state.loading && !this.canCreateSpaces() ? ( <> - + ) : undefined} diff --git a/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx index 75068b2c3ed7a..7b7cc39ab54b9 100644 --- a/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx +++ b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx @@ -47,6 +47,7 @@ export const ShareToSpaceForm = (props: Props) => { const createCopyCallout = showCreateCopyCallout ? ( - +

      {paramsError.message}

      diff --git a/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/es_query/test_query_row/test_query_row.tsx b/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/es_query/test_query_row/test_query_row.tsx index 88e8197e5cb94..0bad4632bd3ec 100644 --- a/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/es_query/test_query_row/test_query_row.tsx +++ b/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/es_query/test_query_row/test_query_row.tsx @@ -140,7 +140,13 @@ export const TestQueryRow: React.FC = ({ )} {testQueryWarning && ( - + )} {showTable && testQueryPreview && ( diff --git a/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/expression.tsx b/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/expression.tsx index 7d29cc3cd6df2..514da224a699f 100644 --- a/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/expression.tsx +++ b/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/expression.tsx @@ -170,7 +170,7 @@ export const IndexThresholdRuleTypeExpression: React.FunctionComponent< {hasExpressionErrors ? ( - + ) : null} diff --git a/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/visualization.tsx b/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/visualization.tsx index 445ba67f23d47..d8d4bbcb87199 100644 --- a/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/visualization.tsx +++ b/x-pack/platform/plugins/shared/stack_alerts/public/rule_types/threshold/visualization.tsx @@ -216,6 +216,7 @@ export const ThresholdVisualization: React.FunctionComponent = ({ = ({ ) : ( = ({ readOnly, isPfxEnabled = {hasInitialCA && ( <> - + )} diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/cases_webhook/webhook_params.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/cases_webhook/webhook_params.tsx index b9c48f908cb69..d46853e198991 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/cases_webhook/webhook_params.tsx +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/cases_webhook/webhook_params.tsx @@ -243,6 +243,7 @@ const WebhookParamsFields: React.FunctionComponent + ) : ( - + {i18n.EMPTY_MAPPING_WARNING_DESC} ); diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/tines/tines_params.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/tines/tines_params.tsx index 1bc91bc8914a7..fec83008625c2 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/tines/tines_params.tsx +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/tines/tines_params.tsx @@ -287,6 +287,7 @@ const TinesParamsFields: React.FunctionComponent + {i18n.translate('xpack.streams.samplePreviewTable.unknownStatus', { defaultMessage: "Couldn't simulate changes due to a lack of indexed documents with this field", @@ -98,6 +98,7 @@ const SamplePreviewTableContent = ({ const formattedError = error && getFormattedError(error); return ( {isUnsupported && (

      {getConfirmDeletionModalText(numIdsToDelete, singleTitle, multipleTitle)}

      {showWarningText && ( - {warningText}} color="warning" iconType="warning" /> + {warningText}} color="warning" iconType="warning" /> )} ); diff --git a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/components/rules_delete_modal_confirmation.tsx b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/components/rules_delete_modal_confirmation.tsx index e7b0d7c453fca..03f52cd939bce 100644 --- a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/components/rules_delete_modal_confirmation.tsx +++ b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/components/rules_delete_modal_confirmation.tsx @@ -40,7 +40,7 @@ export const RulesDeleteModalConfirmation = ({ >

      {confirmModalText}

      {showWarningText && ( - {warningText}} color="warning" iconType="warning" /> + {warningText}} color="warning" iconType="warning" /> )} ); diff --git a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx index 1e860b226358f..1dfda1ebb01f1 100644 --- a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx +++ b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx @@ -600,7 +600,7 @@ export const ActionTypeForm = ({ {warning ? ( <> - + ) : null} diff --git a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_inline.tsx b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_inline.tsx index 72e022f460c20..c543054d24056 100644 --- a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_inline.tsx +++ b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_inline.tsx @@ -237,7 +237,7 @@ export const AddConnectorInline = ({ /> ) ) : ( - +

      = ({ {showFormErrors && ( <> = ({ {showFormErrors && ( <> - + ) : null} diff --git a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/test_connector_form.tsx b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/test_connector_form.tsx index 67a7728ce31c8..2a017128cb3ea 100644 --- a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/test_connector_form.tsx +++ b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/test_connector_form.tsx @@ -117,7 +117,7 @@ export const TestConnectorForm = ({ <> {executeEnabled ? null : ( <> - +

      = ({ = ({ = ({ ( {hasExceedLogs && ( = ({ @@ -313,6 +314,7 @@ export const IndexSourceConfigurationForm: React.FC diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx index 9f1beb3c77669..88be4bc0906fa 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx @@ -17,7 +17,7 @@ interface Props { } const RECT_ANNOTATION_TITLE = i18n.translate( - 'observabilityAlertDetails.alertActiveTimeRangeAnnotation.detailsTooltip', + 'app_not_found_in_i18nrc.alertActiveTimeRangeAnnotation.detailsTooltip', { defaultMessage: 'Active', } diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx index 4579bc6976b9c..455d5695c23df 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx @@ -18,12 +18,9 @@ interface Props { id: string; } -const ANNOTATION_TITLE = i18n.translate( - 'observabilityAlertDetails.alertAnnotation.detailsTooltip', - { - defaultMessage: 'Alert started', - } -); +const ANNOTATION_TITLE = i18n.translate('app_not_found_in_i18nrc.alertAnnotation.detailsTooltip', { + defaultMessage: 'Alert started', +}); export function AlertAnnotation({ alertStart, color, dateFormat, id }: Props) { return ( diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx index ed2ad17d8d81a..25e974360bf50 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx @@ -16,7 +16,7 @@ interface Props { } const ANNOTATION_TITLE = i18n.translate( - 'observabilityAlertDetails.alertThresholdAnnotation.detailsTooltip', + 'app_not_found_in_i18nrc.alertThresholdAnnotation.detailsTooltip', { defaultMessage: 'Alert started', } diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx index 8294c4ee04098..2fdffcb3ade3e 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx @@ -16,7 +16,7 @@ interface Props { } const RECT_ANNOTATION_TITLE = i18n.translate( - 'observabilityAlertDetails.alertThresholdTimeRangeRect.detailsTooltip', + 'app_not_found_in_i18nrc.alertThresholdTimeRangeRect.detailsTooltip', { defaultMessage: 'Threshold', } diff --git a/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx b/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx index 47f2ea042837e..d0d6ce6e262d9 100644 --- a/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx +++ b/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx @@ -104,7 +104,7 @@ const AlertsGroupingInternal = ( groupPanelRenderer: renderGroupPanel, getGroupStats, unit: (totalCount) => - i18n.translate('alertsGrouping.unit', { + i18n.translate('app_not_found_in_i18nrc.unit', { values: { totalCount }, defaultMessage: `{totalCount, plural, =1 {alert} other {alerts}}`, }), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx index 3ea2146acdd24..b77948ae3d33b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiHealth, EuiSpacer, EuiSuperSelect, EuiText } from '@elastic/eui'; import { getSeverityColor } from '../../../../../common/anomaly_detection'; @@ -29,6 +30,9 @@ interface Props { export function SelectAnomalySeverity({ onChange, value }: Props) { return ( ({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx index 2b4f0c4e354c6..94da630770f62 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx @@ -223,6 +223,9 @@ export function TransactionDurationRuleType(props: Props) { })} > { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx index 2d7bb9aab2662..9149a68f921af 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx @@ -76,6 +76,7 @@ export function AlertDetailsAppSection({ rule, alert, timeZone }: AlertDetailsAp if (!from || !to) { return ( serviceNavigator.navigate({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx index b049f58c62a83..cb50e62454258 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx @@ -9,6 +9,7 @@ import type { IndicesDataStream } from '@elastic/elasticsearch/lib/api/types'; import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBadge, EuiBasicTable, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; +import { i18n } from '@kbn/i18n'; import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useDiagnosticsContext } from './context/use_diagnostics'; @@ -20,7 +21,10 @@ export function DiagnosticsDataStreams() { return ( <> - This section shows the APM data streams and their underlying index template. + {i18n.translate('xpack.apm.diagnosticsDataStreams.thisSectionShowsTheTextLabel', { + defaultMessage: + 'This section shows the APM data streams and their underlying index template.', + })} @@ -43,12 +47,18 @@ function DataStreamsTable({ data }: { data?: DiagnosticsBundle }) { return indexTemplate?.exists && !indexTemplate?.isNonStandard ? ( <> {templateName}  - OK + + {i18n.translate('xpack.apm.columns.okBadgeLabel', { defaultMessage: 'OK' })} + ) : ( <> {templateName}  - Non-standard + + {i18n.translate('xpack.apm.columns.nonstandardBadgeLabel', { + defaultMessage: 'Non-standard', + })} + ); }, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx index bdeead278986d..47bcf1f42b783 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx @@ -6,6 +6,7 @@ */ import React, { useState } from 'react'; +import { i18n } from '@kbn/i18n'; import { EuiButton, EuiCard, @@ -44,14 +45,19 @@ function ExportCard() { } - title="Export" + title={i18n.translate('xpack.apm.exportCard.euiCard.exportLabel', { + defaultMessage: 'Export', + })} description="Export the diagnostics report in order to provide it to Elastic Support" footer={

      { if (!diagnosticsBundle) { return; @@ -69,7 +75,7 @@ function ExportCard() { link.click(); }} > - Export + {i18n.translate('xpack.apm.exportCard.exportButtonLabel', { defaultMessage: 'Export' })}
      } @@ -88,7 +94,9 @@ function ImportCard() { return ( } - title="Import diagnostics report" + title={i18n.translate('xpack.apm.importCard.euiCard.importDiagnosticsReportLabel', { + defaultMessage: 'Import diagnostics report', + })} description={ isImported ? 'Diagnostics report was imported' @@ -102,14 +110,19 @@ function ImportCard() { onClick={() => setImportedDiagnosticsBundle(undefined)} color="danger" > - Remove report + {i18n.translate('xpack.apm.importCard.removeReportButtonLabel', { + defaultMessage: 'Remove report', + })} ) : ( <> {!importStatus.isValid && ( <> - - The uploaded file could not be parsed: {importStatus.errorMessage} + + {i18n.translate('xpack.apm.importCard.theUploadedFileCouldCallOutLabel', { + defaultMessage: 'The uploaded file could not be parsed:', + })} + {importStatus.errorMessage} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx index c44a93d93d0f7..c743a3f3baadd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx @@ -205,14 +205,20 @@ function TemplateDescription() { if (isImported) { return ( setImportedDiagnosticsBundle(undefined)} > - Clear bundle + {i18n.translate('xpack.apm.templateDescription.clearBundleButtonLabel', { + defaultMessage: 'Clear bundle', + })} ); @@ -230,7 +236,7 @@ function RefreshButton() { fill onClick={refetch} > - Refresh + {i18n.translate('xpack.apm.refreshButton.refreshButtonLabel', { defaultMessage: 'Refresh' })} ); } diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx index fe6d1f99a9367..11bb4282575b3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx @@ -8,6 +8,7 @@ import { EuiLink, EuiLoadingElastic } from '@elastic/eui'; import { EuiBadge, EuiSpacer, EuiText, EuiTitle, EuiToolTip } from '@elastic/eui'; import React from 'react'; +import { i18n } from '@kbn/i18n'; import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useApmRouter } from '../../../hooks/use_apm_router'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; @@ -26,7 +27,13 @@ export function DiagnosticsIndexPatternSettings() { const indexTemplatesByIndexPattern = diagnosticsBundle?.indexTemplatesByIndexPattern; if (!indexTemplatesByIndexPattern || indexTemplatesByIndexPattern?.length === 0) { - return No settings to display; + return ( + + {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.noSettingsToDisplayTextLabel', { + defaultMessage: 'No settings to display', + })} + + ); } const elms = indexTemplatesByIndexPattern.map(({ indexPattern, indexTemplates }) => { @@ -36,7 +43,7 @@ export function DiagnosticsIndexPatternSettings() {

      {indexPattern}

      - {!indexTemplates?.length && No matching index templates} + {!indexTemplates?.length && {i18n.translate('xpack.apm.elms.em.noMatchingIndexTemplatesLabel', { defaultMessage: 'No matching index templates' })}} {indexTemplates?.map(({ templateName, templateIndexPatterns, priority, isNonStandard }) => { const text = priority @@ -64,16 +71,14 @@ export function DiagnosticsIndexPatternSettings() { return ( <> - This section lists the index patterns specified in{' '} + {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.thisSectionListsTheTextLabel', { defaultMessage: 'This section lists the index patterns specified in' })}{' '} - APM Index Settings - {' '} - and which index templates they match. The priority and index pattern of each index template - can be seen by hovering over the item. - + {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.apmIndexSettingsLinkLabel', { defaultMessage: 'APM Index Settings' })}{' '} + {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.andWhichIndexTemplatesTextLabel', { defaultMessage: 'and which index templates they match. The priority and index pattern of each index template + can be seen by hovering over the item.' })} {elms} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx index d40f875952e78..1a870a618f679 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx @@ -9,6 +9,7 @@ import { EuiCallOut, EuiLoadingElastic } from '@elastic/eui'; import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBadge, EuiBasicTable, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; +import { i18n } from '@kbn/i18n'; import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { useDiagnosticsContext } from './context/use_diagnostics'; @@ -35,14 +36,30 @@ export function DiagnosticsIndexTemplates() { field: 'status', render: (_, { exists, isNonStandard }) => { if (isNonStandard) { - return Non standard; + return ( + + {i18n.translate('xpack.apm.columns.nonStandardBadgeLabel', { + defaultMessage: 'Non standard', + })} + + ); } if (!exists) { - return Not found; + return ( + + {i18n.translate('xpack.apm.columns.notFoundBadgeLabel', { + defaultMessage: 'Not found', + })} + + ); } - return OK; + return ( + + {i18n.translate('xpack.apm.columns.okBadgeLabel', { defaultMessage: 'OK' })} + + ); }, truncateText: true, }, @@ -52,7 +69,10 @@ export function DiagnosticsIndexTemplates() { <> - This section lists the names of the default APM Index Templates and whether it exists or not + {i18n.translate('xpack.apm.diagnosticsIndexTemplates.thisSectionListsTheTextLabel', { + defaultMessage: + 'This section lists the names of the default APM Index Templates and whether it exists or not', + })} @@ -82,8 +102,21 @@ function NonStandardIndexTemplateCalout({ return ( <> - - The following index templates do not follow the recommended naming scheme:{' '} + + {i18n.translate( + 'xpack.apm.nonStandardIndexTemplateCalout.theFollowingIndexTemplatesCallOutLabel', + { + defaultMessage: + 'The following index templates do not follow the recommended naming scheme:', + } + )}{' '} {nonStandardIndexTemplates.map(({ name }) => ( {name} ))} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx index ed92664b3dc36..4dc5f8469c4eb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBasicTable, @@ -106,9 +107,8 @@ export function DiagnosticsIndices() { return ( <> - This section shows the concrete indices backing the data streams, and highlights mapping - issues and missing ingest pipelines. - + {i18n.translate('xpack.apm.diagnosticsIndices.thisSectionShowsTheTextLabel', { defaultMessage: 'This section shows the concrete indices backing the data streams, and highlights mapping + issues and missing ingest pipelines.' })} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx index 14ae368b4071d..74abd6badecde 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import { EuiLink } from '@elastic/eui'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; @@ -35,7 +36,9 @@ export function ApmIntegrationPackageStatus() { data-test-subj="apmApmIntegrationPackageStatusGoToApmIntegrationLink" href={basePath.prepend('/app/integrations/detail/apm/overview')} > - Go to APM Integration + {i18n.translate('xpack.apm.apmIntegrationPackageStatus.goToAPMIntegrationLinkLabel', { + defaultMessage: 'Go to APM Integration', + })} ) : null} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx index c5569bc68be97..af420656b829b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import { EuiLink } from '@elastic/eui'; import { useApmParams } from '../../../../hooks/use_apm_params'; import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; @@ -26,12 +27,16 @@ export function DataStreamsStatus() { return ( - Data streams + {i18n.translate('xpack.apm.dataStreamsStatus.tabStatus.dataStreamsLabel', { + defaultMessage: 'Data streams', + })} - See details + {i18n.translate('xpack.apm.dataStreamsStatus.seeDetailsLinkLabel', { + defaultMessage: 'See details', + })} ); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx index 73dde1bbc8aec..bb52e6ccf897f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import { EuiFlexGroup, EuiCallOut, EuiDescriptionList, EuiSpacer } from '@elastic/eui'; import { isCCSRemoteIndexName } from '@kbn/es-query'; @@ -51,10 +52,15 @@ export function DiagnosticsSummary() { function CrossClusterSearchCallout() { return ( - - The APM index settings is targetting remote clusters. Please note that this is not currently - supported by the Diagnostics Tool and functionality will therefore be limited. - + + {i18n.translate('xpack.apm.crossClusterSearchCallout.theAPMIndexSettingsCallOutLabel', { defaultMessage: 'The APM index settings is targetting remote clusters. Please note that this is not currently + supported by the Diagnostics Tool and functionality will therefore be limited.' })} ); } @@ -69,9 +75,8 @@ function PrivilegesCallout({ diagnosticsBundle }: { diagnosticsBundle: Diagnosti return ( <> - - Not all features are available due to missing privileges. -
      + + {i18n.translate('xpack.apm.privilegesCallout.notAllFeaturesAreCallOutLabel', { defaultMessage: 'Not all features are available due to missing privileges.' })}

      - Index templates + {i18n.translate('xpack.apm.indexTemplatesStatus.tabStatus.indexTemplatesLabel', { + defaultMessage: 'Index templates', + })} - See details + {i18n.translate('xpack.apm.indexTemplatesStatus.seeDetailsLinkLabel', { + defaultMessage: 'See details', + })} ); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx index 6ea30a4b9bcf1..189fd5a65635a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import { EuiLink } from '@elastic/eui'; import { isEmpty } from 'lodash'; import { useApmParams } from '../../../../hooks/use_apm_params'; @@ -26,12 +27,16 @@ export function FieldMappingStatus() { return ( - Indices + {i18n.translate('xpack.apm.fieldMappingStatus.tabStatus.indicesLabel', { + defaultMessage: 'Indices', + })} - See details + {i18n.translate('xpack.apm.fieldMappingStatus.seeDetailsLinkLabel', { + defaultMessage: 'See details', + })} ); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx index 26a46934f4a2e..b0c7dacd5be10 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import { EuiBadge, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; export function TabStatus({ @@ -27,9 +28,15 @@ export function TabStatus({ {isLoading ? ( - ) : isOk ? ( - OK + + {i18n.translate('xpack.apm.tabStatus.okBadgeLabel', { defaultMessage: 'OK' })} + ) : ( - Warning + + {i18n.translate('xpack.apm.tabStatus.warningBadgeLabel', { + defaultMessage: 'Warning', + })} + )}
      diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/index.tsx index 16d2ba2a82c98..9048ed202d0ba 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/index.tsx @@ -33,6 +33,7 @@ export function Metrics() { if (!hasDashboardFile && !isElasticAgentName(agentName ?? '')) { return ( {isAggregatedData ? ( - $ pip install elastic-apm + {i18n.translate( + 'xpack.apm.createDjangoAgentInstructions.PipInstallElasticapmCodeBlockLabel', + { defaultMessage: '$ pip install elastic-apm' } + )} ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx index ef3cc1b7493b4..9035233777633 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx @@ -44,7 +44,10 @@ export const createFlaskAgentInstructions = (commonOptions: AgentInstructions): defaultMessage: 'Copy the code to install the APM agent for Flask', })} > - $ pip install elastic-apm[flask] + {i18n.translate( + 'xpack.apm.createFlaskAgentInstructions.PipInstallElasticapmflaskCodeBlockLabel', + { defaultMessage: '$ pip install elastic-apm[flask]' } + )} ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx index e6c7ce410c297..7c2f4b130a037 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx @@ -57,7 +57,10 @@ func main() { defaultMessage: 'Copy the code to install the APM agent for Go', })} > - go get go.elastic.co/apm + {i18n.translate( + 'xpack.apm.createGoAgentInstructions.goGetGoelasticcoapmCodeBlockLabel', + { defaultMessage: 'go get go.elastic.co/apm' } + )} ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx index dede39512b125..2d3a4c7ca7cb8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx @@ -45,7 +45,10 @@ export const createNodeAgentInstructions = (commonOptions: AgentInstructions): E defaultMessage: 'Copy the code to install the APM agent for Node.js', })} > - npm install elastic-apm-node --save + {i18n.translate( + 'xpack.apm.createNodeAgentInstructions.npmInstallElasticapmnodesaveCodeBlockLabel', + { defaultMessage: 'npm install elastic-apm-node --save' } + )} ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx index 2bc6f39676a8b..aaa85f490f99c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx @@ -60,7 +60,10 @@ export const createPhpAgentInstructions = (commonOptions: AgentInstructions): Eu defaultMessage: 'Copy the code to install the APM agent for PHP', })} > - apk add --allow-untrusted <package-file>.apk + {i18n.translate( + 'xpack.apm.createPhpAgentInstructions.apkAddallowuntrustedpackagefileapkCodeBlockLabel', + { defaultMessage: 'apk add --allow-untrusted .apk' } + )} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx index 2268bdb155e5a..7ba556ec65a94 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx @@ -71,7 +71,9 @@ export const createRackAgentInstructions = (commonOptions: AgentInstructions): E defaultMessage: 'Copy the code to install the APM agent for Rack', })} > - gem 'elastic-apm' + {i18n.translate('xpack.apm.createRackAgentInstructions.gemelasticapmCodeBlockLabel', { + defaultMessage: "gem 'elastic-apm'", + })} ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx index 1cecae9a7fb19..5d22e23e12c98 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx @@ -44,7 +44,9 @@ export const createRailsAgentInstructions = (commonOptions: AgentInstructions): defaultMessage: 'Copy the code to install the APM agent for Ruby on Rails', })} > - gem 'elastic-apm' + {i18n.translate('xpack.apm.createRailsAgentInstructions.gemelasticapmCodeBlockLabel', { + defaultMessage: "gem 'elastic-apm'", + })} ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx index 9cb1a55e1ac2a..57f7ac935ad47 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx @@ -23,6 +23,9 @@ export function EditDashboard({ return ( <> {emptyButton ? ( {isAllOptionSelected && ( ( setAgentKeyBody((state) => ({ @@ -184,7 +187,10 @@ export function CreateAgentKeyFlyout({ onCancel, onSuccess, onError }: Props) { > setAgentKeyBody((state) => ({ @@ -202,7 +208,13 @@ export function CreateAgentKeyFlyout({ onCancel, onSuccess, onError }: Props) { - + {i18n.translate('xpack.apm.settings.agentKeys.createKeyFlyout.cancelButton', { defaultMessage: 'Cancel', })} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx index 097cf5970509c..3178d2c022077 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx @@ -118,7 +118,9 @@ export function AddEnvironments({ currentEnvironments, onCreateJobSuccess, onCan {i18n.translate( diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx index 87fef0bb11233..169c6641a4c0c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx @@ -166,6 +166,7 @@ export function ApmIndices() { - + {i18n.translate('xpack.apm.settings.apmIndices.cancelButton', { defaultMessage: 'Cancel', })} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx index cdd05bc988bc9..b4f7d1a7f1a10 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx @@ -24,6 +24,9 @@ export function DeleteButton({ onDelete, customLinkId }: Props) { return ( {waterfall.exceedsMax && ( - + {i18n.translate( 'xpack.apm.transactionDetails.spanFlyout.compositeExampleWarning', { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/default_discovery_rule.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/default_discovery_rule.tsx index 83ec46c8928fd..e2f79196ab291 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/default_discovery_rule.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/default_discovery_rule.tsx @@ -7,16 +7,25 @@ import { EuiText, EuiFlexGroup, EuiFlexItem, EuiPanel, EuiBadge } from '@elastic/eui'; import React from 'react'; +import { i18n } from '@kbn/i18n'; export function DefaultDiscoveryRule() { return ( - Exclude + + {i18n.translate('xpack.apm.defaultDiscoveryRule.excludeBadgeLabel', { + defaultMessage: 'Exclude', + })} + - Everything else + + {i18n.translate('xpack.apm.defaultDiscoveryRule.everythingElseTextLabel', { + defaultMessage: 'Everything else', + })} + diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx index 8eb868b83611b..557e367ead787 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx @@ -99,6 +99,10 @@ export function DiscoveryRule({ ({ text: item.operation.label, @@ -85,6 +88,9 @@ export function EditDiscoveryRule({ }} > - - Cancel + + {i18n.translate('xpack.apm.editDiscoveryRule.cancelButtonEmptyLabel', { + defaultMessage: 'Cancel', + })} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx index 1258981f8ec57..9e9a84e909e55 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx @@ -88,6 +88,7 @@ export function RuntimeAttachment({ {showUnsavedWarning && ( <> { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx index 73f9194b68d3d..02f40f8b4c64e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx @@ -80,6 +80,9 @@ export function AnalyzeDataButton() { })} > ) : ( { dismissCallout(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx index 0ef4c65dab200..b20f84785f979 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx @@ -144,6 +144,10 @@ function BottomSection({ { diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx index ad46a12e4c34b..064f19075002c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx @@ -110,7 +110,10 @@ export function OpenTelemetryInstructions({ apmServerUrl, secretToken }: Props) target="_blank" href="https://github.com/open-telemetry/opentelemetry-specification/blob/v1.10.0/specification/protocol/exporter.md" > - OTEL_EXPORTER_OTLP_ENDPOINT + {i18n.translate( + 'xpack.apm.openTelemetryInstructions.otelexporterotlpendpointLinkLabel', + { defaultMessage: 'OTEL_EXPORTER_OTLP_ENDPOINT' } + )} ), otelExporterOtlpHeaders: ( @@ -119,7 +122,10 @@ export function OpenTelemetryInstructions({ apmServerUrl, secretToken }: Props) target="_blank" href="https://github.com/open-telemetry/opentelemetry-specification/blob/v1.10.0/specification/protocol/exporter.md" > - OTEL_EXPORTER_OTLP_HEADERS + {i18n.translate( + 'xpack.apm.openTelemetryInstructions.otelexporterotlpheadersLinkLabel', + { defaultMessage: 'OTEL_EXPORTER_OTLP_HEADERS' } + )} ), otelResourceAttributes: ( @@ -128,7 +134,10 @@ export function OpenTelemetryInstructions({ apmServerUrl, secretToken }: Props) target="_blank" href="https://github.com/open-telemetry/opentelemetry-specification/blob/v1.10.0/specification/resource/sdk.md" > - OTEL_RESOURCE_ATTRIBUTES + {i18n.translate( + 'xpack.apm.openTelemetryInstructions.otelresourceattributesLinkLabel', + { defaultMessage: 'OTEL_RESOURCE_ATTRIBUTES' } + )} ), }} diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx index 386aeff48535c..e6f7bd82e85d1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx @@ -251,6 +251,9 @@ const AddCriterionButton = ({ addCriterion }: { addCriterion: () => void }) => { return (
      = ({
      {criterionFieldTitle} 0} @@ -255,6 +258,9 @@ export const Criterion: React.FC = ({ 0 diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx index d9a521fd352da..cdf89252c27d0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx @@ -141,6 +141,7 @@ export const SourceStatusWrapper: FC> = ({ children }
      ) : hasFailedLoading ? ( - + {i18n.translate('xpack.infra.logs.alertFlyout.groupByOptimizationWarning', { defaultMessage: 'When setting a "group by" we highly recommend using the "{comparator}" comparator for your threshold. This can lead to significant performance improvements.', diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx index 8e15f5838d0ee..b3af0672ada8b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx @@ -81,7 +81,11 @@ export const Threshold: React.FC = ({ comparator, value, updateThreshold, {popoverTitle} - + = ({ criteria, updateType }) => { showTab('profiling')} flush="both" diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/services.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/services.tsx index de86d2c81d401..15e671802d246 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/services.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/services.tsx @@ -90,6 +90,7 @@ export const ServicesContent = ({ > {error ? ( = ({ /> {setupStatus.reasons.map((errorMessage, i) => ( - + {errorMessage} ))} diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx index 072f8eb274110..b3073b389e170 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx @@ -91,6 +91,10 @@ export const LogAnalysisModuleListCard: React.FC<{ <> diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx index 88276808760ee..a484398f310d3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx @@ -16,6 +16,7 @@ import { } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import type { FC, PropsWithChildren } from 'react'; +import { i18n } from '@kbn/i18n'; import React from 'react'; import { LogEntryCategoriesSetupView } from './log_entry_categories_setup_view'; import { LogEntryRateSetupView } from './log_entry_rate_setup_view'; @@ -98,6 +99,10 @@ const LogAnalysisSetupFlyoutSubPage: FC< {onViewModuleList ? ( { <> {props.hasHostJobs && ( @@ -374,6 +378,10 @@ const CreateJobTab = (props: CreateJobTab) => { <> {props.hasK8sJobs && ( diff --git a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx index 6583e27bcecf9..28d78db359265 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx @@ -309,7 +309,12 @@ export const JobSetupScreen = (props: Props) => { {setupStatus.reasons.map((errorMessage, i) => ( - + {errorMessage} diff --git a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx index 5d8bb12dbe853..70ee0d73c8aad 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx @@ -102,7 +102,13 @@ export const UpsertViewModal = ({ - + { return ( ,
      0 ? ( <> - +
        {errors.map((error, errorIndex) => (
      • {error}
      • diff --git a/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx b/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx index 90bb61cc42bd7..c1876b71e6766 100644 --- a/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx +++ b/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx @@ -62,6 +62,7 @@ export function PageAttachmentChildren({ if (!isInternalUrl(href)) { return ( > = [ })} {ruleCriteria.length > 1 && ( {paramsError && !triggerResetDataView ? ( - +

        {i18n.translate('xpack.observability.customThreshold.rule.alertFlyout.error.message', { defaultMessage: 'Error fetching search source', diff --git a/x-pack/solutions/observability/plugins/observability/public/pages/alert_details/components/stale_alert.tsx b/x-pack/solutions/observability/plugins/observability/public/pages/alert_details/components/stale_alert.tsx index e7ec7037bde49..8373d23d00dfd 100644 --- a/x-pack/solutions/observability/plugins/observability/public/pages/alert_details/components/stale_alert.tsx +++ b/x-pack/solutions/observability/plugins/observability/public/pages/alert_details/components/stale_alert.tsx @@ -86,6 +86,7 @@ function StaleAlert({ <> {isAlertStale?.isStale && ( createExploratoryViewUrl: jest.fn(), getAppDataView: jest.fn(), - ExploratoryViewEmbeddable: () =>

        Embeddable exploratory view
        , + ExploratoryViewEmbeddable: () => ( +
        + {i18n.translate('xpack.observability.render.div.embeddableExploratoryViewLabel', { + defaultMessage: 'Embeddable exploratory view', + })} +
        + ), }, }} > diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx index 90395a31ae3ef..aac82c95c311b 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx @@ -61,7 +61,7 @@ function getImpactProperties({ if (impact === ChangeListItemImpact.high) { return { color: theme.colors.danger, - label: i18n.translate('xpack.observabilityAiAssistant.changesList.dotImpactHigh', { + label: i18n.translate('xpack.observability.changesList.dotImpactHigh', { defaultMessage: 'High', }), }; @@ -70,7 +70,7 @@ function getImpactProperties({ if (impact === ChangeListItemImpact.medium) { return { color: theme.colors.warning, - label: i18n.translate('xpack.observabilityAiAssistant.changesList.dotImpactMedium', { + label: i18n.translate('xpack.observability.changesList.dotImpactMedium', { defaultMessage: 'Medium', }), }; @@ -78,7 +78,7 @@ function getImpactProperties({ return { color: theme.colors.darkShade, - label: i18n.translate('xpack.observabilityAiAssistant.changesList.dotImpactLow', { + label: i18n.translate('xpack.observability.changesList.dotImpactLow', { defaultMessage: 'Low', }), }; @@ -107,7 +107,7 @@ function getColumns({ white-space: nowrap; `} > - {i18n.translate('xpack.observabilityAiAssistant.changesList.noChangesDetected', { + {i18n.translate('xpack.observability.changesList.noChangesDetected', { defaultMessage: 'No changes detected', })} @@ -155,7 +155,7 @@ function getColumns({ }, }, { - name: i18n.translate('xpack.observabilityAiAssistant.changesList.trendColumnTitle', { + name: i18n.translate('xpack.observability.changesList.trendColumnTitle', { defaultMessage: 'Trend', }), sortable: false, @@ -186,7 +186,7 @@ function getColumns({ }, }, { - name: i18n.translate('xpack.observabilityAiAssistant.changesList.labelColumnTitle', { + name: i18n.translate('xpack.observability.changesList.labelColumnTitle', { defaultMessage: 'Label', }), width: '100%', diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx index 5174a2e115a07..88a2f37473899 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx @@ -86,12 +86,9 @@ export function NavControl({ isServerless }: { isServerless?: boolean }) { return hasBeenOpened ? service.start({ signal }).catch((error) => { notifications.toasts.addError(error, { - title: i18n.translate( - 'xpack.observabilityAiAssistant.navControl.initFailureErrorTitle', - { - defaultMessage: 'Failed to initialize Observability AI Assistant', - } - ), + title: i18n.translate('xpack.observability.navControl.initFailureErrorTitle', { + defaultMessage: 'Failed to initialize Observability AI Assistant', + }), }); setHasBeenOpened(false); @@ -146,16 +143,14 @@ export function NavControl({ isServerless }: { isServerless?: boolean }) { return ( <> { service.conversations.openNewConversation({ @@ -167,7 +162,7 @@ export function NavControl({ isServerless }: { isServerless?: boolean }) { iconType={AssistantIcon} isLoading={chatService.loading} > - {i18n.translate('xpack.observabilityAiAssistant.navControl.assistantNavLink', { + {i18n.translate('xpack.observability.navControl.assistantNavLink', { defaultMessage: 'AI Assistant', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx index 8a54ad14d8d41..503ddf6208a22 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx @@ -50,7 +50,7 @@ export function RootCauseAnalysisCallout({

        - {i18n.translate('xpack.observabilityAiAssistant.rca.calloutTitle', { + {i18n.translate('xpack.observability.rca.calloutTitle', { defaultMessage: 'AI-assisted root cause analysis', })}

        @@ -59,7 +59,7 @@ export function RootCauseAnalysisCallout({ - {i18n.translate('xpack.observabilityAiAssistant.rca.calloutText', { + {i18n.translate('xpack.observability.rca.calloutText', { defaultMessage: `Start an automated investigation that will analyze log patterns, SLOs and alerts for entities and provide an evidence- based root cause analysis of issues in your system.`, @@ -82,7 +82,7 @@ export function RootCauseAnalysisCallout({ /> {i18n.translate( - 'xpack.observabilityAiAssistant.rootCauseAnalysisCallout.keepAnalysisRunningInFormLabelLabel', + 'xpack.observability.rootCauseAnalysisCallout.keepAnalysisRunningInFormLabelLabel', { defaultMessage: 'Keep analysis running in background' } )} @@ -93,7 +93,7 @@ export function RootCauseAnalysisCallout({ fill onClick={onClick} > - {i18n.translate('xpack.observabilityAiAssistant.rca.calloutText', { + {i18n.translate('xpack.observability.rca.calloutText', { defaultMessage: 'Start analysis', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx index 55655ac5dde9a..812fca233c1b5 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx @@ -109,7 +109,7 @@ export function RootCauseAnalysisContainer({ }} iconType="crossInCircle" > - {i18n.translate('xpack.observabilityAiAssistant.rca.clearButtonLabel', { + {i18n.translate('xpack.observability.rca.clearButtonLabel', { defaultMessage: 'Clear', })} @@ -125,7 +125,7 @@ export function RootCauseAnalysisContainer({ }} iconType="refresh" > - {i18n.translate('xpack.observabilityAiAssistant.rca.restartButtonLabel', { + {i18n.translate('xpack.observability.rca.restartButtonLabel', { defaultMessage: 'Restart', })} @@ -151,7 +151,7 @@ export function RootCauseAnalysisContainer({ } else if (error) { elements.push( - {i18n.translate('xpack.observabilityAiAssistant.rca.analysisCompleted', { + {i18n.translate('xpack.observability.rca.analysisCompleted', { defaultMessage: 'Completed analysis', })} @@ -235,7 +235,7 @@ function getLoadingLabel(events?: RootCauseAnalysisEvent[]) { return ( - {i18n.translate('xpack.observabilityAiAssistant.rca.investigatingEntitiesTextLabel', { + {i18n.translate('xpack.observability.rca.investigatingEntitiesTextLabel', { defaultMessage: 'Investigating entities', })} @@ -260,13 +260,13 @@ function getLoadingLabel(events?: RootCauseAnalysisEvent[]) { } if (pendingToolCalls[0]?.function.name === RCA_END_PROCESS_TOOL_NAME) { - return i18n.translate('xpack.observabilityAiAssistant.rca.finalizingReport', { + return i18n.translate('xpack.observability.rca.finalizingReport', { defaultMessage: 'Finalizing report', }); } } - return i18n.translate('xpack.observabilityAiAssistant.rca.analysisLoadingLabel', { + return i18n.translate('xpack.observability.rca.analysisLoadingLabel', { defaultMessage: 'Thinking...', }); } @@ -274,7 +274,7 @@ function getLoadingLabel(events?: RootCauseAnalysisEvent[]) { function getToolResponseErrorItem(response: ToolErrorMessage['response']) { return (

        - {i18n.translate( - 'xpack.observabilityAiAssistant.rootCauseAnalysisEntityInvestigation.title', - { - defaultMessage: 'Investigation', - } - )} + {i18n.translate('xpack.observability.rootCauseAnalysisEntityInvestigation.title', { + defaultMessage: 'Investigation', + })}

        diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx index 2847fd9e28283..954c7a753042e 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx @@ -64,10 +64,9 @@ export function RootCauseAnalysisEntityLogPatternTable({ }, { field: 'pattern', - name: i18n.translate( - 'xpack.observabilityAiAssistant.rca.logPatternTable.messageColumnTitle', - { defaultMessage: 'Message' } - ), + name: i18n.translate('xpack.observability.rca.logPatternTable.messageColumnTitle', { + defaultMessage: 'Message', + }), render: (_, { regex, sample }) => { return ( { return ( @@ -108,10 +106,9 @@ export function RootCauseAnalysisEntityLogPatternTable({ }, { field: 'change', - name: i18n.translate( - 'xpack.observabilityAiAssistant.rca.logPatternTable.changeColumnTitle', - { defaultMessage: 'Change' } - ), + name: i18n.translate('xpack.observability.rca.logPatternTable.changeColumnTitle', { + defaultMessage: 'Change', + }), width: '128px', render: (_, { change }) => { return getChangeBadge(change); @@ -120,10 +117,9 @@ export function RootCauseAnalysisEntityLogPatternTable({ { field: 'timeseries', width: '128px', - name: i18n.translate( - 'xpack.observabilityAiAssistant.rca.logPatternTable.trendColumnTitle', - { defaultMessage: 'Trend' } - ), + name: i18n.translate('xpack.observability.rca.logPatternTable.trendColumnTitle', { + defaultMessage: 'Trend', + }), render: (_, { timeseries, change }) => { return ( {i18n.translate( - 'xpack.observabilityAiAssistant.rootCauseAnalysisEntityInvestigation.logPatternsTableTitle', + 'xpack.observability.rootCauseAnalysisEntityInvestigation.logPatternsTableTitle', { defaultMessage: 'Showing {count} of {total} log patterns', values: { @@ -197,12 +193,9 @@ export function RootCauseAnalysisEntityLogPatternTable({ }} /> - {i18n.translate( - 'xpack.observabilityAiAssistant.rca.logPatternTable.showUsualPatternsCheckbox', - { - defaultMessage: 'Show unremarkable patterns', - } - )} + {i18n.translate('xpack.observability.rca.logPatternTable.showUsualPatternsCheckbox', { + defaultMessage: 'Show unremarkable patterns', + })}
        diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx index ee00f568ca688..25228ebbdd676 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx @@ -42,7 +42,7 @@ export function RootCauseAnalysisObservationPanel({ `} >

        - {i18n.translate('xpack.observabilityAiAssistant.rca.observationPanelTitle', { + {i18n.translate('xpack.observability.rca.observationPanelTitle', { defaultMessage: 'Observations', })}

        diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx index cd793786eb6cb..ac5ff925a4cb2 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx @@ -28,7 +28,7 @@ export function RootCauseAnalysisReport({

        - {i18n.translate('xpack.observabilityAiAssistant.rootCauseAnalysisReport.title', { + {i18n.translate('xpack.observability.rootCauseAnalysisReport.title', { defaultMessage: 'Report', })}

        diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx index 7ef0b175b636d..93d522e0f2f1e 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx @@ -18,7 +18,7 @@ export function RootCauseAnalysisStopButton({ onClick }: { onClick: () => void } iconType="stopFilled" color="text" > - {i18n.translate('xpack.observabilityAiAssistant.rca.stopAnalysisButtonLabel', { + {i18n.translate('xpack.observability.rca.stopAnalysisButtonLabel', { defaultMessage: 'Stop', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx index e1ddd86c2017c..de816d6ed3980 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx @@ -15,10 +15,10 @@ export function TechnicalPreviewBadge() { label="E" iconType="beaker" color="hollow" - title={i18n.translate('xpack.observabilityAiAssistant.experimentalTitle', { + title={i18n.translate('xpack.observability.experimentalTitle', { defaultMessage: 'Technical preview', })} - tooltipContent={i18n.translate('xpack.observabilityAiAssistant.experimentalTooltip', { + tooltipContent={i18n.translate('xpack.observability.experimentalTooltip', { defaultMessage: 'This functionality is in technical preview and may be changed or removed completely in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx index 0c0c3d1dfb365..c28d1e97a849b 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx @@ -96,7 +96,7 @@ function Lens({ lens.navigateToPrefilledEditor(lensEmbeddableInput); }} > - {i18n.translate('xpack.observabilityAiAssistant.lensFunction.openInLens', { + {i18n.translate('xpack.observability.lensFunction.openInLens', { defaultMessage: 'Open in Lens', })} @@ -109,7 +109,7 @@ function Lens({ setIsSaveModalOpen(() => true); }} > - {i18n.translate('xpack.observabilityAiAssistant.lensFunction.save', { + {i18n.translate('xpack.observability.lensFunction.save', { defaultMessage: 'Save', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx index 244c1c428a92f..c65cb983ac58e 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx @@ -80,19 +80,13 @@ interface VisualizeESQLProps { function generateId() { return uuidv4(); } -const saveVisualizationLabel = i18n.translate( - 'xpack.observabilityAiAssistant.lensESQLFunction.save', - { - defaultMessage: 'Save visualization', - } -); +const saveVisualizationLabel = i18n.translate('xpack.observability.lensESQLFunction.save', { + defaultMessage: 'Save visualization', +}); -const editVisualizationLabel = i18n.translate( - 'xpack.observabilityAiAssistant.lensESQLFunction.edit', - { - defaultMessage: 'Edit visualization', - } -); +const editVisualizationLabel = i18n.translate('xpack.observability.lensESQLFunction.edit', { + defaultMessage: 'Edit visualization', +}); export function VisualizeESQL({ lens, @@ -245,7 +239,7 @@ export function VisualizeESQL({ {!!errorMessages?.length && ( <> - {i18n.translate('xpack.observabilityAiAssistant.lensESQLFunction.errorMessage', { + {i18n.translate('xpack.observability.lensESQLFunction.errorMessage', { defaultMessage: 'There were some errors in the generated query', })} @@ -273,13 +267,10 @@ export function VisualizeESQL({ diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx index 28bd0889301d5..a6e0a65ee366e 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx @@ -57,7 +57,7 @@ export class ObservabilityAIAssistantAppPlugin ): ObservabilityAIAssistantAppPublicSetup { coreSetup.application.register({ id: AI_ASSISTANT_APP_ID, - title: i18n.translate('xpack.observabilityAiAssistant.appTitle', { + title: i18n.translate('xpack.observability.appTitle', { defaultMessage: 'Observability AI Assistant', }), euiIconType: 'logoObservability', @@ -67,7 +67,7 @@ export class ObservabilityAIAssistantAppPlugin deepLinks: [ { id: 'conversations', - title: i18n.translate('xpack.observabilityAiAssistant.conversationsDeepLinkTitle', { + title: i18n.translate('xpack.observability.conversationsDeepLinkTitle', { defaultMessage: 'Conversations', }), path: '/conversations/new', diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx index f8578c034ddfe..2612e49cc3b7b 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx @@ -97,7 +97,7 @@ const ObsAIAssistantParamsFields: React.FunctionComponent< <> @@ -123,12 +123,9 @@ const ObsAIAssistantParamsFields: React.FunctionComponent< @@ -201,7 +195,7 @@ const ObsAIAssistantParamsFields: React.FunctionComponent< onClick={handleAddPrompt} > diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts index 5b2a8aa732130..039161387586b 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts @@ -8,36 +8,27 @@ import { i18n } from '@kbn/i18n'; export const CONNECTOR_DESC = i18n.translate( - 'xpack.observabilityAiAssistant.alertConnector.selectMessageText', + 'xpack.observability.alertConnector.selectMessageText', { defaultMessage: 'Send messages to Observability AI Assistant.', } ); export const CONNECTOR_TITLE = i18n.translate( - 'xpack.observabilityAiAssistant.alertConnector.connectorTypeTitle', + 'xpack.observability.alertConnector.connectorTypeTitle', { defaultMessage: 'ObsAIAssistant', } ); -export const CONNECTOR_REQUIRED = i18n.translate( - 'xpack.observabilityAiAssistant.requiredConnectorField', - { - defaultMessage: 'Connector is required.', - } -); +export const CONNECTOR_REQUIRED = i18n.translate('xpack.observability.requiredConnectorField', { + defaultMessage: 'Connector is required.', +}); -export const MESSAGE_REQUIRED = i18n.translate( - 'xpack.observabilityAiAssistant.requiredMessageTextField', - { - defaultMessage: 'Message is required.', - } -); +export const MESSAGE_REQUIRED = i18n.translate('xpack.observability.requiredMessageTextField', { + defaultMessage: 'Message is required.', +}); -export const STATUS_REQUIRED = i18n.translate( - 'xpack.observabilityAiAssistant.requiredStatusField', - { - defaultMessage: 'Status is required.', - } -); +export const STATUS_REQUIRED = i18n.translate('xpack.observability.requiredStatusField', { + defaultMessage: 'Status is required.', +}); diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts index 20c41faa72112..d79dc24986651 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / import expect from '@kbn/expect'; import type { RuleResponse } from '@kbn/alerting-plugin/common/routes/rule/response/types/v1'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts index 398ffc8fd5727..b058d0b398177 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / import expect from '@kbn/expect'; import moment from 'moment'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts index 0b6854f44c2c7..03542c864865f 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / import expect from '@kbn/expect'; import { EXECUTE_CONNECTOR_FUNCTION_NAME } from '@kbn/observability-ai-assistant-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts index e3751f0bb3cb9..406cd354dc2e1 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / import expect from '@kbn/expect'; import type { diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts index 3450af97aad57..a8c843223e6da 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / import expect from '@kbn/expect'; import { MessageRole } from '@kbn/observability-ai-assistant-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts index 3801b3873e8a8..14222e4730dcb 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / import expect from '@kbn/expect'; import { chatClient, esClient, synthtraceEsClients } from '../../services'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts index d122fe779819f..1bfed29ba495d 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / import expect from '@kbn/expect'; import { CONTEXT_FUNCTION_NAME, MessageRole } from '@kbn/observability-ai-assistant-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts index 5bd5c6200516f..a094e4ac4b1ae 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts @@ -129,7 +129,7 @@ export function getObsAIAssistantConnectorType( isSystemActionType: true, getKibanaPrivileges: () => CONNECTOR_PRIVILEGES, minimumLicenseRequired: 'enterprise', - name: i18n.translate('xpack.observabilityAiAssistant.alertConnector.title', { + name: i18n.translate('xpack.observability.alertConnector.title', { defaultMessage: 'Observability AI Assistant', }), supportedFeatureIds: [AlertingConnectorFeatureId], diff --git a/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts b/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts index 2572ef4fd9673..ec7b21b5a548e 100644 --- a/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts +++ b/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts @@ -25,7 +25,7 @@ export class ObservabilityLogsExplorerPlugin core: CoreSetup, _pluginsSetup: ObservabilityLogsExplorerSetupDeps ) { - const title = i18n.translate('xpack.observabilityLogsExplorer.appTitle', { + const title = i18n.translate('xpack.observability.appTitle', { defaultMessage: 'Logs explorer', }); diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx index bc0f8472c6fd6..d85990735a0ab 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx @@ -23,12 +23,9 @@ import type { } from '../plugin'; import { ObservabilityOnboardingFlow } from './observability_onboarding_flow'; -export const onBoardingTitle = i18n.translate( - 'xpack.observability_onboarding.breadcrumbs.onboarding', - { - defaultMessage: 'Onboarding', - } -); +export const onBoardingTitle = i18n.translate('xpack.observability.breadcrumbs.onboarding', { + defaultMessage: 'Onboarding', +}); export const breadcrumbsApp = { id: 'observabilityOnboarding', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx index bbd8b8aacf705..497458005acc3 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx @@ -43,12 +43,9 @@ export function CustomHeader({ euiIconType, logo, headlineCopy, captionCopy }: P restrictWidth > - {i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.button.returnButtonLabel', - { - defaultMessage: 'Return', - } - )} + {i18n.translate('xpack.observability.experimentalOnboardingFlow.button.returnButtonLabel', { + defaultMessage: 'Return', + })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx index 3f066f695a3d5..3359e578f125b 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx @@ -38,7 +38,7 @@ export function Header() {

        @@ -46,7 +46,7 @@ export function Header() { diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx index 6023e0eb3884e..e03c57be9c1b3 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx @@ -60,16 +60,13 @@ export const OnboardingFlowForm: FunctionComponent = () => { const applicationUseCaseOption: UseCaseOption = { id: 'application', label: i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.applicationLabel', + 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.applicationLabel', { defaultMessage: 'Application' } ), - description: i18n.translate( - 'xpack.observability_onboarding.onboardingFlowForm.applicationDescription', - { - defaultMessage: - 'Monitor the frontend and backend application that you have developed, set-up synthetic monitors', - } - ), + description: i18n.translate('xpack.observability.onboardingFlowForm.applicationDescription', { + defaultMessage: + 'Monitor the frontend and backend application that you have developed, set-up synthetic monitors', + }), logos: ['opentelemetry', 'java', 'ruby', 'dotnet'], }; @@ -77,39 +74,33 @@ export const OnboardingFlowForm: FunctionComponent = () => { { id: 'host', label: i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.hostLabel', + 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.hostLabel', { defaultMessage: 'Host' } ), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability_onboarding.onboardingFlowForm.hostDescription', { + ? i18n.translate('xpack.observability.onboardingFlowForm.hostDescription', { defaultMessage: 'Monitor your host and the services running on it, set-up SLO, get alerted, remediate performance issues', }) - : i18n.translate( - 'xpack.observability_onboarding.logsEssential.onboardingFlowForm.hostDescription', - { - defaultMessage: - 'Ingest and analyze logs on your host such as OS, service, application and other logs', - } - ), + : i18n.translate('xpack.observability.logsEssential.onboardingFlowForm.hostDescription', { + defaultMessage: + 'Ingest and analyze logs on your host such as OS, service, application and other logs', + }), logos: ['opentelemetry', 'apache', 'mysql'], }, { id: 'kubernetes', label: i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.kubernetesLabel', + 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.kubernetesLabel', { defaultMessage: 'Kubernetes' } ), description: metricsOnboardingEnabled - ? i18n.translate( - 'xpack.observability_onboarding.onboardingFlowForm.kubernetesDescription', - { - defaultMessage: - 'Observe your Kubernetes cluster, and your container workloads using logs, metrics, traces and profiling data', - } - ) + ? i18n.translate('xpack.observability.onboardingFlowForm.kubernetesDescription', { + defaultMessage: + 'Observe your Kubernetes cluster, and your container workloads using logs, metrics, traces and profiling data', + }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.onboardingFlowForm.kubernetesDescription', + 'xpack.observability.logsEssential.onboardingFlowForm.kubernetesDescription', { defaultMessage: 'Observe logs from your Kubernetes environments', } @@ -120,15 +111,12 @@ export const OnboardingFlowForm: FunctionComponent = () => { { id: 'cloud', label: i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.cloudLabel', + 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.cloudLabel', { defaultMessage: 'Cloud' } ), - description: i18n.translate( - 'xpack.observability_onboarding.onboardingFlowForm.cloudDescription', - { - defaultMessage: 'Ingest telemetry data from the Cloud for your applications and services', - } - ), + description: i18n.translate('xpack.observability.onboardingFlowForm.cloudDescription', { + defaultMessage: 'Ingest telemetry data from the Cloud for your applications and services', + }), logos: ['azure', 'aws', 'gcp'], }, ]; @@ -211,7 +199,7 @@ export const OnboardingFlowForm: FunctionComponent = () => { {i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.strong.startCollectingYourDataLabel', + 'xpack.observability.experimentalOnboardingFlow.strong.startCollectingYourDataLabel', { defaultMessage: 'What do you want to monitor?', } @@ -268,8 +256,8 @@ export const OnboardingFlowForm: FunctionComponent = () => { {option.showIntegrationsBadge && ( @@ -332,27 +320,27 @@ export const OnboardingFlowForm: FunctionComponent = () => { {searchParams.get('category') === 'kubernetes' ? i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.kubernetesPackagesTitle', + 'xpack.observability.experimentalOnboardingFlow.kubernetesPackagesTitle', { defaultMessage: 'Monitor your Kubernetes cluster using:', } ) : searchParams.get('category') === 'application' ? i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.applicationPackagesTitle', + 'xpack.observability.experimentalOnboardingFlow.applicationPackagesTitle', { defaultMessage: 'Monitor your Application using:', } ) : searchParams.get('category') === 'cloud' ? i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.cloudPackagesTitle', + 'xpack.observability.experimentalOnboardingFlow.cloudPackagesTitle', { defaultMessage: 'Select your Cloud provider:', } ) : i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.hostPackagesTitle', + 'xpack.observability.experimentalOnboardingFlow.hostPackagesTitle', { defaultMessage: 'Monitor your Host using:', } @@ -369,7 +357,7 @@ export const OnboardingFlowForm: FunctionComponent = () => { diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx index aebab032aa528..6c80b17b4961c 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx @@ -54,19 +54,16 @@ export function useCustomCards( id: 'firehose-quick-start', name: 'firehose-quick-start', type: 'virtual', - title: i18n.translate('xpack.observability_onboarding.packageList.uploadFileTitle', { + title: i18n.translate('xpack.observability.packageList.uploadFileTitle', { defaultMessage: 'AWS Firehose', }), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability_onboarding.packageList.uploadFileDescription', { + ? i18n.translate('xpack.observability.packageList.uploadFileDescription', { defaultMessage: 'Collect logs and metrics from Amazon Web Services (AWS).', }) - : i18n.translate( - 'xpack.observability_onboarding.logsEssential.packageList.uploadFileDescription', - { - defaultMessage: 'Collect logs from Amazon Web Services (AWS).', - } - ), + : i18n.translate('xpack.observability.logsEssential.packageList.uploadFileDescription', { + defaultMessage: 'Collect logs from Amazon Web Services (AWS).', + }), categories: ['observability'], icons: [ { @@ -86,27 +83,21 @@ export function useCustomCards( name: 'auto-detect-logs-virtual', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.autoDetectTitle', - { - defaultMessage: 'Elastic Agent: Logs & Metrics', - } - ) + ? i18n.translate('xpack.observability.useCustomCardsForCategory.autoDetectTitle', { + defaultMessage: 'Elastic Agent: Logs & Metrics', + }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.autoDetectTitle', + 'xpack.observability.logsEssential.useCustomCardsForCategory.autoDetectTitle', { defaultMessage: 'Elastic Agent: Logs', } ), description: metricsOnboardingEnabled - ? i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.autoDetectDescription', - { - defaultMessage: 'Scan your host for log files, metrics, auto-install integrations', - } - ) + ? i18n.translate('xpack.observability.useCustomCardsForCategory.autoDetectDescription', { + defaultMessage: 'Scan your host for log files, metrics, auto-install integrations', + }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.autoDetectDescription', + 'xpack.observability.logsEssential.useCustomCardsForCategory.autoDetectDescription', { defaultMessage: 'Scan your host for log files and auto-install integrations', } @@ -140,25 +131,22 @@ export function useCustomCards( name: 'custom-logs-virtual', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.logsOtelTitle', { + ? i18n.translate('xpack.observability.useCustomCardsForCategory.logsOtelTitle', { defaultMessage: 'OpenTelemetry: Logs & Metrics', }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.logsOtelTitle', + 'xpack.observability.logsEssential.useCustomCardsForCategory.logsOtelTitle', { defaultMessage: 'OpenTelemetry: Logs', } ), description: metricsOnboardingEnabled - ? i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.logsOtelDescription', - { - defaultMessage: - 'Collect logs and host metrics with the Elastic Distro for OTel Collector', - } - ) + ? i18n.translate('xpack.observability.useCustomCardsForCategory.logsOtelDescription', { + defaultMessage: + 'Collect logs and host metrics with the Elastic Distro for OTel Collector', + }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.logsOtelDescription', + 'xpack.observability.logsEssential.useCustomCardsForCategory.logsOtelDescription', { defaultMessage: 'Collect logs with the Elastic Distro for OTel Collector', } @@ -192,27 +180,21 @@ export function useCustomCards( name: 'kubernetes-quick-start', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesTitle', - { - defaultMessage: 'Elastic Agent: Logs & Metrics', - } - ) + ? i18n.translate('xpack.observability.useCustomCardsForCategory.kubernetesTitle', { + defaultMessage: 'Elastic Agent: Logs & Metrics', + }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesTitle', + 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesTitle', { defaultMessage: 'Elastic Agent: Logs', } ), description: metricsOnboardingEnabled - ? i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesDescription', - { - defaultMessage: 'Collect logs and metrics from Kubernetes using Elastic Agent', - } - ) + ? i18n.translate('xpack.observability.useCustomCardsForCategory.kubernetesDescription', { + defaultMessage: 'Collect logs and metrics from Kubernetes using Elastic Agent', + }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesDescription', + 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesDescription', { defaultMessage: 'Collect logs from Kubernetes using Elastic Agent', } @@ -239,28 +221,25 @@ export function useCustomCards( name: 'otel-kubernetes-virtual', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesOtelTitle', - { - defaultMessage: 'OpenTelemetry: Full Observability', - } - ) + ? i18n.translate('xpack.observability.useCustomCardsForCategory.kubernetesOtelTitle', { + defaultMessage: 'OpenTelemetry: Full Observability', + }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesOtelTitle', + 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesOtelTitle', { defaultMessage: 'OpenTelemetry: Logs', } ), description: metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesOtelDescription', + 'xpack.observability.useCustomCardsForCategory.kubernetesOtelDescription', { defaultMessage: 'Collect logs, traces and metrics with the Elastic Distro for OTel Collector', } ) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesOtelDescription', + 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesOtelDescription', { defaultMessage: 'Collect logs with the Elastic Distro for OTel Collector', } @@ -285,15 +264,12 @@ export function useCustomCards( { id: 'apm-virtual', type: 'virtual', - title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.apmTitle', { + title: i18n.translate('xpack.observability.useCustomCardsForCategory.apmTitle', { defaultMessage: 'Elastic APM', }), - description: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.apmDescription', - { - defaultMessage: 'Collect distributed traces from your applications with Elastic APM', - } - ), + description: i18n.translate('xpack.observability.useCustomCardsForCategory.apmDescription', { + defaultMessage: 'Collect distributed traces from your applications with Elastic APM', + }), name: 'apm', categories: ['observability'], icons: [ @@ -309,14 +285,11 @@ export function useCustomCards( { id: 'otel-virtual', type: 'virtual', - title: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.apmOtelTitle', - { - defaultMessage: 'OpenTelemetry', - } - ), + title: i18n.translate('xpack.observability.useCustomCardsForCategory.apmOtelTitle', { + defaultMessage: 'OpenTelemetry', + }), description: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.apmOtelDescription', + 'xpack.observability.useCustomCardsForCategory.apmOtelDescription', { defaultMessage: 'Collect distributed traces with OpenTelemetry', } @@ -336,14 +309,11 @@ export function useCustomCards( { id: 'synthetics-virtual', type: 'virtual', - title: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.syntheticsTitle', - { - defaultMessage: 'Synthetic monitor', - } - ), + title: i18n.translate('xpack.observability.useCustomCardsForCategory.syntheticsTitle', { + defaultMessage: 'Synthetic monitor', + }), description: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.syntheticsDescription', + 'xpack.observability.useCustomCardsForCategory.syntheticsDescription', { defaultMessage: 'Monitor endpoints, pages, and user journeys', } @@ -366,11 +336,11 @@ export function useCustomCards( { id: 'azure-logs-virtual', type: 'virtual', - title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.azureTitle', { + title: i18n.translate('xpack.observability.useCustomCardsForCategory.azureTitle', { defaultMessage: 'Azure', }), description: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.azureDescription', + 'xpack.observability.useCustomCardsForCategory.azureDescription', { defaultMessage: 'Collect logs from Microsoft Azure', } @@ -387,15 +357,12 @@ export function useCustomCards( { id: 'aws-logs-virtual', type: 'virtual', - title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.awsTitle', { + title: i18n.translate('xpack.observability.useCustomCardsForCategory.awsTitle', { defaultMessage: 'AWS', }), - description: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.awsDescription', - { - defaultMessage: 'Collect logs from Amazon Web Services (AWS)', - } - ), + description: i18n.translate('xpack.observability.useCustomCardsForCategory.awsDescription', { + defaultMessage: 'Collect logs from Amazon Web Services (AWS)', + }), name: 'aws', categories: ['observability'], icons: [], @@ -408,15 +375,12 @@ export function useCustomCards( { id: 'gcp-logs-virtual', type: 'virtual', - title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.gcpTitle', { + title: i18n.translate('xpack.observability.useCustomCardsForCategory.gcpTitle', { defaultMessage: 'Google Cloud Platform', }), - description: i18n.translate( - 'xpack.observability_onboarding.useCustomCardsForCategory.gcpDescription', - { - defaultMessage: 'Collect logs from Google Cloud Platform', - } - ), + description: i18n.translate('xpack.observability.useCustomCardsForCategory.gcpDescription', { + defaultMessage: 'Collect logs from Google Cloud Platform', + }), name: 'gcp', categories: ['observability'], icons: [], @@ -429,16 +393,13 @@ export function useCustomCards( { id: 'upload-file-virtual', type: 'virtual', - title: i18n.translate('xpack.observability_onboarding.packageList.uploadFileTitle', { + title: i18n.translate('xpack.observability.packageList.uploadFileTitle', { defaultMessage: 'Upload a file', }), - description: i18n.translate( - 'xpack.observability_onboarding.packageList.uploadFileDescription', - { - defaultMessage: - 'Upload data from a CSV, TSV, JSON or other log file to Elasticsearch for analysis.', - } - ), + description: i18n.translate('xpack.observability.packageList.uploadFileDescription', { + defaultMessage: + 'Upload data from a CSV, TSV, JSON or other log file to Elasticsearch for analysis.', + }), name: 'upload-file', categories: ['observability'], icons: [ diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx index e64d2431909ea..4b43ef59c9666 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx @@ -99,7 +99,8 @@ export const PackageListSearchForm = React.forwardRef( if (errorLoading) return (

        @@ -120,7 +121,7 @@ export const PackageListSearchForm = React.forwardRef( }} > diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx index a592007c7ca59..c242b93f80b0b 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx @@ -26,13 +26,13 @@ export const AutoDetectPage = () => { headlineCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.system.text', + 'xpack.observability.experimentalOnboardingFlow.customHeader.system.text', { defaultMessage: 'Auto-detect logs and metrics', } ) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.system.text', + 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.system.text', { defaultMessage: 'Auto-detect logs', } @@ -41,14 +41,14 @@ export const AutoDetectPage = () => { captionCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.system.description', + 'xpack.observability.experimentalOnboardingFlow.customHeader.system.description', { defaultMessage: 'This installation scans your host and auto-detects log and metric files.', } ) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.system.description', + 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.system.description', { defaultMessage: 'This installation scans your host and auto-detects log files.', } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx index bc4957e189934..ce05e84cd1039 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx @@ -17,13 +17,13 @@ export const FirehosePage = () => ( { { captionCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', + 'xpack.observability.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', { defaultMessage: 'This installation is tailored for configuring and collecting metrics and logs by deploying a new Elastic Agent within your host.', } ) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', + 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', { defaultMessage: 'This installation is tailored for configuring and collecting logs by deploying a new Elastic Agent within your host.', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx index 86e9bab60bba3..2f0c457e1de29 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx @@ -18,13 +18,13 @@ export const OtelKubernetesPage = () => { { { captionCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.otel.description', + 'xpack.observability.experimentalOnboardingFlow.customHeader.otel.description', { defaultMessage: 'Collect logs and host metrics using the Elastic distribution of the OTel collector.', } ) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.otel.description', + 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.otel.description', { defaultMessage: 'Collect logs using the Elastic distribution of the OTel collector.', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx index 86b52d3835939..55884c5f8f292 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx @@ -40,10 +40,9 @@ import { usePricingFeature } from '../shared/use_pricing_feature'; export const AutoDetectPanel: FunctionComponent = () => { useFlowBreadcrumb({ - text: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.breadcrumbs.autoDetectLabel', - { defaultMessage: 'Elastic Agent: Logs & Metrics' } - ), + text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.autoDetectLabel', { + defaultMessage: 'Elastic Agent: Logs & Metrics', + }), }); const { status, data, error, refetch, installedIntegrations } = useOnboardingFlow(); const metricsOnboardingEnabled = usePricingFeature( @@ -95,10 +94,9 @@ export const AutoDetectPanel: FunctionComponent = () => { @@ -106,13 +104,13 @@ export const AutoDetectPanel: FunctionComponent = () => {

        {metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.p.wellScanYourHostLabel', + 'xpack.observability.autoDetectPanel.p.wellScanYourHostLabel', { defaultMessage: "We'll scan your host for logs and metrics, including:", } ) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.autoDetectPanel.p.wellScanYourHostLabel', + 'xpack.observability.logsEssential.autoDetectPanel.p.wellScanYourHostLabel', { defaultMessage: "We'll scan your host for logs, including:", } @@ -142,10 +140,9 @@ export const AutoDetectPanel: FunctionComponent = () => { ), }, { - title: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.visualizeYourDataLabel', - { defaultMessage: 'Visualize your data' } - ), + title: i18n.translate('xpack.observability.autoDetectPanel.visualizeYourDataLabel', { + defaultMessage: 'Visualize your data', + }), status: status === 'dataReceived' ? 'complete' @@ -158,7 +155,7 @@ export const AutoDetectPanel: FunctionComponent = () => { { ) : status === 'awaitingData' ? ( { ) : status === 'inProgress' ? ( { { id: 'inventory-host-details', title: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.systemOverviewTitle', + 'xpack.observability.autoDetectPanel.systemOverviewTitle', { defaultMessage: 'Overview your system health within the Hosts Inventory', } ), label: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.systemOverviewLabel', + 'xpack.observability.autoDetectPanel.systemOverviewLabel', { defaultMessage: 'Explore metrics data', } @@ -230,13 +227,13 @@ export const AutoDetectPanel: FunctionComponent = () => { { id: 'inventory-host-details', title: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.systemLogsTitle', + 'xpack.observability.autoDetectPanel.systemLogsTitle', { defaultMessage: 'View and analyze system logs', } ), label: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.systemLogsLabel', + 'xpack.observability.autoDetectPanel.systemLogsLabel', { defaultMessage: 'Explore logs', } @@ -268,13 +265,13 @@ export const AutoDetectPanel: FunctionComponent = () => { return { id: asset.id, title: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDataDiscoverTitle', + 'xpack.observability.autoDetectPanel.exploreLogsDataDiscoverTitle', { defaultMessage: 'View and analyze your logs', } ), label: i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDiscoverDataLabel', + 'xpack.observability.autoDetectPanel.exploreLogsDiscoverDataLabel', { defaultMessage: 'Explore logs', } @@ -294,14 +291,14 @@ export const AutoDetectPanel: FunctionComponent = () => { title: dashboard.type === 'metrics' ? i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.exploreMetricsDataTitle', + 'xpack.observability.autoDetectPanel.exploreMetricsDataTitle', { defaultMessage: 'Overview your metrics data with this pre-made dashboard', } ) : i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDataTitle', + 'xpack.observability.autoDetectPanel.exploreLogsDataTitle', { defaultMessage: 'Overview your logs data with this pre-made dashboard', @@ -310,13 +307,13 @@ export const AutoDetectPanel: FunctionComponent = () => { label: dashboard.type === 'metrics' ? i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.exploreMetricsDataLabel', + 'xpack.observability.autoDetectPanel.exploreMetricsDataLabel', { defaultMessage: 'Explore metrics data', } ) : i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDataLabel', + 'xpack.observability.autoDetectPanel.exploreLogsDataLabel', { defaultMessage: 'Explore logs data', } @@ -341,7 +338,7 @@ export const AutoDetectPanel: FunctionComponent = () => { ) } title={i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.h3.getStartedWithNginxLabel', + 'xpack.observability.autoDetectPanel.h3.getStartedWithNginxLabel', { defaultMessage: 'Get started with {title}', values: { title: integration.title }, @@ -374,7 +371,7 @@ export const AutoDetectPanel: FunctionComponent = () => { id={`${accordionId}_custom`} icon={} title={i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.h3.getStartedWithlogLabel', + 'xpack.observability.autoDetectPanel.h3.getStartedWithlogLabel', { defaultMessage: 'Get started with custom .log files' } )} isDisabled={status !== 'dataReceived'} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx index b3ab93af89ca4..71affa14afd0b 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx @@ -58,7 +58,7 @@ export function SupportedIntegrationsList() { euiTheme: { colors }, } = useEuiTheme(); const customLogFilesTitle = i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.supportedIntegrationsList.customIntegrationTitle', + 'xpack.observability.autoDetectPanel.supportedIntegrationsList.customIntegrationTitle', { defaultMessage: 'Custom .log files' } ); return ( diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx index e4cd98c37ee1c..15e983b26d44b 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx @@ -38,13 +38,10 @@ export function AutoRefreshCallout() {

        - {i18n.translate( - 'xpack.observability_onboarding.firehosePanel.autorefreshCalloutLabel', - { - defaultMessage: 'Auto-refreshing every {intervalSeconds} s', - values: { intervalSeconds: Math.round(HAS_DATA_FETCH_INTERVAL / 1000) }, - } - )} + {i18n.translate('xpack.observability.firehosePanel.autorefreshCalloutLabel', { + defaultMessage: 'Auto-refreshing every {intervalSeconds} s', + values: { intervalSeconds: Math.round(HAS_DATA_FETCH_INTERVAL / 1000) }, + })}

        diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx index 74cc8a2c4cb52..52267e367947d 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx @@ -64,7 +64,7 @@ export function CreateStackCommandSnippet({ external target="_blank" > - {i18n.translate('xpack.observability_onboarding.firehosePanel.awsCLIInstallGuideLinkLabel', { + {i18n.translate('xpack.observability.firehosePanel.awsCLIInstallGuideLinkLabel', { defaultMessage: 'AWS CLI', })} @@ -76,14 +76,14 @@ export function CreateStackCommandSnippet({

        {metricsOnboardingEnabled && ( )} {!metricsOnboardingEnabled && ( @@ -115,7 +115,7 @@ export function CreateStackCommandSnippet({ {metricsOnboardingEnabled && ( )} {!metricsOnboardingEnabled && ( )} @@ -78,7 +78,7 @@ export function CreateStackInAWSConsole({ fill={isPrimaryAction} > {i18n.translate( - 'xpack.observability_onboarding.createStackInAWSConsole.createFirehoseStreamInAWSConsoleButtonLabel', + 'xpack.observability.createStackInAWSConsole.createFirehoseStreamInAWSConsoleButtonLabel', { defaultMessage: 'Create Firehose Stream in AWS' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx index ca796281685ef..c3e1841e532e9 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx @@ -14,7 +14,7 @@ import { FIREHOSE_CLOUDFORMATION_TEMPLATE_URL } from '../../../../common/aws_fir export function DownloadTemplateCallout() { return ( {i18n.translate( - 'xpack.observability_onboarding.firehosePanel.downloadCloudFormationTemplateButtonLabel', + 'xpack.observability.firehosePanel.downloadCloudFormationTemplateButtonLabel', { defaultMessage: 'Download the CloudFormation template' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx index 318f1e50512d1..6942bda6897c4 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx @@ -15,7 +15,7 @@ export function ExistingDataCallout() { return (

        - {i18n.translate( - 'xpack.observability_onboarding.firehose.existingDataCallout.description', - { - defaultMessage: `If the Amazon Firehose Data stream(s) associated with this workflow are still active, you will encounter errors during onboarding. Navigate to Step 3 below in order to explore your services.`, - } - )} + {i18n.translate('xpack.observability.firehose.existingDataCallout.description', { + defaultMessage: `If the Amazon Firehose Data stream(s) associated with this workflow are still active, you will encounter errors during onboarding. Navigate to Step 3 below in order to explore your services.`, + })}

        diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx index b86aaa4f292f8..a73d7416c3ff2 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx @@ -41,25 +41,21 @@ import { usePricingFeature } from '../shared/use_pricing_feature'; const OPTIONS = [ { id: CreateStackOption.AWS_CONSOLE_UI, - label: i18n.translate( - 'xpack.observability_onboarding.firehosePanel.createStackAWSConsoleOptionLabel', - { - defaultMessage: 'Via AWS Console', - } - ), + label: i18n.translate('xpack.observability.firehosePanel.createStackAWSConsoleOptionLabel', { + defaultMessage: 'Via AWS Console', + }), }, { id: CreateStackOption.AWS_CLI, - label: i18n.translate( - 'xpack.observability_onboarding.firehosePanel.createStackAWSCLIOptionLabel', - { defaultMessage: 'Via AWS CLI' } - ), + label: i18n.translate('xpack.observability.firehosePanel.createStackAWSCLIOptionLabel', { + defaultMessage: 'Via AWS CLI', + }), }, ]; export function FirehosePanel() { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.firehose', { + text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.firehose', { defaultMessage: 'AWS Firehose', }), }); @@ -128,7 +124,7 @@ export function FirehosePanel() { const steps = [ { - title: i18n.translate('xpack.observability_onboarding.firehosePanel.prerequisitesTitle', { + title: i18n.translate('xpack.observability.firehosePanel.prerequisitesTitle', { defaultMessage: 'Prerequisites', }), children: ( @@ -136,13 +132,13 @@ export function FirehosePanel() {

        - {i18n.translate( - 'xpack.observability_onboarding.firehosePanel.documentationLinkLabel', - { defaultMessage: 'Check the documentation' } - )} + {i18n.translate('xpack.observability.firehosePanel.documentationLinkLabel', { + defaultMessage: 'Check the documentation', + })} ), }} @@ -167,12 +162,12 @@ export function FirehosePanel() { }, { title: metricsOnboardingEnabled - ? i18n.translate('xpack.observability_onboarding.firehosePanel.createDeliveryStreamTitle', { + ? i18n.translate('xpack.observability.firehosePanel.createDeliveryStreamTitle', { defaultMessage: 'Create a Firehose delivery stream to ingest CloudWatch logs and metrics', }) : i18n.translate( - 'xpack.observability_onboarding.logsEssential.firehosePanel.createDeliveryStreamTitle', + 'xpack.observability.logsEssential.firehosePanel.createDeliveryStreamTitle', { defaultMessage: 'Create a Firehose delivery stream to ingest CloudWatch logs', } @@ -190,7 +185,7 @@ export function FirehosePanel() { <>

        - {i18n.translate('xpack.observability_onboarding.firehosePanel.waitingForDataTitle', { + {i18n.translate('xpack.observability.firehosePanel.waitingForDataTitle', { defaultMessage: 'Retrieving data from Amazon Data Firehose', })}

        @@ -52,7 +52,7 @@ export function ProgressCallout() { {i18n.translate( - 'xpack.observability_onboarding.progressCallout.strong.allServicesWeCanLabel', + 'xpack.observability.progressCallout.strong.allServicesWeCanLabel', { defaultMessage: 'All services we can detect' } )} @@ -62,13 +62,10 @@ export function ProgressCallout() {
      • {service}
      • ))}
      • - {i18n.translate( - 'xpack.observability_onboarding.progressCallout.li.otherLabel', - { - defaultMessage: - 'Other (Unsupported logs will be stored in a generic Firehose index).', - } - )} + {i18n.translate('xpack.observability.progressCallout.li.otherLabel', { + defaultMessage: + 'Other (Unsupported logs will be stored in a generic Firehose index).', + })}
      diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts index 148bdd1f3ddde..ddf2ec5dceac9 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts @@ -37,19 +37,13 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateMetricsDashboardActionLink = useCallback( (dashboardId: string, name?: string) => ({ id: `dashboard-${dashboardId}`, - title: i18n.translate( - 'xpack.observability_onboarding.firehosePanel.exploreMetricsDataTitle', - { - defaultMessage: 'Overview{name} metrics data with this pre-made dashboard', - values: { name: name ? ` ${name}` : '' }, - } - ), - label: i18n.translate( - 'xpack.observability_onboarding.firehosePanel.exploreMetricsDataLabel', - { - defaultMessage: 'Explore metrics data', - } - ), + title: i18n.translate('xpack.observability.firehosePanel.exploreMetricsDataTitle', { + defaultMessage: 'Overview{name} metrics data with this pre-made dashboard', + values: { name: name ? ` ${name}` : '' }, + }), + label: i18n.translate('xpack.observability.firehosePanel.exploreMetricsDataLabel', { + defaultMessage: 'Explore metrics data', + }), href: dashboardLocator?.getRedirectUrl({ dashboardId, @@ -61,10 +55,10 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateLogsDashboardActionLink = useCallback( (dashboardId: string) => ({ id: `dashboard-${dashboardId}`, - title: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreLogsDataTitle', { + title: i18n.translate('xpack.observability.firehosePanel.exploreLogsDataTitle', { defaultMessage: 'Overview your logs data with this pre-made dashboard', }), - label: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreLogsDataLabel', { + label: i18n.translate('xpack.observability.firehosePanel.exploreLogsDataLabel', { defaultMessage: 'Explore logs data', }), href: @@ -78,11 +72,11 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateLogsExplorerActionLink = useCallback( (dataset: string, name: string) => ({ id: `logs-explorer-${dataset}`, - title: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataTitle', { + title: i18n.translate('xpack.observability.firehosePanel.exploreDataTitle', { defaultMessage: 'See {name} data in Logs explorer', values: { name }, }), - label: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataLabel', { + label: i18n.translate('xpack.observability.firehosePanel.exploreDataLabel', { defaultMessage: 'Explore', }), href: @@ -99,11 +93,11 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateMetricsDiscoverActionLink = useCallback( (namespace: string, name: string) => ({ id: `discover-${namespace}`, - title: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataTitle', { + title: i18n.translate('xpack.observability.firehosePanel.exploreDataTitle', { defaultMessage: 'See {name} metrics data in Discover', values: { name }, }), - label: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataLabel', { + label: i18n.translate('xpack.observability.firehosePanel.exploreDataLabel', { defaultMessage: 'Explore', }), href: diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx index f9066ec06ec7b..bd1f91407280d 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx @@ -59,19 +59,13 @@ export function VisualizeData({ onboardingId, selectedCreateStackOption, hasExis ) { notifications?.toasts.addSuccess( { - title: i18n.translate( - 'xpack.observability_onboarding.firehosePanel.dataReceivedToastTitle', - { - defaultMessage: 'Your data is on its way', - } - ), - text: i18n.translate( - 'xpack.observability_onboarding.firehosePanel.dataReceivedToastText', - { - defaultMessage: - 'We’ve begun processing your data. In the background, we automatically refresh every few seconds to capture more incoming data.', - } - ), + title: i18n.translate('xpack.observability.firehosePanel.dataReceivedToastTitle', { + defaultMessage: 'Your data is on its way', + }), + text: i18n.translate('xpack.observability.firehosePanel.dataReceivedToastText', { + defaultMessage: + 'We’ve begun processing your data. In the background, we automatically refresh every few seconds to capture more incoming data.', + }), }, { toastLifeTimeMs: 10000, @@ -119,7 +113,7 @@ export function VisualizeData({ onboardingId, selectedCreateStackOption, hasExis

      diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx index 0aa4960777a60..5f5c14f0dd8c4 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx @@ -46,7 +46,7 @@ export function CommandSnippet({

      {i18n.translate( - 'xpack.observability_onboarding.kubernetesPanel.scalingElasticAgentOnLinkLabel', + 'xpack.observability.kubernetesPanel.scalingElasticAgentOnLinkLabel', { defaultMessage: 'Scaling Elastic Agent on Kubernetes' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx index b0152d4afdb85..1e257343e77dd 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx @@ -96,7 +96,7 @@ export function DataIngestStatus({ onboardingId }: Props) { {i18n.translate( - 'xpack.observability_onboarding.dataIngestStatus.troubleshootingLinkText', + 'xpack.observability.dataIngestStatus.troubleshootingLinkText', { defaultMessage: 'Open documentation', } @@ -135,19 +135,13 @@ export function DataIngestStatus({ onboardingId }: Props) { metricsOnboardingEnabled ? { id: CLUSTER_OVERVIEW_DASHBOARD_ID, - label: i18n.translate( - 'xpack.observability_onboarding.kubernetesPanel.exploreDashboard', - { - defaultMessage: 'Explore Kubernetes cluster', - } - ), - title: i18n.translate( - 'xpack.observability_onboarding.kubernetesPanel.monitoringCluster', - { - defaultMessage: - 'Overview your Kubernetes cluster with this pre-made dashboard', - } - ), + label: i18n.translate('xpack.observability.kubernetesPanel.exploreDashboard', { + defaultMessage: 'Explore Kubernetes cluster', + }), + title: i18n.translate('xpack.observability.kubernetesPanel.monitoringCluster', { + defaultMessage: + 'Overview your Kubernetes cluster with this pre-made dashboard', + }), href: dashboardLocator?.getRedirectUrl({ dashboardId: CLUSTER_OVERVIEW_DASHBOARD_ID, @@ -155,18 +149,12 @@ export function DataIngestStatus({ onboardingId }: Props) { } : { id: 'logs', - title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.logsTitle', - { - defaultMessage: 'View and analyze your logs:', - } - ), - label: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.logsLabel', - { - defaultMessage: 'Explore logs', - } - ), + title: i18n.translate('xpack.observability.otelKubernetesPanel.logsTitle', { + defaultMessage: 'View and analyze your logs:', + }), + label: i18n.translate('xpack.observability.otelKubernetesPanel.logsLabel', { + defaultMessage: 'Explore logs', + }), href: logsLocator?.getRedirectUrl({}) ?? '', }, ]} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx index 6e23541a90111..75c5e099e3fa3 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx @@ -21,7 +21,7 @@ import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs'; export const KubernetesPanel: React.FC = () => { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.k8s', { + text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.k8s', { defaultMessage: 'Kubernetes: Logs & Metrics', }), }); @@ -51,7 +51,7 @@ export const KubernetesPanel: React.FC = () => { const steps = [ { title: i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.kubernetes.installStepTitle', + 'xpack.observability.experimentalOnboardingFlow.kubernetes.installStepTitle', { defaultMessage: 'Install standalone Elastic Agent on your Kubernetes cluster', } @@ -79,7 +79,7 @@ export const KubernetesPanel: React.FC = () => { }, { title: i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.kubernetes.monitorStepTitle', + 'xpack.observability.experimentalOnboardingFlow.kubernetes.monitorStepTitle', { defaultMessage: 'Monitor your Kubernetes cluster', } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx index 70517a9ff5f82..97c3e4f3d772e 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx @@ -44,7 +44,7 @@ const CLUSTER_OVERVIEW_DASHBOARD_ID = 'kubernetes_otel-cluster-overview'; export const OtelKubernetesPanel: React.FC = () => { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.k8sOtel', { + text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.k8sOtel', { defaultMessage: 'Kubernetes: OpenTelemetry', }), }); @@ -111,7 +111,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub steps={[ { title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.addRepositoryStepTitle', + 'xpack.observability.otelKubernetesPanel.addRepositoryStepTitle', { defaultMessage: 'Add the OpenTelemetry repository to Helm', } @@ -130,17 +130,14 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub ), }, { - title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.installStackStepTitle', - { - defaultMessage: 'Install the OpenTelemetry Operator', - } - ), + title: i18n.translate('xpack.observability.otelKubernetesPanel.installStackStepTitle', { + defaultMessage: 'Install the OpenTelemetry Operator', + }), children: installStackCommand ? ( <>

      {i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.certmanagerLinkLabel', + 'xpack.observability.otelKubernetesPanel.certmanagerLinkLabel', { defaultMessage: 'cert-manager' } )} @@ -162,7 +159,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub data-test-subj="observabilityOnboardingOtelKubernetesPanelCertManagerDocsLink" > {i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.certmanagerDocsLinkLabel', + 'xpack.observability.otelKubernetesPanel.certmanagerDocsLinkLabel', { defaultMessage: 'in our documentation' } )} @@ -171,7 +168,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub />{' '} {i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.downloadValuesFileButtonEmptyLabel', + 'xpack.observability.otelKubernetesPanel.downloadValuesFileButtonEmptyLabel', { defaultMessage: 'Download values file' } )} @@ -217,7 +214,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub ? [ { title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.instrumentApplicationStepTitle', + 'xpack.observability.otelKubernetesPanel.instrumentApplicationStepTitle', { defaultMessage: 'Instrument your application (optional)', } @@ -226,7 +223,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub <>

      {i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.theOperatorAutomatesTheLabel', + 'xpack.observability.otelKubernetesPanel.theOperatorAutomatesTheLabel', { defaultMessage: 'The Operator automates the injection of auto-instrumentation libraries into the annotated pods for some languages.', @@ -236,7 +233,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub - {i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.step3a.title', - { defaultMessage: '3(a) - Start with one of these annotations methods:' } - )} + {i18n.translate('xpack.observability.otelKubernetesPanel.step3a.title', { + defaultMessage: '3(a) - Start with one of these annotations methods:', + })}

      @@ -332,13 +328,10 @@ spec: font-weight: ${theme.euiTheme.font.weight.bold}; `} > - {i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.step3b.title', - { - defaultMessage: - '3(b) - Restart deployment and ensure the annotations are applied and the auto-instrumentation library is injected:', - } - )} + {i18n.translate('xpack.observability.otelKubernetesPanel.step3b.title', { + defaultMessage: + '3(b) - Restart deployment and ensure the annotations are applied and the auto-instrumentation library is injected:', + })}

      -n my-namespace`}

      -n my-namespace`} target="_blank" > {i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.referToTheDocumentationLinkLabel', + 'xpack.observability.otelKubernetesPanel.referToTheDocumentationLinkLabel', { defaultMessage: 'refer to the documentation' } )} @@ -378,24 +371,21 @@ kubectl describe pod -n my-namespace`} ] : []), { - title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.monitorStepTitle', - { - defaultMessage: 'Visualize your data', - } - ), + title: i18n.translate('xpack.observability.otelKubernetesPanel.monitorStepTitle', { + defaultMessage: 'Visualize your data', + }), children: data ? ( <>

      {metricsOnboardingEnabled && ( )} {!metricsOnboardingEnabled && ( )} @@ -414,13 +404,13 @@ kubectl describe pod -n my-namespace`} { id: CLUSTER_OVERVIEW_DASHBOARD_ID, title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.monitoringCluster', + 'xpack.observability.otelKubernetesPanel.monitoringCluster', { defaultMessage: 'Check your Kubernetes cluster health:', } ), label: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.exploreDashboard', + 'xpack.observability.otelKubernetesPanel.exploreDashboard', { defaultMessage: 'Explore Kubernetes Cluster Dashboard', } @@ -433,13 +423,13 @@ kubectl describe pod -n my-namespace`} { id: 'services', title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.servicesTitle', + 'xpack.observability.otelKubernetesPanel.servicesTitle', { defaultMessage: 'Check your application services:', } ), label: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.servicesLabel', + 'xpack.observability.otelKubernetesPanel.servicesLabel', { defaultMessage: 'Explore Service inventory', } @@ -451,13 +441,13 @@ kubectl describe pod -n my-namespace`} { id: 'logs', title: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.logsTitle', + 'xpack.observability.otelKubernetesPanel.logsTitle', { defaultMessage: 'View and analyze your logs:', } ), label: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.logsLabel', + 'xpack.observability.otelKubernetesPanel.logsLabel', { defaultMessage: 'Explore logs', } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx index 66f3beb60bb9d..6df7584a5164f 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx @@ -38,7 +38,7 @@ import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs'; import { usePricingFeature } from '../shared/use_pricing_feature'; const HOST_COMMAND = i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.p.runTheCommandOnYourHostLabel', + 'xpack.observability.otelLogsPanel.p.runTheCommandOnYourHostLabel', { defaultMessage: 'Run the following command on your host to download and configure the collector.', @@ -47,7 +47,7 @@ const HOST_COMMAND = i18n.translate( export const OtelLogsPanel: React.FC = () => { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.otelHost', { + text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.otelHost', { defaultMessage: 'OpenTelemetry: Logs & Metrics', }), }); @@ -154,17 +154,16 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote ({ id, label: name, @@ -198,7 +197,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote onClick={copy} > {i18n.translate( - 'xpack.observability_onboarding.installOtelCollector.configStep.copyCommand', + 'xpack.observability.installOtelCollector.configStep.copyCommand', { defaultMessage: 'Copy to clipboard' } )} @@ -212,22 +211,21 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote ), }, { - title: i18n.translate('xpack.observability_onboarding.otelLogsPanel.steps.start', { + title: i18n.translate('xpack.observability.otelLogsPanel.steps.start', { defaultMessage: 'Start the collector', }), children: (

      {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.historicalDataDescription', + 'xpack.observability.otelLogsPanel.historicalDataDescription', { defaultMessage: 'New log messages are collected from the setup onward.', } @@ -235,7 +233,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote

      {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.historicalDataDescription2', + 'xpack.observability.otelLogsPanel.historicalDataDescription2', { defaultMessage: 'The default log path is /var/log/*. You can change this path in the otel.yml file if needed.', @@ -247,7 +245,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote

      {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.p.startTheCollectorLabel', + 'xpack.observability.otelLogsPanel.p.startTheCollectorLabel', { defaultMessage: 'Run the following command to start the collector', } @@ -259,23 +257,17 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote ), }, { - title: i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.steps.visualize', - { - defaultMessage: 'Visualize your data', - } - ), + title: i18n.translate('xpack.observability.otelLogsPanel.steps.visualize', { + defaultMessage: 'Visualize your data', + }), children: ( <>

      - {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.waitForTheDataLabel', - { - defaultMessage: - 'After running the previous command, come back and view your data.', - } - )} + {i18n.translate('xpack.observability.otelLogsPanel.waitForTheDataLabel', { + defaultMessage: + 'After running the previous command, come back and view your data.', + })}

      @@ -295,7 +287,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.viewAndAnalyzeYourTextLabel', + 'xpack.observability.otelLogsPanel.viewAndAnalyzeYourTextLabel', { defaultMessage: 'View and analyze your logs' } )} @@ -305,12 +297,9 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote data-test-subj="obltOnboardingExploreLogs" href={deeplinks.logs} > - {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.exploreLogs', - { - defaultMessage: 'Explore logs', - } - )} + {i18n.translate('xpack.observability.otelLogsPanel.exploreLogs', { + defaultMessage: 'Explore logs', + })} @@ -321,7 +310,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.viewAndAnalyzeYourMetricsTextLabel', + 'xpack.observability.otelLogsPanel.viewAndAnalyzeYourMetricsTextLabel', { defaultMessage: 'View and analyze your metrics' } )} @@ -332,7 +321,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote href={deeplinks.metrics} > {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.exploreMetrics', + 'xpack.observability.otelLogsPanel.exploreMetrics', { defaultMessage: 'Open Hosts', } @@ -347,7 +336,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote - {i18n.translate( - 'xpack.observability_onboarding.otelLogsPanel.documentationLink', - { defaultMessage: 'Open documentation' } - )} + {i18n.translate('xpack.observability.otelLogsPanel.documentationLink', { + defaultMessage: 'Open documentation', + })} ), }} @@ -389,10 +377,9 @@ function CopyableCodeBlock({ content }: { content: string }) { iconType="copyClipboard" onClick={copy} > - {i18n.translate( - 'xpack.observability_onboarding.installOtelCollector.configStep.copyCommand', - { defaultMessage: 'Copy to clipboard' } - )} + {i18n.translate('xpack.observability.installOtelCollector.configStep.copyCommand', { + defaultMessage: 'Copy to clipboard', + })} )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx index 93375e88e4994..f3d83fb55881f 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx @@ -33,7 +33,8 @@ export function MultiIntegrationInstallBanner() { return ( - {i18n.translate('xpack.observability_onboarding.otelLogs.status.failedDetails', { + {i18n.translate('xpack.observability.otelLogs.status.failedDetails', { defaultMessage: 'Incoming data might not be indexed correctly. Details:', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx index 770efa96b0fcc..7d472b54b0c05 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx @@ -28,10 +28,9 @@ export const CopyToClipboardButton: FunctionComponent {children ?? - i18n.translate( - 'xpack.observability_onboarding.copyToClipboardButton.copyToClipboardButtonLabel', - { defaultMessage: 'Copy to clipboard' } - )} + i18n.translate('xpack.observability.copyToClipboardButton.copyToClipboardButtonLabel', { + defaultMessage: 'Copy to clipboard', + })} )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx index 7d4e96780e72d..ad2bcfad402e4 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx @@ -46,20 +46,17 @@ export const EmptyPrompt: FunctionComponent = ({ title={

      {i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.h2.contactYourAdministratorForLabel', + 'xpack.observability.autoDetectPanel.h2.contactYourAdministratorForLabel', { defaultMessage: 'Contact your administrator for access' } )}

      } body={

      - {i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.p.toInstallIntegrationsAndLabel', - { - defaultMessage: - 'To install integrations and ingest data, you need additional privileges.', - } - )} + {i18n.translate('xpack.observability.autoDetectPanel.p.toInstallIntegrationsAndLabel', { + defaultMessage: + 'To install integrations and ingest data, you need additional privileges.', + })}

      } /> @@ -72,21 +69,17 @@ export const EmptyPrompt: FunctionComponent = ({ iconType="error" title={

      - {i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.h2.unableToInitiateDataLabel', - { defaultMessage: 'Unable to load content' } - )} + {i18n.translate('xpack.observability.autoDetectPanel.h2.unableToInitiateDataLabel', { + defaultMessage: 'Unable to load content', + })}

      } body={

      - {i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.p.thereWasAProblemLabel', - { - defaultMessage: - 'There was a problem loading the application. Retry or contact your administrator for help.', - } - )} + {i18n.translate('xpack.observability.autoDetectPanel.p.thereWasAProblemLabel', { + defaultMessage: + 'There was a problem loading the application. Retry or contact your administrator for help.', + })}

      } actions={ @@ -97,10 +90,9 @@ export const EmptyPrompt: FunctionComponent = ({ data-test-subj="observabilityOnboardingAutoDetectPanelGoBackButton" onClick={onRetryClick} > - {i18n.translate( - 'xpack.observability_onboarding.autoDetectPanel.backToSelectionButtonLabel', - { defaultMessage: 'Retry' } - )} + {i18n.translate('xpack.observability.autoDetectPanel.backToSelectionButtonLabel', { + defaultMessage: 'Retry', + })} } /> diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx index 3dd0b5c108860..d046f5885ae0a 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx @@ -20,7 +20,7 @@ import { OBSERVABILITY_ONBOARDING_FEEDBACK_TELEMETRY_EVENT } from '../../../../c export type Feedback = 'positive' | 'negative'; const THANK_YOU_MESSAGE = i18n.translate( - 'xpack.observability_onboarding.feedbackButtons.em.thanksForYourFeedbackLabel', + 'xpack.observability.feedbackButtons.em.thanksForYourFeedbackLabel', { defaultMessage: 'Thanks for your feedback!' } ); @@ -42,7 +42,7 @@ export function FeedbackButtons({ flow }: { flow: string }) { - {i18n.translate('xpack.observability_onboarding.insight.feedbackButtons.title', { + {i18n.translate('xpack.observability.insight.feedbackButtons.title', { defaultMessage: 'Was this helpful?', })} @@ -59,7 +59,7 @@ export function FeedbackButtons({ flow }: { flow: string }) { size="s" onClick={() => handleClick('positive')} > - {i18n.translate('xpack.observability_onboarding.insight.feedbackButtons.positive', { + {i18n.translate('xpack.observability.insight.feedbackButtons.positive', { defaultMessage: 'Yes', })}
      @@ -73,7 +73,7 @@ export function FeedbackButtons({ flow }: { flow: string }) { size="s" onClick={() => handleClick('negative')} > - {i18n.translate('xpack.observability_onboarding.insight.feedbackButtons.negative', { + {i18n.translate('xpack.observability.insight.feedbackButtons.negative', { defaultMessage: 'No', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx index 68e652da89114..b9ba68704e6df 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx @@ -113,7 +113,7 @@ export function GetStartedPanel({ - {i18n.translate( - 'xpack.observability_onboarding.dataIngestStatus.viewAllAssetsLinkText', - { - defaultMessage: 'View all assets', - } - )} + {i18n.translate('xpack.observability.dataIngestStatus.viewAllAssetsLinkText', { + defaultMessage: 'View all assets', + })} ), }} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx index 02f8e9ed20f91..8747dcbbdd8c6 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx @@ -118,7 +118,7 @@ export function InstallElasticAgentSteps({

      {autoDownloadConfig ? i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.configStep.auto.description', + 'xpack.observability.installElasticAgent.configStep.auto.description', { defaultMessage: 'The agent config below will be downloaded by the install script and written to ({configPath}). This will overwrite any existing agent configuration.', @@ -128,7 +128,7 @@ export function InstallElasticAgentSteps({ } ) : i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.configStep.manual.description', + 'xpack.observability.installElasticAgent.configStep.manual.description', { defaultMessage: 'Add the following configuration to {configPath} on the host where you installed the Elastic Agent.', @@ -143,7 +143,7 @@ export function InstallElasticAgentSteps({ ({ isDisabled={autoDownloadConfig} data-test-subj="obltOnboardingConfigureElasticAgentStepDownloadConfig" > - {i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.configStep.downloadConfigButton', - { defaultMessage: 'Download config file' } - )} + {i18n.translate('xpack.observability.installElasticAgent.configStep.downloadConfigButton', { + defaultMessage: 'Download config file', + })} {showInstallProgressSteps && autoDownloadConfig ? ( <> @@ -197,17 +196,16 @@ export function InstallElasticAgentSteps({ steps={[ { 'data-test-subj': 'obltOnboardingInstallElasticAgentStep', - title: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.installStep.title', - { defaultMessage: 'Install the Elastic Agent' } - ), + title: i18n.translate('xpack.observability.installElasticAgent.installStep.title', { + defaultMessage: 'Install the Elastic Agent', + }), status: installAgentStatus, children: ( <>

      ({ href="https://www.elastic.co/guide/en/fleet/8.7/elastic-agent-installation.html" > {i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.installStep.hostRequirements', + 'xpack.observability.installElasticAgent.installStep.hostRequirements', { defaultMessage: 'host requirements and other installation options', } @@ -234,7 +232,7 @@ export function InstallElasticAgentSteps({ {i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.installStep.autoDownloadConfig', + 'xpack.observability.installElasticAgent.installStep.autoDownloadConfig', { defaultMessage: "Automatically download the agent's config", } @@ -243,7 +241,7 @@ export function InstallElasticAgentSteps({ ({ {autoDownloadConfig && ( <> ({ ({ @@ -302,10 +301,9 @@ export function InstallElasticAgentSteps({ }, { 'data-test-subj': 'obltOnboardingConfigureElasticAgentStep', - title: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.configureStep.title', - { defaultMessage: 'Configure the Elastic Agent' } - ), + title: i18n.translate('xpack.observability.installElasticAgent.configureStep.title', { + defaultMessage: 'Configure the Elastic Agent', + }), status: disableSteps ? 'disabled' : configureAgentStatus, children: disableSteps ? <> : configureStep, }, @@ -356,59 +354,59 @@ const PROGRESS_STEP_TITLES: ( > = (configPath: string) => ({ 'ea-download': { incompleteTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaDownload.incompleteTitle', + 'xpack.observability.installElasticAgent.progress.eaDownload.incompleteTitle', { defaultMessage: 'Download Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaDownload.loadingTitle', + 'xpack.observability.installElasticAgent.progress.eaDownload.loadingTitle', { defaultMessage: 'Downloading Elastic Agent' } ), completedTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaDownload.completedTitle', + 'xpack.observability.installElasticAgent.progress.eaDownload.completedTitle', { defaultMessage: 'Elastic Agent downloaded' } ), }, 'ea-extract': { incompleteTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaExtract.incompleteTitle', + 'xpack.observability.installElasticAgent.progress.eaExtract.incompleteTitle', { defaultMessage: 'Extract Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaExtract.loadingTitle', + 'xpack.observability.installElasticAgent.progress.eaExtract.loadingTitle', { defaultMessage: 'Extracting Elastic Agent' } ), completedTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaExtract.completedTitle', + 'xpack.observability.installElasticAgent.progress.eaExtract.completedTitle', { defaultMessage: 'Elastic Agent extracted' } ), }, 'ea-install': { incompleteTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaInstall.incompleteTitle', + 'xpack.observability.installElasticAgent.progress.eaInstall.incompleteTitle', { defaultMessage: 'Install Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaInstall.loadingTitle', + 'xpack.observability.installElasticAgent.progress.eaInstall.loadingTitle', { defaultMessage: 'Installing Elastic Agent' } ), completedTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaInstall.completedTitle', + 'xpack.observability.installElasticAgent.progress.eaInstall.completedTitle', { defaultMessage: 'Elastic Agent installed' } ), }, 'ea-status': { incompleteTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaStatus.incompleteTitle', + 'xpack.observability.installElasticAgent.progress.eaStatus.incompleteTitle', { defaultMessage: 'Connect to the Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaStatus.loadingTitle', + 'xpack.observability.installElasticAgent.progress.eaStatus.loadingTitle', { defaultMessage: 'Connecting to the Elastic Agent', } ), completedTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaStatus.completedTitle', + 'xpack.observability.installElasticAgent.progress.eaStatus.completedTitle', { defaultMessage: 'Connected to the Elastic Agent', } @@ -416,15 +414,15 @@ const PROGRESS_STEP_TITLES: ( }, 'ea-config': { incompleteTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaConfig.incompleteTitle', + 'xpack.observability.installElasticAgent.progress.eaConfig.incompleteTitle', { defaultMessage: 'Configure the agent' } ), loadingTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaConfig.loadingTitle', + 'xpack.observability.installElasticAgent.progress.eaConfig.loadingTitle', { defaultMessage: 'Downloading Elastic Agent config' } ), completedTitle: i18n.translate( - 'xpack.observability_onboarding.installElasticAgent.progress.eaConfig.completedTitle', + 'xpack.observability.installElasticAgent.progress.eaConfig.completedTitle', { defaultMessage: 'Elastic Agent config written to {configPath}', values: { diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx index 71d22703ba643..ae53e1f71afa4 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx @@ -31,7 +31,7 @@ export function OptionalFormRow(props: OptionalFormRowProps) { {label} - {i18n.translate('xpack.observability_onboarding.form.optional', { + {i18n.translate('xpack.observability.form.optional', { defaultMessage: 'Optional', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx index 246ce76e50c16..a8a4b1cdd5630 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx @@ -44,7 +44,7 @@ export function StepStatus({ if (status === 'complete') { return ( - + {message} @@ -53,7 +53,7 @@ export function StepStatus({ if (status === 'danger') { return ( - + {message} @@ -62,7 +62,7 @@ export function StepStatus({ if (status === 'warning') { return ( - + {message} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx index f0964fbf8c68a..306e0c9ba28c6 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx @@ -19,7 +19,7 @@ export function TroubleshootingLink() { href="https://www.elastic.co/guide/en/observability/current/logs-troubleshooting.html" target="_blank" > - {i18n.translate('xpack.observability_onboarding.installElasticAgent.troubleshooting', { + {i18n.translate('xpack.observability.installElasticAgent.troubleshooting', { defaultMessage: 'Troubleshooting', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx index 3da3a784224be..6e04db7668bb9 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx @@ -25,7 +25,7 @@ export const BackButton: React.FC> = ({ children }) {children ? children : i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.button.backToSelectionLabel', + 'xpack.observability.experimentalOnboardingFlow.button.backToSelectionLabel', { defaultMessage: 'Back to selection' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx index 22af649a635a5..b1902aadb8f09 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx @@ -40,7 +40,7 @@ export function ObservabilityOnboardingHeaderActionMenu({ setHeaderActionMenu, t color="warning" iconType="editorComment" > - {i18n.translate('xpack.observability_onboarding.header.feedback', { + {i18n.translate('xpack.observability.header.feedback', { defaultMessage: 'Give feedback', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts index cca0318053089..074735ffc184e 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts @@ -13,10 +13,9 @@ export function useFlowBreadcrumb(breadcrumb: ChromeBreadcrumb | null) { useBreadcrumbs(breadcrumb !== null ? [breadcrumb] : [], { app: { id: 'observabilityOnboarding', - label: i18n.translate( - 'xpack.observability_onboarding.otelKubernetesPanel.breadcrumbs.addDataLabel', - { defaultMessage: 'Add Data' } - ), + label: i18n.translate('xpack.observability.otelKubernetesPanel.breadcrumbs.addDataLabel', { + defaultMessage: 'Add Data', + }), }, absoluteProjectStyleBreadcrumbs: false, }); diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx index 96de8046d5623..4f1e9c17d4a76 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx @@ -36,7 +36,7 @@ function getDetailsFromErrorResponse(error: IHttpFetchError) <> {message} ({error.response?.status})

      - {i18n.translate('xpack.observability_onboarding.fetcher.error.url', { + {i18n.translate('xpack.observability.fetcher.error.url', { defaultMessage: `URL`, })}
      @@ -141,14 +141,14 @@ export function useFetcher( if (showToastOnError) { notifications.toasts.addDanger({ - title: i18n.translate('xpack.observability_onboarding.fetcher.error.title', { + title: i18n.translate('xpack.observability.fetcher.error.title', { defaultMessage: `Error while fetching resource`, }), text: toMountPoint(
      - {i18n.translate('xpack.observability_onboarding.fetcher.error.status', { + {i18n.translate('xpack.observability.fetcher.error.status', { defaultMessage: `Error`, })}
      diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts index 026e8d9bfac28..9a1766dab931b 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts @@ -13,7 +13,7 @@ import { useKibana } from './use_kibana'; // Errors const UNAUTHORIZED_ERROR = i18n.translate( - 'xpack.observability_onboarding.installIntegration.error.unauthorized', + 'xpack.observability.installIntegration.error.unauthorized', { defaultMessage: 'Required kibana privilege {requiredKibanaPrivileges} is missing, please add the required privilege to the role of the authenticated user.', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts b/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts index a8f4cb042caf0..2d7677589d345 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts @@ -101,12 +101,12 @@ export class ObservabilityOnboardingPlugin plugins.customIntegrations.registerCustomIntegration({ id: 'otel', - title: i18n.translate('xpack.observability_onboarding.otelTile.title', { + title: i18n.translate('xpack.observability.otelTile.title', { defaultMessage: 'OpenTelemetry', }), categories: ['observability'], uiInternalPath: '/app/observabilityOnboarding/otel-logs', - description: i18n.translate('xpack.observability_onboarding.otelTile.description', { + description: i18n.translate('xpack.observability.otelTile.description', { defaultMessage: 'Collect logs and host metrics using the Elastic distribution of the OpenTelemetry Collector', }), diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts b/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts index d4472de827808..22be77f2b521d 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts @@ -171,7 +171,7 @@ test.describe('Onboarding UI Validation', () => { { tag: ['@svlLogsEssentials'] }, async ({ pageObjects }) => { await test.step('hides Application tile in logs-essentials tier', async () => { - await expect(pageObjects.onboarding.applicationUseCaseTile).not.toBeVisible(); + await expect(pageObjects.onboarding.applicationUseCaseTile).toBeHidden(); }); } ); diff --git a/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts b/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts index dba342aa71306..d6809a23101ca 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts @@ -11,7 +11,7 @@ export const COMMON_OBSERVABILITY_GROUPING = [ { id: 'observability', getDisplayName: () => - i18n.translate('xpack.observabilityShared.common.constants.grouping', { + i18n.translate('xpack.observability.common.constants.grouping', { defaultMessage: 'Observability', }), getIconType: () => { diff --git a/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts b/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts index c07f2cb12c02f..a5e4e62e5d69e 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts @@ -36,13 +36,13 @@ function getStats({ ? { kibanaApiQueryParameters: { label: i18n.translate( - 'xpack.observabilityShared.inspector.stats.kibanaApiQueryParametersLabel', + 'xpack.observability.inspector.stats.kibanaApiQueryParametersLabel', { defaultMessage: 'Kibana API query parameters', } ), description: i18n.translate( - 'xpack.observabilityShared.inspector.stats.kibanaApiQueryParametersDescription', + 'xpack.observability.inspector.stats.kibanaApiQueryParametersDescription', { defaultMessage: 'The query parameters used in the Kibana API request that initiated the Elasticsearch request.', @@ -53,24 +53,21 @@ function getStats({ } : {}), kibanaApiRoute: { - label: i18n.translate('xpack.observabilityShared.inspector.stats.kibanaApiRouteLabel', { + label: i18n.translate('xpack.observability.inspector.stats.kibanaApiRouteLabel', { defaultMessage: 'Kibana API route', }), - description: i18n.translate( - 'xpack.observabilityShared.inspector.stats.kibanaApiRouteDescription', - { - defaultMessage: - 'The route of the Kibana API request that initiated the Elasticsearch request.', - } - ), + description: i18n.translate('xpack.observability.inspector.stats.kibanaApiRouteDescription', { + defaultMessage: + 'The route of the Kibana API request that initiated the Elasticsearch request.', + }), value: `${kibanaRequest.route.method.toUpperCase()} ${kibanaRequest.route.path}`, }, indexPattern: { - label: i18n.translate('xpack.observabilityShared.inspector.stats.dataViewLabel', { + label: i18n.translate('xpack.observability.inspector.stats.dataViewLabel', { defaultMessage: 'Data view', }), value: esRequestParams.index, - description: i18n.translate('xpack.observabilityShared.inspector.stats.dataViewDescription', { + description: i18n.translate('xpack.observability.inspector.stats.dataViewDescription', { defaultMessage: 'The data view that connected to the Elasticsearch indices.', }), }, @@ -78,11 +75,11 @@ function getStats({ if (esResponse?.hits?.hits) { stats.hits = { - label: i18n.translate('xpack.observabilityShared.inspector.stats.hitsLabel', { + label: i18n.translate('xpack.observability.inspector.stats.hitsLabel', { defaultMessage: 'Hits', }), value: `${esResponse.hits.hits.length}`, - description: i18n.translate('xpack.observabilityShared.inspector.stats.hitsDescription', { + description: i18n.translate('xpack.observability.inspector.stats.hitsDescription', { defaultMessage: 'The number of documents returned by the query.', }), }; @@ -90,21 +87,18 @@ function getStats({ if (esResponse?.took) { stats.queryTime = { - label: i18n.translate('xpack.observabilityShared.inspector.stats.queryTimeLabel', { + label: i18n.translate('xpack.observability.inspector.stats.queryTimeLabel', { defaultMessage: 'Query time', }), - value: i18n.translate('xpack.observabilityShared.inspector.stats.queryTimeValue', { + value: i18n.translate('xpack.observability.inspector.stats.queryTimeValue', { defaultMessage: '{queryTime}ms', values: { queryTime: esResponse.took }, }), - description: i18n.translate( - 'xpack.observabilityShared.inspector.stats.queryTimeDescription', - { - defaultMessage: - 'The time it took to process the query. ' + - 'Does not include the time to send the request or parse it in the browser.', - } - ), + description: i18n.translate('xpack.observability.inspector.stats.queryTimeDescription', { + defaultMessage: + 'The time it took to process the query. ' + + 'Does not include the time to send the request or parse it in the browser.', + }), }; } @@ -122,16 +116,13 @@ function getStats({ } stats.hitsTotal = { - label: i18n.translate('xpack.observabilityShared.inspector.stats.hitsTotalLabel', { + label: i18n.translate('xpack.observability.inspector.stats.hitsTotalLabel', { defaultMessage: 'Hits (total)', }), value: hitsTotalValue, - description: i18n.translate( - 'xpack.observabilityShared.inspector.stats.hitsTotalDescription', - { - defaultMessage: 'The number of documents that match the query.', - } - ), + description: i18n.translate('xpack.observability.inspector.stats.hitsTotalDescription', { + defaultMessage: 'The number of documents that match the query.', + }), }; } return stats; diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx index 6cafcafaf44a2..9d7e72d693f95 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx @@ -55,15 +55,12 @@ export interface AddDataPanelProps { 'data-test-subj'?: string; } -const tryItDefaultLabel = i18n.translate( - 'xpack.observabilityShared.addDataPabel.tryItButtonLabel', - { - defaultMessage: 'Try it now in our demo cluster', - } -); +const tryItDefaultLabel = i18n.translate('xpack.observability.addDataPabel.tryItButtonLabel', { + defaultMessage: 'Try it now in our demo cluster', +}); const learnMoreDefaultLabel = i18n.translate( - 'xpack.observabilityShared.addDataPabel.learnMoreLinkLabel', + 'xpack.observability.addDataPabel.learnMoreLinkLabel', { defaultMessage: 'Learn more', } @@ -156,6 +153,10 @@ export function AddDataPanel({ {onDismiss && ( { if (!hasCasesPermissions) { notifications.toasts.addWarning({ - title: i18n.translate( - 'xpack.observabilityShared.cases.addPageToCaseModal.noPermissionsTitle', - { - defaultMessage: - 'Insufficient privileges to add page to case. Please contact your admin.', - } - ), + title: i18n.translate('xpack.observability.cases.addPageToCaseModal.noPermissionsTitle', { + defaultMessage: 'Insufficient privileges to add page to case. Please contact your admin.', + }), }); } }, [hasCasesPermissions, notifications.toasts]); @@ -158,24 +154,21 @@ function AddToCaseButtonContent({ return isCommentModalOpen ? ( - {i18n.translate('xpack.observabilityShared.cases.addToCaseModal.title', { + {i18n.translate('xpack.observability.cases.addToCaseModal.title', { defaultMessage: 'Add page to case', })} diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx index 89d3679b9e471..1c480af9252fe 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx @@ -59,7 +59,7 @@ export function AddToCaseComment({ errors.forEach((error) => { notifications.toasts.addError(error, { title: i18n.translate( - 'xpack.observabilityShared.cases.addPageToCaseModal.errorGeneratingSummary', + 'xpack.observability.cases.addPageToCaseModal.errorGeneratingSummary', { defaultMessage: 'Could not initialize AI-generated summary', } @@ -86,13 +86,13 @@ export function AddToCaseComment({ return ( <> }} /> diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx index 3eb3cc15262d5..621022eca204c 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx @@ -48,7 +48,7 @@ export const BottomBarActions = ({ > - {i18n.translate('xpack.observabilityShared.bottomBarActions.unsavedChanges', { + {i18n.translate('xpack.observability.bottomBarActions.unsavedChanges', { defaultMessage: '{unsavedChangesCount, plural, =0{0 unsaved changes} one {1 unsaved change} other {# unsaved changes}} ', values: { unsavedChangesCount }, @@ -59,11 +59,15 @@ export const BottomBarActions = ({ - {i18n.translate('xpack.observabilityShared.bottomBarActions.discardChangesButton', { + {i18n.translate('xpack.observability.bottomBarActions.discardChangesButton', { defaultMessage: 'Discard changes', })} @@ -72,7 +76,7 @@ export const BottomBarActions = ({ { { iconUrl: demoIconUrl, title: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.demoEnvironmentFlexItemLabel', + 'xpack.observability.experimentalOnboardingFlow.demoEnvironmentFlexItemLabel', { defaultMessage: 'Demo environment' } ), description: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.demoEnvironmentFlexItemDescription', + 'xpack.observability.experimentalOnboardingFlow.demoEnvironmentFlexItemDescription', { defaultMessage: 'Explore our live demo environment', } ), linkLabel: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.demoEnvironmentFlexItemLinkLabel', + 'xpack.observability.experimentalOnboardingFlow.demoEnvironmentFlexItemLinkLabel', { defaultMessage: 'Explore demo' } ), link: URL_DEMO_ENV, @@ -48,21 +48,21 @@ export const ExternalResourceLinks: FunctionComponent = () => { { iconUrl: forumIconUrl, title: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemLabel', + 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemLabel', { defaultMessage: 'Explore forum' } ), description: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemDescription', + 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemDescription', { defaultMessage: 'Exchange thoughts about Elastic', } ), linkLabel: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemLinkLabel', + 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemLinkLabel', { defaultMessage: 'Discuss forum' } ), linkARIALabel: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemLinkARIALabel', + 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemLinkARIALabel', { defaultMessage: 'Discuss forum. Open Elastic forum' } ), link: URL_FORUM, @@ -71,21 +71,21 @@ export const ExternalResourceLinks: FunctionComponent = () => { { iconUrl: docsIconUrl, title: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemLabel', + 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemLabel', { defaultMessage: 'Browse documentation' } ), description: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemDescription', + 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemDescription', { defaultMessage: 'In-depth guides on all Elastic features', } ), linkLabel: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemLinkLabel', + 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemLinkLabel', { defaultMessage: 'Learn more' } ), linkARIALabel: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemLinkARIALabel', + 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemLinkARIALabel', { defaultMessage: 'Learn more about all Elastic features' } ), link: docLinks.links.observability.guide, @@ -94,17 +94,17 @@ export const ExternalResourceLinks: FunctionComponent = () => { { iconUrl: supportIconUrl, title: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.supportHubFlexItemLabel', + 'xpack.observability.experimentalOnboardingFlow.supportHubFlexItemLabel', { defaultMessage: 'Support Hub' } ), description: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.supportHubFlexItemDescription', + 'xpack.observability.experimentalOnboardingFlow.supportHubFlexItemDescription', { defaultMessage: 'Get help by opening a case', } ), linkLabel: i18n.translate( - 'xpack.observabilityShared.experimentalOnboardingFlow.supportHubFlexItemLinkLabel', + 'xpack.observability.experimentalOnboardingFlow.supportHubFlexItemLinkLabel', { defaultMessage: 'Open Support Hub' } ), link: helpSupportUrl, diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx index e5d6099e0bd42..0d628eaf185cc 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx @@ -14,7 +14,7 @@ const KIBANA_DEPLOYMENT_TYPE_PARAM = 'entry.573002982'; const SANITIZED_PATH_PARAM = 'entry.1876422621'; const ML_JOB_TYPE = 'entry.170406579'; const FEEDBACK_BUTTON_DEFAULT_TEXT = i18n.translate( - 'xpack.observabilityShared.featureFeedbackButton.defaultText', + 'xpack.observability.featureFeedbackButton.defaultText', { defaultMessage: 'Give feedback', } diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx index 6a9edc7d91ce5..344c759bf180e 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx @@ -63,16 +63,17 @@ export function FieldValueCombobox({ const comboBox = ( { setQuery(searchVal); diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx index bfc5af58bb6a3..0d03a47a3f321 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx @@ -133,7 +133,7 @@ export function FieldValueSelection({ const filterButton = ( - {i18n.translate('xpack.observabilityShared.fieldValueSelection.loading', { + {i18n.translate('xpack.observability.fieldValueSelection.loading', { defaultMessage: 'Loading', })}{' '} @@ -224,7 +221,7 @@ export function FieldValueSelection({ color: euiTheme.colors.textSubdued, }} label={i18n.translate( - 'xpack.observabilityShared.fieldValueSelection.logicalAnd', + 'xpack.observability.fieldValueSelection.logicalAnd', { defaultMessage: 'Use logical AND', } @@ -244,7 +241,7 @@ export function FieldValueSelection({ - {i18n.translate('xpack.observabilityShared.fieldValueSelection.apply', { + {i18n.translate('xpack.observability.fieldValueSelection.apply', { defaultMessage: 'Apply', })} diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx index 72d0ac4f93945..4c12ab810799c 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx @@ -58,7 +58,7 @@ export function NavNameWithBadge({ label, localStorageId }: Props) { {isBadgeVisible && ( - {i18n.translate('xpack.observabilityShared.navigation.newBadge', { + {i18n.translate('xpack.observability.navigation.newBadge', { defaultMessage: 'NEW', })} diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx index f132c8cac8c41..e899114ee4330 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx @@ -28,7 +28,7 @@ export function NavNameWithBetaBadge({ label, iconType, isTechnicalPreview }: Pr diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx index 952371614b936..4d7b05d2ffe6e 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx @@ -228,7 +228,7 @@ export function ObservabilityPageTemplate({ // eslint-disable-next-line import/no-default-export export default ObservabilityPageTemplate; -const sideNavTitle = i18n.translate('xpack.observabilityShared.pageLayout.sideNavTitle', { +const sideNavTitle = i18n.translate('xpack.observability.pageLayout.sideNavTitle', { defaultMessage: 'Observability', }); diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts index 90af3dc789b93..0f1324c33b875 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts @@ -12,7 +12,7 @@ const registry: { [key: string]: React.FC } = {}; export const registerProfilingComponent = (key: string, component: React.FC) => { if (registry[key] !== undefined) { throw new Error( - i18n.translate('xpack.observabilityShared.profilingComponentAlreadyExists.error', { + i18n.translate('xpack.observability.profilingComponentAlreadyExists.error', { defaultMessage: `Component with key {key} already exists`, values: { key }, }) @@ -24,7 +24,7 @@ export const registerProfilingComponent = (key: string, component: React.FC(key: string): React.FC => { if (registry[key] === undefined) { throw new Error( - i18n.translate('xpack.observabilityShared.profilingComponentNotFound.error', { + i18n.translate('xpack.observability.profilingComponentNotFound.error', { defaultMessage: `Component with key {key} not found`, values: { key }, }) diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx index 0d6b7ee3551e6..4bd8c5a4f0018 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx @@ -18,7 +18,7 @@ export function ProfilingEmptyState() { icon={} title={

      - {i18n.translate('xpack.observabilityShared.profilingEmptyState.title', { + {i18n.translate('xpack.observability.profilingEmptyState.title', { defaultMessage: 'Improve computational efficiency. Debug performance regressions. Reduce cloud spend.', })} @@ -31,7 +31,7 @@ export function ProfilingEmptyState() { body={ <>

      - {i18n.translate('xpack.observabilityShared.profilingEmptyState.body', { + {i18n.translate('xpack.observability.profilingEmptyState.body', { defaultMessage: 'Elastic Universal Profiling is a whole-system, always-on, continuous profiling solution that eliminates the need for code instrumentation, recompilation, on-host debug symbols, or service restarts. Leveraging eBPF, Universal Profiling operates within the Linux kernel space, capturing only the needed data with minimal overhead in an unobtrusive manner.', })} @@ -45,7 +45,7 @@ export function ProfilingEmptyState() { color="primary" fill > - {i18n.translate('xpack.observabilityShared.profilingEmptyState.addProfiling', { + {i18n.translate('xpack.observability.profilingEmptyState.addProfiling', { defaultMessage: 'Add profiling', })} , @@ -55,7 +55,7 @@ export function ProfilingEmptyState() { target="_blank" external > - {i18n.translate('xpack.observabilityShared.profilingEmptyState.goToDocs', { + {i18n.translate('xpack.observability.profilingEmptyState.goToDocs', { defaultMessage: 'Go to docs', })} , diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx index c64903caad793..a31ce53e38895 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx @@ -21,7 +21,7 @@ export interface TagsListProps { prependChildren?: React.ReactNode; } const getFilterLabel = (tag: string) => { - return i18n.translate('xpack.observabilityShared.getFilterLabel.filter', { + return i18n.translate('xpack.observability.getFilterLabel.filter', { defaultMessage: 'Click to filter list with tag {tag}', values: { tag, @@ -46,7 +46,7 @@ const TagsList = ({ } return ( - {i18n.translate('xpack.observabilityShared.tagsList.TextLabel', { defaultMessage: '--' })} + {i18n.translate('xpack.observability.tagsList.TextLabel', { defaultMessage: '--' })} ); } @@ -139,10 +139,10 @@ const TagsList = ({ // eslint-disable-next-line import/no-default-export export default TagsList; -const EXPAND_TAGS_LABEL = i18n.translate('xpack.observabilityShared.tagsList.expand', { +const EXPAND_TAGS_LABEL = i18n.translate('xpack.observability.tagsList.expand', { defaultMessage: 'Click to view remaining tags', }); -const COLLAPSE_TAGS_LABEL = i18n.translate('xpack.observabilityShared.tagsList.collapse', { +const COLLAPSE_TAGS_LABEL = i18n.translate('xpack.observability.tagsList.collapse', { defaultMessage: 'Click to collapse tags', }); diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx index 361c4df7cce43..17cea801507cf 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx @@ -17,10 +17,10 @@ type Props = { export function TechnicalPreviewBadge({ icon = 'beaker', size, style }: Props) { return ( {inline && ( } - title="You have existing profiling data" + title={i18n.translate( + 'xpack.profiling.deleteDataView.euiCard.youHaveExistingProfilingLabel', + { defaultMessage: 'You have existing profiling data' } + )} description="To proceed with the Universal Profiling setup, please delete existing profiling data following the steps described in the link below." footer={

      @@ -32,7 +36,10 @@ export function DeleteDataView() { href={`${docLinks.ELASTIC_WEBSITE_URL}/guide/en/observability/${docLinks.DOC_LINK_VERSION}/profiling-upgrade.html#profiling-delete-data`} target="_blank" > - Delete existing profiling data + {i18n.translate( + 'xpack.profiling.deleteDataView.deleteExistingProfilingDataLinkLabel', + { defaultMessage: 'Delete existing profiling data' } + )}
      } diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx index 6aa8ac17d115c..1d97417521889 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx @@ -57,6 +57,10 @@ export function BottomBarActions({ - {error?.message} + + {error?.message} + )} } />; + return } />; } if (!groupByCardinality) { diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slo_edit/components/slo_edit_form_objective_section.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slo_edit/components/slo_edit_form_objective_section.tsx index 81bb6b8765b57..0bde4277f3f35 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slo_edit/components/slo_edit_form_objective_section.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slo_edit/components/slo_edit_form_objective_section.tsx @@ -98,7 +98,7 @@ export function SloEditFormObjectiveSection() { > {isServerless && ( - + {i18n.translate('xpack.slo.sloEdit.timeWindow.serverlessWarning', { defaultMessage: 'Initial data backfill is limited to the past 7 days', })} @@ -179,7 +179,7 @@ export function SloEditFormObjectiveSection() { {indicator === 'sli.metric.timeslice' && ( - +

      - +

      Loading...] + ? [ + + {i18n.translate('xpack.synthetics.locationList.span.loadingLabel', { + defaultMessage: 'Loading...', + })} + , + ] : locationsStatus .map((location) => { return ( diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx index d70d827cc813d..60cfce7e7a64e 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx @@ -124,7 +124,12 @@ export const StdErrorLogs = ({ {summaryMessage && ( - +

      {summaryMessage}

      )} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/mws_callout/mws_callout_content.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/mws_callout/mws_callout_content.tsx index 2058cbe08fd27..1a20177774646 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/mws_callout/mws_callout_content.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/common/mws_callout/mws_callout_content.tsx @@ -15,6 +15,7 @@ export const MwsCalloutContent = ({ activeMWs }: { activeMWs: MaintenanceWindow[ return ( <> { if (!packagePolicyId) return null; return ( - +

      {isEditable && script ? ( - + {fileName} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx index 9afab8a00081e..e97c51b545d5b 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx @@ -73,7 +73,11 @@ export const ThrottlingDownloadField = ({ data-test-subj="syntheticsBrowserDownloadSpeed" append={ - Mbps + + {i18n.translate('xpack.synthetics.throttlingDownloadField.strong.mbpsLabel', { + defaultMessage: 'Mbps', + })} + } readOnly={readOnly} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx index f0ce48ea8935e..834dd00530d93 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx @@ -49,7 +49,11 @@ export const ThrottlingLatencyField = ({ data-test-subj="syntheticsBrowserLatency" append={ - ms + + {i18n.translate('xpack.synthetics.throttlingLatencyField.strong.msLabel', { + defaultMessage: 'ms', + })} + } readOnly={readOnly} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx index 66581ab8a1249..8dff2b94ab52c 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx @@ -71,7 +71,11 @@ export const ThrottlingUploadField = ({ data-test-subj="syntheticsBrowserUploadSpeed" append={ - Mbps + + {i18n.translate('xpack.synthetics.throttlingUploadField.strong.mbpsLabel', { + defaultMessage: 'Mbps', + })} + } readOnly={readOnly} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/steps/can_use_public_locations_callout.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/steps/can_use_public_locations_callout.tsx index 21ac363bbe00e..e73ec4aa63647 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/steps/can_use_public_locations_callout.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/steps/can_use_public_locations_callout.tsx @@ -17,6 +17,7 @@ export const CanUsePublicLocationsCallout = ({ return ( <> { return ( <> { const failedStep = failedSteps.find((step) => step.monitor.check_group === value); if (!failedStep) { - return <>--; + return ( + <>{i18n.translate('xpack.synthetics.columns.Label', { defaultMessage: '--' })} + ); } return ( diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/last_test_run.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/last_test_run.tsx index cd423cc8a155b..b613585ead743 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/last_test_run.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/last_test_run.tsx @@ -138,6 +138,7 @@ export const LastTestRunComponent = ({ /> {!(loading && !latestPing) && latestPing?.error ? ( { const disabledCallout = !canEnable && showDisableCallout && !loading ? ( <> - +

      {labels.CALLOUT_MANAGEMENT_DESCRIPTION}

      {labels.CALLOUT_MANAGEMENT_CONTACT_ADMIN}{' '} @@ -43,7 +43,7 @@ export const DisabledCallout = ({ total }: { total?: number }) => { const disAllowedCallout = !isServiceAllowed ? ( <> - +

      {SERVICE_NOT_ALLOWED}

      diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_errors/monitor_async_error.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_errors/monitor_async_error.tsx index a40bb6e370783..e72bd8805347d 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_errors/monitor_async_error.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_errors/monitor_async_error.tsx @@ -21,6 +21,7 @@ export const MonitorAsyncError = () => { return syncErrors && syncErrors.length > 0 && !isDismissed ? ( <> {isProjectMonitor && ( <> - +

      diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/overview/overview/metric_item/metric_item_icon.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/overview/overview/metric_item/metric_item_icon.tsx index c4cf01ebbe35c..b805f21df09f1 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/overview/overview/metric_item/metric_item_icon.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/overview/overview/metric_item/metric_item_icon.tsx @@ -154,6 +154,7 @@ export const MetricItemIcon = ({ )} { - export SYNTHETICS_API_KEY={apiKey} + {i18n.translate('xpack.synthetics.helpCommands.exportSYNTHETICSAPIKEYCodeBlockLabel', { + defaultMessage: 'export SYNTHETICS_API_KEY=', + })} + {apiKey} @@ -36,7 +39,13 @@ export const HelpCommands = ({ apiKey }: { apiKey: string }) => { - SYNTHETICS_API_KEY={apiKey} npm run push + {i18n.translate('xpack.synthetics.helpCommands.syntheticsapikeyCodeBlockLabel', { + defaultMessage: 'SYNTHETICS_API_KEY=', + })} + {apiKey}{' '} + {i18n.translate('xpack.synthetics.helpCommands.npmRunPushCodeBlockLabel', { + defaultMessage: 'npm run push', + })}

      ); diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_chart_container.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_chart_container.tsx index 4ea45131ea155..c28dec4f6c864 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_chart_container.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_chart_container.tsx @@ -81,6 +81,7 @@ export const WaterfallChartContainer: React.FC = ({ checkGroup, stepIndex )} {waterfallLoaded && hasEvents && !isWaterfallSupported && ( ; + return ( + + ); } return ( @@ -91,6 +93,7 @@ export const BrowserTestRunResult = ({ expectPings, onDone, testRunId }: Props) {(isStepsLoadingFailed || isDownMonitor) && ( { if (!errorType) { - return <>--; + return <>{i18n.translate('xpack.synthetics.pingErrorCol.Label', { defaultMessage: '--' })}; } return ( diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode.tsx index f6815c4c38572..30b8998c9a4e6 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode.tsx @@ -47,7 +47,7 @@ export function TestNowMode({ return ( {(hasBlockingError && !isPushing && ( - + {blockingErrorMessage} )) || diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode_flyout.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode_flyout.tsx index c32f51e5f5446..69e09222fa133 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode_flyout.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/test_now_mode_flyout.tsx @@ -67,7 +67,7 @@ export function TestNowModeFlyout({ {isPushing && ( - + {PushingLabel} )} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_run_details/components/test_run_error_info.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_run_details/components/test_run_error_info.tsx index a7e561b985b38..762242d28c880 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_run_details/components/test_run_error_info.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_run_details/components/test_run_error_info.tsx @@ -33,6 +33,7 @@ export const TestRunErrorInfo = ({ <> {(hasNoSteps || isDownMonitor) && showErrorTitle && ( { href={docLinks?.links.heartbeat.monitorTags} target="_blank" > - Set tags + {i18n.translate('xpack.uptime.monitorTags.setTagsLinkLabel', { + defaultMessage: 'Set tags', + })} ); } diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/fleet_package/synthetics_policy_edit_extension_wrapper.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/fleet_package/synthetics_policy_edit_extension_wrapper.tsx index dc9e113f5d478..278a500938074 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/fleet_package/synthetics_policy_edit_extension_wrapper.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/fleet_package/synthetics_policy_edit_extension_wrapper.tsx @@ -53,7 +53,7 @@ export const SyntheticsPolicyEditExtensionWrapper = memo +

      {EDIT_IN_SYNTHETICS_DESC}

      {!canCreateMLJob && ( - +

      { ); if (!thisFailedStep) { - return <>--; + return <>{i18n.translate('xpack.uptime.failedStep.Label', { defaultMessage: '--' })}; } return (

      diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx index 3e688b58ae190..c142c2291bed5 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import { i18n } from '@kbn/i18n'; import styled from 'styled-components'; import type { Ping } from '../../../../../../common/runtime_types/ping'; @@ -23,7 +24,7 @@ interface Props { export const PingErrorCol = ({ errorType, ping }: Props) => { if (!errorType) { - return <>--; + return <>{i18n.translate('xpack.uptime.pingErrorCol.Label', { defaultMessage: '--' })}; } return ( diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx index e7b17745c0e6c..9f68a8394ef62 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx @@ -46,7 +46,11 @@ export const MonitorRedirects: React.FC = ({ monitorStatus }) => { return list ? ( <> - Redirects + + {i18n.translate('xpack.uptime.monitorRedirects.redirectsDescriptionListTitleLabel', { + defaultMessage: 'Redirects', + })} + = ({ checkGroup, stepIndex )} {waterfallLoaded && hasEvents && !isWaterfallSupported && ( (

      {title}

      -
      {appendTitle}
      +
      + {appendTitle} +
      {reportType}
      -
      {JSON.stringify(attributes)}
      +
      + {JSON.stringify(attributes)} +
      ); diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx index ec9ac6f970a01..6c0b5f358272e 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx @@ -7,6 +7,7 @@ import { EuiCheckbox, EuiFlexGroup, EuiFlexItem, EuiFieldText } from '@elastic/eui'; import React, { useState, useEffect } from 'react'; +import { i18n } from '@kbn/i18n'; import { AlertExpressionPopover } from '../alert_expression_popover'; import * as labels from '../translations'; import { AlertFieldNumber } from '../alert_field_number'; @@ -155,7 +156,13 @@ export const AvailabilityExpressionSelect: React.FC = ({ = ({ expiry, boldStyle = false }) return ; } - return certStatus ? : --; + return certStatus ? ( + + ) : ( + + {i18n.translate('xpack.uptime.certStatusColumn.span.Label', { defaultMessage: '--' })} + + ); }; diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx index 3f88e85559849..add54798aa33b 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx @@ -60,6 +60,7 @@ export const EnabledAlerts = ({ monitorAlerts, loading }: Props) => { {listItems.length === 0 && !loading && ( { {(downChecks.has(UNNAMED_LOCATION) || upChecks.has(UNNAMED_LOCATION)) && ( <> - + - +

      {summaryMessage}

      diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx index 2836451785331..20e8d6b867b69 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx @@ -53,7 +53,11 @@ export const StepDuration = ({ ); if (step.synthetics.step?.status === 'skipped') { - return --; + return ( + + {i18n.translate('xpack.uptime.stepDuration.span.Label', { defaultMessage: '--' })} + + ); } if (!showStepDurationTrend) { diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx index 415fd6063c3ec..9a441ba43c00a 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx @@ -65,7 +65,9 @@ export const MappingErrorPage = () => { href={`${docLinks.ELASTIC_WEBSITE_URL}guide/en/observability/${docLinks.DOC_LINK_VERSION}/troubleshoot-uptime-mapping-issues.html`} target="_blank" > - docs + {i18n.translate('xpack.uptime.mappingErrorPage.docsLinkLabel', { + defaultMessage: 'docs', + })} ), }} diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/settings.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/settings.tsx index 1b784af6261c0..408c529bd1133 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/settings.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/settings.tsx @@ -106,7 +106,7 @@ export const SettingsPage: React.FC = () => { const cannotEditNotice = canEdit ? null : ( <> - + {Translations.settings.editNoticeText} diff --git a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx index 5850fae94562e..9fc7b6b6d9248 100644 --- a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx +++ b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx @@ -6,6 +6,7 @@ */ import * as React from 'react'; +import { i18n } from '@kbn/i18n'; import { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import { fromQuery, toQuery } from '@kbn/observability-plugin/public'; @@ -52,7 +53,9 @@ export function SelectedWildcards({ indexPattern }: Props) { field={TRANSACTION_URL} value={searchTerm} negate={false} - label={'URL wildcard'} + label={i18n.translate('xpack.ux.selectedWildcards.filterValueLabel.urlWildcardLabel', { + defaultMessage: 'URL wildcard', + })} /> ) : null; } diff --git a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx index 9912033f0523f..cd697d26dad7c 100644 --- a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx +++ b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx @@ -6,6 +6,7 @@ */ import * as React from 'react'; +import { i18n } from '@kbn/i18n'; import type { LineAnnotationDatum, LineAnnotationStyle } from '@elastic/charts'; import { AnnotationDomainType, LineAnnotation, Position } from '@elastic/charts'; import { euiLightVars } from '@kbn/ui-theme'; @@ -34,7 +35,14 @@ export function PercentileAnnotations({ percentiles }: Props) { }; function PercentileTooltip({ annotation }: { annotation: LineAnnotationDatum }) { - return {annotation.details}th Percentile; + return ( + + {annotation.details} + {i18n.translate('xpack.ux.percentileTooltip.span.thPercentileLabel', { + defaultMessage: 'th Percentile', + })} + + ); } return ( @@ -52,9 +60,21 @@ export function PercentileAnnotations({ percentiles }: Props) { } - content={Pages loaded: {Math.round(annotation.dataValue)}} + content={ + + {i18n.translate('xpack.ux.percentileAnnotations.span.pagesLoadedLabel', { + defaultMessage: 'Pages loaded:', + })} + {Math.round(annotation.dataValue)} + + } > - <>{annotation.details}th + <> + {annotation.details} + {i18n.translate('xpack.ux.percentileAnnotations.thLabel', { + defaultMessage: 'th', + })} + } diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx index baa0430150c09..9ceeb84a088b3 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx @@ -46,6 +46,7 @@ export const AddAnalyticsCollectionForm: React.FC = error={inputError} > { return discoverLink ? ( { { {table && ( void) => [ values={{ embedLink: ( { setSelectedTab('javascriptEmbed'); @@ -47,6 +48,7 @@ export const searchUIEmbedSteps = (setSelectedTab: (tab: TabKey) => void) => [ ), clientLink: ( { setSelectedTab('javascriptClientEmbed'); @@ -132,6 +134,7 @@ plugins: [ values={{ link: ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx index 19c236065286d..7c0e5cbbffc3d 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx @@ -348,6 +348,7 @@ export const AnalyticsCollectionOverviewTable: React.FC navigateToUrl( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx index 7dd3b5161578c..de64d94619e4d 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx @@ -86,6 +86,7 @@ export const AnalyticsCollectionSettings: React.FC { + { = = ( ( })} {' '} - + {i18n.translate('xpack.enterpriseSearch.analytics.collections.emptyState.footerLink', { defaultMessage: 'Read documentation', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/add_indices_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/add_indices_flyout.tsx index f5cfc9ed8d80d..2d69c5e67b960 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/add_indices_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/add_indices_flyout.tsx @@ -78,6 +78,7 @@ export const AddIndicesFlyout: React.FC = ({ onClose }) = <> { defaultMessage="Your search application uses a {searchTemplateDocLink} to control the types of queries it accepts. Run the following command to view your current search template:" values={{ searchTemplateDocLink: ( - + { defaultMessage="We provide a basic, default search template to get started, but you'll probably want to update it for your use case. Use the examples in our {searchTemplateExampleDoc} for inspiration." values={{ searchTemplateExampleDoc: ( - + { defaultMessage="This {apiKeyDocumentation} will only be able to access your Search endpoint." values={{ apiKeyDocumentation: ( - + { { { defaultMessage="To get the most out of the JavaScript client, use the client's example template and follow our {searchapplicationSearchDocLink} on building a search experience." values={{ searchapplicationSearchDocLink: ( - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.searchApi.step3.clientDocumenation', { @@ -255,7 +258,11 @@ export const SearchApplicationApiIntegrationStage: React.FC = () => { <> - + {

      - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.searchApplication.readDocumentation', { @@ -98,7 +102,11 @@ export const SearchApplicationDocumentation = () => {
      - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.manageAPIKeys.learnMore', { @@ -145,7 +153,11 @@ export const SearchApplicationDocumentation = () => { - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.languageClients.learnMore', { @@ -192,7 +204,11 @@ export const SearchApplicationDocumentation = () => { - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.searchInsights.learnMore', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx index 8ee45043dbcab..0ab9fa723d879 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx @@ -195,6 +195,7 @@ const ConfigurationPopover: React.FC = ({ { additionalInputProps={getInputProps({ append: ( setShowAPICallFlyout(true)} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx index eaaccc3ed270b..65822380a33bb 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx @@ -151,8 +151,17 @@ export const ResultView: React.FC = ({ result }) => { }; export const SearchBar: React.FC = ({ additionalInputProps }) => ( - - + + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.docsExplorer.inputView.searchLabel', { @@ -196,6 +205,7 @@ export const ResultsPerPageView: React.FC = ({ ({ @@ -264,6 +274,7 @@ export const Sorting = withSearch< { switch (evt.target.value) { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_indices.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_indices.tsx index 0aa8e9106f0d3..ab3e8cd65b0e4 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_indices.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_indices.tsx @@ -198,6 +198,7 @@ export const SearchApplicationIndices: React.FC = () => { {(hasAllUnreachableIndices || hasUnknownIndices) && ( <> = ({ schemaFiel {notInAllIndices && ( = ({ schemaFiel id="xpack.enterpriseSearch.searchApplications.searchApplication.schema.fieldIndices.notInAllIndices.description" defaultMessage="Learn more about field mapping in" />{' '} - + { return ( { {hasSchemaConflicts && ( { />

      {!onlyShowConflicts && ( - + { { /> {totalConflictsHiddenByTypeFilters > 0 && ( { } )}

      - setSelectedEsFieldTypes(esFieldTypes)}> + setSelectedEsFieldTypes(esFieldTypes)} + > {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.conflict.callout.clearFilters', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx index 6fd6e4432bf55..0f6e9ca039ce1 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx @@ -9,12 +9,17 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiEmptyPrompt } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; import { EmptySearchApplicationsPrompt } from './empty_search_applications_prompt'; describe('EmptySearchApplicationsPrompt', () => { it('should pass children to prompt actions', () => { - const dummyEl =
      dummy
      ; + const dummyEl = ( +
      + {i18n.translate('xpack.enterpriseSearch..div.dummyLabel', { defaultMessage: 'dummy' })} +
      + ); const wrapper = shallow( {dummyEl} ); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx index e9094d55c58bd..ab6942174afa9 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx @@ -102,6 +102,7 @@ export const CreateSearchApplication = ({ onClose }: CreateSearchApplicationFlyo values={{ docsLink: ( = ({ <> = ({ = ({ }) )} > - Elastic Connectors + {i18n.translate( + 'xpack.enterpriseSearch.connectorStats.elasticConnectorsButtonEmptyLabel', + { defaultMessage: 'Elastic Connectors' } + )} @@ -455,6 +459,7 @@ export const ConnectorStats: React.FC = ({ {agentlessAgentExists && ( = ({ {agnetlessPolicyExists ? ( { EXAMPLE_CONNECTOR_SERVICE_TYPES.includes(connector.service_type) && ( <> { <> {isModalVisible && } { {error && ( <> { {!!connector && !connector.index_name && ( <> { {!!connector?.index_name && !indexData && ( <> = ({ title, set {isWaitingOnAgentlessDeployment && ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/components/client_libraries_popover/popover.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/components/client_libraries_popover/popover.tsx index bb76d460ae153..9f9bb1145a501 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/components/client_libraries_popover/popover.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/components/client_libraries_popover/popover.tsx @@ -122,6 +122,7 @@ export const ClientLibrariesPopover: React.FC = () => { closePopover={toggleClientsPopover} button={ = ({ indexN ) : ( ) : indexName === '' ? ( ) : !hasApiKey ? ( { - setIsEditing(!isEditing)}>{EDIT_BUTTON_LABEL} + setIsEditing(!isEditing)} + > + {EDIT_BUTTON_LABEL} + diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx index a3ff559335d7e..25672b5281e06 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx @@ -79,6 +79,7 @@ export const ConnectorNameAndDescriptionFlyout: React.FC = () => { setIsEditing(false)} isLoading={status === Status.LOADING} > @@ -86,7 +87,12 @@ export const ConnectorNameAndDescriptionFlyout: React.FC = () => { - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.configurationConnector.nameAndDescriptionFlyout.saveButtonLabel', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx index 2f361c8e37da4..37b7d87fbd11f 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx @@ -43,6 +43,7 @@ export const ConnectorNameAndDescriptionForm: React.FC = () => { { { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx index 695e69a2efe06..bbf934234038f 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx @@ -25,6 +25,7 @@ export const ConnectorNameAndDescriptionFormContent: React.FC = () => { <> { @@ -34,6 +35,7 @@ export const ConnectorNameAndDescriptionFormContent: React.FC = () => { { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx index 0065874c3764f..2f0a72ef96e13 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/native_connector_configuration/native_connector_configuration_config.tsx @@ -86,6 +86,7 @@ export const NativeConnectorConfigurationConfig: React.FC< <> { {(!isAdvancedSnippetEmpty || !isLocalSnippetEmpty) && ( { > = ({ childre {isEditing && ( { setIsEditing(!isEditing); @@ -57,6 +58,7 @@ export const ConnectorSyncRulesForm: FC> = ({ childre )} = ({ {errors.map((error, index) => ( { values: { indexName }, })} - + {i18n.translate('xpack.enterpriseSearch.content.index.connector.syncRules.link', { defaultMessage: 'Learn more about customizing your sync rules.', })} @@ -90,6 +95,7 @@ export const SyncRulesTable: React.FC = () => { { editingRender: (filteringRule, onChange) => ( onChange(e.target.value)} @@ -117,7 +123,12 @@ export const SyncRulesTable: React.FC = () => { editingRender: (rule, onChange) => ( - onChange(e.target.value)} /> + onChange(e.target.value)} + /> ), @@ -135,6 +146,7 @@ export const SyncRulesTable: React.FC = () => { { editingRender: (filteringRule, onChange) => ( onChange(e.target.value)} @@ -155,7 +167,12 @@ export const SyncRulesTable: React.FC = () => { editingRender: (rule, onChange) => ( - onChange(e.target.value)} /> + onChange(e.target.value)} + /> ), diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx index 16c85e24c5a3a..63f2f9c76a7a3 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx @@ -58,6 +58,7 @@ export const SyncRulesStateCallouts: React.FC = ({ = ({ = ({ = ({ { <> {isAccessControlIndexNotFound && ( = ({ indexName }) => { }, [data]); return errors.length > 0 ? ( { {isAccessControlIndexNotFound ? ( { /> ) : ( {label} - Edit + + {i18n.translate('xpack.enterpriseSearch.editDescription.editButtonEmptyLabel', { + defaultMessage: 'Edit', + })} + ); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/overview.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/overview.tsx index 226f80e8cf812..5ef41a7ce0a01 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/overview.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/overview.tsx @@ -42,6 +42,7 @@ export const SearchIndexOverview: React.FC = () => { {isConnectorIndex(indexData) && error && ( <> { <> {isModalVisible && } { />

      diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx index 43aa7c40745e9..2975b1456191d 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx @@ -92,6 +92,7 @@ export const IngestPipelineFlyout: React.FC = ({ {extractionDisabled ? ( = ({ )}

      @@ -172,7 +174,11 @@ export const IngestPipelineFlyout: React.FC = ({
      - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.modalIngestLinkLabel', { @@ -236,7 +242,11 @@ export const IngestPipelineFlyout: React.FC = ({ {displayOnly ? ( - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.closeButtonLabel', { @@ -247,7 +257,10 @@ export const IngestPipelineFlyout: React.FC = ({ ) : ( - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.cancelButtonLabel', { @@ -257,7 +270,12 @@ export const IngestPipelineFlyout: React.FC = ({ - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.saveButtonLabel', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx index 6fdd43a2439da..d94139536eb9e 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx @@ -38,6 +38,7 @@ export const ManageCustomPipelineActions: React.FC = 0 && ( <> @@ -282,6 +284,7 @@ export const AddInferencePipelineFooter: React.FC< {previousStep !== undefined ? ( @@ -295,6 +298,7 @@ export const AddInferencePipelineFooter: React.FC< {nextStep !== undefined ? ( ) : attachExistingPipeline ? ( ) : ( void; }> = ({ disabled, ingestionMethod, onClick }) => ( { isInvalid={nameError} > { <> = ({ licenseType, modelDe return ( {modelDetailsPageUrl ? ( - + {licenseLabel} ) : ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx index 35adc1d63519c..0c5a1bb06452a 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx @@ -27,6 +27,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; +import { FormattedMessage } from '@kbn/i18n-react'; import type { MlModel } from '../../../../../../../common/types/ml'; import { MlModelDeploymentState } from '../../../../../../../common/types/ml'; @@ -47,6 +48,7 @@ export const DeployModelButton: React.FC<{ }> = ({ onClick, modelId, disabled }) => { return ( { return ( - + @@ -99,6 +106,7 @@ export const StartModelButton: React.FC<{ }> = ({ onClick, modelId, disabled }) => { return ( { return ( - + @@ -198,7 +211,15 @@ export const SelectedModel: React.FC = (model) => { ); return ( - + + } + > {getSelectedModelAnnouncement(model)} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx index 18117cd559ab6..e892ccb725594 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx @@ -184,6 +184,7 @@ export const MultiFieldMapping: React.FC = () => { fullWidth > setTargetField(e.target.value)} data-telemetry-id={`entSearchContent-${ingestionMethod}-pipelines-configureFields-targetField`} @@ -196,6 +197,7 @@ export const MultiFieldMapping: React.FC = () => { { error={getDocumentsErr} > {
      - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.steps.test.runButton', { defaultMessage: 'Simulate Pipeline' } diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx index f0bae2f81ed58..95f73162c2c60 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx @@ -88,6 +88,7 @@ export const DeployModel = ({ > - + ) : ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx index 1ea2c63ccaaa3..14736f372e5d7 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx @@ -46,6 +46,7 @@ export const TextExpansionDismissButton = ({ }: Pick) => { return ( ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx index e55f6109c177f..f22f3483d9344 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx @@ -26,7 +26,11 @@ export const TextExpansionErrors = ({ error }: { error: { title: string; message

      {error.message}

      - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.textExpansionCreateError.mlNotificationsLink', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx index 6419b3573790e..7b73d3955c1f6 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx @@ -135,6 +135,7 @@ export const SearchIndexPipelines: React.FC = () => { {showMissingPipelineCallout && ( <> { } )}

      - revertPipeline({ indexName })}> + revertPipeline({ indexName })} + > {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.missingPipeline.buttonLabel', { @@ -171,7 +177,12 @@ export const SearchIndexPipelines: React.FC = () => { + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.ingestionPipeline.docLink', { @@ -239,7 +250,12 @@ export const SearchIndexPipelines: React.FC = () => { + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.mlInferencePipelines.docLink', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx index 61ecd35d0b6b4..eb24bb433a1dc 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx @@ -58,7 +58,12 @@ export const PipelinesJSONConfigurations: React.FC = () => { { defaultMessage: 'View the JSON for your pipeline configurations on this index.' } )} footerDocLink={ - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.tabs.jsonConfigurations.ingestionPipelines.docLink', { @@ -82,6 +87,7 @@ export const PipelinesJSONConfigurations: React.FC = () => { )} > ({ text: name, value: name }))} @@ -99,6 +105,7 @@ export const PipelinesJSONConfigurations: React.FC = () => { {isManagedPipeline(selectedPipeline) ? ( { ) : ( { {deleteModalIndexHasInProgressSyncs && ( <> { -

      About Search UI

      +

      + {i18n.translate( + 'xpack.enterpriseSearch.searchExperiencesGuide.h2.aboutSearchUILabel', + { defaultMessage: 'About Search UI' } + )} +

      @@ -70,6 +75,7 @@ export const SearchExperiencesGuide: React.FC = () => { { { } - title="Elasticsearch" + title={i18n.translate( + 'xpack.enterpriseSearch.searchExperiencesGuide.euiCard.elasticsearchLabel', + { defaultMessage: 'Elasticsearch' } + )} description={i18n.translate( 'xpack.enterpriseSearch.searchExperiences.guide.tutorials.elasticsearch.description', { @@ -182,7 +192,10 @@ export const SearchExperiencesGuide: React.FC = () => { } - title="App Search" + title={i18n.translate( + 'xpack.enterpriseSearch.searchExperiencesGuide.euiCard.appSearchLabel', + { defaultMessage: 'App Search' } + )} description={i18n.translate( 'xpack.enterpriseSearch.searchExperiences.guide.tutorials.appSearch.description', { @@ -196,7 +209,10 @@ export const SearchExperiencesGuide: React.FC = () => { } - title="Workplace Search" + title={i18n.translate( + 'xpack.enterpriseSearch.searchExperiencesGuide.euiCard.workplaceSearchLabel', + { defaultMessage: 'Workplace Search' } + )} description={i18n.translate( 'xpack.enterpriseSearch.searchExperiences.guide.tutorials.workplaceSearch.description', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx index 602fadc951f69..8de42abc82207 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx @@ -62,7 +62,12 @@ export const AddContentEmptyPrompt: React.FC = () => {
      - + {i18n.translate( 'xpack.enterpriseSearch.addContentEmptyPrompt.newIndexButtonLabel', { @@ -85,7 +90,11 @@ export const AddContentEmptyPrompt: React.FC = () => { - + {i18n.translate('xpack.enterpriseSearch.overview.emptyState.footerLinkTitle', { defaultMessage: 'Learn more', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/api_key/create_api_key_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/api_key/create_api_key_flyout.tsx index b2ef38b343d31..81c1214450889 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/api_key/create_api_key_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/api_key/create_api_key_flyout.tsx @@ -231,6 +231,7 @@ export const CreateApiKeyFlyout: React.FC = ({ onClose )} {error && ( { it('renders with a title and children', () => { const wrapper = shallow( - Tabula Rasa}> -
      Look at this graph
      + + {i18n.translate('xpack.enterpriseSearch..h1.tabulaRasaLabel', { + defaultMessage: 'Tabula Rasa', + })} + + } + > +
      + {i18n.translate('xpack.enterpriseSearch..div.lookAtThisGraphLabel', { + defaultMessage: 'Look at this graph', + })} +
      ); @@ -28,7 +41,15 @@ describe('DataPanel', () => { }); it('conditionally renders a spacer between the header and children', () => { - const wrapper = shallow(Test} />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} + + } + /> + ); expect(wrapper.find(EuiSpacer)).toHaveLength(0); @@ -43,14 +64,34 @@ describe('DataPanel', () => { describe('components', () => { it('renders with an icon', () => { - const wrapper = shallow(The Smoke Monster} iconType="eye" />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h1.theSmokeMonsterLabel', { + defaultMessage: 'The Smoke Monster', + })} + + } + iconType="eye" + /> + ); expect(wrapper.find(EuiIcon).prop('type')).toEqual('eye'); }); it('renders with a subtitle', () => { const wrapper = shallow( - Hugo Reyes} subtitle="Hurley was typically happy-go-lucky" /> + + {i18n.translate('xpack.enterpriseSearch..h1.hugoReyesLabel', { + defaultMessage: 'Hugo Reyes', + })} + + } + subtitle="Hurley was typically happy-go-lucky" + /> ); expect(wrapper.find('p').text()).toEqual('Hurley was typically happy-go-lucky'); @@ -59,7 +100,13 @@ describe('DataPanel', () => { it('renders with an icon and a subtitle', () => { const wrapper = shallow( Flight 815} + title={ +

      + {i18n.translate('xpack.enterpriseSearch..h1.flightLabel', { + defaultMessage: 'Flight 815', + })} +

      + } iconType="package" subtitle="Oceanic Airlines Flight 815 was a scheduled flight from Sydney, Australia to Los Angeles, California" /> @@ -74,8 +121,20 @@ describe('DataPanel', () => { it('renders with a button', () => { const wrapper = shallow( Board Flight 815} - action={Book flight} + title={ +

      + {i18n.translate('xpack.enterpriseSearch..h1.boardFlightLabel', { + defaultMessage: 'Board Flight 815', + })} +

      + } + action={ + + {i18n.translate('xpack.enterpriseSearch..bookFlightButtonLabel', { + defaultMessage: 'Book flight', + })} + + } /> ); @@ -85,7 +144,15 @@ describe('DataPanel', () => { describe('props', () => { it('passes titleSize to the title', () => { - const wrapper = shallow(Test} />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h2.testLabel', { defaultMessage: 'Test' })} + + } + /> + ); expect(wrapper.find(EuiTitle).prop('size')).toEqual('xs'); // Default @@ -95,7 +162,15 @@ describe('DataPanel', () => { }); it('renders panel color based on filled flag', () => { - const wrapper = shallow(Test} />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} + + } + /> + ); expect(wrapper.prop('color')).toEqual('plain'); expect(wrapper.prop('className')).toEqual('dataPanel'); @@ -107,7 +182,15 @@ describe('DataPanel', () => { }); it('renders a loading overlay based on isLoading flag', () => { - const wrapper = shallow(Test} />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} + + } + /> + ); expect(wrapper.prop('aria-busy')).toBeFalsy(); expect(wrapper.find(LoadingOverlay)).toHaveLength(0); @@ -119,7 +202,16 @@ describe('DataPanel', () => { }); it('passes hasBorder', () => { - const wrapper = shallow(Test} />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} + + } + /> + ); expect(wrapper.prop('hasBorder')).toBeFalsy(); wrapper.setProps({ hasBorder: true }); @@ -127,13 +219,31 @@ describe('DataPanel', () => { }); it('passes class names', () => { - const wrapper = shallow(Test} className="testing" />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} + + } + className="testing" + /> + ); expect(wrapper.prop('className')).toEqual('dataPanel testing'); }); it('passes arbitrary props', () => { - const wrapper = shallow(Test} data-test-subj="testing" />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} + + } + data-test-subj="testing" + /> + ); expect(wrapper.find('[data-test-subj="testing"]')).toHaveLength(1); }); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx index 750a639f0ee88..07be613766e78 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx @@ -23,21 +23,33 @@ export const ElasticsearchResources: React.FC = () => ( - + {i18n.translate('xpack.enterpriseSearch.overview.elasticsearchResources.gettingStarted', { defaultMessage: 'Getting started with Elasticsearch', })} - + {i18n.translate('xpack.enterpriseSearch.overview.elasticsearchResources.createIndex', { defaultMessage: 'Create a new index', })} - + {i18n.translate( 'xpack.enterpriseSearch.overview.elasticsearchResources.elasticsearchClients', { defaultMessage: 'Setup a language client' } @@ -46,6 +58,7 @@ export const ElasticsearchResources: React.FC = () => ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx index 89905f27e0319..7561cb78838d5 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx @@ -12,6 +12,7 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiCallOut } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; import { FlashMessages } from './flash_messages'; @@ -22,7 +23,13 @@ describe('FlashMessages', () => { { type: 'error', message: 'Whoa nelly!', - description:
      Something went wrong
      , + description: ( +
      + {i18n.translate('xpack.enterpriseSearch..div.somethingWentWrongLabel', { + defaultMessage: 'Something went wrong', + })} +
      + ), }, { type: 'info', message: 'Everything is fine, nothing is ruined' }, { type: 'warning', message: 'Uh oh' }, @@ -44,7 +51,9 @@ describe('FlashMessages', () => { const wrapper = shallow( ); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/layout/page_template.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/layout/page_template.tsx index 04e2f575b90a6..d873718fecb70 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/layout/page_template.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/layout/page_template.tsx @@ -100,6 +100,7 @@ export const EnterpriseSearchPageTemplateWrapper: React.FC = {readOnlyMode && ( <> = (props) => { })} ) : ( - + {i18n.translate('xpack.enterpriseSearch.licenseDocumentationLink', { defaultMessage: 'Learn more about license features', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx index 54d0346061655..e00bc2843b077 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx @@ -124,14 +124,22 @@ export const LicensingCallout: React.FC<{ feature: LICENSING_FEATURE }> = ({ fea

      {secondContentBlock[feature]}

      - + {i18n.translate('xpack.enterpriseSearch.workplaceSearch.explorePlatinumFeatures.link', { defaultMessage: 'Explore Platinum features', })} - + {i18n.translate('xpack.enterpriseSearch.content.licensingCallout.contentCloudTrial', { defaultMessage: 'Explore Enterprise Search on Elastic Cloud ', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx index 074fc40cdf6bb..cd5feadb6c6a0 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx @@ -59,7 +59,11 @@ export const NotFoundPrompt: React.FC = ({ - + {i18n.translate('xpack.enterpriseSearch.notFound.action2', { defaultMessage: 'Contact support', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx index 4077dac076839..4268015dda125 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx @@ -10,12 +10,20 @@ import React from 'react'; import { mount } from 'enzyme'; import { EuiLink } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; import { PageIntroduction } from './page_introduction'; describe('PageIntroduction component', () => { it('renders with title as a string', () => { - const wrapper = mount(); + const wrapper = mount( + + ); // .hostNodes is required due to Emotion injection causing problems with enzyme const titleContainer = wrapper .find('[data-test-subj="pageIntroductionTitleContainer"]') @@ -28,7 +36,13 @@ describe('PageIntroduction component', () => { it('renders title as React node', () => { const wrapper = mount( react node title} + title={ +

      + {i18n.translate('xpack.enterpriseSearch..h2.reactNodeTitleLabel', { + defaultMessage: 'react node title', + })} +

      + } description="some description" /> ); @@ -60,10 +74,14 @@ describe('PageIntroduction component', () => { const wrapper = mount( - test link to nowhere + + {i18n.translate('xpack.enterpriseSearch..testLinkToNowhereLinkLabel', { + defaultMessage: 'test link to nowhere', + })} } /> @@ -79,13 +97,23 @@ describe('PageIntroduction component', () => { const wrapper = mount( - test link to nowhere + + {i18n.translate('xpack.enterpriseSearch..testLinkToNowhereLinkLabel', { + defaultMessage: 'test link to nowhere', + })} , - - test link to nowhere2 + + {i18n.translate('xpack.enterpriseSearch..testLinkToNowhereLinkLabel', { + defaultMessage: 'test link to nowhere2', + })} , ]} /> @@ -104,8 +132,16 @@ describe('PageIntroduction component', () => { const wrapper = mount( some action} + title={i18n.translate('xpack.enterpriseSearch..pageIntroduction.someTitleLabel', { + defaultMessage: 'some title', + })} + actions={ + + } /> ); const actions = wrapper.find('button'); @@ -117,8 +153,21 @@ describe('PageIntroduction component', () => { const wrapper = mount( some action, ]} + title={i18n.translate('xpack.enterpriseSearch..pageIntroduction.someTitleLabel', { + defaultMessage: 'some title', + })} + actions={[ + , + , + ]} /> ); const actions = wrapper.find('button'); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx index 357d60f588469..291f73f984461 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx @@ -25,6 +25,7 @@ import { EuiPanel, EuiCard, } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; import { EuiLinkTo, @@ -62,7 +63,14 @@ describe('React Router EUI component helpers', () => { }); it('renders an EuiListGroupItem', () => { - const wrapper = shallow(); + const wrapper = shallow( + + ); expect(wrapper.find(EuiListGroupItem)).toHaveLength(1); expect(wrapper.find(EuiListGroupItem).prop('label')).toEqual('foo'); @@ -76,7 +84,15 @@ describe('React Router EUI component helpers', () => { }); it('renders an EuiCard', () => { - const wrapper = shallow(); + const wrapper = shallow( + + ); expect(wrapper.find(EuiCard)).toHaveLength(1); expect(wrapper.find(EuiCard).prop('title')).toEqual('test'); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx index 0017a7b9bec1b..0b32bb05bd6ac 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx @@ -42,7 +42,13 @@ export const EuiLinkTo: React.FC = ({ onClick, shouldNotCreateHref, ...rest -}) => ; +}) => ( + +); type ReactRouterEuiButtonProps = ReactRouterProps & EuiButtonProps; export const EuiButtonTo: React.FC = ({ @@ -50,7 +56,13 @@ export const EuiButtonTo: React.FC = ({ onClick, shouldNotCreateHref, ...rest -}) => ; +}) => ( + +); type ReactRouterEuiButtonEmptyProps = ReactRouterProps & EuiButtonEmptyProps; export const EuiButtonEmptyTo: React.FC = ({ @@ -59,7 +71,11 @@ export const EuiButtonEmptyTo: React.FC = ({ shouldNotCreateHref, ...rest }) => ( - + ); type ReactRouterEuiButtonIconProps = ReactRouterProps & EuiButtonIconProps; @@ -69,7 +85,11 @@ export const EuiButtonIconTo: React.FC = ({ shouldNotCreateHref, ...rest }) => ( - + ); type ReactRouterEuiPanelProps = ReactRouterProps & EuiPanelProps; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx index c3bd26947244d..17a298bfb8203 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx @@ -10,6 +10,7 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiSelect } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; import { SchemaFieldTypeSelect } from '.'; @@ -41,7 +42,15 @@ describe('SchemaFieldTypeSelect', () => { }); it('passes arbitrary props', () => { - const wrapper = shallow(); + const wrapper = shallow( + + ); expect(wrapper.find(EuiSelect).prop('aria-label')).toEqual('Test label'); }); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx index a1b3302cd35a8..2ef3514520d45 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx @@ -72,6 +72,7 @@ export const SearchLabsBanner: React.FC = () => { { ({ {!canRemoveLastItem && displayedItems.length === 1 ? ( - + {DELETE_BUTTON_LABEL} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx index 3d2a243664edf..9465fbcedd567 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx @@ -12,6 +12,8 @@ import React from 'react'; import { shallow } from 'enzyme'; import { BindLogic } from 'kea'; +import { i18n } from '@kbn/i18n'; + import { PageIntroduction } from '../../page_introduction/page_introduction'; import { ReorderableTable } from '../reorderable_table'; @@ -97,7 +99,16 @@ describe('InlineEditableTable', () => { it('renders a title if one is provided', () => { const wrapper = shallow( - Some Description

      } /> + + {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { + defaultMessage: 'Some Description', + })} +

      + } + /> ); expect(wrapper.find(PageIntroduction).prop('title')).toEqual(requiredParams.title); }); @@ -106,7 +117,13 @@ describe('InlineEditableTable', () => { const wrapper = shallow( Some Description

      } + description={ +

      + {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { + defaultMessage: 'Some Description', + })} +

      + } /> ); expect(wrapper.find('[data-test-subj="inlineEditableTableTitle"]').exists()).toBe(false); @@ -114,9 +131,24 @@ describe('InlineEditableTable', () => { it('renders a description if one is provided', () => { const wrapper = shallow( - Some Description

      } /> + + {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { + defaultMessage: 'Some Description', + })} +

      + } + /> + ); + expect(wrapper.find(PageIntroduction).prop('description')).toEqual( +

      + {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { + defaultMessage: 'Some Description', + })} +

      ); - expect(wrapper.find(PageIntroduction).prop('description')).toEqual(

      Some Description

      ); }); it('renders no description if none is provided', () => { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx index 333cb73e75225..6282a5b04b410 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx @@ -10,6 +10,7 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiCallOut, EuiToken } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; import { BodyRow } from './body_row'; import { Cell } from './cell'; @@ -67,7 +68,17 @@ describe('BodyRow', () => { it('will render an additional cell in the first column if one is provided', () => { const wrapper = shallow( - Left Action
      } /> + + {i18n.translate('xpack.enterpriseSearch..div.leftActionLabel', { + defaultMessage: 'Left Action', + })} +
      + } + /> ); const cells = wrapper.find(Cell); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.tsx index 52d294e50e247..d63b65e1ad98e 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.tsx @@ -67,6 +67,7 @@ export const BodyRow = ({ {errors.map((errorMessage, errorMessageIndex) => ( { it('renders a table cell with the provided content and styles', () => { const wrapper = shallow( - Content + {i18n.translate('xpack.enterpriseSearch..cell.contentLabel', { defaultMessage: 'Content' })} ); expect(wrapper.props()).toEqual({ diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx index 4ef767551b697..a784383365d0c 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx @@ -9,6 +9,8 @@ import React from 'react'; import { shallow } from 'enzyme'; +import { i18n } from '@kbn/i18n'; + import { Cell } from './cell'; import { HeaderRow } from './header_row'; @@ -31,7 +33,18 @@ describe('HeaderRow', () => { }); it('will render an additional cell in the first column if one is provided', () => { - const wrapper = shallow(Left Action
      } />); + const wrapper = shallow( + + {i18n.translate('xpack.enterpriseSearch..div.leftActionLabel', { + defaultMessage: 'Left Action', + })} +
      + } + /> + ); const cells = wrapper.find(Cell); expect(cells.length).toBe(3); expect(cells.at(0).html()).toContain('Left Action'); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx index 36ec5cd00ee20..771b8c6eba20e 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx @@ -9,6 +9,8 @@ import React from 'react'; import { shallow } from 'enzyme'; +import { i18n } from '@kbn/i18n'; + import { BodyRow } from './body_row'; import { BodyRows } from './body_rows'; import { DraggableBodyRow } from './draggable_body_row'; @@ -28,7 +30,17 @@ describe('ReorderableTable', () => { describe('when the table is reorderable', () => { it('renders with a header that has an additional column injected as the first column, which is empty', () => { const wrapper = shallow( - No Items

      } items={items} columns={columns} /> + + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } + items={items} + columns={columns} + /> ); const header = wrapper.find(HeaderRow); expect(header.exists()).toEqual(true); @@ -38,7 +50,17 @@ describe('ReorderableTable', () => { it('renders draggable rows inside of the reorderable table', () => { const wrapper = shallow( - No Items

      } items={items} columns={columns} /> + + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } + items={items} + columns={columns} + /> ); const bodyRows = wrapper.find(DraggableBodyRows); expect(bodyRows.exists()).toBe(true); @@ -58,7 +80,13 @@ describe('ReorderableTable', () => { it('can append additional properties to each row, which can be dynamically calculated from the item in that row', () => { const wrapper = shallow( No Items

      } + noItemsMessage={ +

      + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } items={items} columns={columns} rowProps={(item) => ({ @@ -75,7 +103,13 @@ describe('ReorderableTable', () => { it('will disableDragging on individual rows if disableDragging is enabled', () => { const wrapper = shallow( No Items

      } + noItemsMessage={ +

      + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } items={items} columns={columns} disableDragging @@ -89,7 +123,13 @@ describe('ReorderableTable', () => { const onReorder = jest.fn(); const wrapper = shallow( No Items

      } + noItemsMessage={ +

      + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } items={items} columns={columns} onReorder={onReorder} @@ -100,7 +140,17 @@ describe('ReorderableTable', () => { it('will provide a default callback for reordered if none is provided, which does nothing', () => { const wrapper = shallow( - No Items

      } items={items} columns={columns} /> + + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } + items={items} + columns={columns} + /> ); const onReorder = wrapper.find(DraggableBodyRows).prop('onReorder'); expect(onReorder([], [])).toBeUndefined(); @@ -110,7 +160,13 @@ describe('ReorderableTable', () => { const unreorderableItems = [{ id: 3 }]; const wrapper = shallow( No Items

      } + noItemsMessage={ +

      + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } items={items} unreorderableItems={unreorderableItems} columns={columns} @@ -134,7 +190,13 @@ describe('ReorderableTable', () => { const bottomRows = [
      ,
      ]; const wrapper = shallow( No Items

      } + noItemsMessage={ +

      + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } items={items} bottomRows={bottomRows} columns={columns} @@ -149,7 +211,13 @@ describe('ReorderableTable', () => { it('renders a table with a header and non-reorderable rows', () => { const wrapper = shallow( No Items

      } + noItemsMessage={ +

      + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } items={items} columns={columns} disableReordering @@ -171,7 +239,13 @@ describe('ReorderableTable', () => { it('can append additional properties to each row, which can be dynamically calculated from the item in that row', () => { const wrapper = shallow( No Items

      } + noItemsMessage={ +

      + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } items={items} columns={columns} rowProps={(item) => ({ @@ -189,7 +263,18 @@ describe('ReorderableTable', () => { it('appends an additional className if specified', () => { const wrapper = shallow( - No Items

      } items={[]} columns={[]} className="foo" /> + + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } + items={[]} + columns={[]} + className="foo" + /> ); expect(wrapper.hasClass('foo')).toBe(true); @@ -197,7 +282,17 @@ describe('ReorderableTable', () => { it('will show a no items message when there are no items', () => { const wrapper = shallow( - No Items

      } items={[]} columns={columns} /> + + {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { + defaultMessage: 'No Items', + })} +

      + } + items={[]} + columns={columns} + /> ); expect(wrapper.find('[data-test-subj="NoItems"]').exists()).toBe(true); diff --git a/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx b/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx index c9204e65b77b2..0759bc50ce5eb 100644 --- a/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx +++ b/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx @@ -42,7 +42,10 @@ export const RecentDocsActionMessage: React.FC = ( pageSize: DEFAULT_DOCUMENT_PAGE_SIZE, }, })}{' '} - + {i18n.translate('xpack.searchIndices.indexDocuments.recentDocsActionMessageLink', { defaultMessage: 'Discover.', })} diff --git a/x-pack/solutions/search/plugins/search_playground/public/components/edit_context/context_fields_select.tsx b/x-pack/solutions/search/plugins/search_playground/public/components/edit_context/context_fields_select.tsx index 7cd4602c7f503..e0381d68bc518 100644 --- a/x-pack/solutions/search/plugins/search_playground/public/components/edit_context/context_fields_select.tsx +++ b/x-pack/solutions/search/plugins/search_playground/public/components/edit_context/context_fields_select.tsx @@ -63,6 +63,7 @@ export const ContextFieldsSelect = ({ if (selectOptions.length === 0) { return ( = ({ copyText, ar return ( = ({ {clipped ? ( 0) { return ( { ) : ( = ({ indices, onRemoveCli defaultMessage: 'Selected indices', }), truncateText: true, - render: (index: string) => {index}, + render: (index: string) => ( + + {index} + + ), }, { actions: [ diff --git a/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx b/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx index 09eb328cebb9e..706d8b69eddc0 100644 --- a/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx +++ b/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx @@ -62,6 +62,7 @@ export const CreateApiKeyForm = () => { rules={{ required: true }} render={({ field }) => ( { rules={{ min: 0, required: true }} render={({ field }) => ( @@ -111,7 +113,11 @@ export const CreateApiKeyForm = () => { {isSuccess && !isDirty ? ( - + { ) : ( { )} = ({ <> {actionFields.length === 0 && actionIdsFields?.length === 0 && ( = ({ {isIdRule && ( <> = ({ {pinType === 'pinned' && documentCount !== 0 && ( = ({ {shouldShowCriteriaCallout && ( <> { @@ -335,6 +338,7 @@ export const QueryRuleFlyout: React.FC = ({ ) : ( <> { diff --git a/x-pack/solutions/search/plugins/search_synonyms/public/components/synonyms_rule_flyout/synonym_rule_flyout.tsx b/x-pack/solutions/search/plugins/search_synonyms/public/components/synonyms_rule_flyout/synonym_rule_flyout.tsx index 1b286553e5b2d..8dc18cfcf05f8 100644 --- a/x-pack/solutions/search/plugins/search_synonyms/public/components/synonyms_rule_flyout/synonym_rule_flyout.tsx +++ b/x-pack/solutions/search/plugins/search_synonyms/public/components/synonyms_rule_flyout/synonym_rule_flyout.tsx @@ -115,6 +115,7 @@ export const SynonymRuleFlyout: React.FC = ({ banner={ backendError && ( = ({ indexName, allFields }) => {
      {allFields.length > 0 ? ( <> - +

      {ALL_CALLOUT(EcsVersion)}

      diff --git a/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx b/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx index 76a4d3c2d8eaf..b7acbf619da67 100644 --- a/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx +++ b/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx @@ -49,7 +49,7 @@ const EcsCompliantTabComponent: React.FC = ({ indexName, ecsCompliantFiel
      {!isTimestampFieldMissing(ecsCompliantFields) ? ( <> - +

      {ECS_COMPLIANT_CALLOUT({ fieldCount: ecsCompliantFields.length, diff --git a/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx b/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx index e0119dcb01e50..374017cea484c 100644 --- a/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx +++ b/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx @@ -109,7 +109,7 @@ export const AwsAccountTypeSelect = ({ {!awsOrganizationEnabled && ( <> - + { if (!hasCloudFormationTemplate) { return ( - + {!showCloudTemplates && isCloudFormationSupported && ( <> - + { if (!hasArmTemplateUrl) { return ( - + - + {!gcpOrganizationEnabled && ( <> - + - + {!showCloudTemplates && ( <> - + ({ <> { return isOnboardingSuccessCalloutVisible ? ( <> ({ + {isPlatinum === false && ( diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx index 431b9b0051f5e..d0f5f1f5b7644 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx @@ -64,7 +64,7 @@ const MarkdownRendererComponent: React.FC = ({ children, disableLinks, te <> {platinumPluginDetected && ( <> - + = ({ children, disableLinks, te )} {markdownParseResult !== null && ( <> - + {markdownParseResult} diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx index 5f3b834d777b8..aa9ce5a859bbc 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx @@ -159,6 +159,7 @@ export const MlPopover = React.memo(() => { {incompatibleJobCount > 0 && ( <> = ({ {fieldErrors ? ( <> - + {fieldErrors} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx index ea410f9773715..d4579a7367a66 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx @@ -147,6 +147,7 @@ const RequiredFieldsList = ({ <> {hasWarnings && ( = ({ {showInvocationCountWarning && ( <> = ({ {showRuleDefitnionInvalidWarning && ( <> ( = ({ rule }) => { /> {isRulesCustomizationEnabled && upgradeCallout} {invalidSteps.length > 0 && ( - + {includesRuleWithEQLSequenceStatement && ( <> - + )} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/bulk_fill_rule_gaps/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/bulk_fill_rule_gaps/index.tsx index 6ce9f5a3d1602..910e3547b1e68 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/bulk_fill_rule_gaps/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/bulk_fill_rule_gaps/index.tsx @@ -48,6 +48,7 @@ const BulkFillRuleGapsModalComponent = ({ if (rulesCount > 1) { components.push( { const headerCallout = isReverting ? ( <> - +

      {i18n.REVERTING_RULE_CALLOUT_MESSAGE}

      diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx index afcac7e780aa7..b378701052703 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx @@ -63,6 +63,7 @@ export const RuleCustomizationsFlyoutSubheader = ({ <> {i18n.UPGRADE_STATUS} @@ -52,6 +53,7 @@ export function RuleUpgradeCallout({ return ( <> {i18n.UPGRADE_STATUS} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx index e167a7618eb5e..4460ccfc80f46 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx @@ -150,7 +150,12 @@ const IndexPatternsFormComponent = ({ )} {overwrite && ( - + + - + - + - +

      { showCallout && ( <> { {incompatibleJobCount > 0 && ( <> ({ if (riskScoreError) { return ( = ({ state } if (storeEnablement.error) { return ( { useErrorToast(errorMessage, error); if (error) { - return ; + return ; } if (!data || isStatusAPILoading) return ; diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx index 1e42917c21bf8..889c13b2126eb 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx @@ -64,6 +64,7 @@ export const PrivilegedAccessDetectionsPanel: React.FC<{ spaceId: string }> = ({ <> {padInstallationStatusError && ( {installationErrorOccurred && ( = ({ spaceId }) /> {hasError && ( = ({ (isError ? (

      {error && ( 0 ? ( diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_manage_data_sources/csv_upload_manage_data_source.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_manage_data_sources/csv_upload_manage_data_source.tsx index e37b073d200f2..5338bc9068318 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_manage_data_sources/csv_upload_manage_data_source.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_manage_data_sources/csv_upload_manage_data_source.tsx @@ -57,6 +57,7 @@ export const CsvUploadManageDataSource = ({

      {isError && ( 0 ? i18n.translate( diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/create_index_modal.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/create_index_modal.tsx index ce79b45f22667..1155c7991c151 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/create_index_modal.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/create_index_modal.tsx @@ -113,7 +113,9 @@ export const CreateIndexModal = ({ {error && ( <> - {error} + + {error} + )} diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/esql_dashboard_panel/esql_dashboard_panel.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/esql_dashboard_panel/esql_dashboard_panel.tsx index 568636dc22fec..7ff74e159aa3c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/esql_dashboard_panel/esql_dashboard_panel.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring_onboarding/components/esql_dashboard_panel/esql_dashboard_panel.tsx @@ -102,6 +102,7 @@ export const EsqlDashboardPanel = > if (isLeft(visualizationQuery)) { return ( > ) : isError ? (
      {error ? ( <> - {LOADING_ERROR_MESSAGE} + + {LOADING_ERROR_MESSAGE} + ) : null} diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx index 995d4980cfffc..500a27ecd237f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx @@ -172,6 +172,7 @@ const RiskEnginePreview: React.FC<{ includeClosedAlerts: boolean; from: string; if (isError) { return ( { {enableStoreMutation.isError && ( { )} {deleteEntityEngineMutation.isError && ( { if (isRulePreview) { return ( { if (hasInvestigationGuide && !isLinkEnabled) { return ( { if (isRulePreview) { return ( { if (!isNewNavigationEnabled && isPreviewMode) { return ( { assignAssetCriticality.reset(); }} diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx index d8135f8e8f154..b96c71cc591c8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx @@ -114,6 +114,7 @@ export const ManagedUser = ({ <> {!entraManagedUser && !oktaManagedUser && !managedUser.isLoading ? ( ( {!isInitializing && showExpiredLicenseBanner && ( ( {artifactRestrictedPolicyIds.policyIds.length > 0 && !isGlobal && ( <> - + {ARTIFACT_POLICIES_NOT_ACCESSIBLE_IN_ACTIVE_SPACE_MESSAGE( artifactRestrictedPolicyIds.policyIds.length )} diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx index dab6ceb7c8c79..e27146dd3a3ce 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx @@ -26,6 +26,7 @@ export const OfflineCallout = memo(({ agentType, endpointId return ( <> diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx index 1abf9b78e577f..9d88a6e1e6948 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx @@ -288,7 +288,7 @@ export const EndpointPolicyCreateExtension = memo - +

      {endpointPresetsMapping[endpointPreset].note}{' '} diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx index 13f18d071d543..b002344d75d81 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx @@ -75,7 +75,7 @@ export const PolicyDetails = React.memo(() => { if (policyApiError) { return ( - + {policyApiError?.message} diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx index 2720126987117..ab7bd6575ef27 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx @@ -155,6 +155,7 @@ export const AdvancedSection = memo( {isEditMode && ( <> 0 && ( <> ( if (automaticUpdatesEnabled) { return ( ) : hasError || !node ? ( = React.memo( <> ( ({ isOnlyDetectionAlerts, title }) => isOnlyDetectionAlerts ? ( - + ) : null ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/timelines/components/edit_data_provider/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/timelines/components/edit_data_provider/index.tsx index aac2a1b7128a3..076dea63d0169 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/timelines/components/edit_data_provider/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/timelines/components/edit_data_provider/index.tsx @@ -271,6 +271,7 @@ export const StatefulEditDataProvider = React.memo( {type === DataProviderTypeEnum.template && showComboBoxInput && ( <> ( {showWarning && ( = ({ {showCallOutUnauthorizedMsg && ( = ({ {status === TimelineStatusEnum.immutable && ( ; -type ExtraEuiVars = { +interface ExtraEuiVars { terminalOutputBackground: string; terminalOutputMarkerAccent: string; terminalOutputMarkerWarning: string; terminalOutputSliderBackground: string; -}; +} type EuiVars = ExtraEuiVars; type EuiThemeReturn = ReturnType & { euiVars: EuiVars }; From 81dbe57bd3a47292db14451f16cae84e6d317250 Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 15 Sep 2025 17:07:54 +0200 Subject: [PATCH 03/54] revert unrelated changes part 1 --- .../plugins/shared/embeddable/common/types.ts | 6 +-- .../public/add_from_library/registry.ts | 4 +- .../server/persistable_state/types.ts | 4 +- .../shared/expressions/common/ast/types.ts | 4 +- .../common/expression_functions/specs/math.ts | 4 +- .../expressions/common/util/create_error.ts | 4 +- .../common/persistable_state/types.ts | 4 +- .../state_management/set_state_to_kbn_url.ts | 5 +-- .../public/history/redirect_when_missing.tsx | 4 +- .../dashboard_hello_world_drilldown/index.tsx | 4 +- .../index.tsx | 4 +- .../dashboard_to_discover_drilldown/types.ts | 4 +- .../evaluation/scenarios/esql/index.spec.ts | 2 +- .../details_step/details_step_form.tsx | 4 +- .../alert_active_time_range_annotation.tsx | 2 +- .../src/components/alert_annotation.tsx | 9 ++-- .../components/alert_threshold_annotation.tsx | 2 +- .../alert_threshold_time_range_rect.tsx | 2 +- .../src/components/alerts_grouping.tsx | 2 +- .../select_anomaly_severity.tsx | 4 -- .../transaction_duration_rule_type/index.tsx | 3 -- .../transaction_type_select.tsx | 3 -- .../view_in_apm_button.tsx | 4 -- .../app/diagnostics/data_stream_tab.tsx | 16 ++----- .../app/diagnostics/import_export_tab.tsx | 27 +++-------- .../components/app/diagnostics/index.tsx | 12 ++--- .../index_pattern_settings_tab.tsx | 21 ++++----- .../app/diagnostics/index_templates_tab.tsx | 45 +++---------------- .../app/diagnostics/indices_tab.tsx | 6 +-- .../apm_integration_package_status.tsx | 5 +-- .../summary_tab/data_streams_status.tsx | 9 +--- .../app/diagnostics/summary_tab/index.tsx | 19 +++----- .../summary_tab/index_templates_status.tsx | 9 +--- .../summary_tab/indicies_status.tsx | 9 +--- .../diagnostics/summary_tab/tab_status.tsx | 11 +---- .../treemap_select.tsx | 3 -- .../mobile_most_affected/treemap_select.tsx | 3 -- .../charts/mobile_treemap/treemap_select.tsx | 3 -- .../mobile/service_overview/filters/index.tsx | 3 -- .../geo_map/embedded_map_select.tsx | 3 -- .../instructions/api_key_callout.tsx | 2 - .../onboarding/instructions/django_agent.tsx | 5 +-- .../onboarding/instructions/flask_agent.tsx | 5 +-- .../app/onboarding/instructions/go_agent.tsx | 5 +-- .../onboarding/instructions/node_agent.tsx | 5 +-- .../app/onboarding/instructions/php_agent.tsx | 5 +-- .../onboarding/instructions/rack_agent.tsx | 4 +- .../onboarding/instructions/rails_agent.tsx | 4 +- .../actions/edit_dashboard.tsx | 3 -- .../actions/goto_dashboard.tsx | 3 -- .../actions/link_dashboard.tsx | 3 -- .../actions/save_dashboard_modal.tsx | 7 --- .../actions/unlink_dashboard.tsx | 3 -- .../service_dashboards/dashboard_selector.tsx | 3 -- .../service_group_save/group_details.tsx | 3 -- .../service_group_save/select_services.tsx | 3 -- .../agent_configurations/list/index.tsx | 1 - .../settings/agent_keys/create_agent_key.tsx | 18 ++------ .../anomaly_detection/add_environments.tsx | 4 +- .../app/settings/apm_indices/index.tsx | 8 +--- .../delete_button.tsx | 3 -- .../flyout_footer.tsx | 3 -- .../index_lifecycle_phase_select.tsx | 3 -- .../trace_explorer/trace_search_box/index.tsx | 3 -- .../default_discovery_rule.tsx | 13 +----- .../runtime_attachment/discovery_rule.tsx | 8 ---- .../edit_discovery_rule.tsx | 18 +------- .../apm_policy_form/settings_form/index.tsx | 4 -- .../analyze_data_button.tsx | 3 -- .../explore_logs_button.tsx | 3 -- .../shared/links/setup_instructions_link.tsx | 3 -- .../components/shared/ml_callout/index.tsx | 3 -- 72 files changed, 99 insertions(+), 354 deletions(-) diff --git a/src/platform/plugins/shared/embeddable/common/types.ts b/src/platform/plugins/shared/embeddable/common/types.ts index 6e1b33534620c..4f449f14c480b 100644 --- a/src/platform/plugins/shared/embeddable/common/types.ts +++ b/src/platform/plugins/shared/embeddable/common/types.ts @@ -9,13 +9,13 @@ import type { Reference } from '@kbn/content-management-utils'; -export interface EmbeddableTransforms< +export type EmbeddableTransforms< StoredState extends object = object, State extends object = object -> { +> = { transformOut?: (state: StoredState, references?: Reference[]) => State; transformIn?: (state: State) => { state: StoredState; references?: Reference[]; }; -} +}; diff --git a/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts b/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts index 16e4cfdd41921..e4cab9421481d 100644 --- a/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts +++ b/src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts @@ -13,13 +13,13 @@ import type { FinderAttributes, SavedObjectCommon } from '@kbn/saved-objects-fin import type { SavedObjectMetaData } from '@kbn/saved-objects-finder-plugin/public'; import { useMemo } from 'react'; -export interface RegistryItem { +export type RegistryItem = { onAdd: ( container: CanAddNewPanel, savedObject: SavedObjectCommon ) => void; savedObjectMetaData: SavedObjectMetaData; -} +}; const registry: Map> = new Map(); diff --git a/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts b/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts index 72dceed27d88e..162eb7435a166 100644 --- a/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts +++ b/src/platform/plugins/shared/embeddable/server/persistable_state/types.ts @@ -10,9 +10,9 @@ import type { PersistableStateService } from '@kbn/kibana-utils-plugin/common'; import type { SerializableRecord } from '@kbn/utility-types'; -export interface EmbeddableStateWithType { +export type EmbeddableStateWithType = { enhancements?: SerializableRecord; type: string; -} +}; export type EmbeddablePersistableStateService = PersistableStateService; diff --git a/src/platform/plugins/shared/expressions/common/ast/types.ts b/src/platform/plugins/shared/expressions/common/ast/types.ts index eee6061cdc167..ffed3d5883748 100644 --- a/src/platform/plugins/shared/expressions/common/ast/types.ts +++ b/src/platform/plugins/shared/expressions/common/ast/types.ts @@ -28,7 +28,7 @@ export type ExpressionAstFunction = Omit & { debug?: ExpressionAstFunctionDebug; }; -export interface ExpressionAstFunctionDebug { +export type ExpressionAstFunctionDebug = { /** * True if function successfully returned output, false if function threw. */ @@ -71,6 +71,6 @@ export interface ExpressionAstFunctionDebug { * timing starts after the arguments have been resolved. */ duration: number | undefined; -} +}; export type ExpressionAstArgument = string | boolean | number | ExpressionAstExpression; diff --git a/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts index 3191016e5ab86..471d8f55592a0 100644 --- a/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts +++ b/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts @@ -11,10 +11,10 @@ import { i18n } from '@kbn/i18n'; import type { ExpressionFunctionDefinition } from '../types'; import type { Datatable } from '../../expression_types'; -export interface MathArguments { +export type MathArguments = { expression: string; onError?: 'null' | 'zero' | 'false' | 'throw'; -} +}; export type MathInput = number | Datatable; diff --git a/src/platform/plugins/shared/expressions/common/util/create_error.ts b/src/platform/plugins/shared/expressions/common/util/create_error.ts index 3b9693ce63527..7d8a2e6edd42d 100644 --- a/src/platform/plugins/shared/expressions/common/util/create_error.ts +++ b/src/platform/plugins/shared/expressions/common/util/create_error.ts @@ -9,11 +9,11 @@ import type { ExpressionValueError } from '..'; -export interface SerializedError { +export type SerializedError = { name: string; message: string; stack?: string; -} +}; export type ErrorLike = SerializedError & { original?: SerializedError; diff --git a/src/platform/plugins/shared/kibana_utils/common/persistable_state/types.ts b/src/platform/plugins/shared/kibana_utils/common/persistable_state/types.ts index 3e23cb5019e67..fb02f6f97592a 100644 --- a/src/platform/plugins/shared/kibana_utils/common/persistable_state/types.ts +++ b/src/platform/plugins/shared/kibana_utils/common/persistable_state/types.ts @@ -93,9 +93,7 @@ export type GetMigrationFunctionObjectFn = () => MigrateFunctionsObject; * accumulated over time. Migration functions are keyed using semver version * of Kibana releases. */ -export interface MigrateFunctionsObject { - [semver: string]: MigrateFunction; -} +export type MigrateFunctionsObject = { [semver: string]: MigrateFunction }; export type MigrateFunction< FromVersion extends Serializable = SerializableRecord, ToVersion extends Serializable = SerializableRecord diff --git a/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts index e6232bd75af71..62d7c9e826114 100644 --- a/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts +++ b/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts @@ -11,10 +11,7 @@ import { encodeState } from './encode_state'; import { replaceUrlHashQuery, replaceUrlQuery } from './format'; import { createStateHash } from './state_hash'; -export interface SetStateToKbnUrlHashOptions { - useHash: boolean; - storeInHashQuery?: boolean; -} +export type SetStateToKbnUrlHashOptions = { useHash: boolean; storeInHashQuery?: boolean }; export function createSetStateToKbnUrl(createHash: (rawState: State) => string) { return ( diff --git a/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx b/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx index 15cd49bca057a..10eac0544fea1 100644 --- a/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx +++ b/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx @@ -19,10 +19,10 @@ import type { UserProfileService } from '@kbn/core-user-profile-browser'; import type { SavedObjectNotFound } from '..'; import { KibanaThemeProvider } from '../theme'; -interface MarkdownRendererProps { +type MarkdownRendererProps = { basePath: HttpStart['basePath']; children: string; -} +}; const MarkdownRenderer = React.lazy(async () => { const { default: ReactMarkdown } = await import('react-markdown'); diff --git a/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_drilldown/index.tsx b/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_drilldown/index.tsx index e0cedbed9169c..efa515f631460 100644 --- a/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_drilldown/index.tsx +++ b/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_drilldown/index.tsx @@ -14,9 +14,9 @@ import type { CollectConfigProps } from '@kbn/kibana-utils-plugin/public'; export type ActionContext = ChartActionContext; -export interface Config { +export type Config = { name: string; -} +}; const SAMPLE_DASHBOARD_HELLO_WORLD_DRILLDOWN = 'SAMPLE_DASHBOARD_HELLO_WORLD_DRILLDOWN'; diff --git a/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_only_range_select_drilldown/index.tsx b/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_only_range_select_drilldown/index.tsx index 6e359ed5ffff3..2ccf6ca3500fd 100644 --- a/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_only_range_select_drilldown/index.tsx +++ b/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_only_range_select_drilldown/index.tsx @@ -13,9 +13,9 @@ import { SELECT_RANGE_TRIGGER } from '@kbn/embeddable-plugin/public'; import type { CollectConfigProps } from '@kbn/kibana-utils-plugin/public'; import type { BaseActionFactoryContext } from '@kbn/ui-actions-enhanced-plugin/public/dynamic_actions'; -export interface Config { +export type Config = { name: string; -} +}; const SAMPLE_DASHBOARD_HELLO_WORLD_DRILLDOWN_ONLY_RANGE_SELECT = 'SAMPLE_DASHBOARD_HELLO_WORLD_DRILLDOWN_ONLY_RANGE_SELECT'; diff --git a/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/types.ts b/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/types.ts index 48f13365f083d..f75dfd2c33ff7 100644 --- a/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/types.ts +++ b/x-pack/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/types.ts @@ -13,7 +13,7 @@ export type ActionApi = Partial; export type ActionContext = ApplyGlobalFilterActionContext & { embeddable: ActionApi }; -export interface Config { +export type Config = { /** * Whether to use a user selected index pattern, stored in `indexPatternId` field. */ @@ -34,6 +34,6 @@ export interface Config { * Whether to carry over source dashboard time range. */ carryTimeRange: boolean; -} +}; export type CollectConfigProps = CollectConfigPropsBase; diff --git a/x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts index b138327d9ed7e..cd116d62150b2 100644 --- a/x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts +++ b/x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import type { Logger } from '@kbn/logging'; diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/details_step/details_step_form.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/details_step/details_step_form.tsx index 015f55f9a90bc..b5c39dea3370d 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/details_step/details_step_form.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/details_step/details_step_form.tsx @@ -215,7 +215,9 @@ export const DetailsStepForm: FC = ({ aria-label={i18n.translate('xpack.ml.dataframe.analytics.create.jobIdInputAriaLabel', { defaultMessage: 'Choose a unique analytics job ID.', })} - isInvalid={(!jobIdEmpty && !jobIdValid) || jobIdExists || jobIdInvalidMaxLength} + isInvalid={ + (!jobIdEmpty && !jobIdValid) || jobIdExists || jobIdInvalidMaxLength || jobIdEmpty + } data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput" /> diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx index 88be4bc0906fa..9f1beb3c77669 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_active_time_range_annotation.tsx @@ -17,7 +17,7 @@ interface Props { } const RECT_ANNOTATION_TITLE = i18n.translate( - 'app_not_found_in_i18nrc.alertActiveTimeRangeAnnotation.detailsTooltip', + 'observabilityAlertDetails.alertActiveTimeRangeAnnotation.detailsTooltip', { defaultMessage: 'Active', } diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx index 455d5695c23df..4579bc6976b9c 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_annotation.tsx @@ -18,9 +18,12 @@ interface Props { id: string; } -const ANNOTATION_TITLE = i18n.translate('app_not_found_in_i18nrc.alertAnnotation.detailsTooltip', { - defaultMessage: 'Alert started', -}); +const ANNOTATION_TITLE = i18n.translate( + 'observabilityAlertDetails.alertAnnotation.detailsTooltip', + { + defaultMessage: 'Alert started', + } +); export function AlertAnnotation({ alertStart, color, dateFormat, id }: Props) { return ( diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx index 25e974360bf50..ed2ad17d8d81a 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_annotation.tsx @@ -16,7 +16,7 @@ interface Props { } const ANNOTATION_TITLE = i18n.translate( - 'app_not_found_in_i18nrc.alertThresholdAnnotation.detailsTooltip', + 'observabilityAlertDetails.alertThresholdAnnotation.detailsTooltip', { defaultMessage: 'Alert started', } diff --git a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx index 2fdffcb3ade3e..8294c4ee04098 100644 --- a/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx +++ b/x-pack/solutions/observability/packages/alert-details/src/components/alert_threshold_time_range_rect.tsx @@ -16,7 +16,7 @@ interface Props { } const RECT_ANNOTATION_TITLE = i18n.translate( - 'app_not_found_in_i18nrc.alertThresholdTimeRangeRect.detailsTooltip', + 'observabilityAlertDetails.alertThresholdTimeRangeRect.detailsTooltip', { defaultMessage: 'Threshold', } diff --git a/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx b/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx index d0d6ce6e262d9..47f2ea042837e 100644 --- a/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx +++ b/x-pack/solutions/observability/packages/kbn-alerts-grouping/src/components/alerts_grouping.tsx @@ -104,7 +104,7 @@ const AlertsGroupingInternal = ( groupPanelRenderer: renderGroupPanel, getGroupStats, unit: (totalCount) => - i18n.translate('app_not_found_in_i18nrc.unit', { + i18n.translate('alertsGrouping.unit', { values: { totalCount }, defaultMessage: `{totalCount, plural, =1 {alert} other {alerts}}`, }), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx index b77948ae3d33b..3ea2146acdd24 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiHealth, EuiSpacer, EuiSuperSelect, EuiText } from '@elastic/eui'; import { getSeverityColor } from '../../../../../common/anomaly_detection'; @@ -30,9 +29,6 @@ interface Props { export function SelectAnomalySeverity({ onChange, value }: Props) { return ( ({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx index 94da630770f62..2b4f0c4e354c6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx @@ -223,9 +223,6 @@ export function TransactionDurationRuleType(props: Props) { })} > { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/transaction_type_select.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/transaction_type_select.tsx index 0e4db23ebaa47..638917da9a8c4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/transaction_type_select.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/transaction_type_select.tsx @@ -21,9 +21,6 @@ export function TransactionTypeSelect({ return ( serviceNavigator.navigate({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx index cb50e62454258..b049f58c62a83 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx @@ -9,7 +9,6 @@ import type { IndicesDataStream } from '@elastic/elasticsearch/lib/api/types'; import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBadge, EuiBasicTable, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; -import { i18n } from '@kbn/i18n'; import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useDiagnosticsContext } from './context/use_diagnostics'; @@ -21,10 +20,7 @@ export function DiagnosticsDataStreams() { return ( <> - {i18n.translate('xpack.apm.diagnosticsDataStreams.thisSectionShowsTheTextLabel', { - defaultMessage: - 'This section shows the APM data streams and their underlying index template.', - })} + This section shows the APM data streams and their underlying index template. @@ -47,18 +43,12 @@ function DataStreamsTable({ data }: { data?: DiagnosticsBundle }) { return indexTemplate?.exists && !indexTemplate?.isNonStandard ? ( <> {templateName}  - - {i18n.translate('xpack.apm.columns.okBadgeLabel', { defaultMessage: 'OK' })} - + OK ) : ( <> {templateName}  - - {i18n.translate('xpack.apm.columns.nonstandardBadgeLabel', { - defaultMessage: 'Non-standard', - })} - + Non-standard ); }, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx index 47bcf1f42b783..bdeead278986d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx @@ -6,7 +6,6 @@ */ import React, { useState } from 'react'; -import { i18n } from '@kbn/i18n'; import { EuiButton, EuiCard, @@ -45,19 +44,14 @@ function ExportCard() { } - title={i18n.translate('xpack.apm.exportCard.euiCard.exportLabel', { - defaultMessage: 'Export', - })} + title="Export" description="Export the diagnostics report in order to provide it to Elastic Support" footer={

      { if (!diagnosticsBundle) { return; @@ -75,7 +69,7 @@ function ExportCard() { link.click(); }} > - {i18n.translate('xpack.apm.exportCard.exportButtonLabel', { defaultMessage: 'Export' })} + Export
      } @@ -94,9 +88,7 @@ function ImportCard() { return ( } - title={i18n.translate('xpack.apm.importCard.euiCard.importDiagnosticsReportLabel', { - defaultMessage: 'Import diagnostics report', - })} + title="Import diagnostics report" description={ isImported ? 'Diagnostics report was imported' @@ -110,19 +102,14 @@ function ImportCard() { onClick={() => setImportedDiagnosticsBundle(undefined)} color="danger" > - {i18n.translate('xpack.apm.importCard.removeReportButtonLabel', { - defaultMessage: 'Remove report', - })} + Remove report ) : ( <> {!importStatus.isValid && ( <> - - {i18n.translate('xpack.apm.importCard.theUploadedFileCouldCallOutLabel', { - defaultMessage: 'The uploaded file could not be parsed:', - })} - {importStatus.errorMessage} + + The uploaded file could not be parsed: {importStatus.errorMessage} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx index c743a3f3baadd..c44a93d93d0f7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index.tsx @@ -205,20 +205,14 @@ function TemplateDescription() { if (isImported) { return ( setImportedDiagnosticsBundle(undefined)} > - {i18n.translate('xpack.apm.templateDescription.clearBundleButtonLabel', { - defaultMessage: 'Clear bundle', - })} + Clear bundle ); @@ -236,7 +230,7 @@ function RefreshButton() { fill onClick={refetch} > - {i18n.translate('xpack.apm.refreshButton.refreshButtonLabel', { defaultMessage: 'Refresh' })} + Refresh ); } diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx index 11bb4282575b3..fe6d1f99a9367 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx @@ -8,7 +8,6 @@ import { EuiLink, EuiLoadingElastic } from '@elastic/eui'; import { EuiBadge, EuiSpacer, EuiText, EuiTitle, EuiToolTip } from '@elastic/eui'; import React from 'react'; -import { i18n } from '@kbn/i18n'; import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useApmRouter } from '../../../hooks/use_apm_router'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; @@ -27,13 +26,7 @@ export function DiagnosticsIndexPatternSettings() { const indexTemplatesByIndexPattern = diagnosticsBundle?.indexTemplatesByIndexPattern; if (!indexTemplatesByIndexPattern || indexTemplatesByIndexPattern?.length === 0) { - return ( - - {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.noSettingsToDisplayTextLabel', { - defaultMessage: 'No settings to display', - })} - - ); + return No settings to display; } const elms = indexTemplatesByIndexPattern.map(({ indexPattern, indexTemplates }) => { @@ -43,7 +36,7 @@ export function DiagnosticsIndexPatternSettings() {

      {indexPattern}

      - {!indexTemplates?.length && {i18n.translate('xpack.apm.elms.em.noMatchingIndexTemplatesLabel', { defaultMessage: 'No matching index templates' })}} + {!indexTemplates?.length && No matching index templates} {indexTemplates?.map(({ templateName, templateIndexPatterns, priority, isNonStandard }) => { const text = priority @@ -71,14 +64,16 @@ export function DiagnosticsIndexPatternSettings() { return ( <> - {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.thisSectionListsTheTextLabel', { defaultMessage: 'This section lists the index patterns specified in' })}{' '} + This section lists the index patterns specified in{' '} - {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.apmIndexSettingsLinkLabel', { defaultMessage: 'APM Index Settings' })}{' '} - {i18n.translate('xpack.apm.diagnosticsIndexPatternSettings.andWhichIndexTemplatesTextLabel', { defaultMessage: 'and which index templates they match. The priority and index pattern of each index template - can be seen by hovering over the item.' })} + APM Index Settings + {' '} + and which index templates they match. The priority and index pattern of each index template + can be seen by hovering over the item. +
      {elms} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx index 1a870a618f679..d40f875952e78 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx @@ -9,7 +9,6 @@ import { EuiCallOut, EuiLoadingElastic } from '@elastic/eui'; import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBadge, EuiBasicTable, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; -import { i18n } from '@kbn/i18n'; import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { useDiagnosticsContext } from './context/use_diagnostics'; @@ -36,30 +35,14 @@ export function DiagnosticsIndexTemplates() { field: 'status', render: (_, { exists, isNonStandard }) => { if (isNonStandard) { - return ( - - {i18n.translate('xpack.apm.columns.nonStandardBadgeLabel', { - defaultMessage: 'Non standard', - })} - - ); + return Non standard; } if (!exists) { - return ( - - {i18n.translate('xpack.apm.columns.notFoundBadgeLabel', { - defaultMessage: 'Not found', - })} - - ); + return Not found; } - return ( - - {i18n.translate('xpack.apm.columns.okBadgeLabel', { defaultMessage: 'OK' })} - - ); + return OK; }, truncateText: true, }, @@ -69,10 +52,7 @@ export function DiagnosticsIndexTemplates() { <> - {i18n.translate('xpack.apm.diagnosticsIndexTemplates.thisSectionListsTheTextLabel', { - defaultMessage: - 'This section lists the names of the default APM Index Templates and whether it exists or not', - })} + This section lists the names of the default APM Index Templates and whether it exists or not @@ -102,21 +82,8 @@ function NonStandardIndexTemplateCalout({ return ( <> - - {i18n.translate( - 'xpack.apm.nonStandardIndexTemplateCalout.theFollowingIndexTemplatesCallOutLabel', - { - defaultMessage: - 'The following index templates do not follow the recommended naming scheme:', - } - )}{' '} + + The following index templates do not follow the recommended naming scheme:{' '} {nonStandardIndexTemplates.map(({ name }) => ( {name} ))} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx index 4dc5f8469c4eb..ed92664b3dc36 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBasicTable, @@ -107,8 +106,9 @@ export function DiagnosticsIndices() { return ( <> - {i18n.translate('xpack.apm.diagnosticsIndices.thisSectionShowsTheTextLabel', { defaultMessage: 'This section shows the concrete indices backing the data streams, and highlights mapping - issues and missing ingest pipelines.' })} + This section shows the concrete indices backing the data streams, and highlights mapping + issues and missing ingest pipelines. + diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx index 74abd6badecde..14ae368b4071d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/apm_integration_package_status.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import { EuiLink } from '@elastic/eui'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; @@ -36,9 +35,7 @@ export function ApmIntegrationPackageStatus() { data-test-subj="apmApmIntegrationPackageStatusGoToApmIntegrationLink" href={basePath.prepend('/app/integrations/detail/apm/overview')} > - {i18n.translate('xpack.apm.apmIntegrationPackageStatus.goToAPMIntegrationLinkLabel', { - defaultMessage: 'Go to APM Integration', - })} + Go to APM Integration ) : null} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx index af420656b829b..c5569bc68be97 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import { EuiLink } from '@elastic/eui'; import { useApmParams } from '../../../../hooks/use_apm_params'; import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; @@ -27,16 +26,12 @@ export function DataStreamsStatus() { return ( - {i18n.translate('xpack.apm.dataStreamsStatus.tabStatus.dataStreamsLabel', { - defaultMessage: 'Data streams', - })} + Data streams - {i18n.translate('xpack.apm.dataStreamsStatus.seeDetailsLinkLabel', { - defaultMessage: 'See details', - })} + See details ); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx index bb52e6ccf897f..73dde1bbc8aec 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import { EuiFlexGroup, EuiCallOut, EuiDescriptionList, EuiSpacer } from '@elastic/eui'; import { isCCSRemoteIndexName } from '@kbn/es-query'; @@ -52,15 +51,10 @@ export function DiagnosticsSummary() { function CrossClusterSearchCallout() { return ( - - {i18n.translate('xpack.apm.crossClusterSearchCallout.theAPMIndexSettingsCallOutLabel', { defaultMessage: 'The APM index settings is targetting remote clusters. Please note that this is not currently - supported by the Diagnostics Tool and functionality will therefore be limited.' })} + + The APM index settings is targetting remote clusters. Please note that this is not currently + supported by the Diagnostics Tool and functionality will therefore be limited. + ); } @@ -75,8 +69,9 @@ function PrivilegesCallout({ diagnosticsBundle }: { diagnosticsBundle: Diagnosti return ( <> - - {i18n.translate('xpack.apm.privilegesCallout.notAllFeaturesAreCallOutLabel', { defaultMessage: 'Not all features are available due to missing privileges.' })}
      + + Not all features are available due to missing privileges. +

      - {i18n.translate('xpack.apm.indexTemplatesStatus.tabStatus.indexTemplatesLabel', { - defaultMessage: 'Index templates', - })} + Index templates - {i18n.translate('xpack.apm.indexTemplatesStatus.seeDetailsLinkLabel', { - defaultMessage: 'See details', - })} + See details ); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx index 189fd5a65635a..6ea30a4b9bcf1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import { EuiLink } from '@elastic/eui'; import { isEmpty } from 'lodash'; import { useApmParams } from '../../../../hooks/use_apm_params'; @@ -27,16 +26,12 @@ export function FieldMappingStatus() { return ( - {i18n.translate('xpack.apm.fieldMappingStatus.tabStatus.indicesLabel', { - defaultMessage: 'Indices', - })} + Indices - {i18n.translate('xpack.apm.fieldMappingStatus.seeDetailsLinkLabel', { - defaultMessage: 'See details', - })} + See details ); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx index b0c7dacd5be10..26a46934f4a2e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/tab_status.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import { EuiBadge, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; export function TabStatus({ @@ -28,15 +27,9 @@ export function TabStatus({ {isLoading ? ( - ) : isOk ? ( - - {i18n.translate('xpack.apm.tabStatus.okBadgeLabel', { defaultMessage: 'OK' })} - + OK ) : ( - - {i18n.translate('xpack.apm.tabStatus.warningBadgeLabel', { - defaultMessage: 'Warning', - })} - + Warning )}
      diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/mobile_errors_and_crashes_treemap/treemap_select.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/mobile_errors_and_crashes_treemap/treemap_select.tsx index aa26af1d22c98..b2bb06a58095d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/mobile_errors_and_crashes_treemap/treemap_select.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/mobile_errors_and_crashes_treemap/treemap_select.tsx @@ -86,9 +86,6 @@ export function TreemapSelect({ - {i18n.translate( - 'xpack.apm.createDjangoAgentInstructions.PipInstallElasticapmCodeBlockLabel', - { defaultMessage: '$ pip install elastic-apm' } - )} + $ pip install elastic-apm ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx index 9035233777633..ef3cc1b7493b4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx @@ -44,10 +44,7 @@ export const createFlaskAgentInstructions = (commonOptions: AgentInstructions): defaultMessage: 'Copy the code to install the APM agent for Flask', })} > - {i18n.translate( - 'xpack.apm.createFlaskAgentInstructions.PipInstallElasticapmflaskCodeBlockLabel', - { defaultMessage: '$ pip install elastic-apm[flask]' } - )} + $ pip install elastic-apm[flask] ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx index 7c2f4b130a037..e6c7ce410c297 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx @@ -57,10 +57,7 @@ func main() { defaultMessage: 'Copy the code to install the APM agent for Go', })} > - {i18n.translate( - 'xpack.apm.createGoAgentInstructions.goGetGoelasticcoapmCodeBlockLabel', - { defaultMessage: 'go get go.elastic.co/apm' } - )} + go get go.elastic.co/apm ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx index 2d3a4c7ca7cb8..dede39512b125 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx @@ -45,10 +45,7 @@ export const createNodeAgentInstructions = (commonOptions: AgentInstructions): E defaultMessage: 'Copy the code to install the APM agent for Node.js', })} > - {i18n.translate( - 'xpack.apm.createNodeAgentInstructions.npmInstallElasticapmnodesaveCodeBlockLabel', - { defaultMessage: 'npm install elastic-apm-node --save' } - )} + npm install elastic-apm-node --save ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx index aaa85f490f99c..2bc6f39676a8b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx @@ -60,10 +60,7 @@ export const createPhpAgentInstructions = (commonOptions: AgentInstructions): Eu defaultMessage: 'Copy the code to install the APM agent for PHP', })} > - {i18n.translate( - 'xpack.apm.createPhpAgentInstructions.apkAddallowuntrustedpackagefileapkCodeBlockLabel', - { defaultMessage: 'apk add --allow-untrusted .apk' } - )} + apk add --allow-untrusted <package-file>.apk diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx index 7ba556ec65a94..2268bdb155e5a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx @@ -71,9 +71,7 @@ export const createRackAgentInstructions = (commonOptions: AgentInstructions): E defaultMessage: 'Copy the code to install the APM agent for Rack', })} > - {i18n.translate('xpack.apm.createRackAgentInstructions.gemelasticapmCodeBlockLabel', { - defaultMessage: "gem 'elastic-apm'", - })} + gem 'elastic-apm' ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx index 5d22e23e12c98..1cecae9a7fb19 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx @@ -44,9 +44,7 @@ export const createRailsAgentInstructions = (commonOptions: AgentInstructions): defaultMessage: 'Copy the code to install the APM agent for Ruby on Rails', })} > - {i18n.translate('xpack.apm.createRailsAgentInstructions.gemelasticapmCodeBlockLabel', { - defaultMessage: "gem 'elastic-apm'", - })} + gem 'elastic-apm' ), diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx index 57f7ac935ad47..9cb1a55e1ac2a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx @@ -23,9 +23,6 @@ export function EditDashboard({ return ( <> {emptyButton ? ( ( setAgentKeyBody((state) => ({ @@ -187,10 +184,7 @@ export function CreateAgentKeyFlyout({ onCancel, onSuccess, onError }: Props) { > setAgentKeyBody((state) => ({ @@ -208,13 +202,7 @@ export function CreateAgentKeyFlyout({ onCancel, onSuccess, onError }: Props) { - + {i18n.translate('xpack.apm.settings.agentKeys.createKeyFlyout.cancelButton', { defaultMessage: 'Cancel', })} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx index 3178d2c022077..097cf5970509c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx @@ -118,9 +118,7 @@ export function AddEnvironments({ currentEnvironments, onCreateJobSuccess, onCan {i18n.translate( diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx index 169c6641a4c0c..36a39e411c893 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx @@ -222,13 +222,7 @@ export function ApmIndices() { - + {i18n.translate('xpack.apm.settings.apmIndices.cancelButton', { defaultMessage: 'Cancel', })} diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx index b4f7d1a7f1a10..cdd05bc988bc9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx @@ -24,9 +24,6 @@ export function DeleteButton({ onDelete, customLinkId }: Props) { return ( - - {i18n.translate('xpack.apm.defaultDiscoveryRule.excludeBadgeLabel', { - defaultMessage: 'Exclude', - })} - + Exclude - - {i18n.translate('xpack.apm.defaultDiscoveryRule.everythingElseTextLabel', { - defaultMessage: 'Everything else', - })} - + Everything else diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx index 557e367ead787..8eb868b83611b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx @@ -99,10 +99,6 @@ export function DiscoveryRule({ ({ text: item.operation.label, @@ -88,9 +85,6 @@ export function EditDiscoveryRule({ }} > - - {i18n.translate('xpack.apm.editDiscoveryRule.cancelButtonEmptyLabel', { - defaultMessage: 'Cancel', - })} + + Cancel diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx index e61af2b5bfd59..ce46798fa1d26 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx @@ -154,10 +154,6 @@ function AdvancedOptions({ children }: { children: React.ReactNode }) { { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx index 02f40f8b4c64e..73f9194b68d3d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.tsx @@ -80,9 +80,6 @@ export function AnalyzeDataButton() { })} > ) : ( Date: Mon, 15 Sep 2025 17:38:54 +0200 Subject: [PATCH 04/54] part 2 --- .../agent_logs/filter_dataset.test.tsx | 3 +- .../agent_activity_flyout/index.test.tsx | 4 +- .../fleet/sections/agents/index.test.tsx | 3 +- .../agent_enrollment_flyout/index.tsx | 4 +- .../uninstall_command_flyout.test.tsx | 3 +- .../shared/fleet/public/layouts/error.tsx | 4 +- .../plugins/shared/fleet/public/plugin.ts | 3 +- .../fleet/server/collectors/agent_policies.ts | 3 +- .../services/agent_policy_update.test.ts | 4 +- .../services/agent_policy_watch.test.ts | 3 +- .../server/services/agent_policy_watch.ts | 1 - .../shared/select_with_placeholder/index.tsx | 3 - .../components/shared/slo_callout/index.tsx | 3 - .../custom_link_menu_section/index.tsx | 7 - .../components/shared/try_it_button/index.tsx | 3 - .../opentelemetry_instructions.tsx | 15 +- .../components/expression_editor/criteria.tsx | 3 - .../expression_editor/criterion.tsx | 6 - .../expression_editor/threshold.tsx | 6 +- .../expression_editor/type_switcher.tsx | 3 - .../custom_equation_editor.tsx | 4 - .../custom_equation/metric_row_controls.tsx | 5 - .../components/expression_row.tsx | 4 - .../setup_flyout/module_list_card.tsx | 4 - .../setup_flyout/setup_flyout.tsx | 5 - .../ml/anomaly_detection/flyout_home.tsx | 8 - .../components/saved_views/upsert_modal.tsx | 8 +- .../alerts/links/create_alert_rule_button.tsx | 4 - .../pages/logs/shared/page_log_view_error.tsx | 5 - .../hosts/components/table/filter_action.tsx | 6 - .../components/bottom_drawer.tsx | 3 - .../metric_control/custom_metric_form.tsx | 10 -- .../settings/ml_configuration_panel.tsx | 6 +- .../public/utils/test_helper.tsx | 9 +- .../public/components/changes/change_list.tsx | 12 +- .../public/components/nav_control/index.tsx | 25 +-- .../components/rca/rca_callout/index.tsx | 8 +- .../components/rca/rca_container/index.tsx | 18 +- .../rca/rca_entity_investigation/index.tsx | 9 +- .../rca_entity_log_pattern_table/index.tsx | 39 +++-- .../rca/rca_observation_panel/index.tsx | 2 +- .../components/rca/rca_report/index.tsx | 2 +- .../components/rca/rca_stop_button/index.tsx | 2 +- .../components/technical_preview_badge.tsx | 4 +- .../public/functions/lens.tsx | 4 +- .../public/functions/visualize_esql.tsx | 49 ++++-- .../public/plugin.tsx | 4 +- .../rule_connector/ai_assistant_params.tsx | 24 ++- .../public/rule_connector/translations.ts | 31 ++-- .../evaluation/scenarios/alerts/index.spec.ts | 2 +- .../evaluation/scenarios/apm/index.spec.ts | 2 +- .../scenarios/connector/index.spec.ts | 2 +- .../scenarios/documentation/index.spec.ts | 2 +- .../scenarios/elasticsearch/index.spec.ts | 2 +- .../evaluation/scenarios/esql/index.spec.ts | 2 +- .../evaluation/scenarios/kb/index.spec.ts | 2 +- .../server/rule_connector/index.ts | 2 +- .../public/plugin.ts | 2 +- .../public/application/app.tsx | 9 +- .../application/header/custom_header.tsx | 9 +- .../public/application/header/header.tsx | 4 +- .../onboarding_flow_form.tsx | 68 +++++--- .../onboarding_flow_form/use_custom_cards.tsx | 161 +++++++++++------- .../package_list_search_form.tsx | 7 +- .../public/application/pages/auto_detect.tsx | 8 +- .../public/application/pages/firehose.tsx | 4 +- .../public/application/pages/kubernetes.tsx | 6 +- .../application/pages/otel_kubernetes.tsx | 4 +- .../public/application/pages/otel_logs.tsx | 6 +- .../auto_detect/auto_detect_panel.tsx | 55 +++--- .../supported_integrations_list.tsx | 2 +- .../firehose/auto_refresh_callout.tsx | 11 +- .../firehose/create_stack_command_snippet.tsx | 8 +- .../firehose/create_stack_in_aws_console.tsx | 6 +- .../firehose/download_template_callout.tsx | 4 +- .../firehose/existing_data_callout.tsx | 11 +- .../quickstart_flows/firehose/index.tsx | 37 ++-- .../firehose/progress_callout.tsx | 15 +- .../use_aws_service_get_started_list.ts | 32 ++-- .../firehose/visualize_data.tsx | 22 ++- .../kubernetes/command_snippet.tsx | 4 +- .../kubernetes/data_ingest_status.tsx | 42 +++-- .../quickstart_flows/kubernetes/index.tsx | 6 +- .../otel_kubernetes/otel_kubernetes_panel.tsx | 80 +++++---- .../quickstart_flows/otel_logs/index.tsx | 81 +++++---- .../multi_integration_install_banner.tsx | 5 +- .../shared/copy_to_clipboard_button.tsx | 7 +- .../quickstart_flows/shared/empty_prompt.tsx | 38 +++-- .../shared/feedback_buttons.tsx | 8 +- .../shared/get_started_panel.tsx | 11 +- .../shared/install_elastic_agent_steps.tsx | 70 ++++---- .../shared/optional_form_row.tsx | 2 +- .../quickstart_flows/shared/step_status.tsx | 6 +- .../shared/troubleshooting_link.tsx | 2 +- .../public/application/shared/back_button.tsx | 2 +- .../application/shared/header_action_menu.tsx | 2 +- .../shared/use_flow_breadcrumbs.ts | 7 +- .../public/hooks/use_fetcher.tsx | 6 +- .../public/hooks/use_install_integrations.ts | 2 +- .../observability_onboarding/server/plugin.ts | 4 +- .../ui/tests/onboarding_ui_validation.spec.ts | 2 +- 101 files changed, 673 insertions(+), 619 deletions(-) diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx index 0b95a6b7e7771..c566c43273ed5 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx @@ -9,9 +9,8 @@ import { render } from '@testing-library/react'; import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; -import userEvent from '@testing-library/user-event'; - import { DatasetFilter } from './filter_dataset'; +import userEvent from '@testing-library/user-event'; const renderComponent = (props: React.ComponentProps) => { return render( diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx index bea952a24259f..2cc447d33f89c 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx @@ -8,10 +8,10 @@ import React from 'react'; import { act, fireEvent } from '@testing-library/react'; -import { IntlProvider } from '@kbn/i18n-react'; - import type { TestRenderer } from '../../../../../../../mock'; import { createFleetTestRendererMock } from '../../../../../../../mock'; +// eslint-disable-next-line @kbn/eslint/module_migration +import { IntlProvider } from 'react-intl'; import { useActionStatus } from '../../hooks'; import { useGetAgentPolicies, useAuthz } from '../../../../../hooks'; diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.test.tsx index b6feb7a71e54a..7720361b33468 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.test.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.test.tsx @@ -11,9 +11,8 @@ import { createFleetTestRendererMock } from '../../../../mock'; import { useFleetStatus } from '../../../../hooks/use_fleet_status'; import { useAuthz } from '../../../../hooks/use_authz'; -import { useGetSpaceSettings } from '../../hooks'; - import { AgentsApp } from '.'; +import { useGetSpaceSettings } from '../../hooks'; jest.mock('../../../../hooks/use_fleet_status', () => ({ ...jest.requireActual('../../../../hooks/use_fleet_status'), diff --git a/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/index.tsx index 9c2bf2c9c2e10..911906d7301ce 100644 --- a/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/index.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/index.tsx @@ -23,8 +23,6 @@ import { } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { useGeneratedHtmlId } from '@elastic/eui'; - import { useStartServices, useFleetStatus, @@ -47,6 +45,8 @@ import { useCloudSecurityIntegration, } from './hooks'; +import { useGeneratedHtmlId } from '@elastic/eui'; + export * from './agent_policy_selection'; export * from './agent_policy_select_create'; export * from './instructions'; diff --git a/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx index 801d286a03ef2..24584b987dd8d 100644 --- a/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx @@ -9,8 +9,6 @@ import React from 'react'; import type { UseRequestResponse } from '@kbn/es-ui-shared-plugin/public'; -import userEvent from '@testing-library/user-event'; - import type { UninstallToken, UninstallTokenMetadata, @@ -33,6 +31,7 @@ import type { RequestError } from '../../hooks'; import { UninstallCommandFlyout } from './uninstall_command_flyout'; import type { UninstallCommandTarget } from './types'; +import userEvent from '@testing-library/user-event'; jest.mock('../../hooks/use_request/uninstall_tokens', () => ({ useGetUninstallToken: jest.fn(), diff --git a/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx b/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx index bff705b9f0b2e..23e05c1109747 100644 --- a/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/layouts/error.tsx @@ -14,12 +14,12 @@ import { useStartServices } from '../hooks'; import { MissingESRequirementsPage } from '../applications/fleet/sections/agents/agent_requirements_page'; +import { WithHeaderLayout, WithoutHeaderLayout } from '.'; + import { Error } from '../applications/fleet/components'; import { DefaultLayout, DefaultPageTitle } from '../applications/fleet/layouts/default'; -import { WithHeaderLayout, WithoutHeaderLayout } from '.'; - const Panel = styled(EuiPanel)` max-width: 500px; margin-right: auto; diff --git a/x-pack/platform/plugins/shared/fleet/public/plugin.ts b/x-pack/platform/plugins/shared/fleet/public/plugin.ts index a99f0be005cd6..aa30ba89ee3d2 100644 --- a/x-pack/platform/plugins/shared/fleet/public/plugin.ts +++ b/x-pack/platform/plugins/shared/fleet/public/plugin.ts @@ -55,8 +55,6 @@ import { Subject } from 'rxjs'; import type { AutomaticImportPluginStart } from '@kbn/automatic-import-plugin/public'; import type { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/public'; -import type { EmbeddableStart } from '@kbn/embeddable-plugin/public'; - import type { FleetAuthz } from '../common'; import { appRoutesService, INTEGRATIONS_PLUGIN_ID, PLUGIN_ID, setupRouteService } from '../common'; import { @@ -94,6 +92,7 @@ import type { import { LazyCustomLogsAssetsExtension } from './lazy_custom_logs_assets_extension'; import { setCustomIntegrations, setCustomIntegrationsStart } from './services/custom_integrations'; import { getFleetDeepLinks } from './deep_links'; +import type { EmbeddableStart } from '@kbn/embeddable-plugin/public'; export type { FleetConfigType } from '../common/types'; diff --git a/x-pack/platform/plugins/shared/fleet/server/collectors/agent_policies.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agent_policies.ts index c9a7674797450..672aff136b60d 100644 --- a/x-pack/platform/plugins/shared/fleet/server/collectors/agent_policies.ts +++ b/x-pack/platform/plugins/shared/fleet/server/collectors/agent_policies.ts @@ -8,11 +8,10 @@ import type { SavedObjectsClientContract } from '@kbn/core/server'; import _ from 'lodash'; -import { DEFAULT_NAMESPACE_STRING } from '@kbn/core-saved-objects-utils-server'; - import { OUTPUT_SAVED_OBJECT_TYPE, SO_SEARCH_LIMIT } from '../../common'; import type { OutputSOAttributes, AgentPolicy } from '../types'; import { getAgentPolicySavedObjectType } from '../services/agent_policy'; +import { DEFAULT_NAMESPACE_STRING } from '@kbn/core-saved-objects-utils-server'; export interface AgentPoliciesUsage { count: number; diff --git a/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_update.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_update.test.ts index 938ca99f3ad6d..171f01e1d704d 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_update.test.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_update.test.ts @@ -6,10 +6,8 @@ */ import { elasticsearchServiceMock } from '@kbn/core/server/mocks'; - -import { createAppContextStartContractMock } from '../mocks'; - import { agentPolicyUpdateEventHandler } from './agent_policy_update'; +import { createAppContextStartContractMock } from '../mocks'; import { appContextService } from './app_context'; import { getAgentById, getAgentPolicyForAgent, getAgentsByKuery } from './agents'; diff --git a/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.test.ts index feecd8e366f71..bc04acefe9f0d 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.test.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.test.ts @@ -22,10 +22,9 @@ import { LicenseService } from '../../common/services'; import { createAgentPolicyMock } from '../../common/mocks'; -import { createAppContextStartContractMock } from '../mocks'; - import { PolicyWatcher } from './agent_policy_watch'; import { agentPolicyService } from './agent_policy'; +import { createAppContextStartContractMock } from '../mocks'; import { appContextService } from './app_context'; jest.mock('./agent_policy'); diff --git a/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.ts index 09351464bf110..69a0a22ae3b9c 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.ts @@ -18,7 +18,6 @@ import { isAgentPolicyValidForLicense, unsetAgentPolicyAccordingToLicenseLevel, } from '../../common/services/agent_policy_config'; - import { agentPolicyService, getAgentPolicySavedObjectType } from './agent_policy'; import { appContextService } from './app_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx index 9fd01c4faa0ac..ca46895b8f24c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx @@ -26,9 +26,6 @@ export const SelectWithPlaceholder = (props: EuiSelectProps & { placeholder?: st const placeholder = props.placeholder || DEFAULT_PLACEHOLDER; return ( { dismissCallout(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx index b20f84785f979..0ef4c65dab200 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx @@ -144,10 +144,6 @@ function BottomSection({ { diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx index 064f19075002c..ad46a12e4c34b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx @@ -110,10 +110,7 @@ export function OpenTelemetryInstructions({ apmServerUrl, secretToken }: Props) target="_blank" href="https://github.com/open-telemetry/opentelemetry-specification/blob/v1.10.0/specification/protocol/exporter.md" > - {i18n.translate( - 'xpack.apm.openTelemetryInstructions.otelexporterotlpendpointLinkLabel', - { defaultMessage: 'OTEL_EXPORTER_OTLP_ENDPOINT' } - )} + OTEL_EXPORTER_OTLP_ENDPOINT ), otelExporterOtlpHeaders: ( @@ -122,10 +119,7 @@ export function OpenTelemetryInstructions({ apmServerUrl, secretToken }: Props) target="_blank" href="https://github.com/open-telemetry/opentelemetry-specification/blob/v1.10.0/specification/protocol/exporter.md" > - {i18n.translate( - 'xpack.apm.openTelemetryInstructions.otelexporterotlpheadersLinkLabel', - { defaultMessage: 'OTEL_EXPORTER_OTLP_HEADERS' } - )} + OTEL_EXPORTER_OTLP_HEADERS ), otelResourceAttributes: ( @@ -134,10 +128,7 @@ export function OpenTelemetryInstructions({ apmServerUrl, secretToken }: Props) target="_blank" href="https://github.com/open-telemetry/opentelemetry-specification/blob/v1.10.0/specification/resource/sdk.md" > - {i18n.translate( - 'xpack.apm.openTelemetryInstructions.otelresourceattributesLinkLabel', - { defaultMessage: 'OTEL_RESOURCE_ATTRIBUTES' } - )} + OTEL_RESOURCE_ATTRIBUTES ), }} diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx index e6f7bd82e85d1..386aeff48535c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx @@ -251,9 +251,6 @@ const AddCriterionButton = ({ addCriterion }: { addCriterion: () => void }) => { return (
      = ({
      {criterionFieldTitle} 0} @@ -258,9 +255,6 @@ export const Criterion: React.FC = ({ 0 diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx index b3af0672ada8b..8e15f5838d0ee 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx @@ -81,11 +81,7 @@ export const Threshold: React.FC = ({ comparator, value, updateThreshold, {popoverTitle} - + = ({ criteria, updateType }) => { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx index a484398f310d3..88276808760ee 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx @@ -16,7 +16,6 @@ import { } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import type { FC, PropsWithChildren } from 'react'; -import { i18n } from '@kbn/i18n'; import React from 'react'; import { LogEntryCategoriesSetupView } from './log_entry_categories_setup_view'; import { LogEntryRateSetupView } from './log_entry_rate_setup_view'; @@ -99,10 +98,6 @@ const LogAnalysisSetupFlyoutSubPage: FC< {onViewModuleList ? ( { <> {props.hasHostJobs && ( @@ -378,10 +374,6 @@ const CreateJobTab = (props: CreateJobTab) => { <> {props.hasK8sJobs && ( diff --git a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx index 70ee0d73c8aad..5d8bb12dbe853 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx @@ -102,13 +102,7 @@ export const UpsertViewModal = ({ - + { return ( ,
      createExploratoryViewUrl: jest.fn(), getAppDataView: jest.fn(), - ExploratoryViewEmbeddable: () => ( -
      - {i18n.translate('xpack.observability.render.div.embeddableExploratoryViewLabel', { - defaultMessage: 'Embeddable exploratory view', - })} -
      - ), + ExploratoryViewEmbeddable: () =>
      Embeddable exploratory view
      , }, }} > diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx index aac82c95c311b..90395a31ae3ef 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx @@ -61,7 +61,7 @@ function getImpactProperties({ if (impact === ChangeListItemImpact.high) { return { color: theme.colors.danger, - label: i18n.translate('xpack.observability.changesList.dotImpactHigh', { + label: i18n.translate('xpack.observabilityAiAssistant.changesList.dotImpactHigh', { defaultMessage: 'High', }), }; @@ -70,7 +70,7 @@ function getImpactProperties({ if (impact === ChangeListItemImpact.medium) { return { color: theme.colors.warning, - label: i18n.translate('xpack.observability.changesList.dotImpactMedium', { + label: i18n.translate('xpack.observabilityAiAssistant.changesList.dotImpactMedium', { defaultMessage: 'Medium', }), }; @@ -78,7 +78,7 @@ function getImpactProperties({ return { color: theme.colors.darkShade, - label: i18n.translate('xpack.observability.changesList.dotImpactLow', { + label: i18n.translate('xpack.observabilityAiAssistant.changesList.dotImpactLow', { defaultMessage: 'Low', }), }; @@ -107,7 +107,7 @@ function getColumns({ white-space: nowrap; `} > - {i18n.translate('xpack.observability.changesList.noChangesDetected', { + {i18n.translate('xpack.observabilityAiAssistant.changesList.noChangesDetected', { defaultMessage: 'No changes detected', })} @@ -155,7 +155,7 @@ function getColumns({ }, }, { - name: i18n.translate('xpack.observability.changesList.trendColumnTitle', { + name: i18n.translate('xpack.observabilityAiAssistant.changesList.trendColumnTitle', { defaultMessage: 'Trend', }), sortable: false, @@ -186,7 +186,7 @@ function getColumns({ }, }, { - name: i18n.translate('xpack.observability.changesList.labelColumnTitle', { + name: i18n.translate('xpack.observabilityAiAssistant.changesList.labelColumnTitle', { defaultMessage: 'Label', }), width: '100%', diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx index 88a2f37473899..5174a2e115a07 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx @@ -86,9 +86,12 @@ export function NavControl({ isServerless }: { isServerless?: boolean }) { return hasBeenOpened ? service.start({ signal }).catch((error) => { notifications.toasts.addError(error, { - title: i18n.translate('xpack.observability.navControl.initFailureErrorTitle', { - defaultMessage: 'Failed to initialize Observability AI Assistant', - }), + title: i18n.translate( + 'xpack.observabilityAiAssistant.navControl.initFailureErrorTitle', + { + defaultMessage: 'Failed to initialize Observability AI Assistant', + } + ), }); setHasBeenOpened(false); @@ -143,14 +146,16 @@ export function NavControl({ isServerless }: { isServerless?: boolean }) { return ( <> { service.conversations.openNewConversation({ @@ -162,7 +167,7 @@ export function NavControl({ isServerless }: { isServerless?: boolean }) { iconType={AssistantIcon} isLoading={chatService.loading} > - {i18n.translate('xpack.observability.navControl.assistantNavLink', { + {i18n.translate('xpack.observabilityAiAssistant.navControl.assistantNavLink', { defaultMessage: 'AI Assistant', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx index 503ddf6208a22..8a54ad14d8d41 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx @@ -50,7 +50,7 @@ export function RootCauseAnalysisCallout({

      - {i18n.translate('xpack.observability.rca.calloutTitle', { + {i18n.translate('xpack.observabilityAiAssistant.rca.calloutTitle', { defaultMessage: 'AI-assisted root cause analysis', })}

      @@ -59,7 +59,7 @@ export function RootCauseAnalysisCallout({ - {i18n.translate('xpack.observability.rca.calloutText', { + {i18n.translate('xpack.observabilityAiAssistant.rca.calloutText', { defaultMessage: `Start an automated investigation that will analyze log patterns, SLOs and alerts for entities and provide an evidence- based root cause analysis of issues in your system.`, @@ -82,7 +82,7 @@ export function RootCauseAnalysisCallout({ /> {i18n.translate( - 'xpack.observability.rootCauseAnalysisCallout.keepAnalysisRunningInFormLabelLabel', + 'xpack.observabilityAiAssistant.rootCauseAnalysisCallout.keepAnalysisRunningInFormLabelLabel', { defaultMessage: 'Keep analysis running in background' } )} @@ -93,7 +93,7 @@ export function RootCauseAnalysisCallout({ fill onClick={onClick} > - {i18n.translate('xpack.observability.rca.calloutText', { + {i18n.translate('xpack.observabilityAiAssistant.rca.calloutText', { defaultMessage: 'Start analysis', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx index 812fca233c1b5..55655ac5dde9a 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx @@ -109,7 +109,7 @@ export function RootCauseAnalysisContainer({ }} iconType="crossInCircle" > - {i18n.translate('xpack.observability.rca.clearButtonLabel', { + {i18n.translate('xpack.observabilityAiAssistant.rca.clearButtonLabel', { defaultMessage: 'Clear', })} @@ -125,7 +125,7 @@ export function RootCauseAnalysisContainer({ }} iconType="refresh" > - {i18n.translate('xpack.observability.rca.restartButtonLabel', { + {i18n.translate('xpack.observabilityAiAssistant.rca.restartButtonLabel', { defaultMessage: 'Restart', })} @@ -151,7 +151,7 @@ export function RootCauseAnalysisContainer({ } else if (error) { elements.push( - {i18n.translate('xpack.observability.rca.analysisCompleted', { + {i18n.translate('xpack.observabilityAiAssistant.rca.analysisCompleted', { defaultMessage: 'Completed analysis', })} @@ -235,7 +235,7 @@ function getLoadingLabel(events?: RootCauseAnalysisEvent[]) { return ( - {i18n.translate('xpack.observability.rca.investigatingEntitiesTextLabel', { + {i18n.translate('xpack.observabilityAiAssistant.rca.investigatingEntitiesTextLabel', { defaultMessage: 'Investigating entities', })} @@ -260,13 +260,13 @@ function getLoadingLabel(events?: RootCauseAnalysisEvent[]) { } if (pendingToolCalls[0]?.function.name === RCA_END_PROCESS_TOOL_NAME) { - return i18n.translate('xpack.observability.rca.finalizingReport', { + return i18n.translate('xpack.observabilityAiAssistant.rca.finalizingReport', { defaultMessage: 'Finalizing report', }); } } - return i18n.translate('xpack.observability.rca.analysisLoadingLabel', { + return i18n.translate('xpack.observabilityAiAssistant.rca.analysisLoadingLabel', { defaultMessage: 'Thinking...', }); } @@ -274,7 +274,7 @@ function getLoadingLabel(events?: RootCauseAnalysisEvent[]) { function getToolResponseErrorItem(response: ToolErrorMessage['response']) { return (

      - {i18n.translate('xpack.observability.rootCauseAnalysisEntityInvestigation.title', { - defaultMessage: 'Investigation', - })} + {i18n.translate( + 'xpack.observabilityAiAssistant.rootCauseAnalysisEntityInvestigation.title', + { + defaultMessage: 'Investigation', + } + )}

      diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx index 954c7a753042e..2847fd9e28283 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx @@ -64,9 +64,10 @@ export function RootCauseAnalysisEntityLogPatternTable({ }, { field: 'pattern', - name: i18n.translate('xpack.observability.rca.logPatternTable.messageColumnTitle', { - defaultMessage: 'Message', - }), + name: i18n.translate( + 'xpack.observabilityAiAssistant.rca.logPatternTable.messageColumnTitle', + { defaultMessage: 'Message' } + ), render: (_, { regex, sample }) => { return ( { return ( @@ -106,9 +108,10 @@ export function RootCauseAnalysisEntityLogPatternTable({ }, { field: 'change', - name: i18n.translate('xpack.observability.rca.logPatternTable.changeColumnTitle', { - defaultMessage: 'Change', - }), + name: i18n.translate( + 'xpack.observabilityAiAssistant.rca.logPatternTable.changeColumnTitle', + { defaultMessage: 'Change' } + ), width: '128px', render: (_, { change }) => { return getChangeBadge(change); @@ -117,9 +120,10 @@ export function RootCauseAnalysisEntityLogPatternTable({ { field: 'timeseries', width: '128px', - name: i18n.translate('xpack.observability.rca.logPatternTable.trendColumnTitle', { - defaultMessage: 'Trend', - }), + name: i18n.translate( + 'xpack.observabilityAiAssistant.rca.logPatternTable.trendColumnTitle', + { defaultMessage: 'Trend' } + ), render: (_, { timeseries, change }) => { return ( {i18n.translate( - 'xpack.observability.rootCauseAnalysisEntityInvestigation.logPatternsTableTitle', + 'xpack.observabilityAiAssistant.rootCauseAnalysisEntityInvestigation.logPatternsTableTitle', { defaultMessage: 'Showing {count} of {total} log patterns', values: { @@ -193,9 +197,12 @@ export function RootCauseAnalysisEntityLogPatternTable({ }} /> - {i18n.translate('xpack.observability.rca.logPatternTable.showUsualPatternsCheckbox', { - defaultMessage: 'Show unremarkable patterns', - })} + {i18n.translate( + 'xpack.observabilityAiAssistant.rca.logPatternTable.showUsualPatternsCheckbox', + { + defaultMessage: 'Show unremarkable patterns', + } + )}
      diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx index 25228ebbdd676..ee00f568ca688 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx @@ -42,7 +42,7 @@ export function RootCauseAnalysisObservationPanel({ `} >

      - {i18n.translate('xpack.observability.rca.observationPanelTitle', { + {i18n.translate('xpack.observabilityAiAssistant.rca.observationPanelTitle', { defaultMessage: 'Observations', })}

      diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx index ac5ff925a4cb2..cd793786eb6cb 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx @@ -28,7 +28,7 @@ export function RootCauseAnalysisReport({

      - {i18n.translate('xpack.observability.rootCauseAnalysisReport.title', { + {i18n.translate('xpack.observabilityAiAssistant.rootCauseAnalysisReport.title', { defaultMessage: 'Report', })}

      diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx index 93d522e0f2f1e..7ef0b175b636d 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx @@ -18,7 +18,7 @@ export function RootCauseAnalysisStopButton({ onClick }: { onClick: () => void } iconType="stopFilled" color="text" > - {i18n.translate('xpack.observability.rca.stopAnalysisButtonLabel', { + {i18n.translate('xpack.observabilityAiAssistant.rca.stopAnalysisButtonLabel', { defaultMessage: 'Stop', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx index de816d6ed3980..e1ddd86c2017c 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx @@ -15,10 +15,10 @@ export function TechnicalPreviewBadge() { label="E" iconType="beaker" color="hollow" - title={i18n.translate('xpack.observability.experimentalTitle', { + title={i18n.translate('xpack.observabilityAiAssistant.experimentalTitle', { defaultMessage: 'Technical preview', })} - tooltipContent={i18n.translate('xpack.observability.experimentalTooltip', { + tooltipContent={i18n.translate('xpack.observabilityAiAssistant.experimentalTooltip', { defaultMessage: 'This functionality is in technical preview and may be changed or removed completely in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx index c28d1e97a849b..0c0c3d1dfb365 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx @@ -96,7 +96,7 @@ function Lens({ lens.navigateToPrefilledEditor(lensEmbeddableInput); }} > - {i18n.translate('xpack.observability.lensFunction.openInLens', { + {i18n.translate('xpack.observabilityAiAssistant.lensFunction.openInLens', { defaultMessage: 'Open in Lens', })} @@ -109,7 +109,7 @@ function Lens({ setIsSaveModalOpen(() => true); }} > - {i18n.translate('xpack.observability.lensFunction.save', { + {i18n.translate('xpack.observabilityAiAssistant.lensFunction.save', { defaultMessage: 'Save', })} diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx index c65cb983ac58e..244c1c428a92f 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx @@ -80,13 +80,19 @@ interface VisualizeESQLProps { function generateId() { return uuidv4(); } -const saveVisualizationLabel = i18n.translate('xpack.observability.lensESQLFunction.save', { - defaultMessage: 'Save visualization', -}); +const saveVisualizationLabel = i18n.translate( + 'xpack.observabilityAiAssistant.lensESQLFunction.save', + { + defaultMessage: 'Save visualization', + } +); -const editVisualizationLabel = i18n.translate('xpack.observability.lensESQLFunction.edit', { - defaultMessage: 'Edit visualization', -}); +const editVisualizationLabel = i18n.translate( + 'xpack.observabilityAiAssistant.lensESQLFunction.edit', + { + defaultMessage: 'Edit visualization', + } +); export function VisualizeESQL({ lens, @@ -239,7 +245,7 @@ export function VisualizeESQL({ {!!errorMessages?.length && ( <> - {i18n.translate('xpack.observability.lensESQLFunction.errorMessage', { + {i18n.translate('xpack.observabilityAiAssistant.lensESQLFunction.errorMessage', { defaultMessage: 'There were some errors in the generated query', })} @@ -267,10 +273,13 @@ export function VisualizeESQL({ diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx index a6e0a65ee366e..28bd0889301d5 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx @@ -57,7 +57,7 @@ export class ObservabilityAIAssistantAppPlugin ): ObservabilityAIAssistantAppPublicSetup { coreSetup.application.register({ id: AI_ASSISTANT_APP_ID, - title: i18n.translate('xpack.observability.appTitle', { + title: i18n.translate('xpack.observabilityAiAssistant.appTitle', { defaultMessage: 'Observability AI Assistant', }), euiIconType: 'logoObservability', @@ -67,7 +67,7 @@ export class ObservabilityAIAssistantAppPlugin deepLinks: [ { id: 'conversations', - title: i18n.translate('xpack.observability.conversationsDeepLinkTitle', { + title: i18n.translate('xpack.observabilityAiAssistant.conversationsDeepLinkTitle', { defaultMessage: 'Conversations', }), path: '/conversations/new', diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx index 2612e49cc3b7b..f8578c034ddfe 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx @@ -97,7 +97,7 @@ const ObsAIAssistantParamsFields: React.FunctionComponent< <> @@ -123,9 +123,12 @@ const ObsAIAssistantParamsFields: React.FunctionComponent< @@ -195,7 +201,7 @@ const ObsAIAssistantParamsFields: React.FunctionComponent< onClick={handleAddPrompt} > diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts index 039161387586b..5b2a8aa732130 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts @@ -8,27 +8,36 @@ import { i18n } from '@kbn/i18n'; export const CONNECTOR_DESC = i18n.translate( - 'xpack.observability.alertConnector.selectMessageText', + 'xpack.observabilityAiAssistant.alertConnector.selectMessageText', { defaultMessage: 'Send messages to Observability AI Assistant.', } ); export const CONNECTOR_TITLE = i18n.translate( - 'xpack.observability.alertConnector.connectorTypeTitle', + 'xpack.observabilityAiAssistant.alertConnector.connectorTypeTitle', { defaultMessage: 'ObsAIAssistant', } ); -export const CONNECTOR_REQUIRED = i18n.translate('xpack.observability.requiredConnectorField', { - defaultMessage: 'Connector is required.', -}); +export const CONNECTOR_REQUIRED = i18n.translate( + 'xpack.observabilityAiAssistant.requiredConnectorField', + { + defaultMessage: 'Connector is required.', + } +); -export const MESSAGE_REQUIRED = i18n.translate('xpack.observability.requiredMessageTextField', { - defaultMessage: 'Message is required.', -}); +export const MESSAGE_REQUIRED = i18n.translate( + 'xpack.observabilityAiAssistant.requiredMessageTextField', + { + defaultMessage: 'Message is required.', + } +); -export const STATUS_REQUIRED = i18n.translate('xpack.observability.requiredStatusField', { - defaultMessage: 'Status is required.', -}); +export const STATUS_REQUIRED = i18n.translate( + 'xpack.observabilityAiAssistant.requiredStatusField', + { + defaultMessage: 'Status is required.', + } +); diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts index d79dc24986651..20c41faa72112 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import type { RuleResponse } from '@kbn/alerting-plugin/common/routes/rule/response/types/v1'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts index b058d0b398177..398ffc8fd5727 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import moment from 'moment'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts index 03542c864865f..0b6854f44c2c7 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/connector/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import { EXECUTE_CONNECTOR_FUNCTION_NAME } from '@kbn/observability-ai-assistant-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts index 406cd354dc2e1..e3751f0bb3cb9 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/documentation/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import type { diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts index a8c843223e6da..3450af97aad57 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import { MessageRole } from '@kbn/observability-ai-assistant-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts index 14222e4730dcb..3801b3873e8a8 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import { chatClient, esClient, synthtraceEsClients } from '../../services'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts index 1bfed29ba495d..d122fe779819f 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ -// / +/// import expect from '@kbn/expect'; import { CONTEXT_FUNCTION_NAME, MessageRole } from '@kbn/observability-ai-assistant-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts index a094e4ac4b1ae..5bd5c6200516f 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts @@ -129,7 +129,7 @@ export function getObsAIAssistantConnectorType( isSystemActionType: true, getKibanaPrivileges: () => CONNECTOR_PRIVILEGES, minimumLicenseRequired: 'enterprise', - name: i18n.translate('xpack.observability.alertConnector.title', { + name: i18n.translate('xpack.observabilityAiAssistant.alertConnector.title', { defaultMessage: 'Observability AI Assistant', }), supportedFeatureIds: [AlertingConnectorFeatureId], diff --git a/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts b/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts index ec7b21b5a548e..2572ef4fd9673 100644 --- a/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts +++ b/x-pack/solutions/observability/plugins/observability_logs_explorer/public/plugin.ts @@ -25,7 +25,7 @@ export class ObservabilityLogsExplorerPlugin core: CoreSetup, _pluginsSetup: ObservabilityLogsExplorerSetupDeps ) { - const title = i18n.translate('xpack.observability.appTitle', { + const title = i18n.translate('xpack.observabilityLogsExplorer.appTitle', { defaultMessage: 'Logs explorer', }); diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx index d85990735a0ab..bc0f8472c6fd6 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/app.tsx @@ -23,9 +23,12 @@ import type { } from '../plugin'; import { ObservabilityOnboardingFlow } from './observability_onboarding_flow'; -export const onBoardingTitle = i18n.translate('xpack.observability.breadcrumbs.onboarding', { - defaultMessage: 'Onboarding', -}); +export const onBoardingTitle = i18n.translate( + 'xpack.observability_onboarding.breadcrumbs.onboarding', + { + defaultMessage: 'Onboarding', + } +); export const breadcrumbsApp = { id: 'observabilityOnboarding', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx index 497458005acc3..bbd8b8aacf705 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/custom_header.tsx @@ -43,9 +43,12 @@ export function CustomHeader({ euiIconType, logo, headlineCopy, captionCopy }: P restrictWidth > - {i18n.translate('xpack.observability.experimentalOnboardingFlow.button.returnButtonLabel', { - defaultMessage: 'Return', - })} + {i18n.translate( + 'xpack.observability_onboarding.experimentalOnboardingFlow.button.returnButtonLabel', + { + defaultMessage: 'Return', + } + )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx index 3359e578f125b..3f066f695a3d5 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/header/header.tsx @@ -38,7 +38,7 @@ export function Header() {

      @@ -46,7 +46,7 @@ export function Header() { diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx index e03c57be9c1b3..6023e0eb3884e 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx @@ -60,13 +60,16 @@ export const OnboardingFlowForm: FunctionComponent = () => { const applicationUseCaseOption: UseCaseOption = { id: 'application', label: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.applicationLabel', + 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.applicationLabel', { defaultMessage: 'Application' } ), - description: i18n.translate('xpack.observability.onboardingFlowForm.applicationDescription', { - defaultMessage: - 'Monitor the frontend and backend application that you have developed, set-up synthetic monitors', - }), + description: i18n.translate( + 'xpack.observability_onboarding.onboardingFlowForm.applicationDescription', + { + defaultMessage: + 'Monitor the frontend and backend application that you have developed, set-up synthetic monitors', + } + ), logos: ['opentelemetry', 'java', 'ruby', 'dotnet'], }; @@ -74,33 +77,39 @@ export const OnboardingFlowForm: FunctionComponent = () => { { id: 'host', label: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.hostLabel', + 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.hostLabel', { defaultMessage: 'Host' } ), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.onboardingFlowForm.hostDescription', { + ? i18n.translate('xpack.observability_onboarding.onboardingFlowForm.hostDescription', { defaultMessage: 'Monitor your host and the services running on it, set-up SLO, get alerted, remediate performance issues', }) - : i18n.translate('xpack.observability.logsEssential.onboardingFlowForm.hostDescription', { - defaultMessage: - 'Ingest and analyze logs on your host such as OS, service, application and other logs', - }), + : i18n.translate( + 'xpack.observability_onboarding.logsEssential.onboardingFlowForm.hostDescription', + { + defaultMessage: + 'Ingest and analyze logs on your host such as OS, service, application and other logs', + } + ), logos: ['opentelemetry', 'apache', 'mysql'], }, { id: 'kubernetes', label: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.kubernetesLabel', + 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.kubernetesLabel', { defaultMessage: 'Kubernetes' } ), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.onboardingFlowForm.kubernetesDescription', { - defaultMessage: - 'Observe your Kubernetes cluster, and your container workloads using logs, metrics, traces and profiling data', - }) + ? i18n.translate( + 'xpack.observability_onboarding.onboardingFlowForm.kubernetesDescription', + { + defaultMessage: + 'Observe your Kubernetes cluster, and your container workloads using logs, metrics, traces and profiling data', + } + ) : i18n.translate( - 'xpack.observability.logsEssential.onboardingFlowForm.kubernetesDescription', + 'xpack.observability_onboarding.logsEssential.onboardingFlowForm.kubernetesDescription', { defaultMessage: 'Observe logs from your Kubernetes environments', } @@ -111,12 +120,15 @@ export const OnboardingFlowForm: FunctionComponent = () => { { id: 'cloud', label: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.euiCheckableCard.cloudLabel', + 'xpack.observability_onboarding.experimentalOnboardingFlow.euiCheckableCard.cloudLabel', { defaultMessage: 'Cloud' } ), - description: i18n.translate('xpack.observability.onboardingFlowForm.cloudDescription', { - defaultMessage: 'Ingest telemetry data from the Cloud for your applications and services', - }), + description: i18n.translate( + 'xpack.observability_onboarding.onboardingFlowForm.cloudDescription', + { + defaultMessage: 'Ingest telemetry data from the Cloud for your applications and services', + } + ), logos: ['azure', 'aws', 'gcp'], }, ]; @@ -199,7 +211,7 @@ export const OnboardingFlowForm: FunctionComponent = () => { {i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.strong.startCollectingYourDataLabel', + 'xpack.observability_onboarding.experimentalOnboardingFlow.strong.startCollectingYourDataLabel', { defaultMessage: 'What do you want to monitor?', } @@ -256,8 +268,8 @@ export const OnboardingFlowForm: FunctionComponent = () => { {option.showIntegrationsBadge && ( @@ -320,27 +332,27 @@ export const OnboardingFlowForm: FunctionComponent = () => { {searchParams.get('category') === 'kubernetes' ? i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.kubernetesPackagesTitle', + 'xpack.observability_onboarding.experimentalOnboardingFlow.kubernetesPackagesTitle', { defaultMessage: 'Monitor your Kubernetes cluster using:', } ) : searchParams.get('category') === 'application' ? i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.applicationPackagesTitle', + 'xpack.observability_onboarding.experimentalOnboardingFlow.applicationPackagesTitle', { defaultMessage: 'Monitor your Application using:', } ) : searchParams.get('category') === 'cloud' ? i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.cloudPackagesTitle', + 'xpack.observability_onboarding.experimentalOnboardingFlow.cloudPackagesTitle', { defaultMessage: 'Select your Cloud provider:', } ) : i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.hostPackagesTitle', + 'xpack.observability_onboarding.experimentalOnboardingFlow.hostPackagesTitle', { defaultMessage: 'Monitor your Host using:', } @@ -357,7 +369,7 @@ export const OnboardingFlowForm: FunctionComponent = () => { diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx index 6c80b17b4961c..aebab032aa528 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/onboarding_flow_form/use_custom_cards.tsx @@ -54,16 +54,19 @@ export function useCustomCards( id: 'firehose-quick-start', name: 'firehose-quick-start', type: 'virtual', - title: i18n.translate('xpack.observability.packageList.uploadFileTitle', { + title: i18n.translate('xpack.observability_onboarding.packageList.uploadFileTitle', { defaultMessage: 'AWS Firehose', }), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.packageList.uploadFileDescription', { + ? i18n.translate('xpack.observability_onboarding.packageList.uploadFileDescription', { defaultMessage: 'Collect logs and metrics from Amazon Web Services (AWS).', }) - : i18n.translate('xpack.observability.logsEssential.packageList.uploadFileDescription', { - defaultMessage: 'Collect logs from Amazon Web Services (AWS).', - }), + : i18n.translate( + 'xpack.observability_onboarding.logsEssential.packageList.uploadFileDescription', + { + defaultMessage: 'Collect logs from Amazon Web Services (AWS).', + } + ), categories: ['observability'], icons: [ { @@ -83,21 +86,27 @@ export function useCustomCards( name: 'auto-detect-logs-virtual', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.useCustomCardsForCategory.autoDetectTitle', { - defaultMessage: 'Elastic Agent: Logs & Metrics', - }) + ? i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.autoDetectTitle', + { + defaultMessage: 'Elastic Agent: Logs & Metrics', + } + ) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.autoDetectTitle', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.autoDetectTitle', { defaultMessage: 'Elastic Agent: Logs', } ), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.useCustomCardsForCategory.autoDetectDescription', { - defaultMessage: 'Scan your host for log files, metrics, auto-install integrations', - }) + ? i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.autoDetectDescription', + { + defaultMessage: 'Scan your host for log files, metrics, auto-install integrations', + } + ) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.autoDetectDescription', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.autoDetectDescription', { defaultMessage: 'Scan your host for log files and auto-install integrations', } @@ -131,22 +140,25 @@ export function useCustomCards( name: 'custom-logs-virtual', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.useCustomCardsForCategory.logsOtelTitle', { + ? i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.logsOtelTitle', { defaultMessage: 'OpenTelemetry: Logs & Metrics', }) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.logsOtelTitle', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.logsOtelTitle', { defaultMessage: 'OpenTelemetry: Logs', } ), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.useCustomCardsForCategory.logsOtelDescription', { - defaultMessage: - 'Collect logs and host metrics with the Elastic Distro for OTel Collector', - }) + ? i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.logsOtelDescription', + { + defaultMessage: + 'Collect logs and host metrics with the Elastic Distro for OTel Collector', + } + ) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.logsOtelDescription', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.logsOtelDescription', { defaultMessage: 'Collect logs with the Elastic Distro for OTel Collector', } @@ -180,21 +192,27 @@ export function useCustomCards( name: 'kubernetes-quick-start', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.useCustomCardsForCategory.kubernetesTitle', { - defaultMessage: 'Elastic Agent: Logs & Metrics', - }) + ? i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesTitle', + { + defaultMessage: 'Elastic Agent: Logs & Metrics', + } + ) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesTitle', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesTitle', { defaultMessage: 'Elastic Agent: Logs', } ), description: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.useCustomCardsForCategory.kubernetesDescription', { - defaultMessage: 'Collect logs and metrics from Kubernetes using Elastic Agent', - }) + ? i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesDescription', + { + defaultMessage: 'Collect logs and metrics from Kubernetes using Elastic Agent', + } + ) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesDescription', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesDescription', { defaultMessage: 'Collect logs from Kubernetes using Elastic Agent', } @@ -221,25 +239,28 @@ export function useCustomCards( name: 'otel-kubernetes-virtual', type: 'virtual', title: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.useCustomCardsForCategory.kubernetesOtelTitle', { - defaultMessage: 'OpenTelemetry: Full Observability', - }) + ? i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesOtelTitle', + { + defaultMessage: 'OpenTelemetry: Full Observability', + } + ) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesOtelTitle', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesOtelTitle', { defaultMessage: 'OpenTelemetry: Logs', } ), description: metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability.useCustomCardsForCategory.kubernetesOtelDescription', + 'xpack.observability_onboarding.useCustomCardsForCategory.kubernetesOtelDescription', { defaultMessage: 'Collect logs, traces and metrics with the Elastic Distro for OTel Collector', } ) : i18n.translate( - 'xpack.observability.logsEssential.useCustomCardsForCategory.kubernetesOtelDescription', + 'xpack.observability_onboarding.logsEssential.useCustomCardsForCategory.kubernetesOtelDescription', { defaultMessage: 'Collect logs with the Elastic Distro for OTel Collector', } @@ -264,12 +285,15 @@ export function useCustomCards( { id: 'apm-virtual', type: 'virtual', - title: i18n.translate('xpack.observability.useCustomCardsForCategory.apmTitle', { + title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.apmTitle', { defaultMessage: 'Elastic APM', }), - description: i18n.translate('xpack.observability.useCustomCardsForCategory.apmDescription', { - defaultMessage: 'Collect distributed traces from your applications with Elastic APM', - }), + description: i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.apmDescription', + { + defaultMessage: 'Collect distributed traces from your applications with Elastic APM', + } + ), name: 'apm', categories: ['observability'], icons: [ @@ -285,11 +309,14 @@ export function useCustomCards( { id: 'otel-virtual', type: 'virtual', - title: i18n.translate('xpack.observability.useCustomCardsForCategory.apmOtelTitle', { - defaultMessage: 'OpenTelemetry', - }), + title: i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.apmOtelTitle', + { + defaultMessage: 'OpenTelemetry', + } + ), description: i18n.translate( - 'xpack.observability.useCustomCardsForCategory.apmOtelDescription', + 'xpack.observability_onboarding.useCustomCardsForCategory.apmOtelDescription', { defaultMessage: 'Collect distributed traces with OpenTelemetry', } @@ -309,11 +336,14 @@ export function useCustomCards( { id: 'synthetics-virtual', type: 'virtual', - title: i18n.translate('xpack.observability.useCustomCardsForCategory.syntheticsTitle', { - defaultMessage: 'Synthetic monitor', - }), + title: i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.syntheticsTitle', + { + defaultMessage: 'Synthetic monitor', + } + ), description: i18n.translate( - 'xpack.observability.useCustomCardsForCategory.syntheticsDescription', + 'xpack.observability_onboarding.useCustomCardsForCategory.syntheticsDescription', { defaultMessage: 'Monitor endpoints, pages, and user journeys', } @@ -336,11 +366,11 @@ export function useCustomCards( { id: 'azure-logs-virtual', type: 'virtual', - title: i18n.translate('xpack.observability.useCustomCardsForCategory.azureTitle', { + title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.azureTitle', { defaultMessage: 'Azure', }), description: i18n.translate( - 'xpack.observability.useCustomCardsForCategory.azureDescription', + 'xpack.observability_onboarding.useCustomCardsForCategory.azureDescription', { defaultMessage: 'Collect logs from Microsoft Azure', } @@ -357,12 +387,15 @@ export function useCustomCards( { id: 'aws-logs-virtual', type: 'virtual', - title: i18n.translate('xpack.observability.useCustomCardsForCategory.awsTitle', { + title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.awsTitle', { defaultMessage: 'AWS', }), - description: i18n.translate('xpack.observability.useCustomCardsForCategory.awsDescription', { - defaultMessage: 'Collect logs from Amazon Web Services (AWS)', - }), + description: i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.awsDescription', + { + defaultMessage: 'Collect logs from Amazon Web Services (AWS)', + } + ), name: 'aws', categories: ['observability'], icons: [], @@ -375,12 +408,15 @@ export function useCustomCards( { id: 'gcp-logs-virtual', type: 'virtual', - title: i18n.translate('xpack.observability.useCustomCardsForCategory.gcpTitle', { + title: i18n.translate('xpack.observability_onboarding.useCustomCardsForCategory.gcpTitle', { defaultMessage: 'Google Cloud Platform', }), - description: i18n.translate('xpack.observability.useCustomCardsForCategory.gcpDescription', { - defaultMessage: 'Collect logs from Google Cloud Platform', - }), + description: i18n.translate( + 'xpack.observability_onboarding.useCustomCardsForCategory.gcpDescription', + { + defaultMessage: 'Collect logs from Google Cloud Platform', + } + ), name: 'gcp', categories: ['observability'], icons: [], @@ -393,13 +429,16 @@ export function useCustomCards( { id: 'upload-file-virtual', type: 'virtual', - title: i18n.translate('xpack.observability.packageList.uploadFileTitle', { + title: i18n.translate('xpack.observability_onboarding.packageList.uploadFileTitle', { defaultMessage: 'Upload a file', }), - description: i18n.translate('xpack.observability.packageList.uploadFileDescription', { - defaultMessage: - 'Upload data from a CSV, TSV, JSON or other log file to Elasticsearch for analysis.', - }), + description: i18n.translate( + 'xpack.observability_onboarding.packageList.uploadFileDescription', + { + defaultMessage: + 'Upload data from a CSV, TSV, JSON or other log file to Elasticsearch for analysis.', + } + ), name: 'upload-file', categories: ['observability'], icons: [ diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx index 4b43ef59c9666..e64d2431909ea 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/package_list_search_form/package_list_search_form.tsx @@ -99,8 +99,7 @@ export const PackageListSearchForm = React.forwardRef( if (errorLoading) return (

      @@ -121,7 +120,7 @@ export const PackageListSearchForm = React.forwardRef( }} > diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx index c242b93f80b0b..a592007c7ca59 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/auto_detect.tsx @@ -26,13 +26,13 @@ export const AutoDetectPage = () => { headlineCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.customHeader.system.text', + 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.system.text', { defaultMessage: 'Auto-detect logs and metrics', } ) : i18n.translate( - 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.system.text', + 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.system.text', { defaultMessage: 'Auto-detect logs', } @@ -41,14 +41,14 @@ export const AutoDetectPage = () => { captionCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.customHeader.system.description', + 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.system.description', { defaultMessage: 'This installation scans your host and auto-detects log and metric files.', } ) : i18n.translate( - 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.system.description', + 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.system.description', { defaultMessage: 'This installation scans your host and auto-detects log files.', } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx index ce05e84cd1039..bc4957e189934 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/firehose.tsx @@ -17,13 +17,13 @@ export const FirehosePage = () => ( { { captionCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', + 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', { defaultMessage: 'This installation is tailored for configuring and collecting metrics and logs by deploying a new Elastic Agent within your host.', } ) : i18n.translate( - 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', + 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.kubernetes.caption.description', { defaultMessage: 'This installation is tailored for configuring and collecting logs by deploying a new Elastic Agent within your host.', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx index 2f0c457e1de29..86e9bab60bba3 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/pages/otel_kubernetes.tsx @@ -18,13 +18,13 @@ export const OtelKubernetesPage = () => { { { captionCopy={ metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.customHeader.otel.description', + 'xpack.observability_onboarding.experimentalOnboardingFlow.customHeader.otel.description', { defaultMessage: 'Collect logs and host metrics using the Elastic distribution of the OTel collector.', } ) : i18n.translate( - 'xpack.observability.logsEssential.experimentalOnboardingFlow.customHeader.otel.description', + 'xpack.observability_onboarding.logsEssential.experimentalOnboardingFlow.customHeader.otel.description', { defaultMessage: 'Collect logs using the Elastic distribution of the OTel collector.', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx index 55884c5f8f292..86b52d3835939 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx @@ -40,9 +40,10 @@ import { usePricingFeature } from '../shared/use_pricing_feature'; export const AutoDetectPanel: FunctionComponent = () => { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.autoDetectLabel', { - defaultMessage: 'Elastic Agent: Logs & Metrics', - }), + text: i18n.translate( + 'xpack.observability_onboarding.autoDetectPanel.breadcrumbs.autoDetectLabel', + { defaultMessage: 'Elastic Agent: Logs & Metrics' } + ), }); const { status, data, error, refetch, installedIntegrations } = useOnboardingFlow(); const metricsOnboardingEnabled = usePricingFeature( @@ -94,9 +95,10 @@ export const AutoDetectPanel: FunctionComponent = () => { @@ -104,13 +106,13 @@ export const AutoDetectPanel: FunctionComponent = () => {

      {metricsOnboardingEnabled ? i18n.translate( - 'xpack.observability.autoDetectPanel.p.wellScanYourHostLabel', + 'xpack.observability_onboarding.autoDetectPanel.p.wellScanYourHostLabel', { defaultMessage: "We'll scan your host for logs and metrics, including:", } ) : i18n.translate( - 'xpack.observability.logsEssential.autoDetectPanel.p.wellScanYourHostLabel', + 'xpack.observability_onboarding.logsEssential.autoDetectPanel.p.wellScanYourHostLabel', { defaultMessage: "We'll scan your host for logs, including:", } @@ -140,9 +142,10 @@ export const AutoDetectPanel: FunctionComponent = () => { ), }, { - title: i18n.translate('xpack.observability.autoDetectPanel.visualizeYourDataLabel', { - defaultMessage: 'Visualize your data', - }), + title: i18n.translate( + 'xpack.observability_onboarding.autoDetectPanel.visualizeYourDataLabel', + { defaultMessage: 'Visualize your data' } + ), status: status === 'dataReceived' ? 'complete' @@ -155,7 +158,7 @@ export const AutoDetectPanel: FunctionComponent = () => { { ) : status === 'awaitingData' ? ( { ) : status === 'inProgress' ? ( { { id: 'inventory-host-details', title: i18n.translate( - 'xpack.observability.autoDetectPanel.systemOverviewTitle', + 'xpack.observability_onboarding.autoDetectPanel.systemOverviewTitle', { defaultMessage: 'Overview your system health within the Hosts Inventory', } ), label: i18n.translate( - 'xpack.observability.autoDetectPanel.systemOverviewLabel', + 'xpack.observability_onboarding.autoDetectPanel.systemOverviewLabel', { defaultMessage: 'Explore metrics data', } @@ -227,13 +230,13 @@ export const AutoDetectPanel: FunctionComponent = () => { { id: 'inventory-host-details', title: i18n.translate( - 'xpack.observability.autoDetectPanel.systemLogsTitle', + 'xpack.observability_onboarding.autoDetectPanel.systemLogsTitle', { defaultMessage: 'View and analyze system logs', } ), label: i18n.translate( - 'xpack.observability.autoDetectPanel.systemLogsLabel', + 'xpack.observability_onboarding.autoDetectPanel.systemLogsLabel', { defaultMessage: 'Explore logs', } @@ -265,13 +268,13 @@ export const AutoDetectPanel: FunctionComponent = () => { return { id: asset.id, title: i18n.translate( - 'xpack.observability.autoDetectPanel.exploreLogsDataDiscoverTitle', + 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDataDiscoverTitle', { defaultMessage: 'View and analyze your logs', } ), label: i18n.translate( - 'xpack.observability.autoDetectPanel.exploreLogsDiscoverDataLabel', + 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDiscoverDataLabel', { defaultMessage: 'Explore logs', } @@ -291,14 +294,14 @@ export const AutoDetectPanel: FunctionComponent = () => { title: dashboard.type === 'metrics' ? i18n.translate( - 'xpack.observability.autoDetectPanel.exploreMetricsDataTitle', + 'xpack.observability_onboarding.autoDetectPanel.exploreMetricsDataTitle', { defaultMessage: 'Overview your metrics data with this pre-made dashboard', } ) : i18n.translate( - 'xpack.observability.autoDetectPanel.exploreLogsDataTitle', + 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDataTitle', { defaultMessage: 'Overview your logs data with this pre-made dashboard', @@ -307,13 +310,13 @@ export const AutoDetectPanel: FunctionComponent = () => { label: dashboard.type === 'metrics' ? i18n.translate( - 'xpack.observability.autoDetectPanel.exploreMetricsDataLabel', + 'xpack.observability_onboarding.autoDetectPanel.exploreMetricsDataLabel', { defaultMessage: 'Explore metrics data', } ) : i18n.translate( - 'xpack.observability.autoDetectPanel.exploreLogsDataLabel', + 'xpack.observability_onboarding.autoDetectPanel.exploreLogsDataLabel', { defaultMessage: 'Explore logs data', } @@ -338,7 +341,7 @@ export const AutoDetectPanel: FunctionComponent = () => { ) } title={i18n.translate( - 'xpack.observability.autoDetectPanel.h3.getStartedWithNginxLabel', + 'xpack.observability_onboarding.autoDetectPanel.h3.getStartedWithNginxLabel', { defaultMessage: 'Get started with {title}', values: { title: integration.title }, @@ -371,7 +374,7 @@ export const AutoDetectPanel: FunctionComponent = () => { id={`${accordionId}_custom`} icon={} title={i18n.translate( - 'xpack.observability.autoDetectPanel.h3.getStartedWithlogLabel', + 'xpack.observability_onboarding.autoDetectPanel.h3.getStartedWithlogLabel', { defaultMessage: 'Get started with custom .log files' } )} isDisabled={status !== 'dataReceived'} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx index 71affa14afd0b..b3ab93af89ca4 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/supported_integrations_list.tsx @@ -58,7 +58,7 @@ export function SupportedIntegrationsList() { euiTheme: { colors }, } = useEuiTheme(); const customLogFilesTitle = i18n.translate( - 'xpack.observability.autoDetectPanel.supportedIntegrationsList.customIntegrationTitle', + 'xpack.observability_onboarding.autoDetectPanel.supportedIntegrationsList.customIntegrationTitle', { defaultMessage: 'Custom .log files' } ); return ( diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx index 15e983b26d44b..e4cd98c37ee1c 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/auto_refresh_callout.tsx @@ -38,10 +38,13 @@ export function AutoRefreshCallout() {

      - {i18n.translate('xpack.observability.firehosePanel.autorefreshCalloutLabel', { - defaultMessage: 'Auto-refreshing every {intervalSeconds} s', - values: { intervalSeconds: Math.round(HAS_DATA_FETCH_INTERVAL / 1000) }, - })} + {i18n.translate( + 'xpack.observability_onboarding.firehosePanel.autorefreshCalloutLabel', + { + defaultMessage: 'Auto-refreshing every {intervalSeconds} s', + values: { intervalSeconds: Math.round(HAS_DATA_FETCH_INTERVAL / 1000) }, + } + )}

      diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx index 52267e367947d..74cc8a2c4cb52 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/create_stack_command_snippet.tsx @@ -64,7 +64,7 @@ export function CreateStackCommandSnippet({ external target="_blank" > - {i18n.translate('xpack.observability.firehosePanel.awsCLIInstallGuideLinkLabel', { + {i18n.translate('xpack.observability_onboarding.firehosePanel.awsCLIInstallGuideLinkLabel', { defaultMessage: 'AWS CLI', })} @@ -76,14 +76,14 @@ export function CreateStackCommandSnippet({

      {metricsOnboardingEnabled && ( )} {!metricsOnboardingEnabled && ( @@ -115,7 +115,7 @@ export function CreateStackCommandSnippet({ {metricsOnboardingEnabled && ( )} {!metricsOnboardingEnabled && ( )} @@ -78,7 +78,7 @@ export function CreateStackInAWSConsole({ fill={isPrimaryAction} > {i18n.translate( - 'xpack.observability.createStackInAWSConsole.createFirehoseStreamInAWSConsoleButtonLabel', + 'xpack.observability_onboarding.createStackInAWSConsole.createFirehoseStreamInAWSConsoleButtonLabel', { defaultMessage: 'Create Firehose Stream in AWS' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx index c3e1841e532e9..ca796281685ef 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/download_template_callout.tsx @@ -14,7 +14,7 @@ import { FIREHOSE_CLOUDFORMATION_TEMPLATE_URL } from '../../../../common/aws_fir export function DownloadTemplateCallout() { return ( {i18n.translate( - 'xpack.observability.firehosePanel.downloadCloudFormationTemplateButtonLabel', + 'xpack.observability_onboarding.firehosePanel.downloadCloudFormationTemplateButtonLabel', { defaultMessage: 'Download the CloudFormation template' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx index 6942bda6897c4..318f1e50512d1 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/existing_data_callout.tsx @@ -15,7 +15,7 @@ export function ExistingDataCallout() { return (

      - {i18n.translate('xpack.observability.firehose.existingDataCallout.description', { - defaultMessage: `If the Amazon Firehose Data stream(s) associated with this workflow are still active, you will encounter errors during onboarding. Navigate to Step 3 below in order to explore your services.`, - })} + {i18n.translate( + 'xpack.observability_onboarding.firehose.existingDataCallout.description', + { + defaultMessage: `If the Amazon Firehose Data stream(s) associated with this workflow are still active, you will encounter errors during onboarding. Navigate to Step 3 below in order to explore your services.`, + } + )}

      diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx index a73d7416c3ff2..b86aaa4f292f8 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/index.tsx @@ -41,21 +41,25 @@ import { usePricingFeature } from '../shared/use_pricing_feature'; const OPTIONS = [ { id: CreateStackOption.AWS_CONSOLE_UI, - label: i18n.translate('xpack.observability.firehosePanel.createStackAWSConsoleOptionLabel', { - defaultMessage: 'Via AWS Console', - }), + label: i18n.translate( + 'xpack.observability_onboarding.firehosePanel.createStackAWSConsoleOptionLabel', + { + defaultMessage: 'Via AWS Console', + } + ), }, { id: CreateStackOption.AWS_CLI, - label: i18n.translate('xpack.observability.firehosePanel.createStackAWSCLIOptionLabel', { - defaultMessage: 'Via AWS CLI', - }), + label: i18n.translate( + 'xpack.observability_onboarding.firehosePanel.createStackAWSCLIOptionLabel', + { defaultMessage: 'Via AWS CLI' } + ), }, ]; export function FirehosePanel() { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.firehose', { + text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.firehose', { defaultMessage: 'AWS Firehose', }), }); @@ -124,7 +128,7 @@ export function FirehosePanel() { const steps = [ { - title: i18n.translate('xpack.observability.firehosePanel.prerequisitesTitle', { + title: i18n.translate('xpack.observability_onboarding.firehosePanel.prerequisitesTitle', { defaultMessage: 'Prerequisites', }), children: ( @@ -132,13 +136,13 @@ export function FirehosePanel() {

      - {i18n.translate('xpack.observability.firehosePanel.documentationLinkLabel', { - defaultMessage: 'Check the documentation', - })} + {i18n.translate( + 'xpack.observability_onboarding.firehosePanel.documentationLinkLabel', + { defaultMessage: 'Check the documentation' } + )} ), }} @@ -162,12 +167,12 @@ export function FirehosePanel() { }, { title: metricsOnboardingEnabled - ? i18n.translate('xpack.observability.firehosePanel.createDeliveryStreamTitle', { + ? i18n.translate('xpack.observability_onboarding.firehosePanel.createDeliveryStreamTitle', { defaultMessage: 'Create a Firehose delivery stream to ingest CloudWatch logs and metrics', }) : i18n.translate( - 'xpack.observability.logsEssential.firehosePanel.createDeliveryStreamTitle', + 'xpack.observability_onboarding.logsEssential.firehosePanel.createDeliveryStreamTitle', { defaultMessage: 'Create a Firehose delivery stream to ingest CloudWatch logs', } @@ -185,7 +190,7 @@ export function FirehosePanel() { <>

      - {i18n.translate('xpack.observability.firehosePanel.waitingForDataTitle', { + {i18n.translate('xpack.observability_onboarding.firehosePanel.waitingForDataTitle', { defaultMessage: 'Retrieving data from Amazon Data Firehose', })}

      @@ -52,7 +52,7 @@ export function ProgressCallout() { {i18n.translate( - 'xpack.observability.progressCallout.strong.allServicesWeCanLabel', + 'xpack.observability_onboarding.progressCallout.strong.allServicesWeCanLabel', { defaultMessage: 'All services we can detect' } )} @@ -62,10 +62,13 @@ export function ProgressCallout() {
    • {service}
    • ))}
    • - {i18n.translate('xpack.observability.progressCallout.li.otherLabel', { - defaultMessage: - 'Other (Unsupported logs will be stored in a generic Firehose index).', - })} + {i18n.translate( + 'xpack.observability_onboarding.progressCallout.li.otherLabel', + { + defaultMessage: + 'Other (Unsupported logs will be stored in a generic Firehose index).', + } + )}
    diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts index ddf2ec5dceac9..148bdd1f3ddde 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/use_aws_service_get_started_list.ts @@ -37,13 +37,19 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateMetricsDashboardActionLink = useCallback( (dashboardId: string, name?: string) => ({ id: `dashboard-${dashboardId}`, - title: i18n.translate('xpack.observability.firehosePanel.exploreMetricsDataTitle', { - defaultMessage: 'Overview{name} metrics data with this pre-made dashboard', - values: { name: name ? ` ${name}` : '' }, - }), - label: i18n.translate('xpack.observability.firehosePanel.exploreMetricsDataLabel', { - defaultMessage: 'Explore metrics data', - }), + title: i18n.translate( + 'xpack.observability_onboarding.firehosePanel.exploreMetricsDataTitle', + { + defaultMessage: 'Overview{name} metrics data with this pre-made dashboard', + values: { name: name ? ` ${name}` : '' }, + } + ), + label: i18n.translate( + 'xpack.observability_onboarding.firehosePanel.exploreMetricsDataLabel', + { + defaultMessage: 'Explore metrics data', + } + ), href: dashboardLocator?.getRedirectUrl({ dashboardId, @@ -55,10 +61,10 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateLogsDashboardActionLink = useCallback( (dashboardId: string) => ({ id: `dashboard-${dashboardId}`, - title: i18n.translate('xpack.observability.firehosePanel.exploreLogsDataTitle', { + title: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreLogsDataTitle', { defaultMessage: 'Overview your logs data with this pre-made dashboard', }), - label: i18n.translate('xpack.observability.firehosePanel.exploreLogsDataLabel', { + label: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreLogsDataLabel', { defaultMessage: 'Explore logs data', }), href: @@ -72,11 +78,11 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateLogsExplorerActionLink = useCallback( (dataset: string, name: string) => ({ id: `logs-explorer-${dataset}`, - title: i18n.translate('xpack.observability.firehosePanel.exploreDataTitle', { + title: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataTitle', { defaultMessage: 'See {name} data in Logs explorer', values: { name }, }), - label: i18n.translate('xpack.observability.firehosePanel.exploreDataLabel', { + label: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataLabel', { defaultMessage: 'Explore', }), href: @@ -93,11 +99,11 @@ export function useAWSServiceGetStartedList(): AWSServiceGetStartedConfig[] { const generateMetricsDiscoverActionLink = useCallback( (namespace: string, name: string) => ({ id: `discover-${namespace}`, - title: i18n.translate('xpack.observability.firehosePanel.exploreDataTitle', { + title: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataTitle', { defaultMessage: 'See {name} metrics data in Discover', values: { name }, }), - label: i18n.translate('xpack.observability.firehosePanel.exploreDataLabel', { + label: i18n.translate('xpack.observability_onboarding.firehosePanel.exploreDataLabel', { defaultMessage: 'Explore', }), href: diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx index bd1f91407280d..f9066ec06ec7b 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/firehose/visualize_data.tsx @@ -59,13 +59,19 @@ export function VisualizeData({ onboardingId, selectedCreateStackOption, hasExis ) { notifications?.toasts.addSuccess( { - title: i18n.translate('xpack.observability.firehosePanel.dataReceivedToastTitle', { - defaultMessage: 'Your data is on its way', - }), - text: i18n.translate('xpack.observability.firehosePanel.dataReceivedToastText', { - defaultMessage: - 'We’ve begun processing your data. In the background, we automatically refresh every few seconds to capture more incoming data.', - }), + title: i18n.translate( + 'xpack.observability_onboarding.firehosePanel.dataReceivedToastTitle', + { + defaultMessage: 'Your data is on its way', + } + ), + text: i18n.translate( + 'xpack.observability_onboarding.firehosePanel.dataReceivedToastText', + { + defaultMessage: + 'We’ve begun processing your data. In the background, we automatically refresh every few seconds to capture more incoming data.', + } + ), }, { toastLifeTimeMs: 10000, @@ -113,7 +119,7 @@ export function VisualizeData({ onboardingId, selectedCreateStackOption, hasExis

    diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx index 5f5c14f0dd8c4..0aa4960777a60 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/command_snippet.tsx @@ -46,7 +46,7 @@ export function CommandSnippet({

    {i18n.translate( - 'xpack.observability.kubernetesPanel.scalingElasticAgentOnLinkLabel', + 'xpack.observability_onboarding.kubernetesPanel.scalingElasticAgentOnLinkLabel', { defaultMessage: 'Scaling Elastic Agent on Kubernetes' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx index 1e257343e77dd..b0152d4afdb85 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/data_ingest_status.tsx @@ -96,7 +96,7 @@ export function DataIngestStatus({ onboardingId }: Props) { {i18n.translate( - 'xpack.observability.dataIngestStatus.troubleshootingLinkText', + 'xpack.observability_onboarding.dataIngestStatus.troubleshootingLinkText', { defaultMessage: 'Open documentation', } @@ -135,13 +135,19 @@ export function DataIngestStatus({ onboardingId }: Props) { metricsOnboardingEnabled ? { id: CLUSTER_OVERVIEW_DASHBOARD_ID, - label: i18n.translate('xpack.observability.kubernetesPanel.exploreDashboard', { - defaultMessage: 'Explore Kubernetes cluster', - }), - title: i18n.translate('xpack.observability.kubernetesPanel.monitoringCluster', { - defaultMessage: - 'Overview your Kubernetes cluster with this pre-made dashboard', - }), + label: i18n.translate( + 'xpack.observability_onboarding.kubernetesPanel.exploreDashboard', + { + defaultMessage: 'Explore Kubernetes cluster', + } + ), + title: i18n.translate( + 'xpack.observability_onboarding.kubernetesPanel.monitoringCluster', + { + defaultMessage: + 'Overview your Kubernetes cluster with this pre-made dashboard', + } + ), href: dashboardLocator?.getRedirectUrl({ dashboardId: CLUSTER_OVERVIEW_DASHBOARD_ID, @@ -149,12 +155,18 @@ export function DataIngestStatus({ onboardingId }: Props) { } : { id: 'logs', - title: i18n.translate('xpack.observability.otelKubernetesPanel.logsTitle', { - defaultMessage: 'View and analyze your logs:', - }), - label: i18n.translate('xpack.observability.otelKubernetesPanel.logsLabel', { - defaultMessage: 'Explore logs', - }), + title: i18n.translate( + 'xpack.observability_onboarding.otelKubernetesPanel.logsTitle', + { + defaultMessage: 'View and analyze your logs:', + } + ), + label: i18n.translate( + 'xpack.observability_onboarding.otelKubernetesPanel.logsLabel', + { + defaultMessage: 'Explore logs', + } + ), href: logsLocator?.getRedirectUrl({}) ?? '', }, ]} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx index 75c5e099e3fa3..6e23541a90111 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/kubernetes/index.tsx @@ -21,7 +21,7 @@ import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs'; export const KubernetesPanel: React.FC = () => { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.k8s', { + text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.k8s', { defaultMessage: 'Kubernetes: Logs & Metrics', }), }); @@ -51,7 +51,7 @@ export const KubernetesPanel: React.FC = () => { const steps = [ { title: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.kubernetes.installStepTitle', + 'xpack.observability_onboarding.experimentalOnboardingFlow.kubernetes.installStepTitle', { defaultMessage: 'Install standalone Elastic Agent on your Kubernetes cluster', } @@ -79,7 +79,7 @@ export const KubernetesPanel: React.FC = () => { }, { title: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.kubernetes.monitorStepTitle', + 'xpack.observability_onboarding.experimentalOnboardingFlow.kubernetes.monitorStepTitle', { defaultMessage: 'Monitor your Kubernetes cluster', } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx index 97c3e4f3d772e..70517a9ff5f82 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_kubernetes/otel_kubernetes_panel.tsx @@ -44,7 +44,7 @@ const CLUSTER_OVERVIEW_DASHBOARD_ID = 'kubernetes_otel-cluster-overview'; export const OtelKubernetesPanel: React.FC = () => { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.k8sOtel', { + text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.k8sOtel', { defaultMessage: 'Kubernetes: OpenTelemetry', }), }); @@ -111,7 +111,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub steps={[ { title: i18n.translate( - 'xpack.observability.otelKubernetesPanel.addRepositoryStepTitle', + 'xpack.observability_onboarding.otelKubernetesPanel.addRepositoryStepTitle', { defaultMessage: 'Add the OpenTelemetry repository to Helm', } @@ -130,14 +130,17 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub ), }, { - title: i18n.translate('xpack.observability.otelKubernetesPanel.installStackStepTitle', { - defaultMessage: 'Install the OpenTelemetry Operator', - }), + title: i18n.translate( + 'xpack.observability_onboarding.otelKubernetesPanel.installStackStepTitle', + { + defaultMessage: 'Install the OpenTelemetry Operator', + } + ), children: installStackCommand ? ( <>

    {i18n.translate( - 'xpack.observability.otelKubernetesPanel.certmanagerLinkLabel', + 'xpack.observability_onboarding.otelKubernetesPanel.certmanagerLinkLabel', { defaultMessage: 'cert-manager' } )} @@ -159,7 +162,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub data-test-subj="observabilityOnboardingOtelKubernetesPanelCertManagerDocsLink" > {i18n.translate( - 'xpack.observability.otelKubernetesPanel.certmanagerDocsLinkLabel', + 'xpack.observability_onboarding.otelKubernetesPanel.certmanagerDocsLinkLabel', { defaultMessage: 'in our documentation' } )} @@ -168,7 +171,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub />{' '} {i18n.translate( - 'xpack.observability.otelKubernetesPanel.downloadValuesFileButtonEmptyLabel', + 'xpack.observability_onboarding.otelKubernetesPanel.downloadValuesFileButtonEmptyLabel', { defaultMessage: 'Download values file' } )} @@ -214,7 +217,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub ? [ { title: i18n.translate( - 'xpack.observability.otelKubernetesPanel.instrumentApplicationStepTitle', + 'xpack.observability_onboarding.otelKubernetesPanel.instrumentApplicationStepTitle', { defaultMessage: 'Instrument your application (optional)', } @@ -223,7 +226,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub <>

    {i18n.translate( - 'xpack.observability.otelKubernetesPanel.theOperatorAutomatesTheLabel', + 'xpack.observability_onboarding.otelKubernetesPanel.theOperatorAutomatesTheLabel', { defaultMessage: 'The Operator automates the injection of auto-instrumentation libraries into the annotated pods for some languages.', @@ -233,7 +236,7 @@ helm upgrade --install opentelemetry-kube-stack open-telemetry/opentelemetry-kub - {i18n.translate('xpack.observability.otelKubernetesPanel.step3a.title', { - defaultMessage: '3(a) - Start with one of these annotations methods:', - })} + {i18n.translate( + 'xpack.observability_onboarding.otelKubernetesPanel.step3a.title', + { defaultMessage: '3(a) - Start with one of these annotations methods:' } + )}

    @@ -328,10 +332,13 @@ spec: font-weight: ${theme.euiTheme.font.weight.bold}; `} > - {i18n.translate('xpack.observability.otelKubernetesPanel.step3b.title', { - defaultMessage: - '3(b) - Restart deployment and ensure the annotations are applied and the auto-instrumentation library is injected:', - })} + {i18n.translate( + 'xpack.observability_onboarding.otelKubernetesPanel.step3b.title', + { + defaultMessage: + '3(b) - Restart deployment and ensure the annotations are applied and the auto-instrumentation library is injected:', + } + )}

    -n my-namespace`}

    -n my-namespace`} target="_blank" > {i18n.translate( - 'xpack.observability.otelKubernetesPanel.referToTheDocumentationLinkLabel', + 'xpack.observability_onboarding.otelKubernetesPanel.referToTheDocumentationLinkLabel', { defaultMessage: 'refer to the documentation' } )} @@ -371,21 +378,24 @@ kubectl describe pod -n my-namespace`} ] : []), { - title: i18n.translate('xpack.observability.otelKubernetesPanel.monitorStepTitle', { - defaultMessage: 'Visualize your data', - }), + title: i18n.translate( + 'xpack.observability_onboarding.otelKubernetesPanel.monitorStepTitle', + { + defaultMessage: 'Visualize your data', + } + ), children: data ? ( <>

    {metricsOnboardingEnabled && ( )} {!metricsOnboardingEnabled && ( )} @@ -404,13 +414,13 @@ kubectl describe pod -n my-namespace`} { id: CLUSTER_OVERVIEW_DASHBOARD_ID, title: i18n.translate( - 'xpack.observability.otelKubernetesPanel.monitoringCluster', + 'xpack.observability_onboarding.otelKubernetesPanel.monitoringCluster', { defaultMessage: 'Check your Kubernetes cluster health:', } ), label: i18n.translate( - 'xpack.observability.otelKubernetesPanel.exploreDashboard', + 'xpack.observability_onboarding.otelKubernetesPanel.exploreDashboard', { defaultMessage: 'Explore Kubernetes Cluster Dashboard', } @@ -423,13 +433,13 @@ kubectl describe pod -n my-namespace`} { id: 'services', title: i18n.translate( - 'xpack.observability.otelKubernetesPanel.servicesTitle', + 'xpack.observability_onboarding.otelKubernetesPanel.servicesTitle', { defaultMessage: 'Check your application services:', } ), label: i18n.translate( - 'xpack.observability.otelKubernetesPanel.servicesLabel', + 'xpack.observability_onboarding.otelKubernetesPanel.servicesLabel', { defaultMessage: 'Explore Service inventory', } @@ -441,13 +451,13 @@ kubectl describe pod -n my-namespace`} { id: 'logs', title: i18n.translate( - 'xpack.observability.otelKubernetesPanel.logsTitle', + 'xpack.observability_onboarding.otelKubernetesPanel.logsTitle', { defaultMessage: 'View and analyze your logs:', } ), label: i18n.translate( - 'xpack.observability.otelKubernetesPanel.logsLabel', + 'xpack.observability_onboarding.otelKubernetesPanel.logsLabel', { defaultMessage: 'Explore logs', } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx index 6df7584a5164f..66f3beb60bb9d 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/index.tsx @@ -38,7 +38,7 @@ import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs'; import { usePricingFeature } from '../shared/use_pricing_feature'; const HOST_COMMAND = i18n.translate( - 'xpack.observability.otelLogsPanel.p.runTheCommandOnYourHostLabel', + 'xpack.observability_onboarding.otelLogsPanel.p.runTheCommandOnYourHostLabel', { defaultMessage: 'Run the following command on your host to download and configure the collector.', @@ -47,7 +47,7 @@ const HOST_COMMAND = i18n.translate( export const OtelLogsPanel: React.FC = () => { useFlowBreadcrumb({ - text: i18n.translate('xpack.observability.autoDetectPanel.breadcrumbs.otelHost', { + text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.otelHost', { defaultMessage: 'OpenTelemetry: Logs & Metrics', }), }); @@ -154,16 +154,17 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote ({ id, label: name, @@ -197,7 +198,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote onClick={copy} > {i18n.translate( - 'xpack.observability.installOtelCollector.configStep.copyCommand', + 'xpack.observability_onboarding.installOtelCollector.configStep.copyCommand', { defaultMessage: 'Copy to clipboard' } )} @@ -211,21 +212,22 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote ), }, { - title: i18n.translate('xpack.observability.otelLogsPanel.steps.start', { + title: i18n.translate('xpack.observability_onboarding.otelLogsPanel.steps.start', { defaultMessage: 'Start the collector', }), children: (

    {i18n.translate( - 'xpack.observability.otelLogsPanel.historicalDataDescription', + 'xpack.observability_onboarding.otelLogsPanel.historicalDataDescription', { defaultMessage: 'New log messages are collected from the setup onward.', } @@ -233,7 +235,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote

    {i18n.translate( - 'xpack.observability.otelLogsPanel.historicalDataDescription2', + 'xpack.observability_onboarding.otelLogsPanel.historicalDataDescription2', { defaultMessage: 'The default log path is /var/log/*. You can change this path in the otel.yml file if needed.', @@ -245,7 +247,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote

    {i18n.translate( - 'xpack.observability.otelLogsPanel.p.startTheCollectorLabel', + 'xpack.observability_onboarding.otelLogsPanel.p.startTheCollectorLabel', { defaultMessage: 'Run the following command to start the collector', } @@ -257,17 +259,23 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote ), }, { - title: i18n.translate('xpack.observability.otelLogsPanel.steps.visualize', { - defaultMessage: 'Visualize your data', - }), + title: i18n.translate( + 'xpack.observability_onboarding.otelLogsPanel.steps.visualize', + { + defaultMessage: 'Visualize your data', + } + ), children: ( <>

    - {i18n.translate('xpack.observability.otelLogsPanel.waitForTheDataLabel', { - defaultMessage: - 'After running the previous command, come back and view your data.', - })} + {i18n.translate( + 'xpack.observability_onboarding.otelLogsPanel.waitForTheDataLabel', + { + defaultMessage: + 'After running the previous command, come back and view your data.', + } + )}

    @@ -287,7 +295,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote {i18n.translate( - 'xpack.observability.otelLogsPanel.viewAndAnalyzeYourTextLabel', + 'xpack.observability_onboarding.otelLogsPanel.viewAndAnalyzeYourTextLabel', { defaultMessage: 'View and analyze your logs' } )} @@ -297,9 +305,12 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote data-test-subj="obltOnboardingExploreLogs" href={deeplinks.logs} > - {i18n.translate('xpack.observability.otelLogsPanel.exploreLogs', { - defaultMessage: 'Explore logs', - })} + {i18n.translate( + 'xpack.observability_onboarding.otelLogsPanel.exploreLogs', + { + defaultMessage: 'Explore logs', + } + )} @@ -310,7 +321,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote {i18n.translate( - 'xpack.observability.otelLogsPanel.viewAndAnalyzeYourMetricsTextLabel', + 'xpack.observability_onboarding.otelLogsPanel.viewAndAnalyzeYourMetricsTextLabel', { defaultMessage: 'View and analyze your metrics' } )} @@ -321,7 +332,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote href={deeplinks.metrics} > {i18n.translate( - 'xpack.observability.otelLogsPanel.exploreMetrics', + 'xpack.observability_onboarding.otelLogsPanel.exploreMetrics', { defaultMessage: 'Open Hosts', } @@ -336,7 +347,7 @@ rm ./otel.yml && cp ${sampleConfigurationPath} ./otel.yml && mkdir -p ./data/ote - {i18n.translate('xpack.observability.otelLogsPanel.documentationLink', { - defaultMessage: 'Open documentation', - })} + {i18n.translate( + 'xpack.observability_onboarding.otelLogsPanel.documentationLink', + { defaultMessage: 'Open documentation' } + )} ), }} @@ -377,9 +389,10 @@ function CopyableCodeBlock({ content }: { content: string }) { iconType="copyClipboard" onClick={copy} > - {i18n.translate('xpack.observability.installOtelCollector.configStep.copyCommand', { - defaultMessage: 'Copy to clipboard', - })} + {i18n.translate( + 'xpack.observability_onboarding.installOtelCollector.configStep.copyCommand', + { defaultMessage: 'Copy to clipboard' } + )} )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx index f3d83fb55881f..93375e88e4994 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/otel_logs/multi_integration_install_banner.tsx @@ -33,8 +33,7 @@ export function MultiIntegrationInstallBanner() { return ( - {i18n.translate('xpack.observability.otelLogs.status.failedDetails', { + {i18n.translate('xpack.observability_onboarding.otelLogs.status.failedDetails', { defaultMessage: 'Incoming data might not be indexed correctly. Details:', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx index 7d472b54b0c05..770efa96b0fcc 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/copy_to_clipboard_button.tsx @@ -28,9 +28,10 @@ export const CopyToClipboardButton: FunctionComponent {children ?? - i18n.translate('xpack.observability.copyToClipboardButton.copyToClipboardButtonLabel', { - defaultMessage: 'Copy to clipboard', - })} + i18n.translate( + 'xpack.observability_onboarding.copyToClipboardButton.copyToClipboardButtonLabel', + { defaultMessage: 'Copy to clipboard' } + )} )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx index ad2bcfad402e4..7d4e96780e72d 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/empty_prompt.tsx @@ -46,17 +46,20 @@ export const EmptyPrompt: FunctionComponent = ({ title={

    {i18n.translate( - 'xpack.observability.autoDetectPanel.h2.contactYourAdministratorForLabel', + 'xpack.observability_onboarding.autoDetectPanel.h2.contactYourAdministratorForLabel', { defaultMessage: 'Contact your administrator for access' } )}

    } body={

    - {i18n.translate('xpack.observability.autoDetectPanel.p.toInstallIntegrationsAndLabel', { - defaultMessage: - 'To install integrations and ingest data, you need additional privileges.', - })} + {i18n.translate( + 'xpack.observability_onboarding.autoDetectPanel.p.toInstallIntegrationsAndLabel', + { + defaultMessage: + 'To install integrations and ingest data, you need additional privileges.', + } + )}

    } /> @@ -69,17 +72,21 @@ export const EmptyPrompt: FunctionComponent = ({ iconType="error" title={

    - {i18n.translate('xpack.observability.autoDetectPanel.h2.unableToInitiateDataLabel', { - defaultMessage: 'Unable to load content', - })} + {i18n.translate( + 'xpack.observability_onboarding.autoDetectPanel.h2.unableToInitiateDataLabel', + { defaultMessage: 'Unable to load content' } + )}

    } body={

    - {i18n.translate('xpack.observability.autoDetectPanel.p.thereWasAProblemLabel', { - defaultMessage: - 'There was a problem loading the application. Retry or contact your administrator for help.', - })} + {i18n.translate( + 'xpack.observability_onboarding.autoDetectPanel.p.thereWasAProblemLabel', + { + defaultMessage: + 'There was a problem loading the application. Retry or contact your administrator for help.', + } + )}

    } actions={ @@ -90,9 +97,10 @@ export const EmptyPrompt: FunctionComponent = ({ data-test-subj="observabilityOnboardingAutoDetectPanelGoBackButton" onClick={onRetryClick} > - {i18n.translate('xpack.observability.autoDetectPanel.backToSelectionButtonLabel', { - defaultMessage: 'Retry', - })} + {i18n.translate( + 'xpack.observability_onboarding.autoDetectPanel.backToSelectionButtonLabel', + { defaultMessage: 'Retry' } + )} } /> diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx index d046f5885ae0a..3dd0b5c108860 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/feedback_buttons.tsx @@ -20,7 +20,7 @@ import { OBSERVABILITY_ONBOARDING_FEEDBACK_TELEMETRY_EVENT } from '../../../../c export type Feedback = 'positive' | 'negative'; const THANK_YOU_MESSAGE = i18n.translate( - 'xpack.observability.feedbackButtons.em.thanksForYourFeedbackLabel', + 'xpack.observability_onboarding.feedbackButtons.em.thanksForYourFeedbackLabel', { defaultMessage: 'Thanks for your feedback!' } ); @@ -42,7 +42,7 @@ export function FeedbackButtons({ flow }: { flow: string }) { - {i18n.translate('xpack.observability.insight.feedbackButtons.title', { + {i18n.translate('xpack.observability_onboarding.insight.feedbackButtons.title', { defaultMessage: 'Was this helpful?', })} @@ -59,7 +59,7 @@ export function FeedbackButtons({ flow }: { flow: string }) { size="s" onClick={() => handleClick('positive')} > - {i18n.translate('xpack.observability.insight.feedbackButtons.positive', { + {i18n.translate('xpack.observability_onboarding.insight.feedbackButtons.positive', { defaultMessage: 'Yes', })} @@ -73,7 +73,7 @@ export function FeedbackButtons({ flow }: { flow: string }) { size="s" onClick={() => handleClick('negative')} > - {i18n.translate('xpack.observability.insight.feedbackButtons.negative', { + {i18n.translate('xpack.observability_onboarding.insight.feedbackButtons.negative', { defaultMessage: 'No', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx index b9ba68704e6df..68e652da89114 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/get_started_panel.tsx @@ -113,7 +113,7 @@ export function GetStartedPanel({ - {i18n.translate('xpack.observability.dataIngestStatus.viewAllAssetsLinkText', { - defaultMessage: 'View all assets', - })} + {i18n.translate( + 'xpack.observability_onboarding.dataIngestStatus.viewAllAssetsLinkText', + { + defaultMessage: 'View all assets', + } + )} ), }} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx index 8747dcbbdd8c6..02f8e9ed20f91 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/install_elastic_agent_steps.tsx @@ -118,7 +118,7 @@ export function InstallElasticAgentSteps({

    {autoDownloadConfig ? i18n.translate( - 'xpack.observability.installElasticAgent.configStep.auto.description', + 'xpack.observability_onboarding.installElasticAgent.configStep.auto.description', { defaultMessage: 'The agent config below will be downloaded by the install script and written to ({configPath}). This will overwrite any existing agent configuration.', @@ -128,7 +128,7 @@ export function InstallElasticAgentSteps({ } ) : i18n.translate( - 'xpack.observability.installElasticAgent.configStep.manual.description', + 'xpack.observability_onboarding.installElasticAgent.configStep.manual.description', { defaultMessage: 'Add the following configuration to {configPath} on the host where you installed the Elastic Agent.', @@ -143,7 +143,7 @@ export function InstallElasticAgentSteps({ ({ isDisabled={autoDownloadConfig} data-test-subj="obltOnboardingConfigureElasticAgentStepDownloadConfig" > - {i18n.translate('xpack.observability.installElasticAgent.configStep.downloadConfigButton', { - defaultMessage: 'Download config file', - })} + {i18n.translate( + 'xpack.observability_onboarding.installElasticAgent.configStep.downloadConfigButton', + { defaultMessage: 'Download config file' } + )} {showInstallProgressSteps && autoDownloadConfig ? ( <> @@ -196,16 +197,17 @@ export function InstallElasticAgentSteps({ steps={[ { 'data-test-subj': 'obltOnboardingInstallElasticAgentStep', - title: i18n.translate('xpack.observability.installElasticAgent.installStep.title', { - defaultMessage: 'Install the Elastic Agent', - }), + title: i18n.translate( + 'xpack.observability_onboarding.installElasticAgent.installStep.title', + { defaultMessage: 'Install the Elastic Agent' } + ), status: installAgentStatus, children: ( <>

    ({ href="https://www.elastic.co/guide/en/fleet/8.7/elastic-agent-installation.html" > {i18n.translate( - 'xpack.observability.installElasticAgent.installStep.hostRequirements', + 'xpack.observability_onboarding.installElasticAgent.installStep.hostRequirements', { defaultMessage: 'host requirements and other installation options', } @@ -232,7 +234,7 @@ export function InstallElasticAgentSteps({ {i18n.translate( - 'xpack.observability.installElasticAgent.installStep.autoDownloadConfig', + 'xpack.observability_onboarding.installElasticAgent.installStep.autoDownloadConfig', { defaultMessage: "Automatically download the agent's config", } @@ -241,7 +243,7 @@ export function InstallElasticAgentSteps({ ({ {autoDownloadConfig && ( <> ({ ({ @@ -301,9 +302,10 @@ export function InstallElasticAgentSteps({ }, { 'data-test-subj': 'obltOnboardingConfigureElasticAgentStep', - title: i18n.translate('xpack.observability.installElasticAgent.configureStep.title', { - defaultMessage: 'Configure the Elastic Agent', - }), + title: i18n.translate( + 'xpack.observability_onboarding.installElasticAgent.configureStep.title', + { defaultMessage: 'Configure the Elastic Agent' } + ), status: disableSteps ? 'disabled' : configureAgentStatus, children: disableSteps ? <> : configureStep, }, @@ -354,59 +356,59 @@ const PROGRESS_STEP_TITLES: ( > = (configPath: string) => ({ 'ea-download': { incompleteTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaDownload.incompleteTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaDownload.incompleteTitle', { defaultMessage: 'Download Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaDownload.loadingTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaDownload.loadingTitle', { defaultMessage: 'Downloading Elastic Agent' } ), completedTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaDownload.completedTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaDownload.completedTitle', { defaultMessage: 'Elastic Agent downloaded' } ), }, 'ea-extract': { incompleteTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaExtract.incompleteTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaExtract.incompleteTitle', { defaultMessage: 'Extract Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaExtract.loadingTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaExtract.loadingTitle', { defaultMessage: 'Extracting Elastic Agent' } ), completedTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaExtract.completedTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaExtract.completedTitle', { defaultMessage: 'Elastic Agent extracted' } ), }, 'ea-install': { incompleteTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaInstall.incompleteTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaInstall.incompleteTitle', { defaultMessage: 'Install Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaInstall.loadingTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaInstall.loadingTitle', { defaultMessage: 'Installing Elastic Agent' } ), completedTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaInstall.completedTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaInstall.completedTitle', { defaultMessage: 'Elastic Agent installed' } ), }, 'ea-status': { incompleteTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaStatus.incompleteTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaStatus.incompleteTitle', { defaultMessage: 'Connect to the Elastic Agent' } ), loadingTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaStatus.loadingTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaStatus.loadingTitle', { defaultMessage: 'Connecting to the Elastic Agent', } ), completedTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaStatus.completedTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaStatus.completedTitle', { defaultMessage: 'Connected to the Elastic Agent', } @@ -414,15 +416,15 @@ const PROGRESS_STEP_TITLES: ( }, 'ea-config': { incompleteTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaConfig.incompleteTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaConfig.incompleteTitle', { defaultMessage: 'Configure the agent' } ), loadingTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaConfig.loadingTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaConfig.loadingTitle', { defaultMessage: 'Downloading Elastic Agent config' } ), completedTitle: i18n.translate( - 'xpack.observability.installElasticAgent.progress.eaConfig.completedTitle', + 'xpack.observability_onboarding.installElasticAgent.progress.eaConfig.completedTitle', { defaultMessage: 'Elastic Agent config written to {configPath}', values: { diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx index ae53e1f71afa4..71d22703ba643 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/optional_form_row.tsx @@ -31,7 +31,7 @@ export function OptionalFormRow(props: OptionalFormRowProps) { {label} - {i18n.translate('xpack.observability.form.optional', { + {i18n.translate('xpack.observability_onboarding.form.optional', { defaultMessage: 'Optional', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx index a8a4b1cdd5630..246ce76e50c16 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/step_status.tsx @@ -44,7 +44,7 @@ export function StepStatus({ if (status === 'complete') { return ( - + {message} @@ -53,7 +53,7 @@ export function StepStatus({ if (status === 'danger') { return ( - + {message} @@ -62,7 +62,7 @@ export function StepStatus({ if (status === 'warning') { return ( - + {message} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx index 306e0c9ba28c6..f0964fbf8c68a 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/shared/troubleshooting_link.tsx @@ -19,7 +19,7 @@ export function TroubleshootingLink() { href="https://www.elastic.co/guide/en/observability/current/logs-troubleshooting.html" target="_blank" > - {i18n.translate('xpack.observability.installElasticAgent.troubleshooting', { + {i18n.translate('xpack.observability_onboarding.installElasticAgent.troubleshooting', { defaultMessage: 'Troubleshooting', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx index 6e04db7668bb9..3da3a784224be 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/back_button.tsx @@ -25,7 +25,7 @@ export const BackButton: React.FC> = ({ children }) {children ? children : i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.button.backToSelectionLabel', + 'xpack.observability_onboarding.experimentalOnboardingFlow.button.backToSelectionLabel', { defaultMessage: 'Back to selection' } )} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx index b1902aadb8f09..22af649a635a5 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/header_action_menu.tsx @@ -40,7 +40,7 @@ export function ObservabilityOnboardingHeaderActionMenu({ setHeaderActionMenu, t color="warning" iconType="editorComment" > - {i18n.translate('xpack.observability.header.feedback', { + {i18n.translate('xpack.observability_onboarding.header.feedback', { defaultMessage: 'Give feedback', })} diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts index 074735ffc184e..cca0318053089 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/shared/use_flow_breadcrumbs.ts @@ -13,9 +13,10 @@ export function useFlowBreadcrumb(breadcrumb: ChromeBreadcrumb | null) { useBreadcrumbs(breadcrumb !== null ? [breadcrumb] : [], { app: { id: 'observabilityOnboarding', - label: i18n.translate('xpack.observability.otelKubernetesPanel.breadcrumbs.addDataLabel', { - defaultMessage: 'Add Data', - }), + label: i18n.translate( + 'xpack.observability_onboarding.otelKubernetesPanel.breadcrumbs.addDataLabel', + { defaultMessage: 'Add Data' } + ), }, absoluteProjectStyleBreadcrumbs: false, }); diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx index 4f1e9c17d4a76..96de8046d5623 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_fetcher.tsx @@ -36,7 +36,7 @@ function getDetailsFromErrorResponse(error: IHttpFetchError) <> {message} ({error.response?.status})

    - {i18n.translate('xpack.observability.fetcher.error.url', { + {i18n.translate('xpack.observability_onboarding.fetcher.error.url', { defaultMessage: `URL`, })}
    @@ -141,14 +141,14 @@ export function useFetcher( if (showToastOnError) { notifications.toasts.addDanger({ - title: i18n.translate('xpack.observability.fetcher.error.title', { + title: i18n.translate('xpack.observability_onboarding.fetcher.error.title', { defaultMessage: `Error while fetching resource`, }), text: toMountPoint(
    - {i18n.translate('xpack.observability.fetcher.error.status', { + {i18n.translate('xpack.observability_onboarding.fetcher.error.status', { defaultMessage: `Error`, })}
    diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts index 9a1766dab931b..026e8d9bfac28 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/hooks/use_install_integrations.ts @@ -13,7 +13,7 @@ import { useKibana } from './use_kibana'; // Errors const UNAUTHORIZED_ERROR = i18n.translate( - 'xpack.observability.installIntegration.error.unauthorized', + 'xpack.observability_onboarding.installIntegration.error.unauthorized', { defaultMessage: 'Required kibana privilege {requiredKibanaPrivileges} is missing, please add the required privilege to the role of the authenticated user.', diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts b/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts index 2d7677589d345..a8f4cb042caf0 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/server/plugin.ts @@ -101,12 +101,12 @@ export class ObservabilityOnboardingPlugin plugins.customIntegrations.registerCustomIntegration({ id: 'otel', - title: i18n.translate('xpack.observability.otelTile.title', { + title: i18n.translate('xpack.observability_onboarding.otelTile.title', { defaultMessage: 'OpenTelemetry', }), categories: ['observability'], uiInternalPath: '/app/observabilityOnboarding/otel-logs', - description: i18n.translate('xpack.observability.otelTile.description', { + description: i18n.translate('xpack.observability_onboarding.otelTile.description', { defaultMessage: 'Collect logs and host metrics using the Elastic distribution of the OpenTelemetry Collector', }), diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts b/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts index 22be77f2b521d..d4472de827808 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/test/scout/ui/tests/onboarding_ui_validation.spec.ts @@ -171,7 +171,7 @@ test.describe('Onboarding UI Validation', () => { { tag: ['@svlLogsEssentials'] }, async ({ pageObjects }) => { await test.step('hides Application tile in logs-essentials tier', async () => { - await expect(pageObjects.onboarding.applicationUseCaseTile).toBeHidden(); + await expect(pageObjects.onboarding.applicationUseCaseTile).not.toBeVisible(); }); } ); From b4dc8ddc247e30489c19b53c21ad71fb73fdff77 Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 15 Sep 2025 18:03:20 +0200 Subject: [PATCH 05/54] part 3 --- .../overview/kpis/cpu_profiling_prompt.tsx | 3 -- .../common/embeddable_grouping.ts | 2 +- .../common/utils/get_inspect_response.ts | 53 +++++++++++-------- .../components/add_data_panel/index.tsx | 15 +++--- .../add_page_attachment_to_case_modal.tsx | 25 +++++---- .../components/add_to_case_comment/index.tsx | 6 +-- .../bottom_bar_actions/bottom_bar_actions.tsx | 10 ++-- .../external_resource_links/index.tsx | 28 +++++----- .../feature_feedback_button.tsx | 2 +- .../field_value_combobox.tsx | 15 +++--- .../field_value_selection.tsx | 21 ++++---- .../page_template/nav_name_with_badge.tsx | 2 +- .../nav_name_with_beta_badge.tsx | 4 +- .../page_template/page_template.tsx | 2 +- .../profiling/helpers/component_registry.ts | 4 +- .../profiling/profiling_empty_state.tsx | 8 +-- .../public/components/tags_list/tags_list.tsx | 8 +-- .../technical_preview_badge.tsx | 4 +- .../public/hooks/use_breadcrumbs.ts | 9 ++-- .../public/plugin.tsx | 4 +- .../flamegraph/flamegraph_tooltip.tsx | 5 +- .../public/views/delete_data_view/index.tsx | 11 +--- .../views/settings/bottom_bar_actions.tsx | 4 -- .../index_lifecycle_phase_select.tsx | 3 -- .../components/monitor_location_select.tsx | 8 +-- .../edit_monitor_not_found.tsx | 10 +--- .../fields/script_recorder_fields.tsx | 8 +-- .../throttling/throttling_download_field.tsx | 6 +-- .../throttling/throttling_latency_field.tsx | 6 +-- .../throttling/throttling_upload_field.tsx | 6 +-- .../monitor_errors/errors_list.tsx | 4 +- .../project_api_keys/help_commands.tsx | 13 +---- .../simple/ping_list/columns/ping_error.tsx | 3 +- .../components/common/monitor_tags.tsx | 4 +- .../monitor/ping_list/columns/failed_step.tsx | 3 +- .../monitor/ping_list/columns/ping_error.tsx | 3 +- .../status_bar/monitor_redirects.tsx | 6 +-- .../waterfall_marker_test_helper.tsx | 17 +----- .../availability_expression_select.tsx | 9 +--- .../columns/cert_status_column.tsx | 9 +--- .../synthetics/check_steps/step_duration.tsx | 6 +-- .../legacy_uptime/pages/mapping_error.tsx | 4 +- .../local_uifilters/selected_wildcards.tsx | 5 +- .../percentile_annotations.tsx | 26 ++------- .../add_analytics_collection_form.tsx | 1 - .../analytics_collection_explorer_callout.tsx | 1 - .../analytics_collection_explorer_table.tsx | 1 - ...nalytics_collection_integrate_searchui.tsx | 3 -- ...analytics_collection_no_events_callout.tsx | 1 - .../analytics_collection_overview_table.tsx | 1 - .../analytics_collection_settings.tsx | 1 - .../analytics_collection_toolbar.tsx | 8 +-- .../analytics_collection_table.tsx | 2 - .../analytics_overview_empty_page.tsx | 7 +-- .../connect/search_application_api.tsx | 17 ++---- .../search_application_api_integration.tsx | 11 +--- .../search_application_documentation.tsx | 24 ++------- .../docs_explorer/docs_explorer.tsx | 2 - .../docs_explorer/search_ui_components.tsx | 15 +----- .../search_application_schema.tsx | 22 ++------ .../empty_search_applications_prompt.test.tsx | 7 +-- .../create_search_application_flyout.tsx | 4 -- .../connector_detail/connector_stats.tsx | 8 +-- .../client_libraries_popover/popover.tsx | 1 - .../connector_name_and_description.tsx | 7 +-- .../connector_name_and_description_flyout.tsx | 8 +-- .../connector_name_and_description_form.tsx | 2 - ...ctor_name_and_description_form_content.tsx | 2 - .../sync_rules/connector_sync_form.tsx | 2 - .../sync_rules/editable_basic_rules_table.tsx | 23 ++------ .../sync_rules/sync_rules_callouts.tsx | 4 -- .../name_and_description_stats.tsx | 8 +-- .../delete_inference_pipeline_button.tsx | 2 - .../customize_pipeline_item.tsx | 1 - .../default_pipeline_item.tsx | 1 - .../ingest_pipeline_flyout.tsx | 25 ++------- .../manage_custom_pipeline_actions.tsx | 1 - .../add_inference_pipeline_flyout.tsx | 5 -- .../ml_inference/add_ml_inference_button.tsx | 1 - .../ml_inference/configure_pipeline.tsx | 1 - 80 files changed, 174 insertions(+), 460 deletions(-) diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/kpis/cpu_profiling_prompt.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/kpis/cpu_profiling_prompt.tsx index ef40c5d40da4e..ab5d60412d739 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/kpis/cpu_profiling_prompt.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/kpis/cpu_profiling_prompt.tsx @@ -32,9 +32,6 @@ export function CpuProfilingPrompt() { defaultMessage: 'View CPU Breakdown using', })} showTab('profiling')} flush="both" diff --git a/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts b/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts index d6809a23101ca..dba342aa71306 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts @@ -11,7 +11,7 @@ export const COMMON_OBSERVABILITY_GROUPING = [ { id: 'observability', getDisplayName: () => - i18n.translate('xpack.observability.common.constants.grouping', { + i18n.translate('xpack.observabilityShared.common.constants.grouping', { defaultMessage: 'Observability', }), getIconType: () => { diff --git a/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts b/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts index a5e4e62e5d69e..c07f2cb12c02f 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts @@ -36,13 +36,13 @@ function getStats({ ? { kibanaApiQueryParameters: { label: i18n.translate( - 'xpack.observability.inspector.stats.kibanaApiQueryParametersLabel', + 'xpack.observabilityShared.inspector.stats.kibanaApiQueryParametersLabel', { defaultMessage: 'Kibana API query parameters', } ), description: i18n.translate( - 'xpack.observability.inspector.stats.kibanaApiQueryParametersDescription', + 'xpack.observabilityShared.inspector.stats.kibanaApiQueryParametersDescription', { defaultMessage: 'The query parameters used in the Kibana API request that initiated the Elasticsearch request.', @@ -53,21 +53,24 @@ function getStats({ } : {}), kibanaApiRoute: { - label: i18n.translate('xpack.observability.inspector.stats.kibanaApiRouteLabel', { + label: i18n.translate('xpack.observabilityShared.inspector.stats.kibanaApiRouteLabel', { defaultMessage: 'Kibana API route', }), - description: i18n.translate('xpack.observability.inspector.stats.kibanaApiRouteDescription', { - defaultMessage: - 'The route of the Kibana API request that initiated the Elasticsearch request.', - }), + description: i18n.translate( + 'xpack.observabilityShared.inspector.stats.kibanaApiRouteDescription', + { + defaultMessage: + 'The route of the Kibana API request that initiated the Elasticsearch request.', + } + ), value: `${kibanaRequest.route.method.toUpperCase()} ${kibanaRequest.route.path}`, }, indexPattern: { - label: i18n.translate('xpack.observability.inspector.stats.dataViewLabel', { + label: i18n.translate('xpack.observabilityShared.inspector.stats.dataViewLabel', { defaultMessage: 'Data view', }), value: esRequestParams.index, - description: i18n.translate('xpack.observability.inspector.stats.dataViewDescription', { + description: i18n.translate('xpack.observabilityShared.inspector.stats.dataViewDescription', { defaultMessage: 'The data view that connected to the Elasticsearch indices.', }), }, @@ -75,11 +78,11 @@ function getStats({ if (esResponse?.hits?.hits) { stats.hits = { - label: i18n.translate('xpack.observability.inspector.stats.hitsLabel', { + label: i18n.translate('xpack.observabilityShared.inspector.stats.hitsLabel', { defaultMessage: 'Hits', }), value: `${esResponse.hits.hits.length}`, - description: i18n.translate('xpack.observability.inspector.stats.hitsDescription', { + description: i18n.translate('xpack.observabilityShared.inspector.stats.hitsDescription', { defaultMessage: 'The number of documents returned by the query.', }), }; @@ -87,18 +90,21 @@ function getStats({ if (esResponse?.took) { stats.queryTime = { - label: i18n.translate('xpack.observability.inspector.stats.queryTimeLabel', { + label: i18n.translate('xpack.observabilityShared.inspector.stats.queryTimeLabel', { defaultMessage: 'Query time', }), - value: i18n.translate('xpack.observability.inspector.stats.queryTimeValue', { + value: i18n.translate('xpack.observabilityShared.inspector.stats.queryTimeValue', { defaultMessage: '{queryTime}ms', values: { queryTime: esResponse.took }, }), - description: i18n.translate('xpack.observability.inspector.stats.queryTimeDescription', { - defaultMessage: - 'The time it took to process the query. ' + - 'Does not include the time to send the request or parse it in the browser.', - }), + description: i18n.translate( + 'xpack.observabilityShared.inspector.stats.queryTimeDescription', + { + defaultMessage: + 'The time it took to process the query. ' + + 'Does not include the time to send the request or parse it in the browser.', + } + ), }; } @@ -116,13 +122,16 @@ function getStats({ } stats.hitsTotal = { - label: i18n.translate('xpack.observability.inspector.stats.hitsTotalLabel', { + label: i18n.translate('xpack.observabilityShared.inspector.stats.hitsTotalLabel', { defaultMessage: 'Hits (total)', }), value: hitsTotalValue, - description: i18n.translate('xpack.observability.inspector.stats.hitsTotalDescription', { - defaultMessage: 'The number of documents that match the query.', - }), + description: i18n.translate( + 'xpack.observabilityShared.inspector.stats.hitsTotalDescription', + { + defaultMessage: 'The number of documents that match the query.', + } + ), }; } return stats; diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx index 9d7e72d693f95..6cafcafaf44a2 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx @@ -55,12 +55,15 @@ export interface AddDataPanelProps { 'data-test-subj'?: string; } -const tryItDefaultLabel = i18n.translate('xpack.observability.addDataPabel.tryItButtonLabel', { - defaultMessage: 'Try it now in our demo cluster', -}); +const tryItDefaultLabel = i18n.translate( + 'xpack.observabilityShared.addDataPabel.tryItButtonLabel', + { + defaultMessage: 'Try it now in our demo cluster', + } +); const learnMoreDefaultLabel = i18n.translate( - 'xpack.observability.addDataPabel.learnMoreLinkLabel', + 'xpack.observabilityShared.addDataPabel.learnMoreLinkLabel', { defaultMessage: 'Learn more', } @@ -153,10 +156,6 @@ export function AddDataPanel({ {onDismiss && ( { if (!hasCasesPermissions) { notifications.toasts.addWarning({ - title: i18n.translate('xpack.observability.cases.addPageToCaseModal.noPermissionsTitle', { - defaultMessage: 'Insufficient privileges to add page to case. Please contact your admin.', - }), + title: i18n.translate( + 'xpack.observabilityShared.cases.addPageToCaseModal.noPermissionsTitle', + { + defaultMessage: + 'Insufficient privileges to add page to case. Please contact your admin.', + } + ), }); } }, [hasCasesPermissions, notifications.toasts]); @@ -154,21 +158,24 @@ function AddToCaseButtonContent({ return isCommentModalOpen ? ( - {i18n.translate('xpack.observability.cases.addToCaseModal.title', { + {i18n.translate('xpack.observabilityShared.cases.addToCaseModal.title', { defaultMessage: 'Add page to case', })} diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx index 1c480af9252fe..89d3679b9e471 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_to_case_comment/index.tsx @@ -59,7 +59,7 @@ export function AddToCaseComment({ errors.forEach((error) => { notifications.toasts.addError(error, { title: i18n.translate( - 'xpack.observability.cases.addPageToCaseModal.errorGeneratingSummary', + 'xpack.observabilityShared.cases.addPageToCaseModal.errorGeneratingSummary', { defaultMessage: 'Could not initialize AI-generated summary', } @@ -86,13 +86,13 @@ export function AddToCaseComment({ return ( <> }} /> diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx index 621022eca204c..3eb3cc15262d5 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx @@ -48,7 +48,7 @@ export const BottomBarActions = ({ > - {i18n.translate('xpack.observability.bottomBarActions.unsavedChanges', { + {i18n.translate('xpack.observabilityShared.bottomBarActions.unsavedChanges', { defaultMessage: '{unsavedChangesCount, plural, =0{0 unsaved changes} one {1 unsaved change} other {# unsaved changes}} ', values: { unsavedChangesCount }, @@ -59,15 +59,11 @@ export const BottomBarActions = ({ - {i18n.translate('xpack.observability.bottomBarActions.discardChangesButton', { + {i18n.translate('xpack.observabilityShared.bottomBarActions.discardChangesButton', { defaultMessage: 'Discard changes', })} @@ -76,7 +72,7 @@ export const BottomBarActions = ({ { { iconUrl: demoIconUrl, title: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.demoEnvironmentFlexItemLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.demoEnvironmentFlexItemLabel', { defaultMessage: 'Demo environment' } ), description: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.demoEnvironmentFlexItemDescription', + 'xpack.observabilityShared.experimentalOnboardingFlow.demoEnvironmentFlexItemDescription', { defaultMessage: 'Explore our live demo environment', } ), linkLabel: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.demoEnvironmentFlexItemLinkLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.demoEnvironmentFlexItemLinkLabel', { defaultMessage: 'Explore demo' } ), link: URL_DEMO_ENV, @@ -48,21 +48,21 @@ export const ExternalResourceLinks: FunctionComponent = () => { { iconUrl: forumIconUrl, title: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemLabel', { defaultMessage: 'Explore forum' } ), description: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemDescription', + 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemDescription', { defaultMessage: 'Exchange thoughts about Elastic', } ), linkLabel: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemLinkLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemLinkLabel', { defaultMessage: 'Discuss forum' } ), linkARIALabel: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.exploreForumFlexItemLinkARIALabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.exploreForumFlexItemLinkARIALabel', { defaultMessage: 'Discuss forum. Open Elastic forum' } ), link: URL_FORUM, @@ -71,21 +71,21 @@ export const ExternalResourceLinks: FunctionComponent = () => { { iconUrl: docsIconUrl, title: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemLabel', { defaultMessage: 'Browse documentation' } ), description: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemDescription', + 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemDescription', { defaultMessage: 'In-depth guides on all Elastic features', } ), linkLabel: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemLinkLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemLinkLabel', { defaultMessage: 'Learn more' } ), linkARIALabel: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.browseDocumentationFlexItemLinkARIALabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.browseDocumentationFlexItemLinkARIALabel', { defaultMessage: 'Learn more about all Elastic features' } ), link: docLinks.links.observability.guide, @@ -94,17 +94,17 @@ export const ExternalResourceLinks: FunctionComponent = () => { { iconUrl: supportIconUrl, title: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.supportHubFlexItemLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.supportHubFlexItemLabel', { defaultMessage: 'Support Hub' } ), description: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.supportHubFlexItemDescription', + 'xpack.observabilityShared.experimentalOnboardingFlow.supportHubFlexItemDescription', { defaultMessage: 'Get help by opening a case', } ), linkLabel: i18n.translate( - 'xpack.observability.experimentalOnboardingFlow.supportHubFlexItemLinkLabel', + 'xpack.observabilityShared.experimentalOnboardingFlow.supportHubFlexItemLinkLabel', { defaultMessage: 'Open Support Hub' } ), link: helpSupportUrl, diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx index 0d628eaf185cc..e5d6099e0bd42 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx @@ -14,7 +14,7 @@ const KIBANA_DEPLOYMENT_TYPE_PARAM = 'entry.573002982'; const SANITIZED_PATH_PARAM = 'entry.1876422621'; const ML_JOB_TYPE = 'entry.170406579'; const FEEDBACK_BUTTON_DEFAULT_TEXT = i18n.translate( - 'xpack.observability.featureFeedbackButton.defaultText', + 'xpack.observabilityShared.featureFeedbackButton.defaultText', { defaultMessage: 'Give feedback', } diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx index 344c759bf180e..6a9edc7d91ce5 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx @@ -63,17 +63,16 @@ export function FieldValueCombobox({ const comboBox = ( { setQuery(searchVal); diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx index 0d03a47a3f321..bfc5af58bb6a3 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx @@ -133,7 +133,7 @@ export function FieldValueSelection({ const filterButton = ( - {i18n.translate('xpack.observability.fieldValueSelection.loading', { + {i18n.translate('xpack.observabilityShared.fieldValueSelection.loading', { defaultMessage: 'Loading', })}{' '} @@ -221,7 +224,7 @@ export function FieldValueSelection({ color: euiTheme.colors.textSubdued, }} label={i18n.translate( - 'xpack.observability.fieldValueSelection.logicalAnd', + 'xpack.observabilityShared.fieldValueSelection.logicalAnd', { defaultMessage: 'Use logical AND', } @@ -241,7 +244,7 @@ export function FieldValueSelection({ - {i18n.translate('xpack.observability.fieldValueSelection.apply', { + {i18n.translate('xpack.observabilityShared.fieldValueSelection.apply', { defaultMessage: 'Apply', })} diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx index 4c12ab810799c..72d0ac4f93945 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx @@ -58,7 +58,7 @@ export function NavNameWithBadge({ label, localStorageId }: Props) { {isBadgeVisible && ( - {i18n.translate('xpack.observability.navigation.newBadge', { + {i18n.translate('xpack.observabilityShared.navigation.newBadge', { defaultMessage: 'NEW', })} diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx index e899114ee4330..f132c8cac8c41 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx @@ -28,7 +28,7 @@ export function NavNameWithBetaBadge({ label, iconType, isTechnicalPreview }: Pr diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx index 4d7b05d2ffe6e..952371614b936 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx @@ -228,7 +228,7 @@ export function ObservabilityPageTemplate({ // eslint-disable-next-line import/no-default-export export default ObservabilityPageTemplate; -const sideNavTitle = i18n.translate('xpack.observability.pageLayout.sideNavTitle', { +const sideNavTitle = i18n.translate('xpack.observabilityShared.pageLayout.sideNavTitle', { defaultMessage: 'Observability', }); diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts index 0f1324c33b875..90af3dc789b93 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts @@ -12,7 +12,7 @@ const registry: { [key: string]: React.FC } = {}; export const registerProfilingComponent = (key: string, component: React.FC) => { if (registry[key] !== undefined) { throw new Error( - i18n.translate('xpack.observability.profilingComponentAlreadyExists.error', { + i18n.translate('xpack.observabilityShared.profilingComponentAlreadyExists.error', { defaultMessage: `Component with key {key} already exists`, values: { key }, }) @@ -24,7 +24,7 @@ export const registerProfilingComponent = (key: string, component: React.FC(key: string): React.FC => { if (registry[key] === undefined) { throw new Error( - i18n.translate('xpack.observability.profilingComponentNotFound.error', { + i18n.translate('xpack.observabilityShared.profilingComponentNotFound.error', { defaultMessage: `Component with key {key} not found`, values: { key }, }) diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx index 4bd8c5a4f0018..0d6b7ee3551e6 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx @@ -18,7 +18,7 @@ export function ProfilingEmptyState() { icon={} title={

    - {i18n.translate('xpack.observability.profilingEmptyState.title', { + {i18n.translate('xpack.observabilityShared.profilingEmptyState.title', { defaultMessage: 'Improve computational efficiency. Debug performance regressions. Reduce cloud spend.', })} @@ -31,7 +31,7 @@ export function ProfilingEmptyState() { body={ <>

    - {i18n.translate('xpack.observability.profilingEmptyState.body', { + {i18n.translate('xpack.observabilityShared.profilingEmptyState.body', { defaultMessage: 'Elastic Universal Profiling is a whole-system, always-on, continuous profiling solution that eliminates the need for code instrumentation, recompilation, on-host debug symbols, or service restarts. Leveraging eBPF, Universal Profiling operates within the Linux kernel space, capturing only the needed data with minimal overhead in an unobtrusive manner.', })} @@ -45,7 +45,7 @@ export function ProfilingEmptyState() { color="primary" fill > - {i18n.translate('xpack.observability.profilingEmptyState.addProfiling', { + {i18n.translate('xpack.observabilityShared.profilingEmptyState.addProfiling', { defaultMessage: 'Add profiling', })} , @@ -55,7 +55,7 @@ export function ProfilingEmptyState() { target="_blank" external > - {i18n.translate('xpack.observability.profilingEmptyState.goToDocs', { + {i18n.translate('xpack.observabilityShared.profilingEmptyState.goToDocs', { defaultMessage: 'Go to docs', })} , diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx index a31ce53e38895..c64903caad793 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx @@ -21,7 +21,7 @@ export interface TagsListProps { prependChildren?: React.ReactNode; } const getFilterLabel = (tag: string) => { - return i18n.translate('xpack.observability.getFilterLabel.filter', { + return i18n.translate('xpack.observabilityShared.getFilterLabel.filter', { defaultMessage: 'Click to filter list with tag {tag}', values: { tag, @@ -46,7 +46,7 @@ const TagsList = ({ } return ( - {i18n.translate('xpack.observability.tagsList.TextLabel', { defaultMessage: '--' })} + {i18n.translate('xpack.observabilityShared.tagsList.TextLabel', { defaultMessage: '--' })} ); } @@ -139,10 +139,10 @@ const TagsList = ({ // eslint-disable-next-line import/no-default-export export default TagsList; -const EXPAND_TAGS_LABEL = i18n.translate('xpack.observability.tagsList.expand', { +const EXPAND_TAGS_LABEL = i18n.translate('xpack.observabilityShared.tagsList.expand', { defaultMessage: 'Click to view remaining tags', }); -const COLLAPSE_TAGS_LABEL = i18n.translate('xpack.observability.tagsList.collapse', { +const COLLAPSE_TAGS_LABEL = i18n.translate('xpack.observabilityShared.tagsList.collapse', { defaultMessage: 'Click to collapse tags', }); diff --git a/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx index 17cea801507cf..361c4df7cce43 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx +++ b/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx @@ -17,10 +17,10 @@ type Props = { export function TechnicalPreviewBadge({ icon = 'beaker', size, style }: Props) { return ( {inline && ( @@ -205,9 +205,6 @@ export function FlameGraphTooltip({ /> } - title={i18n.translate( - 'xpack.profiling.deleteDataView.euiCard.youHaveExistingProfilingLabel', - { defaultMessage: 'You have existing profiling data' } - )} + title="You have existing profiling data" description="To proceed with the Universal Profiling setup, please delete existing profiling data following the steps described in the link below." footer={

    @@ -36,10 +32,7 @@ export function DeleteDataView() { href={`${docLinks.ELASTIC_WEBSITE_URL}/guide/en/observability/${docLinks.DOC_LINK_VERSION}/profiling-upgrade.html#profiling-delete-data`} target="_blank" > - {i18n.translate( - 'xpack.profiling.deleteDataView.deleteExistingProfilingDataLinkLabel', - { defaultMessage: 'Delete existing profiling data' } - )} + Delete existing profiling data
    } diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx index 1d97417521889..6aa8ac17d115c 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/settings/bottom_bar_actions.tsx @@ -57,10 +57,6 @@ export function BottomBarActions({ - {i18n.translate('xpack.synthetics.locationList.span.loadingLabel', { - defaultMessage: 'Loading...', - })} - , - ] + ? [Loading...] : locationsStatus .map((location) => { return ( diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/edit_monitor_not_found.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/edit_monitor_not_found.tsx index fac94a8fce5fc..b44227e6517b2 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/edit_monitor_not_found.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/edit_monitor_not_found.tsx @@ -6,7 +6,6 @@ */ import React, { useEffect, useState } from 'react'; -import { i18n } from '@kbn/i18n'; import { EuiButton, EuiCallOut, EuiLink, EuiSpacer } from '@elastic/eui'; import { useFetcher } from '@kbn/observability-shared-plugin/public'; import { FormattedMessage } from '@kbn/i18n-react'; @@ -45,14 +44,7 @@ const LeftoverIntegrationFound: React.FC = () => { if (!packagePolicyId) return null; return ( - +

    {isEditable && script ? ( - + {fileName} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx index e97c51b545d5b..9afab8a00081e 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_download_field.tsx @@ -73,11 +73,7 @@ export const ThrottlingDownloadField = ({ data-test-subj="syntheticsBrowserDownloadSpeed" append={ - - {i18n.translate('xpack.synthetics.throttlingDownloadField.strong.mbpsLabel', { - defaultMessage: 'Mbps', - })} - + Mbps } readOnly={readOnly} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx index 834dd00530d93..f0ce48ea8935e 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_latency_field.tsx @@ -49,11 +49,7 @@ export const ThrottlingLatencyField = ({ data-test-subj="syntheticsBrowserLatency" append={ - - {i18n.translate('xpack.synthetics.throttlingLatencyField.strong.msLabel', { - defaultMessage: 'ms', - })} - + ms } readOnly={readOnly} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx index 8dff2b94ab52c..66581ab8a1249 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/throttling/throttling_upload_field.tsx @@ -71,11 +71,7 @@ export const ThrottlingUploadField = ({ data-test-subj="syntheticsBrowserUploadSpeed" append={ - - {i18n.translate('xpack.synthetics.throttlingUploadField.strong.mbpsLabel', { - defaultMessage: 'Mbps', - })} - + Mbps } readOnly={readOnly} diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_errors/errors_list.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_errors/errors_list.tsx index fdf11ebf78289..0d9265e929c4d 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_errors/errors_list.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_errors/errors_list.tsx @@ -130,9 +130,7 @@ export const ErrorsList = ({ render: (value: string) => { const failedStep = failedSteps.find((step) => step.monitor.check_group === value); if (!failedStep) { - return ( - <>{i18n.translate('xpack.synthetics.columns.Label', { defaultMessage: '--' })} - ); + return <>--; } return ( diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/help_commands.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/help_commands.tsx index 28a12f1bb6124..32d43abb139cc 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/help_commands.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/help_commands.tsx @@ -27,10 +27,7 @@ export const HelpCommands = ({ apiKey }: { apiKey: string }) => { - {i18n.translate('xpack.synthetics.helpCommands.exportSYNTHETICSAPIKEYCodeBlockLabel', { - defaultMessage: 'export SYNTHETICS_API_KEY=', - })} - {apiKey} + export SYNTHETICS_API_KEY={apiKey} @@ -39,13 +36,7 @@ export const HelpCommands = ({ apiKey }: { apiKey: string }) => { - {i18n.translate('xpack.synthetics.helpCommands.syntheticsapikeyCodeBlockLabel', { - defaultMessage: 'SYNTHETICS_API_KEY=', - })} - {apiKey}{' '} - {i18n.translate('xpack.synthetics.helpCommands.npmRunPushCodeBlockLabel', { - defaultMessage: 'npm run push', - })} + SYNTHETICS_API_KEY={apiKey} npm run push

    ); diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/simple/ping_list/columns/ping_error.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/simple/ping_list/columns/ping_error.tsx index b6a088f49931b..084dfcc74cbf7 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/simple/ping_list/columns/ping_error.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/test_now_mode/simple/ping_list/columns/ping_error.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import styled from 'styled-components'; import type { Ping } from '../../../../../../../../common/runtime_types'; @@ -24,7 +23,7 @@ interface Props { export const PingErrorCol = ({ errorType, ping }: Props) => { if (!errorType) { - return <>{i18n.translate('xpack.synthetics.pingErrorCol.Label', { defaultMessage: '--' })}; + return <>--; } return ( diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/common/monitor_tags.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/common/monitor_tags.tsx index 98ed27735e683..1b3639fcea939 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/common/monitor_tags.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/common/monitor_tags.tsx @@ -85,9 +85,7 @@ export const MonitorTags = ({ ping, summary }: Props) => { href={docLinks?.links.heartbeat.monitorTags} target="_blank" > - {i18n.translate('xpack.uptime.monitorTags.setTagsLinkLabel', { - defaultMessage: 'Set tags', - })} + Set tags ); } diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/failed_step.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/failed_step.tsx index 000bc411bcc3c..bb722acd87ca7 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/failed_step.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/failed_step.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import type { FailedStepsApiResponse } from '../../../../../../common/runtime_types/ping/synthetics'; interface Props { @@ -20,7 +19,7 @@ export const FailedStep = ({ checkGroup, failedSteps }: Props) => { ); if (!thisFailedStep) { - return <>{i18n.translate('xpack.uptime.failedStep.Label', { defaultMessage: '--' })}; + return <>--; } return (
    diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx index c142c2291bed5..3e688b58ae190 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/ping_list/columns/ping_error.tsx @@ -6,7 +6,6 @@ */ import React from 'react'; -import { i18n } from '@kbn/i18n'; import styled from 'styled-components'; import type { Ping } from '../../../../../../common/runtime_types/ping'; @@ -24,7 +23,7 @@ interface Props { export const PingErrorCol = ({ errorType, ping }: Props) => { if (!errorType) { - return <>{i18n.translate('xpack.uptime.pingErrorCol.Label', { defaultMessage: '--' })}; + return <>--; } return ( diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx index 9f68a8394ef62..e7b17745c0e6c 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/monitor/status_details/status_bar/monitor_redirects.tsx @@ -46,11 +46,7 @@ export const MonitorRedirects: React.FC = ({ monitorStatus }) => { return list ? ( <> - - {i18n.translate('xpack.uptime.monitorRedirects.redirectsDescriptionListTitleLabel', { - defaultMessage: 'Redirects', - })} - + Redirects (

    {title}

    -
    - {appendTitle} -
    +
    {appendTitle}
    {reportType}
    -
    - {JSON.stringify(attributes)} -
    +
    {JSON.stringify(attributes)}
    ); diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx index 6c0b5f358272e..ec9ac6f970a01 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/overview/alerts/monitor_expressions/availability_expression_select.tsx @@ -7,7 +7,6 @@ import { EuiCheckbox, EuiFlexGroup, EuiFlexItem, EuiFieldText } from '@elastic/eui'; import React, { useState, useEffect } from 'react'; -import { i18n } from '@kbn/i18n'; import { AlertExpressionPopover } from '../alert_expression_popover'; import * as labels from '../translations'; import { AlertFieldNumber } from '../alert_field_number'; @@ -156,13 +155,7 @@ export const AvailabilityExpressionSelect: React.FC = ({ = ({ expiry, boldStyle = false }) return ; } - return certStatus ? ( - - ) : ( - - {i18n.translate('xpack.uptime.certStatusColumn.span.Label', { defaultMessage: '--' })} - - ); + return certStatus ? : --; }; diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx index 20e8d6b867b69..2836451785331 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/components/synthetics/check_steps/step_duration.tsx @@ -53,11 +53,7 @@ export const StepDuration = ({ ); if (step.synthetics.step?.status === 'skipped') { - return ( - - {i18n.translate('xpack.uptime.stepDuration.span.Label', { defaultMessage: '--' })} - - ); + return --; } if (!showStepDurationTrend) { diff --git a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx index 9a441ba43c00a..415fd6063c3ec 100644 --- a/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx +++ b/x-pack/solutions/observability/plugins/uptime/public/legacy_uptime/pages/mapping_error.tsx @@ -65,9 +65,7 @@ export const MappingErrorPage = () => { href={`${docLinks.ELASTIC_WEBSITE_URL}guide/en/observability/${docLinks.DOC_LINK_VERSION}/troubleshoot-uptime-mapping-issues.html`} target="_blank" > - {i18n.translate('xpack.uptime.mappingErrorPage.docsLinkLabel', { - defaultMessage: 'docs', - })} + docs ), }} diff --git a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx index 9fc7b6b6d9248..5850fae94562e 100644 --- a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx +++ b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx @@ -6,7 +6,6 @@ */ import * as React from 'react'; -import { i18n } from '@kbn/i18n'; import { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import { fromQuery, toQuery } from '@kbn/observability-plugin/public'; @@ -53,9 +52,7 @@ export function SelectedWildcards({ indexPattern }: Props) { field={TRANSACTION_URL} value={searchTerm} negate={false} - label={i18n.translate('xpack.ux.selectedWildcards.filterValueLabel.urlWildcardLabel', { - defaultMessage: 'URL wildcard', - })} + label={'URL wildcard'} /> ) : null; } diff --git a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx index cd697d26dad7c..9912033f0523f 100644 --- a/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx +++ b/x-pack/solutions/observability/plugins/ux/public/components/app/rum_dashboard/page_load_distribution/percentile_annotations.tsx @@ -6,7 +6,6 @@ */ import * as React from 'react'; -import { i18n } from '@kbn/i18n'; import type { LineAnnotationDatum, LineAnnotationStyle } from '@elastic/charts'; import { AnnotationDomainType, LineAnnotation, Position } from '@elastic/charts'; import { euiLightVars } from '@kbn/ui-theme'; @@ -35,14 +34,7 @@ export function PercentileAnnotations({ percentiles }: Props) { }; function PercentileTooltip({ annotation }: { annotation: LineAnnotationDatum }) { - return ( - - {annotation.details} - {i18n.translate('xpack.ux.percentileTooltip.span.thPercentileLabel', { - defaultMessage: 'th Percentile', - })} - - ); + return {annotation.details}th Percentile; } return ( @@ -60,21 +52,9 @@ export function PercentileAnnotations({ percentiles }: Props) { } - content={ - - {i18n.translate('xpack.ux.percentileAnnotations.span.pagesLoadedLabel', { - defaultMessage: 'Pages loaded:', - })} - {Math.round(annotation.dataValue)} - - } + content={Pages loaded: {Math.round(annotation.dataValue)}} > - <> - {annotation.details} - {i18n.translate('xpack.ux.percentileAnnotations.thLabel', { - defaultMessage: 'th', - })} - + <>{annotation.details}th } diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx index 9ceeb84a088b3..baa0430150c09 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/add_analytics_collections/add_analytics_collection_form.tsx @@ -46,7 +46,6 @@ export const AddAnalyticsCollectionForm: React.FC = error={inputError} > { { {table && ( void) => [ values={{ embedLink: ( { setSelectedTab('javascriptEmbed'); @@ -48,7 +47,6 @@ export const searchUIEmbedSteps = (setSelectedTab: (tab: TabKey) => void) => [ ), clientLink: ( { setSelectedTab('javascriptClientEmbed'); @@ -134,7 +132,6 @@ plugins: [ values={{ link: ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx index 7c0e5cbbffc3d..19c236065286d 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_overview/analytics_collection_overview_table.tsx @@ -348,7 +348,6 @@ export const AnalyticsCollectionOverviewTable: React.FC navigateToUrl( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx index de64d94619e4d..7dd3b5161578c 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_settings.tsx @@ -86,7 +86,6 @@ export const AnalyticsCollectionSettings: React.FC { + { = = ( ( })} {' '} - + {i18n.translate('xpack.enterpriseSearch.analytics.collections.emptyState.footerLink', { defaultMessage: 'Read documentation', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/connect/search_application_api.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/connect/search_application_api.tsx index 02a81577a4993..0d98bf53bcc81 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/connect/search_application_api.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/connect/search_application_api.tsx @@ -57,10 +57,7 @@ export const SearchApplicationAPI = () => { defaultMessage="Your search application uses a {searchTemplateDocLink} to control the types of queries it accepts. Run the following command to view your current search template:" values={{ searchTemplateDocLink: ( - + { defaultMessage="We provide a basic, default search template to get started, but you'll probably want to update it for your use case. Use the examples in our {searchTemplateExampleDoc} for inspiration." values={{ searchTemplateExampleDoc: ( - + { defaultMessage="This {apiKeyDocumentation} will only be able to access your Search endpoint." values={{ apiKeyDocumentation: ( - + { { { defaultMessage="To get the most out of the JavaScript client, use the client's example template and follow our {searchapplicationSearchDocLink} on building a search experience." values={{ searchapplicationSearchDocLink: ( - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.searchApi.step3.clientDocumenation', { @@ -258,11 +255,7 @@ export const SearchApplicationApiIntegrationStage: React.FC = () => { <> - + {

    - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.searchApplication.readDocumentation', { @@ -102,11 +98,7 @@ export const SearchApplicationDocumentation = () => {
    - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.manageAPIKeys.learnMore', { @@ -153,11 +145,7 @@ export const SearchApplicationDocumentation = () => { - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.languageClients.learnMore', { @@ -204,11 +192,7 @@ export const SearchApplicationDocumentation = () => { - + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.documentation.searchInsights.learnMore', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx index 0ab9fa723d879..8ee45043dbcab 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/docs_explorer.tsx @@ -195,7 +195,6 @@ const ConfigurationPopover: React.FC = ({ { additionalInputProps={getInputProps({ append: ( setShowAPICallFlyout(true)} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx index 65822380a33bb..eaaccc3ed270b 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/docs_explorer/search_ui_components.tsx @@ -151,17 +151,8 @@ export const ResultView: React.FC = ({ result }) => { }; export const SearchBar: React.FC = ({ additionalInputProps }) => ( - - + + {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.docsExplorer.inputView.searchLabel', { @@ -205,7 +196,6 @@ export const ResultsPerPageView: React.FC = ({ ({ @@ -274,7 +264,6 @@ export const Sorting = withSearch< { switch (evt.target.value) { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_schema.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_schema.tsx index f7d12eb8c630f..2e9905889281f 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_schema.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_application/search_application_schema.tsx @@ -132,11 +132,7 @@ const SchemaFieldDetails: React.FC<{ schemaField: SchemaField }> = ({ schemaFiel id="xpack.enterpriseSearch.searchApplications.searchApplication.schema.fieldIndices.notInAllIndices.description" defaultMessage="Learn more about field mapping in" />{' '} - + { return ( { />

    {!onlyShowConflicts && ( - + { { } )}

    - setSelectedEsFieldTypes(esFieldTypes)} - > + setSelectedEsFieldTypes(esFieldTypes)}> {i18n.translate( 'xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.conflict.callout.clearFilters', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx index 0f6e9ca039ce1..6fd6e4432bf55 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/components/empty_search_applications_prompt.test.tsx @@ -9,17 +9,12 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiEmptyPrompt } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; import { EmptySearchApplicationsPrompt } from './empty_search_applications_prompt'; describe('EmptySearchApplicationsPrompt', () => { it('should pass children to prompt actions', () => { - const dummyEl = ( -
    - {i18n.translate('xpack.enterpriseSearch..div.dummyLabel', { defaultMessage: 'dummy' })} -
    - ); + const dummyEl =
    dummy
    ; const wrapper = shallow( {dummyEl} ); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx index ab6942174afa9..8ee9e51bfc409 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/applications/components/search_applications/create_search_application_flyout.tsx @@ -102,7 +102,6 @@ export const CreateSearchApplication = ({ onClose }: CreateSearchApplicationFlyo values={{ docsLink: ( = ({ = ({ }) )} > - {i18n.translate( - 'xpack.enterpriseSearch.connectorStats.elasticConnectorsButtonEmptyLabel', - { defaultMessage: 'Elastic Connectors' } - )} + Elastic Connectors @@ -459,7 +455,6 @@ export const ConnectorStats: React.FC = ({ {agentlessAgentExists && ( = ({ {agnetlessPolicyExists ? ( { closePopover={toggleClientsPopover} button={ { - setIsEditing(!isEditing)} - > - {EDIT_BUTTON_LABEL} - + setIsEditing(!isEditing)}>{EDIT_BUTTON_LABEL} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx index 25672b5281e06..a3ff559335d7e 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_flyout.tsx @@ -79,7 +79,6 @@ export const ConnectorNameAndDescriptionFlyout: React.FC = () => { setIsEditing(false)} isLoading={status === Status.LOADING} > @@ -87,12 +86,7 @@ export const ConnectorNameAndDescriptionFlyout: React.FC = () => { - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.configurationConnector.nameAndDescriptionFlyout.saveButtonLabel', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx index 37b7d87fbd11f..2f361c8e37da4 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form.tsx @@ -43,7 +43,6 @@ export const ConnectorNameAndDescriptionForm: React.FC = () => { { { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx index bbf934234038f..695e69a2efe06 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/connector_name_and_description/connector_name_and_description_form_content.tsx @@ -25,7 +25,6 @@ export const ConnectorNameAndDescriptionFormContent: React.FC = () => { <> { @@ -35,7 +34,6 @@ export const ConnectorNameAndDescriptionFormContent: React.FC = () => { { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/connector_sync_form.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/connector_sync_form.tsx index aef74aca15c21..f5f975be7128a 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/connector_sync_form.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/connector_sync_form.tsx @@ -41,7 +41,6 @@ export const ConnectorSyncRulesForm: FC> = ({ childre {isEditing && ( { setIsEditing(!isEditing); @@ -58,7 +57,6 @@ export const ConnectorSyncRulesForm: FC> = ({ childre )} { values: { indexName }, })} - + {i18n.translate('xpack.enterpriseSearch.content.index.connector.syncRules.link', { defaultMessage: 'Learn more about customizing your sync rules.', })} @@ -95,7 +90,6 @@ export const SyncRulesTable: React.FC = () => { { editingRender: (filteringRule, onChange) => ( onChange(e.target.value)} @@ -123,12 +117,7 @@ export const SyncRulesTable: React.FC = () => { editingRender: (rule, onChange) => ( - onChange(e.target.value)} - /> + onChange(e.target.value)} /> ), @@ -146,7 +135,6 @@ export const SyncRulesTable: React.FC = () => { { editingRender: (filteringRule, onChange) => ( onChange(e.target.value)} @@ -167,12 +155,7 @@ export const SyncRulesTable: React.FC = () => { editingRender: (rule, onChange) => ( - onChange(e.target.value)} - /> + onChange(e.target.value)} /> ), diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx index 63f2f9c76a7a3..16c85e24c5a3a 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/connector/sync_rules/sync_rules_callouts.tsx @@ -58,7 +58,6 @@ export const SyncRulesStateCallouts: React.FC = ({ = ({ = ({ = ({ {label} - - {i18n.translate('xpack.enterpriseSearch.editDescription.editButtonEmptyLabel', { - defaultMessage: 'Edit', - })} - + Edit ); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/delete_inference_pipeline_button.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/delete_inference_pipeline_button.tsx index 9e05c3a19d16c..c82306ee1bd51 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/delete_inference_pipeline_button.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/delete_inference_pipeline_button.tsx @@ -48,7 +48,6 @@ export const DeleteInferencePipelineButton: React.FC { />

    diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx index 2975b1456191d..158b6bcda54fe 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/ingest_pipeline_flyout.tsx @@ -112,7 +112,6 @@ export const IngestPipelineFlyout: React.FC = ({ )}

    @@ -174,11 +173,7 @@ export const IngestPipelineFlyout: React.FC = ({
    - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.modalIngestLinkLabel', { @@ -242,11 +237,7 @@ export const IngestPipelineFlyout: React.FC = ({ {displayOnly ? ( - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.closeButtonLabel', { @@ -257,10 +248,7 @@ export const IngestPipelineFlyout: React.FC = ({ ) : ( - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.cancelButtonLabel', { @@ -270,12 +258,7 @@ export const IngestPipelineFlyout: React.FC = ({ - + {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestFlyout.saveButtonLabel', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx index d94139536eb9e..6fdd43a2439da 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines/manage_custom_pipeline_actions.tsx @@ -38,7 +38,6 @@ export const ManageCustomPipelineActions: React.FC = @@ -284,7 +283,6 @@ export const AddInferencePipelineFooter: React.FC< {previousStep !== undefined ? ( @@ -298,7 +296,6 @@ export const AddInferencePipelineFooter: React.FC< {nextStep !== undefined ? ( ) : attachExistingPipeline ? ( ) : ( void; }> = ({ disabled, ingestionMethod, onClick }) => ( { isInvalid={nameError} > Date: Mon, 15 Sep 2025 18:18:54 +0200 Subject: [PATCH 06/54] part 4 --- .../pipelines/ml_inference/license_badge.tsx | 6 +- .../pipelines/ml_inference/model_select.tsx | 27 +--- .../ml_inference/multi_field_selector.tsx | 2 - .../pipelines/ml_inference/test_pipeline.tsx | 6 +- .../text_expansion_callout/deploy_model.tsx | 7 +- .../text_expansion_callout/model_deployed.tsx | 1 - .../text_expansion_callout/model_started.tsx | 1 - .../text_expansion_callout.tsx | 2 - .../text_expansion_errors.tsx | 6 +- .../search_index/pipelines/pipelines.tsx | 21 +-- .../pipelines_json_configurations.tsx | 10 +- .../connector_view_search_indices_details.tsx | 1 - .../search_experiences_guide.tsx | 24 +-- .../add_content_empty_prompt.tsx | 13 +- .../shared/data_panel/data_panel.test.tsx | 138 ++---------------- .../elasticsearch_resources.tsx | 19 +-- .../flash_messages/flash_messages.test.tsx | 13 +- .../licensing/manage_license_button.tsx | 8 +- .../licensing_callout/licensing_callout.tsx | 12 +- .../shared/not_found/not_found_prompt.tsx | 6 +- .../page_introduction.test.tsx | 77 ++-------- .../eui_components.test.tsx | 20 +-- .../react_router_helpers/eui_components.tsx | 28 +--- .../schema/field_type_select/index.test.tsx | 11 +- .../search_labs_banner/search_labs_banner.tsx | 2 - .../inline_editable_table/action_column.tsx | 2 +- .../inline_editable_table.test.tsx | 40 +---- .../reorderable_table/body_row.test.tsx | 13 +- .../tables/reorderable_table/cell.test.tsx | 4 +- .../reorderable_table/header_row.test.tsx | 15 +- .../reorderable_table.test.tsx | 119 ++------------- .../recent_docs_action_message.tsx | 5 +- .../message_list/copy_action_button.tsx | 1 - .../sources_panel/indices_table.tsx | 6 +- .../view_code/create_api_key_form.tsx | 10 +- .../synonym_sets/create_new_set_modal.tsx | 1 - .../plugins/session_view/common/types/v1.ts | 4 +- .../process_tree_node/split_text.tsx | 4 +- .../process_tree_node/text_highlight.tsx | 4 +- .../tty_player_controls_markers/index.tsx | 8 +- .../public/hooks/use_eui_theme.ts | 4 +- 41 files changed, 96 insertions(+), 605 deletions(-) diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/license_badge.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/license_badge.tsx index 5757b2b0d683d..414cbdf3057ca 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/license_badge.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/license_badge.tsx @@ -30,11 +30,7 @@ export const LicenseBadge: React.FC = ({ licenseType, modelDe return ( {modelDetailsPageUrl ? ( - + {licenseLabel} ) : ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx index 0c5a1bb06452a..35adc1d63519c 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/model_select.tsx @@ -27,7 +27,6 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { FormattedMessage } from '@kbn/i18n-react'; import type { MlModel } from '../../../../../../../common/types/ml'; import { MlModelDeploymentState } from '../../../../../../../common/types/ml'; @@ -48,7 +47,6 @@ export const DeployModelButton: React.FC<{ }> = ({ onClick, modelId, disabled }) => { return ( { return ( - + @@ -106,7 +99,6 @@ export const StartModelButton: React.FC<{ }> = ({ onClick, modelId, disabled }) => { return ( { return ( - + @@ -211,15 +198,7 @@ export const SelectedModel: React.FC = (model) => { ); return ( - - } - > + {getSelectedModelAnnouncement(model)} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx index e892ccb725594..18117cd559ab6 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/multi_field_selector.tsx @@ -184,7 +184,6 @@ export const MultiFieldMapping: React.FC = () => { fullWidth > setTargetField(e.target.value)} data-telemetry-id={`entSearchContent-${ingestionMethod}-pipelines-configureFields-targetField`} @@ -197,7 +196,6 @@ export const MultiFieldMapping: React.FC = () => { { error={getDocumentsErr} > {
    - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.steps.test.runButton', { defaultMessage: 'Simulate Pipeline' } diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx index 95f73162c2c60..f0bae2f81ed58 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/deploy_model.tsx @@ -88,7 +88,6 @@ export const DeployModel = ({ > - + ) : ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx index 14736f372e5d7..1ea2c63ccaaa3 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_callout.tsx @@ -46,7 +46,6 @@ export const TextExpansionDismissButton = ({ }: Pick) => { return ( ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx index f22f3483d9344..e55f6109c177f 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout/text_expansion_errors.tsx @@ -26,11 +26,7 @@ export const TextExpansionErrors = ({ error }: { error: { title: string; message

    {error.message}

    - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.textExpansionCreateError.mlNotificationsLink', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx index 7b73d3955c1f6..b31dec1f2a448 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines.tsx @@ -154,12 +154,7 @@ export const SearchIndexPipelines: React.FC = () => { } )}

    - revertPipeline({ indexName })} - > + revertPipeline({ indexName })}> {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.missingPipeline.buttonLabel', { @@ -177,12 +172,7 @@ export const SearchIndexPipelines: React.FC = () => { + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.ingestionPipeline.docLink', { @@ -250,12 +240,7 @@ export const SearchIndexPipelines: React.FC = () => { + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.mlInferencePipelines.docLink', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx index eb24bb433a1dc..61ecd35d0b6b4 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/pipelines_json_configurations.tsx @@ -58,12 +58,7 @@ export const PipelinesJSONConfigurations: React.FC = () => { { defaultMessage: 'View the JSON for your pipeline configurations on this index.' } )} footerDocLink={ - + {i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.tabs.jsonConfigurations.ingestionPipelines.docLink', { @@ -87,7 +82,6 @@ export const PipelinesJSONConfigurations: React.FC = () => { )} > ({ text: name, value: name }))} @@ -105,7 +99,6 @@ export const PipelinesJSONConfigurations: React.FC = () => { {isManagedPipeline(selectedPipeline) ? ( { ) : ( { -

    - {i18n.translate( - 'xpack.enterpriseSearch.searchExperiencesGuide.h2.aboutSearchUILabel', - { defaultMessage: 'About Search UI' } - )} -

    +

    About Search UI

    @@ -75,7 +70,6 @@ export const SearchExperiencesGuide: React.FC = () => { { { } - title={i18n.translate( - 'xpack.enterpriseSearch.searchExperiencesGuide.euiCard.elasticsearchLabel', - { defaultMessage: 'Elasticsearch' } - )} + title="Elasticsearch" description={i18n.translate( 'xpack.enterpriseSearch.searchExperiences.guide.tutorials.elasticsearch.description', { @@ -192,10 +182,7 @@ export const SearchExperiencesGuide: React.FC = () => { } - title={i18n.translate( - 'xpack.enterpriseSearch.searchExperiencesGuide.euiCard.appSearchLabel', - { defaultMessage: 'App Search' } - )} + title="App Search" description={i18n.translate( 'xpack.enterpriseSearch.searchExperiences.guide.tutorials.appSearch.description', { @@ -209,10 +196,7 @@ export const SearchExperiencesGuide: React.FC = () => { } - title={i18n.translate( - 'xpack.enterpriseSearch.searchExperiencesGuide.euiCard.workplaceSearchLabel', - { defaultMessage: 'Workplace Search' } - )} + title="Workplace Search" description={i18n.translate( 'xpack.enterpriseSearch.searchExperiences.guide.tutorials.workplaceSearch.description', { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx index 8de42abc82207..602fadc951f69 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/add_content_empty_prompt/add_content_empty_prompt.tsx @@ -62,12 +62,7 @@ export const AddContentEmptyPrompt: React.FC = () => {
    - + {i18n.translate( 'xpack.enterpriseSearch.addContentEmptyPrompt.newIndexButtonLabel', { @@ -90,11 +85,7 @@ export const AddContentEmptyPrompt: React.FC = () => { - + {i18n.translate('xpack.enterpriseSearch.overview.emptyState.footerLinkTitle', { defaultMessage: 'Learn more', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/data_panel/data_panel.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/data_panel/data_panel.test.tsx index 960f6e38a4cb1..917e3ab649476 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/data_panel/data_panel.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/data_panel/data_panel.test.tsx @@ -10,7 +10,6 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiIcon, EuiButton, EuiTitle, EuiSpacer } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; import { LoadingOverlay } from '../loading'; @@ -19,20 +18,8 @@ import { DataPanel } from './data_panel'; describe('DataPanel', () => { it('renders with a title and children', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.tabulaRasaLabel', { - defaultMessage: 'Tabula Rasa', - })} - - } - > -
    - {i18n.translate('xpack.enterpriseSearch..div.lookAtThisGraphLabel', { - defaultMessage: 'Look at this graph', - })} -
    + Tabula Rasa}> +
    Look at this graph
    ); @@ -41,15 +28,7 @@ describe('DataPanel', () => { }); it('conditionally renders a spacer between the header and children', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} - - } - /> - ); + const wrapper = shallow(Test} />); expect(wrapper.find(EuiSpacer)).toHaveLength(0); @@ -64,34 +43,14 @@ describe('DataPanel', () => { describe('components', () => { it('renders with an icon', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.theSmokeMonsterLabel', { - defaultMessage: 'The Smoke Monster', - })} - - } - iconType="eye" - /> - ); + const wrapper = shallow(The Smoke Monster} iconType="eye" />); expect(wrapper.find(EuiIcon).prop('type')).toEqual('eye'); }); it('renders with a subtitle', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.hugoReyesLabel', { - defaultMessage: 'Hugo Reyes', - })} - - } - subtitle="Hurley was typically happy-go-lucky" - /> + Hugo Reyes} subtitle="Hurley was typically happy-go-lucky" /> ); expect(wrapper.find('p').text()).toEqual('Hurley was typically happy-go-lucky'); @@ -100,13 +59,7 @@ describe('DataPanel', () => { it('renders with an icon and a subtitle', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..h1.flightLabel', { - defaultMessage: 'Flight 815', - })} - - } + title={

    Flight 815

    } iconType="package" subtitle="Oceanic Airlines Flight 815 was a scheduled flight from Sydney, Australia to Los Angeles, California" /> @@ -121,20 +74,8 @@ describe('DataPanel', () => { it('renders with a button', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..h1.boardFlightLabel', { - defaultMessage: 'Board Flight 815', - })} - - } - action={ - - {i18n.translate('xpack.enterpriseSearch..bookFlightButtonLabel', { - defaultMessage: 'Book flight', - })} - - } + title={

    Board Flight 815

    } + action={Book flight} /> ); @@ -144,15 +85,7 @@ describe('DataPanel', () => { describe('props', () => { it('passes titleSize to the title', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h2.testLabel', { defaultMessage: 'Test' })} - - } - /> - ); + const wrapper = shallow(Test} />); expect(wrapper.find(EuiTitle).prop('size')).toEqual('xs'); // Default @@ -162,15 +95,7 @@ describe('DataPanel', () => { }); it('renders panel color based on filled flag', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} - - } - /> - ); + const wrapper = shallow(Test} />); expect(wrapper.prop('color')).toEqual('plain'); expect(wrapper.prop('className')).toEqual('dataPanel'); @@ -182,15 +107,7 @@ describe('DataPanel', () => { }); it('renders a loading overlay based on isLoading flag', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} - - } - /> - ); + const wrapper = shallow(Test} />); expect(wrapper.prop('aria-busy')).toBeFalsy(); expect(wrapper.find(LoadingOverlay)).toHaveLength(0); @@ -202,16 +119,7 @@ describe('DataPanel', () => { }); it('passes hasBorder', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} - - } - /> - ); + const wrapper = shallow(Test} />); expect(wrapper.prop('hasBorder')).toBeFalsy(); wrapper.setProps({ hasBorder: true }); @@ -219,31 +127,13 @@ describe('DataPanel', () => { }); it('passes class names', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} - - } - className="testing" - /> - ); + const wrapper = shallow(Test} className="testing" />); expect(wrapper.prop('className')).toEqual('dataPanel testing'); }); it('passes arbitrary props', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..h1.testLabel', { defaultMessage: 'Test' })} - - } - data-test-subj="testing" - /> - ); + const wrapper = shallow(Test} data-test-subj="testing" />); expect(wrapper.find('[data-test-subj="testing"]')).toHaveLength(1); }); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx index 07be613766e78..750a639f0ee88 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/elasticsearch_resources/elasticsearch_resources.tsx @@ -23,33 +23,21 @@ export const ElasticsearchResources: React.FC = () => ( - + {i18n.translate('xpack.enterpriseSearch.overview.elasticsearchResources.gettingStarted', { defaultMessage: 'Getting started with Elasticsearch', })} - + {i18n.translate('xpack.enterpriseSearch.overview.elasticsearchResources.createIndex', { defaultMessage: 'Create a new index', })} - + {i18n.translate( 'xpack.enterpriseSearch.overview.elasticsearchResources.elasticsearchClients', { defaultMessage: 'Setup a language client' } @@ -58,7 +46,6 @@ export const ElasticsearchResources: React.FC = () => ( diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx index 7561cb78838d5..89905f27e0319 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages.test.tsx @@ -12,7 +12,6 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiCallOut } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; import { FlashMessages } from './flash_messages'; @@ -23,13 +22,7 @@ describe('FlashMessages', () => { { type: 'error', message: 'Whoa nelly!', - description: ( -
    - {i18n.translate('xpack.enterpriseSearch..div.somethingWentWrongLabel', { - defaultMessage: 'Something went wrong', - })} -
    - ), + description:
    Something went wrong
    , }, { type: 'info', message: 'Everything is fine, nothing is ruined' }, { type: 'warning', message: 'Uh oh' }, @@ -51,9 +44,7 @@ describe('FlashMessages', () => { const wrapper = shallow( ); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing/manage_license_button.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing/manage_license_button.tsx index 19705919deb27..b29fb4b7ef852 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing/manage_license_button.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing/manage_license_button.tsx @@ -33,13 +33,7 @@ export const ManageLicenseButton: React.FC = (props) => { })} ) : ( - + {i18n.translate('xpack.enterpriseSearch.licenseDocumentationLink', { defaultMessage: 'Learn more about license features', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx index e00bc2843b077..54d0346061655 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/licensing_callout/licensing_callout.tsx @@ -124,22 +124,14 @@ export const LicensingCallout: React.FC<{ feature: LICENSING_FEATURE }> = ({ fea

    {secondContentBlock[feature]}

    - + {i18n.translate('xpack.enterpriseSearch.workplaceSearch.explorePlatinumFeatures.link', { defaultMessage: 'Explore Platinum features', })} - + {i18n.translate('xpack.enterpriseSearch.content.licensingCallout.contentCloudTrial', { defaultMessage: 'Explore Enterprise Search on Elastic Cloud ', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx index cd5feadb6c6a0..074fc40cdf6bb 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.tsx @@ -59,11 +59,7 @@ export const NotFoundPrompt: React.FC = ({ - + {i18n.translate('xpack.enterpriseSearch.notFound.action2', { defaultMessage: 'Contact support', })} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx index 4268015dda125..4077dac076839 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/page_introduction/page_introduction.test.tsx @@ -10,20 +10,12 @@ import React from 'react'; import { mount } from 'enzyme'; import { EuiLink } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; import { PageIntroduction } from './page_introduction'; describe('PageIntroduction component', () => { it('renders with title as a string', () => { - const wrapper = mount( - - ); + const wrapper = mount(); // .hostNodes is required due to Emotion injection causing problems with enzyme const titleContainer = wrapper .find('[data-test-subj="pageIntroductionTitleContainer"]') @@ -36,13 +28,7 @@ describe('PageIntroduction component', () => { it('renders title as React node', () => { const wrapper = mount( - {i18n.translate('xpack.enterpriseSearch..h2.reactNodeTitleLabel', { - defaultMessage: 'react node title', - })} - - } + title={

    react node title

    } description="some description" /> ); @@ -74,14 +60,10 @@ describe('PageIntroduction component', () => { const wrapper = mount( - {i18n.translate('xpack.enterpriseSearch..testLinkToNowhereLinkLabel', { - defaultMessage: 'test link to nowhere', - })} + + test link to nowhere } /> @@ -97,23 +79,13 @@ describe('PageIntroduction component', () => { const wrapper = mount( - {i18n.translate('xpack.enterpriseSearch..testLinkToNowhereLinkLabel', { - defaultMessage: 'test link to nowhere', - })} + + test link to nowhere , - - {i18n.translate('xpack.enterpriseSearch..testLinkToNowhereLinkLabel', { - defaultMessage: 'test link to nowhere2', - })} + + test link to nowhere2 , ]} /> @@ -132,16 +104,8 @@ describe('PageIntroduction component', () => { const wrapper = mount( - {i18n.translate('xpack.enterpriseSearch..button.someActionLabel', { - defaultMessage: 'some action', - })} - - } + title="some title" + actions={} /> ); const actions = wrapper.find('button'); @@ -153,21 +117,8 @@ describe('PageIntroduction component', () => { const wrapper = mount( - {i18n.translate('xpack.enterpriseSearch..button.someActionLabel', { - defaultMessage: 'some action', - })} - , - , - ]} + title="some title" + actions={[, ]} /> ); const actions = wrapper.find('button'); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx index 291f73f984461..357d60f588469 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.test.tsx @@ -25,7 +25,6 @@ import { EuiPanel, EuiCard, } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; import { EuiLinkTo, @@ -63,14 +62,7 @@ describe('React Router EUI component helpers', () => { }); it('renders an EuiListGroupItem', () => { - const wrapper = shallow( - - ); + const wrapper = shallow(); expect(wrapper.find(EuiListGroupItem)).toHaveLength(1); expect(wrapper.find(EuiListGroupItem).prop('label')).toEqual('foo'); @@ -84,15 +76,7 @@ describe('React Router EUI component helpers', () => { }); it('renders an EuiCard', () => { - const wrapper = shallow( - - ); + const wrapper = shallow(); expect(wrapper.find(EuiCard)).toHaveLength(1); expect(wrapper.find(EuiCard).prop('title')).toEqual('test'); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx index 0b32bb05bd6ac..0017a7b9bec1b 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/react_router_helpers/eui_components.tsx @@ -42,13 +42,7 @@ export const EuiLinkTo: React.FC = ({ onClick, shouldNotCreateHref, ...rest -}) => ( - -); +}) => ; type ReactRouterEuiButtonProps = ReactRouterProps & EuiButtonProps; export const EuiButtonTo: React.FC = ({ @@ -56,13 +50,7 @@ export const EuiButtonTo: React.FC = ({ onClick, shouldNotCreateHref, ...rest -}) => ( - -); +}) => ; type ReactRouterEuiButtonEmptyProps = ReactRouterProps & EuiButtonEmptyProps; export const EuiButtonEmptyTo: React.FC = ({ @@ -71,11 +59,7 @@ export const EuiButtonEmptyTo: React.FC = ({ shouldNotCreateHref, ...rest }) => ( - + ); type ReactRouterEuiButtonIconProps = ReactRouterProps & EuiButtonIconProps; @@ -85,11 +69,7 @@ export const EuiButtonIconTo: React.FC = ({ shouldNotCreateHref, ...rest }) => ( - + ); type ReactRouterEuiPanelProps = ReactRouterProps & EuiPanelProps; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx index 17a298bfb8203..c3bd26947244d 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/schema/field_type_select/index.test.tsx @@ -10,7 +10,6 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiSelect } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; import { SchemaFieldTypeSelect } from '.'; @@ -42,15 +41,7 @@ describe('SchemaFieldTypeSelect', () => { }); it('passes arbitrary props', () => { - const wrapper = shallow( - - ); + const wrapper = shallow(); expect(wrapper.find(EuiSelect).prop('aria-label')).toEqual('Test label'); }); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx index 2ef3514520d45..a1b3302cd35a8 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/search_labs_banner/search_labs_banner.tsx @@ -72,7 +72,6 @@ export const SearchLabsBanner: React.FC = () => { { ({ {!canRemoveLastItem && displayedItems.length === 1 ? ( - + {DELETE_BUTTON_LABEL} diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx index 9465fbcedd567..3d2a243664edf 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.test.tsx @@ -12,8 +12,6 @@ import React from 'react'; import { shallow } from 'enzyme'; import { BindLogic } from 'kea'; -import { i18n } from '@kbn/i18n'; - import { PageIntroduction } from '../../page_introduction/page_introduction'; import { ReorderableTable } from '../reorderable_table'; @@ -99,16 +97,7 @@ describe('InlineEditableTable', () => { it('renders a title if one is provided', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { - defaultMessage: 'Some Description', - })} -

    - } - /> + Some Description

    } /> ); expect(wrapper.find(PageIntroduction).prop('title')).toEqual(requiredParams.title); }); @@ -117,13 +106,7 @@ describe('InlineEditableTable', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { - defaultMessage: 'Some Description', - })} -

    - } + description={

    Some Description

    } /> ); expect(wrapper.find('[data-test-subj="inlineEditableTableTitle"]').exists()).toBe(false); @@ -131,24 +114,9 @@ describe('InlineEditableTable', () => { it('renders a description if one is provided', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { - defaultMessage: 'Some Description', - })} -

    - } - /> - ); - expect(wrapper.find(PageIntroduction).prop('description')).toEqual( -

    - {i18n.translate('xpack.enterpriseSearch..p.someDescriptionLabel', { - defaultMessage: 'Some Description', - })} -

    + Some Description

    } /> ); + expect(wrapper.find(PageIntroduction).prop('description')).toEqual(

    Some Description

    ); }); it('renders no description if none is provided', () => { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx index 6282a5b04b410..333cb73e75225 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/body_row.test.tsx @@ -10,7 +10,6 @@ import React from 'react'; import { shallow } from 'enzyme'; import { EuiCallOut, EuiToken } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; import { BodyRow } from './body_row'; import { Cell } from './cell'; @@ -68,17 +67,7 @@ describe('BodyRow', () => { it('will render an additional cell in the first column if one is provided', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..div.leftActionLabel', { - defaultMessage: 'Left Action', - })} -
    - } - /> + Left Action
    } /> ); const cells = wrapper.find(Cell); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/cell.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/cell.test.tsx index 604d1b346359d..c3f74ec18b6c4 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/cell.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/cell.test.tsx @@ -9,15 +9,13 @@ import React from 'react'; import { shallow } from 'enzyme'; -import { i18n } from '@kbn/i18n'; - import { Cell } from './cell'; describe('Cell', () => { it('renders a table cell with the provided content and styles', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..cell.contentLabel', { defaultMessage: 'Content' })} + Content ); expect(wrapper.props()).toEqual({ diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx index a784383365d0c..4ef767551b697 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/header_row.test.tsx @@ -9,8 +9,6 @@ import React from 'react'; import { shallow } from 'enzyme'; -import { i18n } from '@kbn/i18n'; - import { Cell } from './cell'; import { HeaderRow } from './header_row'; @@ -33,18 +31,7 @@ describe('HeaderRow', () => { }); it('will render an additional cell in the first column if one is provided', () => { - const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..div.leftActionLabel', { - defaultMessage: 'Left Action', - })} -
    - } - /> - ); + const wrapper = shallow(Left Action} />); const cells = wrapper.find(Cell); expect(cells.length).toBe(3); expect(cells.at(0).html()).toContain('Left Action'); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx index 771b8c6eba20e..36ec5cd00ee20 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/tables/reorderable_table/reorderable_table.test.tsx @@ -9,8 +9,6 @@ import React from 'react'; import { shallow } from 'enzyme'; -import { i18n } from '@kbn/i18n'; - import { BodyRow } from './body_row'; import { BodyRows } from './body_rows'; import { DraggableBodyRow } from './draggable_body_row'; @@ -30,17 +28,7 @@ describe('ReorderableTable', () => { describe('when the table is reorderable', () => { it('renders with a header that has an additional column injected as the first column, which is empty', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } - items={items} - columns={columns} - /> + No Items

    } items={items} columns={columns} /> ); const header = wrapper.find(HeaderRow); expect(header.exists()).toEqual(true); @@ -50,17 +38,7 @@ describe('ReorderableTable', () => { it('renders draggable rows inside of the reorderable table', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } - items={items} - columns={columns} - /> + No Items

    } items={items} columns={columns} /> ); const bodyRows = wrapper.find(DraggableBodyRows); expect(bodyRows.exists()).toBe(true); @@ -80,13 +58,7 @@ describe('ReorderableTable', () => { it('can append additional properties to each row, which can be dynamically calculated from the item in that row', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } + noItemsMessage={

    No Items

    } items={items} columns={columns} rowProps={(item) => ({ @@ -103,13 +75,7 @@ describe('ReorderableTable', () => { it('will disableDragging on individual rows if disableDragging is enabled', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } + noItemsMessage={

    No Items

    } items={items} columns={columns} disableDragging @@ -123,13 +89,7 @@ describe('ReorderableTable', () => { const onReorder = jest.fn(); const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } + noItemsMessage={

    No Items

    } items={items} columns={columns} onReorder={onReorder} @@ -140,17 +100,7 @@ describe('ReorderableTable', () => { it('will provide a default callback for reordered if none is provided, which does nothing', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } - items={items} - columns={columns} - /> + No Items

    } items={items} columns={columns} /> ); const onReorder = wrapper.find(DraggableBodyRows).prop('onReorder'); expect(onReorder([], [])).toBeUndefined(); @@ -160,13 +110,7 @@ describe('ReorderableTable', () => { const unreorderableItems = [{ id: 3 }]; const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } + noItemsMessage={

    No Items

    } items={items} unreorderableItems={unreorderableItems} columns={columns} @@ -190,13 +134,7 @@ describe('ReorderableTable', () => { const bottomRows = [
    ,
    ]; const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } + noItemsMessage={

    No Items

    } items={items} bottomRows={bottomRows} columns={columns} @@ -211,13 +149,7 @@ describe('ReorderableTable', () => { it('renders a table with a header and non-reorderable rows', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } + noItemsMessage={

    No Items

    } items={items} columns={columns} disableReordering @@ -239,13 +171,7 @@ describe('ReorderableTable', () => { it('can append additional properties to each row, which can be dynamically calculated from the item in that row', () => { const wrapper = shallow( - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } + noItemsMessage={

    No Items

    } items={items} columns={columns} rowProps={(item) => ({ @@ -263,18 +189,7 @@ describe('ReorderableTable', () => { it('appends an additional className if specified', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } - items={[]} - columns={[]} - className="foo" - /> + No Items

    } items={[]} columns={[]} className="foo" /> ); expect(wrapper.hasClass('foo')).toBe(true); @@ -282,17 +197,7 @@ describe('ReorderableTable', () => { it('will show a no items message when there are no items', () => { const wrapper = shallow( - - {i18n.translate('xpack.enterpriseSearch..p.noItemsLabel', { - defaultMessage: 'No Items', - })} -

    - } - items={[]} - columns={columns} - /> + No Items

    } items={[]} columns={columns} /> ); expect(wrapper.find('[data-test-subj="NoItems"]').exists()).toBe(true); diff --git a/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx b/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx index 0759bc50ce5eb..c9204e65b77b2 100644 --- a/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx +++ b/x-pack/solutions/search/plugins/search_indices/public/components/index_documents/recent_docs_action_message.tsx @@ -42,10 +42,7 @@ export const RecentDocsActionMessage: React.FC = ( pageSize: DEFAULT_DOCUMENT_PAGE_SIZE, }, })}{' '} - + {i18n.translate('xpack.searchIndices.indexDocuments.recentDocsActionMessageLink', { defaultMessage: 'Discover.', })} diff --git a/x-pack/solutions/search/plugins/search_playground/public/components/message_list/copy_action_button.tsx b/x-pack/solutions/search/plugins/search_playground/public/components/message_list/copy_action_button.tsx index dc5ba1bfd107f..c55ac088c04e2 100644 --- a/x-pack/solutions/search/plugins/search_playground/public/components/message_list/copy_action_button.tsx +++ b/x-pack/solutions/search/plugins/search_playground/public/components/message_list/copy_action_button.tsx @@ -21,7 +21,6 @@ export const CopyActionButton: React.FC = ({ copyText, ar return ( = ({ indices, onRemoveCli defaultMessage: 'Selected indices', }), truncateText: true, - render: (index: string) => ( - - {index} - - ), + render: (index: string) => {index}, }, { actions: [ diff --git a/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx b/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx index 706d8b69eddc0..09eb328cebb9e 100644 --- a/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx +++ b/x-pack/solutions/search/plugins/search_playground/public/components/view_code/create_api_key_form.tsx @@ -62,7 +62,6 @@ export const CreateApiKeyForm = () => { rules={{ required: true }} render={({ field }) => ( { rules={{ min: 0, required: true }} render={({ field }) => ( @@ -113,11 +111,7 @@ export const CreateApiKeyForm = () => { {isSuccess && !isDirty ? ( - + { ) : ( { )} { diff --git a/x-pack/solutions/security/plugins/session_view/common/types/v1.ts b/x-pack/solutions/security/plugins/session_view/common/types/v1.ts index e7e68a33820d2..28c006645dd3d 100644 --- a/x-pack/solutions/security/plugins/session_view/common/types/v1.ts +++ b/x-pack/solutions/security/plugins/session_view/common/types/v1.ts @@ -236,9 +236,9 @@ export interface Process { isDescendantOf(process: Process): boolean; } -export interface ProcessMap { +export type ProcessMap = { [key: string]: Process; -} +}; export interface ProcessEventContainer { id?: string; diff --git a/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/split_text.tsx b/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/split_text.tsx index 98c6487bfc141..36ab99840d94a 100644 --- a/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/split_text.tsx +++ b/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/split_text.tsx @@ -8,12 +8,12 @@ import React from 'react'; import type { CSSObject } from '@emotion/react'; -interface Props { +type Props = { children: string; highlightIndices?: number[]; highlightStyle?: CSSObject; role?: string; -} +}; // Split a text into multiple spans, each of which a single character. This is // useful for creating inline "like" text but still having control over the blocks diff --git a/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/text_highlight.tsx b/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/text_highlight.tsx index 1d6a5b7ac14b6..f6c79a1c81c18 100644 --- a/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/text_highlight.tsx +++ b/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/text_highlight.tsx @@ -8,12 +8,12 @@ import React from 'react'; import type { CSSObject } from '@emotion/react'; -interface Props { +type Props = { children: JSX.Element | JSX.Element[]; text: string; match: null | number[]; highlightStyle: any; -} +}; const css: CSSObject = { '&&': { diff --git a/x-pack/solutions/security/plugins/session_view/public/components/tty_player_controls/tty_player_controls_markers/index.tsx b/x-pack/solutions/security/plugins/session_view/public/components/tty_player_controls/tty_player_controls_markers/index.tsx index 05326b04726ca..be784051db4a4 100644 --- a/x-pack/solutions/security/plugins/session_view/public/components/tty_player_controls/tty_player_controls_markers/index.tsx +++ b/x-pack/solutions/security/plugins/session_view/public/components/tty_player_controls/tty_player_controls_markers/index.tsx @@ -12,24 +12,24 @@ import type { ProcessStartMarker } from '../../../../common'; import { useStyles } from './styles'; import { PlayHead } from './play_head'; -interface Props { +type Props = { processStartMarkers: ProcessStartMarker[]; linesLength: number; currentLine: number; onChange: EuiRangeProps['onChange']; onSeekLine(line: number): void; -} +}; export enum TTYPlayerLineMarkerType { ProcessChanged = 'process_changed', ProcessDataLimitReached = 'data_limited', } -interface TTYPlayerLineMarker { +type TTYPlayerLineMarker = { line: number; type: TTYPlayerLineMarkerType; name: string; -} +}; export const TTYPlayerControlsMarkers = ({ processStartMarkers, diff --git a/x-pack/solutions/security/plugins/session_view/public/hooks/use_eui_theme.ts b/x-pack/solutions/security/plugins/session_view/public/hooks/use_eui_theme.ts index f21b9c27718ae..1ca6b3351cae6 100644 --- a/x-pack/solutions/security/plugins/session_view/public/hooks/use_eui_theme.ts +++ b/x-pack/solutions/security/plugins/session_view/public/hooks/use_eui_theme.ts @@ -13,12 +13,12 @@ import { useEuiTheme as useEuiThemeHook } from '@elastic/eui'; import { euiLightVars, euiDarkVars } from '@kbn/ui-theme'; type EuiThemeProps = Parameters; -interface ExtraEuiVars { +type ExtraEuiVars = { terminalOutputBackground: string; terminalOutputMarkerAccent: string; terminalOutputMarkerWarning: string; terminalOutputSliderBackground: string; -} +}; type EuiVars = ExtraEuiVars; type EuiThemeReturn = ReturnType & { euiVars: EuiVars }; From 9867a9255553ec66157f9a6ab5835735b6e47999 Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 15 Sep 2025 18:29:59 +0200 Subject: [PATCH 07/54] remove announceOnMount because of gh false conflict --- .../stream_detail_lifecycle/general_data/modal.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_lifecycle/general_data/modal.tsx b/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_lifecycle/general_data/modal.tsx index 66793c13a7cf9..e9379e9840b79 100644 --- a/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_lifecycle/general_data/modal.tsx +++ b/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_lifecycle/general_data/modal.tsx @@ -522,7 +522,6 @@ function ModalFooter({ {Streams.WiredStream.GetResponse.is(definition) ? ( Date: Thu, 31 Jul 2025 15:29:45 +0200 Subject: [PATCH 08/54] [ML] Removes unused translation (#230055) This caused a failure on main, likely due to a PR being merged around the same time as https://github.com/elastic/kibana/pull/229868, which removes the usage of the translation. From ff97ee3ddfe41e7c25281d19e4baf3267236068b Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Thu, 25 Sep 2025 22:10:56 +0200 Subject: [PATCH 09/54] round of files to update --- .../saved_book/saved_book_react_embeddable.tsx | 2 +- .../partial_results_example/public/app/app.tsx | 2 +- .../configuration_form_controlled.tsx | 2 +- .../src/components/editor_flyout_warnings.tsx | 2 +- .../src/components/metadata_form.tsx | 4 +++- .../settings/application/application.tsx | 2 +- .../components/scheduling/connector_scheduling.tsx | 2 +- .../compare_documents/comparison_toolbar.tsx | 2 +- .../change_point_detection_page.tsx | 2 +- .../change_point_detection/fields_config.tsx | 2 +- .../log_rate_analysis_results.tsx | 2 +- .../authorization/authorization_wrapper.tsx | 2 +- .../steps/confirm_settings_step/auth_selection.tsx | 2 +- .../public/components/filter_popover/index.tsx | 2 +- .../comment/registered_attachments.tsx | 2 +- .../shared/edit_on_the_fly/flyout_wrapper.tsx | 2 +- .../public/datasources/form_based/datapanel.tsx | 2 +- .../dimension_panel/dimensions_editor_helpers.tsx | 2 +- .../azure_credentials_form.tsx | 4 ++-- .../gcp_account_type_selector.tsx | 2 +- .../gcp_credentials_form/gcp_credential_form.tsx | 2 +- .../gcp_credentials_form_agentless.tsx | 2 +- .../fleet_extensions/cnvm_kspm/cnvm_kspm_info.tsx | 2 +- .../from_alerts/host_isolation_panel.tsx | 2 +- .../markdown_editor/plugins/insight/index.tsx | 2 +- .../common/components/markdown_editor/renderer.tsx | 14 ++++++++++++-- .../common/components/ml_popover/ml_popover.tsx | 2 +- .../components/required_fields/required_fields.tsx | 2 +- .../data_view_selector_field.tsx | 4 ++-- .../components/rule_preview/index.tsx | 4 ++-- .../flyout_components/item_conditions/index.tsx | 2 +- .../rule_customizations_flyout_subheader.tsx | 2 +- .../rule_upgrade/rule_upgrade_callout.tsx | 4 ++-- .../bulk_actions/forms/index_patterns_form.tsx | 2 +- .../rule_response_actions/endpoint/callout.tsx | 2 +- .../callouts/no_api_integration_key_callout.tsx | 2 +- .../entity_analytics_anomalies/index.tsx | 2 +- .../tabs/risk_inputs/risk_inputs_tab.tsx | 2 +- .../components/engines_status/index.tsx | 4 +++- .../privileged_access_detection/index.tsx | 2 +- .../pad_chart/pad_heatmap.tsx | 2 +- .../components/privileged_users_table/index.tsx | 2 +- .../components/risk_level_panel/index.tsx | 2 +- .../privileged_user_monitoring/index.tsx | 2 +- .../csv_upload_manage_data_source.tsx | 2 +- .../esql_dashboard_panel/esql_dashboard_panel.tsx | 4 ++-- .../components/select_index_modal.tsx | 2 +- .../risk_score_preview_section.tsx | 2 +- .../right/components/investigation_guide.tsx | 4 ++-- .../right/components/response_section.tsx | 4 ++-- .../user_right/components/managed_user.tsx | 2 +- .../components/artifact_flyout.tsx | 2 +- .../effected_policy_select.tsx | 2 +- .../components/offline_callout.tsx | 2 +- .../components/management_empty_state.tsx | 4 ++-- .../pages/policy/view/policy_details.tsx | 2 +- .../protection_updates_layout.tsx | 2 +- .../resolver/view/panels/node_events_of_type.tsx | 2 +- .../cribl/components/custom_cribl_form.tsx | 2 +- .../rule_details_flyout/tabs/translation/index.tsx | 2 +- .../public/sourcerer/components/sub_components.tsx | 2 +- .../timeline/tabs/query/header/index.tsx | 4 ++-- 62 files changed, 86 insertions(+), 72 deletions(-) diff --git a/examples/embeddable_examples/public/react_embeddables/saved_book/saved_book_react_embeddable.tsx b/examples/embeddable_examples/public/react_embeddables/saved_book/saved_book_react_embeddable.tsx index 33ccf7a66c549..28ff33dfe7742 100644 --- a/examples/embeddable_examples/public/react_embeddables/saved_book/saved_book_react_embeddable.tsx +++ b/examples/embeddable_examples/public/react_embeddables/saved_book/saved_book_react_embeddable.tsx @@ -169,7 +169,7 @@ export const getSavedBookEmbeddableFactory = (core: CoreStart) => { > {showLibraryCallout && ( ) : ( - +

    Click or press any key.

    )} diff --git a/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx index cf46717ce4d2c..7f544615a1544 100644 --- a/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx +++ b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx @@ -41,7 +41,7 @@ export const ConfigurationFormControlled: React.FC - +
      {warningMessages.map((message) => (
    • {message}
    • diff --git a/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx index b65df573c7feb..6baa65f9bf667 100644 --- a/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx +++ b/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx @@ -61,7 +61,9 @@ export const MetadataForm: FC> = ({ return ( - {isReadonly && } + {isReadonly && ( + + )} { ))} - +

      {selectedTab.callOutText}

      diff --git a/src/platform/packages/shared/kbn-search-connectors/components/scheduling/connector_scheduling.tsx b/src/platform/packages/shared/kbn-search-connectors/components/scheduling/connector_scheduling.tsx index 9c7eafd97b373..955abaa5a45a4 100644 --- a/src/platform/packages/shared/kbn-search-connectors/components/scheduling/connector_scheduling.tsx +++ b/src/platform/packages/shared/kbn-search-connectors/components/scheduling/connector_scheduling.tsx @@ -194,7 +194,7 @@ export const ConnectorSchedulingComponent: React.FC comparisonFields.length ? ( { if (metricFieldOptions.length === 0) { return ( = ({ {cardinalityExceeded ? ( <> = ({ <> ( if (!isAuthorized) { return ( ( , children: ( { if (!hasArmTemplateUrl) { return ( - + - + {!gcpOrganizationEnabled && ( <> - + - + {!showCloudTemplates && ( <> - + + {isPlatinum === false && ( diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx index d0f5f1f5b7644..84ce9b6ef7c71 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/markdown_editor/renderer.tsx @@ -64,7 +64,12 @@ const MarkdownRendererComponent: React.FC = ({ children, disableLinks, te <> {platinumPluginDetected && ( <> - + = ({ children, disableLinks, te )} {markdownParseResult !== null && ( <> - + {markdownParseResult} diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx index aa9ce5a859bbc..d793169cc4272 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx @@ -159,7 +159,7 @@ export const MlPopover = React.memo(() => { {incompatibleJobCount > 0 && ( <> {hasWarnings && ( = ({ {showInvocationCountWarning && ( <> = ({ {showRuleDefitnionInvalidWarning && ( <> diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx index b378701052703..25f876d396e6d 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_customizations_diff/rule_customizations_flyout_subheader.tsx @@ -63,7 +63,7 @@ export const RuleCustomizationsFlyoutSubheader = ({ <> {i18n.UPGRADE_STATUS} @@ -53,7 +53,7 @@ export function RuleUpgradeCallout({ return ( <> {i18n.UPGRADE_STATUS} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx index 4460ccfc80f46..69a1c1677449e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/bulk_actions/forms/index_patterns_form.tsx @@ -192,7 +192,7 @@ const IndexPatternsFormComponent = ({ {editAction === BulkActionEditTypeEnum.delete_index_patterns && ( { showCallout && ( <> { {incompatibleJobCount > 0 && ( <> ({ if (riskScoreError) { return ( { useErrorToast(errorMessage, error); if (error) { - return ; + return ( + + ); } if (!data || isStatusAPILoading) return ; diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx index 889c13b2126eb..c4f26bf570cfc 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx @@ -64,7 +64,7 @@ export const PrivilegedAccessDetectionsPanel: React.FC<{ spaceId: string }> = ({ <> {padInstallationStatusError && ( = ({ spaceId }) /> {hasError && ( = ({ (isError ? (
      {error && ( {isError && ( > if (isLeft(visualizationQuery)) { return ( > ) : isError ? (
      {error ? ( <> - + {LOADING_ERROR_MESSAGE} diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx index 500a27ecd237f..4ccda7b1ea9a6 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_management/risk_score_preview_section.tsx @@ -172,7 +172,7 @@ const RiskEnginePreview: React.FC<{ includeClosedAlerts: boolean; from: string; if (isError) { return ( { if (isRulePreview) { return ( { if (hasInvestigationGuide && !isLinkEnabled) { return ( { if (isRulePreview) { return ( { if (!isNewNavigationEnabled && isPreviewMode) { return ( {!entraManagedUser && !oktaManagedUser && !managedUser.isLoading ? ( ( {!isInitializing && showExpiredLicenseBanner && ( ( <> diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx index e27146dd3a3ce..a4c7f1cacf002 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/components/offline_callout.tsx @@ -26,7 +26,7 @@ export const OfflineCallout = memo(({ agentType, endpointId return ( <> diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx index b002344d75d81..f21304640ae58 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx @@ -75,7 +75,7 @@ export const PolicyDetails = React.memo(() => { if (policyApiError) { return ( - + {policyApiError?.message} diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/protection_updates/protection_updates_layout.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/protection_updates/protection_updates_layout.tsx index 65a4d0e22aa38..35e1cd9132a2b 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/protection_updates/protection_updates_layout.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/protection_updates/protection_updates_layout.tsx @@ -331,7 +331,7 @@ export const ProtectionUpdatesLayout = React.memo( if (automaticUpdatesEnabled) { return ( ) : hasError || !node ? ( = React.memo( <> ( ({ isOnlyDetectionAlerts, title }) => isOnlyDetectionAlerts ? ( = ({ {showCallOutUnauthorizedMsg && ( = ({ {status === TimelineStatusEnum.immutable && ( Date: Thu, 25 Sep 2025 23:06:17 +0200 Subject: [PATCH 10/54] second batch --- .../src/kibana_privilege_table/feature_table.tsx | 2 +- .../src/components/configuration/item_form_row.tsx | 2 +- .../sections/policy_list/components/confirm_delete.tsx | 2 +- .../components/add_lifecycle_confirm_modal.tsx | 4 ++-- .../public/components/kibana/instances/instances.tsx | 2 +- .../include_feature_states_field.tsx | 2 +- .../steps/step_logistics/step_logistics.tsx | 2 +- .../home/policy_list/policy_details/tabs/tab_summary.tsx | 2 +- .../application/sections/home/policy_list/policy_list.tsx | 2 +- .../policy_retention_schedule/policy_retention_schedule.tsx | 2 +- .../repository_details/repository_details.tsx | 2 +- .../sections/home/snapshot_list/snapshot_list.tsx | 2 +- .../indices/flyout/steps/reindex/reindex_step.tsx | 2 +- .../indices/flyout/steps/warning/warning_step.tsx | 2 +- .../indices/flyout/steps/warning/warning_step_modal.tsx | 2 +- .../deprecation_types/ml_snapshots/flyout.tsx | 2 +- .../kibana_deprecations/deprecation_details_flyout.tsx | 2 +- .../components/kibana_deprecations/kibana_deprecations.tsx | 2 +- .../components/overview/backup_step/cloud_backup.tsx | 2 +- .../application/components/overview/logs_step/logs_step.tsx | 6 +++--- .../components/overview/migrate_system_indices/flyout.tsx | 2 +- .../migrate_system_indices/migrate_system_indices.tsx | 4 ++-- .../components/overview/upgrade_step/upgrade_step.tsx | 2 +- .../components/shared/tables/reorderable_table/body_row.tsx | 2 +- .../public/components/dataset_quality/warnings/warnings.tsx | 2 +- .../create_package_policy_page/single_page_layout/index.tsx | 1 + .../sections/epm/screens/detail/configs/index.tsx | 2 +- .../feature_importance/decision_path_regression.tsx | 2 +- .../processors/processor_field_selector.tsx | 2 +- .../components/fleet_extensions/policy_template_form.tsx | 2 +- 30 files changed, 34 insertions(+), 33 deletions(-) diff --git a/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.tsx index e8f438f07726d..08356205c7b60 100644 --- a/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.tsx +++ b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.tsx @@ -156,7 +156,7 @@ export class FeatureTable extends Component { {helpText && ( <> - + )} diff --git a/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx b/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx index af1bf0d1d6285..2cdd78717dd2c 100644 --- a/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx +++ b/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx @@ -111,7 +111,7 @@ export const ItemFormRow: React.FC = ({ <> { > {isManagedPolicy ? ( { { = (props: Props) => { customRenderResponse.componentToRender = ( = ({ policy, on /> ) : ( = <> = ({ policy }) => { {isManagedPolicy ? ( <> = ({ return ( = ({ {isManagedRepository ? ( {warnings.length > 0 && ( <> = {warnings.length > 0 && ( <> 0) && ( <> = ({ if (error) { return ( {migrationStatus === 'NO_MIGRATION_NEEDED' && ( = ({ setIsComplete }) = if (migrationStatus.error) { return ( = ({ setIsComplete }) = {migrationStatus.data?.migration_status === 'ERROR' && ( <> { if (error) { callToAction = ( ({ {errors.map((errorMessage, errorMessageIndex) => ( 0 && ( 0 && !fipsCompatibleIntegration && ( <> = ({ packageInfo }) => { <> = ({ <> {baseline === undefined && ( {isUnsupported && ( Date: Mon, 29 Sep 2025 11:22:47 +0200 Subject: [PATCH 11/54] next batch --- .../shared_conversation_callout/index.tsx | 2 +- .../shared_conversation_callout/owner.tsx | 2 +- .../public/components/var_config/edit_var.tsx | 2 +- .../appearance_selector/appearance_modal.tsx | 2 +- .../field_data_expanded_row/text_content.tsx | 2 +- .../import_settings/semantic_text_info.tsx | 2 +- .../import_summary/import_summary.tsx | 2 +- .../field_stats/field_stats_initializer.tsx | 2 +- .../index_data_visualizer.tsx | 2 +- .../guidance_panel/guidance_panel.tsx | 2 +- .../edit_policy/components/edit_warning.tsx | 4 ++-- .../components/phases/hot_phase/hot_phase.tsx | 2 +- .../searchable_snapshot_field.tsx | 8 +++---- .../shared_fields/snapshot_policies_field.tsx | 4 ++-- .../components/setup_mode/listing_callout.tsx | 22 ++++++++++++++----- .../settings_tab/change_kb_model.tsx | 2 +- .../settings_tab/product_doc_setting.tsx | 2 +- .../remote_cluster_edit.tsx | 2 +- .../scheduled_report_flyout_share_wrapper.tsx | 2 +- .../runtime_field_form/runtime_field_form.tsx | 2 +- .../step_define/latest_function_form.tsx | 2 +- .../create_transform_section.tsx | 2 +- .../es_deprecation_logs_flyout.tsx | 4 ++-- .../es_deprecations/es_deprecations.tsx | 2 +- .../steps/configure_standalone_agent_step.tsx | 2 +- .../root_privileges_callout.tsx | 2 +- .../manage_agent_policies_modal.tsx | 2 +- .../package_policy_delete_provider.tsx | 6 ++--- .../public/common/auth/auth_config.tsx | 2 +- 29 files changed, 52 insertions(+), 42 deletions(-) diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/shared_conversation_callout/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/shared_conversation_callout/index.tsx index fac10645421f5..0e0b3c4b401e7 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/shared_conversation_callout/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/shared_conversation_callout/index.tsx @@ -64,7 +64,7 @@ const SharedConversationCalloutComponent: React.FC = ({ ); return localStorageShowConversation && selectedConversation ? ( = ({ variables, selectedVar, onCancel, onSave }) {!isNew && (
      = ({ config }) => { = ({ results }) => { = ({ = ({ > {isNewPanel ? ( { if (!isEsqlEnabled) { return ( { {isManagedPolicy && ( <> { {isDeprecatedPolicy && ( <> { {showEmptyRolloverFieldsError && ( <> = ({ } else if (repos.length === 0) { calloutContent = ( = ({ ) { calloutContent = ( = ({ if (phase === 'hot' && isUsingSearchableSnapshotInHotPhase) { infoCallout = ( = ({ } else if (isDisabledDueToLicense) { infoCallout = ( { <> { <> - +

      {i18n.translate('xpack.monitoring.setupMode.migrateToMetricbeatDescription', { defaultMessage: `These {product} {identifier} are self monitored. @@ -156,7 +161,12 @@ export function ListingCallOut({ setupModeData, productName, customRenderer }: P return ( - +

      {i18n.translate('xpack.monitoring.setupMode.migrateSomeToMetricbeatDescription', { defaultMessage: `Some {product} {identifier} are monitored through self monitoring. Migrate to monitor with Metricbeat.`, diff --git a/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx b/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx index aa8741f195e2a..91d81ea28b55d 100644 --- a/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx +++ b/x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/change_kb_model.tsx @@ -199,7 +199,7 @@ export function ChangeKbModel({ if (error) { return ( = ({ {hasDeprecatedProxySetting ? ( <> = ({ /> )} {latestFunctionService.sortFieldOptions.length === 0 && ( - +

      = ({ match }) => { {searchItemsError !== undefined && ( <> { {remoteClusters && remoteClusters.length > 0 && ( <> {apiKey && ( 0 ? ( <> = ({ {removedPolicies.length > 0 && ( = ({ {packagePolicyPackage?.type === 'input' && ( <> = ({ {(hasMultipleAgentPolicies || isShared) && ( <> = ({ ) : agentsCount && agentPolicies ? ( <> = ({ readOnly, isPfxEnabled = <> Date: Mon, 29 Sep 2025 11:47:00 +0200 Subject: [PATCH 12/54] next --- .../wci-index-source/public/integration/configuration.tsx | 4 ++-- .../endpoint_policy_create_extension.tsx | 2 +- .../view/policy_settings_form/components/advanced_section.tsx | 2 +- .../public/timelines/components/edit_data_provider/index.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/solutions/chat/plugins/wci-index-source/public/integration/configuration.tsx b/x-pack/solutions/chat/plugins/wci-index-source/public/integration/configuration.tsx index 2879b049f7ebe..f6a49ef44b6d7 100644 --- a/x-pack/solutions/chat/plugins/wci-index-source/public/integration/configuration.tsx +++ b/x-pack/solutions/chat/plugins/wci-index-source/public/integration/configuration.tsx @@ -198,7 +198,7 @@ export const IndexSourceConfigurationForm: React.FC @@ -314,7 +314,7 @@ export const IndexSourceConfigurationForm: React.FC diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx index 9d88a6e1e6948..2ad67bebe5105 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_policy_create_extension/endpoint_policy_create_extension.tsx @@ -288,7 +288,7 @@ export const EndpointPolicyCreateExtension = memo - +

      {endpointPresetsMapping[endpointPreset].note}{' '} diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx index ab7bd6575ef27..45cfa03e877a8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/policy/view/policy_settings_form/components/advanced_section.tsx @@ -155,7 +155,7 @@ export const AdvancedSection = memo( {isEditMode && ( <> ( {type === DataProviderTypeEnum.template && showComboBoxInput && ( <> Date: Mon, 29 Sep 2025 12:53:16 +0200 Subject: [PATCH 13/54] more --- .../latest_results/latest_check_fields/all_tab/index.tsx | 2 +- .../latest_check_fields/ecs_compliant_tab/index.tsx | 2 +- .../aws_credentials_form/aws_account_type_selector.tsx | 2 +- .../aws_credentials_form/aws_credentials_form.tsx | 2 +- .../aws_credentials_form/aws_credentials_form_agentless.tsx | 2 +- .../public/pages/configurations/layout/error_callout.tsx | 1 + .../csv_upload_manage_data_source.tsx | 2 +- .../risk_score_management/risk_score_preview_section.tsx | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/all_tab/index.tsx b/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/all_tab/index.tsx index 6fee01f242a1d..7a251b7087b7f 100644 --- a/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/all_tab/index.tsx +++ b/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/all_tab/index.tsx @@ -34,7 +34,7 @@ const AllTabComponent: React.FC = ({ indexName, allFields }) => {

      {allFields.length > 0 ? ( <> - +

      {ALL_CALLOUT(EcsVersion)}

      diff --git a/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx b/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx index b7acbf619da67..c26c73f30457c 100644 --- a/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx +++ b/x-pack/solutions/security/packages/ecs-data-quality-dashboard/impl/data_quality_panel/data_quality_details/indices_details/pattern/index_check_flyout/latest_results/latest_check_fields/ecs_compliant_tab/index.tsx @@ -49,7 +49,7 @@ const EcsCompliantTabComponent: React.FC = ({ indexName, ecsCompliantFiel
      {!isTimestampFieldMissing(ecsCompliantFields) ? ( <> - +

      {ECS_COMPLIANT_CALLOUT({ fieldCount: ecsCompliantFields.length, diff --git a/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx b/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx index 374017cea484c..979944d66b07d 100644 --- a/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx +++ b/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_account_type_selector.tsx @@ -109,7 +109,7 @@ export const AwsAccountTypeSelect = ({ {!awsOrganizationEnabled && ( <> - + { if (!hasCloudFormationTemplate) { return ( - + {!showCloudTemplates && isCloudFormationSupported && ( <> - + { {isError && ( Date: Mon, 29 Sep 2025 13:17:19 +0200 Subject: [PATCH 14/54] add js files --- .../home/index_list/index_table/index_table.js | 2 +- .../sources/es_pew_pew_source/create_source_editor.js | 2 +- .../sources/wms_source/wms_create_source_editor.js | 1 + .../annotations/annotations_table/annotations_table.js | 10 +++++++++- .../components/rule_editor/rule_editor_flyout.js | 2 ++ .../edit_job_flyout/tabs/edit_datafeed_tab.js | 2 +- .../job_details/forecasts_table/forecasts_table.js | 10 +++++++++- 7 files changed, 24 insertions(+), 5 deletions(-) diff --git a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_table/index_table.js b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_table/index_table.js index ee72f56d2103d..50d40cd74aeb4 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_table/index_table.js +++ b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_table/index_table.js @@ -415,7 +415,7 @@ export class IndexTable extends Component { return ( - + {message &&

      {message}

      } {action || filter ? ( diff --git a/x-pack/platform/plugins/shared/maps/public/classes/sources/es_pew_pew_source/create_source_editor.js b/x-pack/platform/plugins/shared/maps/public/classes/sources/es_pew_pew_source/create_source_editor.js index 319d0c4a55e72..9fcb7ac522942 100644 --- a/x-pack/platform/plugins/shared/maps/public/classes/sources/es_pew_pew_source/create_source_editor.js +++ b/x-pack/platform/plugins/shared/maps/public/classes/sources/es_pew_pew_source/create_source_editor.js @@ -184,7 +184,7 @@ export class CreateSourceEditor extends Component { let callout; if (this.state.indexPattern && !this.state.indexPatternHasMultipleGeoFields) { callout = ( - +

      ; + return ( + + ); } } @@ -367,6 +374,7 @@ class AnnotationsTableUI extends Component { if (annotations.length === 0) { return ( ) : ( {datafeedRunning && ( <> - + ; + return ( + + ); } const forecasts = this.state.forecasts; @@ -259,6 +266,7 @@ export class ForecastsTable extends Component { if (forecasts.length === 0) { return ( Date: Mon, 29 Sep 2025 17:18:10 +0200 Subject: [PATCH 15/54] update snapshots --- .../__snapshots__/sync_callouts.test.tsx.snap | 14 +++++++++++ .../public/submit_error_callout.test.tsx | 3 +++ .../warning_call_out.test.tsx.snap | 6 +++++ .../__snapshots__/flyout.test.tsx.snap | 1 + .../logs/__snapshots__/logs.test.tsx.snap | 4 +++ .../listing_callout.test.js.snap | 25 +++++++++++++++++++ .../registered_attachments.test.tsx.snap | 1 + .../feature_properties.test.tsx.snap | 1 + .../add_role_template_button.test.tsx | 1 + ...pace_aware_privilege_section.test.tsx.snap | 1 + .../components/rule_details.test.tsx | 21 ++++++++++++++++ 11 files changed, 78 insertions(+) diff --git a/src/platform/packages/shared/kbn-search-connectors/components/sync_jobs/__snapshots__/sync_callouts.test.tsx.snap b/src/platform/packages/shared/kbn-search-connectors/components/sync_jobs/__snapshots__/sync_callouts.test.tsx.snap index 55fecbd6e6fd6..30fcea3329de9 100644 --- a/src/platform/packages/shared/kbn-search-connectors/components/sync_jobs/__snapshots__/sync_callouts.test.tsx.snap +++ b/src/platform/packages/shared/kbn-search-connectors/components/sync_jobs/__snapshots__/sync_callouts.test.tsx.snap @@ -4,6 +4,7 @@ exports[`SyncCalloutsPanel renders 1`] = ` { expect(wrapper).toMatchInlineSnapshot(` { expect(wrapper).toMatchInlineSnapshot(` { expect(wrapper).toMatchInlineSnapshot(`

      +
      ,
      @@ -259,6 +275,7 @@ exports[`setupMode ListingCallOut no detectable instances should render for apm exports[`setupMode ListingCallOut no detectable instances should render for beats 1`] = ` @@ -275,6 +292,7 @@ exports[`setupMode ListingCallOut no detectable instances should render for beat exports[`setupMode ListingCallOut no detectable instances should render for elasticsearch 1`] = ` @@ -291,6 +309,7 @@ exports[`setupMode ListingCallOut no detectable instances should render for elas exports[`setupMode ListingCallOut no detectable instances should render for kibana 1`] = ` @@ -307,6 +326,7 @@ exports[`setupMode ListingCallOut no detectable instances should render for kiba exports[`setupMode ListingCallOut no detectable instances should render for logstash 1`] = ` @@ -323,6 +343,7 @@ exports[`setupMode ListingCallOut no detectable instances should render for logs exports[`setupMode ListingCallOut only detectable instances should render for apm 1`] = ` { expect(wrapper).toMatchInlineSnapshot(` with user profile disabling "manageSpaces" renders a warning message instead of the privilege form 1`] = ` { /> + + Cannot run rule, + + test + + + + + + `); }); From 14e164c89bc7f851dc604f65dcef67cce43e183d Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 29 Sep 2025 18:59:14 +0200 Subject: [PATCH 16/54] remove conflicting files --- .../file_contents/file_contents.tsx | 2 +- .../import_summary/import_summary.tsx | 1 - .../steps/step_logistics/step_logistics.tsx | 14 +- .../anomaly_swimlane_embeddable_factory.tsx | 153 +++++---- .../processors/processor_field_selector.tsx | 1 - .../public/integration/configuration.tsx | 2 - .../public/components/check_setup.tsx | 161 +++------ .../aws_credentials_form_agentless.tsx | 323 +++++++++++------- .../components/entity_insight.tsx | 81 +---- 9 files changed, 345 insertions(+), 393 deletions(-) diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/file_contents/file_contents.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/file_contents/file_contents.tsx index 3cb7e424e8bda..46b496a6cc0a0 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/file_contents/file_contents.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/file_contents/file_contents.tsx @@ -196,7 +196,7 @@ const PreviewLimitMessage: FC> = children, }) => { return wrapInCallout ? ( - + ) : ( <> diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_summary/import_summary.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_summary/import_summary.tsx index 0138151a59339..0abfbb009d607 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_summary/import_summary.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_summary/import_summary.tsx @@ -67,7 +67,6 @@ export const ImportSummary: FC = ({ ; @@ -172,10 +177,7 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent = }; return ( -
      +
      {/* Step title and doc link */} @@ -265,7 +267,7 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent = @@ -703,7 +705,7 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent = <> {}; - return { api, Component: () => { @@ -298,17 +297,42 @@ export const getAnomalySwimLaneEmbeddableFactory = ( subscriptions.unsubscribe(); }); - const [fromPage, perPage, swimlaneType, swimlaneData, error] = + const [fromPage, perPage, swimlaneType, swimlaneData, error, isLoading] = useBatchedPublishingSubjects( api.fromPage, api.perPage, api.swimlaneType, swimLaneData$, - blockingError$ + blockingError$, + dataLoading$ ); - const [selectedCells, setSelectedCells] = useState(); + const [hasRendered, setHasRendered] = useState(false); + const wrapperRef = useRef(null); + useEffect(() => { + if (isLoading) setHasRendered(false); + }, [isLoading]); + + useEffect( + function dispatchRenderMessages() { + const el = wrapperRef.current; + if (!el) return; + if (error) { + dispatchRenderComplete(el); + return; + } + if (isLoading) { + dispatchRenderStart(el); + return; + } + if (hasRendered) { + dispatchRenderComplete(el); + } + }, + [isLoading, hasRendered, error] + ); + const onCellsSelection = useCallback( (update?: AppStateSelectedCells) => { setSelectedCells(update); @@ -325,25 +349,6 @@ export const getAnomalySwimLaneEmbeddableFactory = ( [swimlaneData, perPage, setSelectedCells] ); - if (error) { - return ( - - } - color="danger" - iconType="warning" - css={{ width: '100%' }} - > -

      {error.message}

      -
      - ); - } - return ( @@ -354,48 +359,70 @@ export const getAnomalySwimLaneEmbeddableFactory = ( `} data-test-subj="mlAnomalySwimlaneEmbeddableWrapper" data-shared-item="" // TODO: Remove data-shared-item as part of https://github.com/elastic/kibana/issues/179376 + data-render-complete={error ? true : hasRendered} + ref={wrapperRef} > - chartWidth$.next(size)} - selection={selectedCells} - onCellsSelection={onCellsSelection} - onPaginationChange={(update) => { - if (update.fromPage) { - api.updatePagination({ fromPage: update.fromPage }); + {error ? ( + } - if (update.perPage) { - api.updatePagination({ perPage: update.perPage, fromPage: 1 }); + color="danger" + iconType="warning" + css={{ width: '100%' }} + > +

      {error.message}

      +
      + ) : ( + chartWidth$.next(size)} + selection={selectedCells} + onCellsSelection={onCellsSelection} + onPaginationChange={(update) => { + if (update.fromPage) { + api.updatePagination({ fromPage: update.fromPage }); + } + if (update.perPage) { + api.updatePagination({ perPage: update.perPage, fromPage: 1 }); + } + }} + isLoading={isLoading!} + yAxisWidth={{ max: Y_AXIS_LABEL_WIDTH }} + noDataWarning={ + + + + } + /> } - }} - isLoading={dataLoading$.value!} - yAxisWidth={{ max: Y_AXIS_LABEL_WIDTH }} - noDataWarning={ - - - + chartsService={pluginsStartServices.charts} + onRenderComplete={() => { + if (!isLoading) { + setHasRendered(true); } - /> - } - chartsService={pluginsStartServices.charts} - onRenderComplete={onRenderComplete} - /> + }} + /> + )}
      diff --git a/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_enrichment/processors/processor_field_selector.tsx b/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_enrichment/processors/processor_field_selector.tsx index 7dfd07f970820..9b1105a2d2de5 100644 --- a/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_enrichment/processors/processor_field_selector.tsx +++ b/x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_enrichment/processors/processor_field_selector.tsx @@ -80,7 +80,6 @@ export const ProcessorFieldSelector = ({ {isUnsupported && ( @@ -314,7 +313,6 @@ export const IndexSourceConfigurationForm: React.FC diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/check_setup.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/check_setup.tsx index dcd9ced74ed81..98b0bfb66b496 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/check_setup.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/check_setup.tsx @@ -4,19 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { - EuiButton, - EuiCallOut, - EuiFlexGrid, - EuiFlexGroup, - EuiFlexItem, - EuiLink, - EuiLoadingSpinner, - EuiText, - EuiToolTip, -} from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { FormattedMessage } from '@kbn/i18n-react'; import React, { useState } from 'react'; import { useHistory } from 'react-router-dom'; import { AsyncStatus, useAsync } from '../hooks/use_async'; @@ -92,123 +81,59 @@ export function CheckSetup({ children }: { children: React.ReactElement }) { !!error; if (displaySetupScreen) { - const isButtonDisabled = postSetupLoading || data?.has_required_role === false; return ( - - {i18n.translate('xpack.profiling.noDataConfig.action.title', { - defaultMessage: `Universal Profiling provides fleet-wide, whole-system, continuous profiling with zero instrumentation. - Understand what lines of code are consuming compute resources, at all times, and across your entire infrastructure.`, - })} - - - -
        -
      • - - {i18n.translate( - 'xpack.profiling.noDataConfig.action.dataRetention.link', - { defaultMessage: 'controlling data retention' } - )} - - ), - }} - /> -
      • -
      -
      - - - ), + title: i18n.translate('xpack.profiling.noDataConfig.pageTitle', { + defaultMessage: 'Universal Profiling', + }), + description: i18n.translate('xpack.profiling.noDataConfig.action.description', { + defaultMessage: + 'Universal Profiling provides fleet-wide, whole-system, continuous profiling with zero instrumentation. Understand what lines of code are consuming compute resources, at all times, and across your entire infrastructure.', + }), + buttonText: postSetupLoading + ? i18n.translate('xpack.profiling.noDataConfig.action.buttonLoadingLabel', { + defaultMessage: 'Setting up Universal Profiling...', + }) + : i18n.translate('xpack.profiling.noDataConfig.action.buttonLabel', { + defaultMessage: 'Set up Universal Profiling', + }), + buttonIsDisabled: (postSetupLoading && true) || data?.has_required_role === false, + disabledButtonTooltipText: + data?.has_required_role === false + ? i18n.translate('xpack.profiling.noDataConfig.action.permissionsTooltip', { + defaultMessage: + 'You need superuser permissions to set up Universal Profiling.', + }) + : undefined, onClick: (event: React.MouseEvent) => { event.preventDefault(); + + setPostSetupLoading(true); + + postSetupResources({ http }) + .then(() => refresh()) + .catch((err) => { + const message = err?.body?.message ?? err.message ?? String(err); + + notifications.toasts.addError(err, { + title: i18n.translate('xpack.profiling.checkSetup.setupFailureToastTitle', { + defaultMessage: 'Failed to complete setup', + }), + toastMessage: message, + }); + }) + .finally(() => { + setPostSetupLoading(false); + }); }, - button: ( - - { - event.preventDefault(); - - setPostSetupLoading(true); - - postSetupResources({ http }) - .then(() => refresh()) - .catch((err) => { - const message = err?.body?.message ?? err.message ?? String(err); - - notifications.toasts.addError(err, { - title: i18n.translate( - 'xpack.profiling.checkSetup.setupFailureToastTitle', - { - defaultMessage: 'Failed to complete setup', - } - ), - toastMessage: message, - }); - }) - .finally(() => { - setPostSetupLoading(false); - }); - }} - fill - isLoading={postSetupLoading} - > - {!postSetupLoading - ? i18n.translate('xpack.profiling.noDataConfig.action.buttonLabel', { - defaultMessage: 'Set up Universal Profiling', - }) - : i18n.translate('xpack.profiling.noDataConfig.action.buttonLoadingLabel', { - defaultMessage: 'Setting up Universal Profiling...', - })} - - - ), + docsLink: `${docLinks.ELASTIC_WEBSITE_URL}guide/en/observability/${docLinks.DOC_LINK_VERSION}/profiling-get-started.html`, + 'data-test-subj': 'profilingCheckSetupCard', }, }, - solution: i18n.translate('xpack.profiling.noDataConfig.solutionName', { - defaultMessage: 'Universal Profiling', - }), }} hideSearchBar > diff --git a/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_credentials_form_agentless.tsx b/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_credentials_form_agentless.tsx index fae3f77e28cb6..1590eadcd8ad6 100644 --- a/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_credentials_form_agentless.tsx +++ b/x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/aws_credentials_form/aws_credentials_form_agentless.tsx @@ -15,13 +15,13 @@ import type { PackageInfo, } from '@kbn/fleet-plugin/common'; import type { SetupTechnology } from '@kbn/fleet-plugin/public'; -import type { CloudSetup } from '@kbn/cloud-plugin/public'; import { AWS_CLOUD_FORMATION_ACCORDION_TEST_SUBJ, AWS_LAUNCH_CLOUD_FORMATION_TEST_SUBJ, ORGANIZATION_ACCOUNT, SINGLE_ACCOUNT, } from '@kbn/cloud-security-posture-common'; +import type { CloudSetup } from '@kbn/cloud-plugin/public'; import { TEMPLATE_URL_ACCOUNT_TYPE_ENV_VAR, SUPPORTED_TEMPLATES_URL_FROM_PACKAGE_INFO_INPUT_VARS, @@ -32,13 +32,12 @@ import { getAgentlessCredentialsType, getAwsAgentlessFormOptions, getAwsCloudConnectorsCredentialsFormOptions, - getAwsCloudConnectorsFormAgentlessOptions, + getAwsCredentialsCloudConnectorsFormAgentlessOptions, getAwsCredentialsFormAgentlessOptions, getInputVarsFields, } from './get_aws_credentials_form_options'; import { getTemplateUrlFromPackageInfo, - getCloudConnectorRemoteRoleTemplate, getCloudCredentialVarsConfig, updatePolicyWithInputs, getAwsCredentialsType, @@ -49,10 +48,13 @@ import { AwsCredentialTypeSelector } from './aws_credential_type_selector'; import { ReadDocumentation } from '../common'; import { CloudFormationCloudCredentialsGuide } from './aws_cloud_formation_credential_guide'; -import type { UpdatePolicy } from '../types'; +import type { AwsInputFieldMapping, UpdatePolicy } from '../types'; import { useCloudSetup } from '../hooks/use_cloud_setup_context'; +import { CloudConnectorSetup } from '../cloud_connector/cloud_connector_setup'; + interface AwsAgentlessFormProps { + cloud: CloudSetup; input: NewPackagePolicyInput; newPolicy: NewPackagePolicy; packageInfo: PackageInfo; @@ -60,35 +62,30 @@ interface AwsAgentlessFormProps { isEditPage?: boolean; setupTechnology: SetupTechnology; hasInvalidRequiredVars: boolean; - showCloudConnectors: boolean; - cloud?: CloudSetup; } -// TODO: Extract cloud connector logic into separate component -export const AwsCredentialsFormAgentless = ({ - input, - newPolicy, - packageInfo, - updatePolicy, - isEditPage, - setupTechnology, - hasInvalidRequiredVars, - showCloudConnectors, - cloud, -}: AwsAgentlessFormProps) => { - const { - awsOverviewPath, - awsPolicyType, - awsInputFieldMapping, - templateName, - showCloudTemplates, - shortName, - } = useCloudSetup(); - - const accountType = input?.streams?.[0].vars?.['aws.account_type']?.value ?? SINGLE_ACCOUNT; +const getSelectorOptions = ( + isEditPage: boolean | undefined, + awsCredentialsType: string | undefined, + isAwsCloudConnectorEnabled: boolean, + awsInputFieldMapping: AwsInputFieldMapping | undefined +) => { + if (isEditPage && AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS !== awsCredentialsType) { + return getAwsCredentialsFormAgentlessOptions(awsInputFieldMapping); + } + if (isAwsCloudConnectorEnabled) { + return getAwsCredentialsCloudConnectorsFormAgentlessOptions(awsInputFieldMapping); + } + return getAwsCredentialsFormAgentlessOptions(awsInputFieldMapping); +}; - const awsCredentialsType = getAgentlessCredentialsType(input, showCloudConnectors); - // This should ony set the credentials after the initial render +const updatePolicyCloudConnectorSupport = ( + awsCredentialsType: string, + newPolicy: NewPackagePolicy, + updatePolicy: UpdatePolicy, + input: NewPackagePolicyInput, + awsPolicyType: string +) => { if (!getAwsCredentialsType(input)) { updatePolicy({ updatedPolicy: { @@ -104,79 +101,129 @@ export const AwsCredentialsFormAgentless = ({ }), }, }); + return; } - const automationCredentialTemplate = getTemplateUrlFromPackageInfo( - packageInfo, - templateName ?? '', - SUPPORTED_TEMPLATES_URL_FROM_PACKAGE_INFO_INPUT_VARS.CLOUD_FORMATION_CREDENTIALS - )?.replace(TEMPLATE_URL_ACCOUNT_TYPE_ENV_VAR, accountType); - - const cloudConnectorRemoteRoleTemplate = cloud - ? getCloudConnectorRemoteRoleTemplate({ - input, - cloud, - packageInfo, - templateName, - }) || undefined - : undefined; + if (awsCredentialsType === 'cloud_connectors' && !newPolicy.supports_cloud_connector) { + updatePolicy({ + updatedPolicy: { + ...newPolicy, + supports_cloud_connector: true, + }, + }); + } else if (awsCredentialsType !== 'cloud_connectors' && newPolicy.supports_cloud_connector) { + updatePolicy({ + updatedPolicy: { + ...newPolicy, + supports_cloud_connector: false, + }, + }); + } +}; - const cloudFormationSettings: Record< - string, - { accordianTitleLink: React.ReactNode; templateUrl?: string } - > = { +const getCloudFormationConfig = ( + awsCredentialsType: string, + automationCredentialTemplate: string | undefined, + awsCloudConnectorRemoteRoleTemplate: string | undefined +) => { + const settings = { [AWS_CREDENTIALS_TYPE.DIRECT_ACCESS_KEYS]: { accordianTitleLink: {'Steps to Generate AWS Account Credentials'}, templateUrl: automationCredentialTemplate, }, [AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS]: { accordianTitleLink: {'Steps to Generate Cloud Connection'}, - templateUrl: cloudConnectorRemoteRoleTemplate, + templateUrl: awsCloudConnectorRemoteRoleTemplate, }, }; - const isOrganization = accountType === ORGANIZATION_ACCOUNT; - - const isCloudFormationSupported = + const isSupported = awsCredentialsType === AWS_CREDENTIALS_TYPE.DIRECT_ACCESS_KEYS || awsCredentialsType === AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS; - const agentlessOptions = showCloudConnectors + + const currentSettings = settings[awsCredentialsType as keyof typeof settings]; + + return { + settings, + isSupported, + accordionTitleLink: currentSettings?.accordianTitleLink || '', + templateUrl: currentSettings?.templateUrl || '', + }; +}; + +// TODO: Extract cloud connector logic into separate component +export const AwsCredentialsFormAgentless = ({ + cloud, + input, + newPolicy, + packageInfo, + updatePolicy, + isEditPage, + setupTechnology, + hasInvalidRequiredVars, +}: AwsAgentlessFormProps) => { + const { + awsOverviewPath, + awsPolicyType, + awsInputFieldMapping, + templateName, + showCloudTemplates, + shortName, + awsCloudConnectorRemoteRoleTemplate, + isAwsCloudConnectorEnabled, + } = useCloudSetup(); + + const accountType = input?.streams?.[0].vars?.['aws.account_type']?.value ?? SINGLE_ACCOUNT; + const awsCredentialsType = getAgentlessCredentialsType(input, isAwsCloudConnectorEnabled); + + updatePolicyCloudConnectorSupport( + awsCredentialsType, + newPolicy, + updatePolicy, + input, + awsPolicyType + ); + + const automationCredentialTemplate = getTemplateUrlFromPackageInfo( + packageInfo, + templateName ?? '', + SUPPORTED_TEMPLATES_URL_FROM_PACKAGE_INFO_INPUT_VARS.CLOUD_FORMATION_CREDENTIALS + )?.replace(TEMPLATE_URL_ACCOUNT_TYPE_ENV_VAR, accountType); + + const cloudFormationConfig = getCloudFormationConfig( + awsCredentialsType, + automationCredentialTemplate, + awsCloudConnectorRemoteRoleTemplate + ); + + const isOrganization = accountType === ORGANIZATION_ACCOUNT; + const agentlessCredentialFormGroups = isAwsCloudConnectorEnabled ? getAwsCloudConnectorsCredentialsFormOptions(awsInputFieldMapping) : getAwsAgentlessFormOptions(awsInputFieldMapping); - const group = agentlessOptions[awsCredentialsType as keyof typeof agentlessOptions]; + const group = + agentlessCredentialFormGroups[awsCredentialsType as keyof typeof agentlessCredentialFormGroups]; const fields = getInputVarsFields(input, group.fields); - const selectorOptions = () => { - if (isEditPage && AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS !== awsCredentialsType) { - return getAwsCredentialsFormAgentlessOptions(awsInputFieldMapping); - } - if (showCloudConnectors) { - return getAwsCloudConnectorsFormAgentlessOptions(awsInputFieldMapping); - } - - return getAwsCredentialsFormAgentlessOptions(awsInputFieldMapping); - }; + const selectorOptions = getSelectorOptions( + isEditPage, + awsCredentialsType, + isAwsCloudConnectorEnabled, + awsInputFieldMapping + ); const disabled = isEditPage && awsCredentialsType === AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS && - showCloudConnectors; - - const showCloudFormationAccordion = isCloudFormationSupported && showCloudTemplates; + isAwsCloudConnectorEnabled; - const accordianTitleLink = showCloudFormationAccordion - ? cloudFormationSettings[awsCredentialsType].accordianTitleLink - : ''; - const templateUrl = showCloudFormationAccordion - ? cloudFormationSettings[awsCredentialsType].templateUrl - : ''; + const showCloudFormationAccordion = cloudFormationConfig.isSupported && showCloudTemplates; return ( <> { + const newPackagePolicy = { + ...newPolicy, + supports_cloud_connector: optionId === AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS, + }; updatePolicy({ updatedPolicy: updatePolicyWithInputs( - newPolicy, + newPackagePolicy, awsPolicyType, getCloudCredentialVarsConfig({ setupTechnology, optionId, - showCloudConnectors, + showCloudConnectors: isAwsCloudConnectorEnabled, provider: AWS_PROVIDER, }) ), @@ -238,60 +289,78 @@ export const AwsCredentialsFormAgentless = ({ }} /> - {!showCloudTemplates && isCloudFormationSupported && ( + {awsCredentialsType !== AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS && ( <> - - - - + {!showCloudTemplates && cloudFormationConfig.isSupported && ( + <> + + + + + + )} + {showCloudFormationAccordion && ( + <> + + + + + + + + + + + )} + { + const updatedPolicy = updatePolicyWithInputs(newPolicy, awsPolicyType, { + [key]: { value }, + }); + updatePolicy({ + updatedPolicy, + }); + }} + hasInvalidRequiredVars={hasInvalidRequiredVars} + /> )} - {showCloudFormationAccordion && ( - <> - - - - - - - - - - + + {awsCredentialsType === AWS_CREDENTIALS_TYPE.CLOUD_CONNECTORS && ( + )} - { - const updatedPolicy = updatePolicyWithInputs(newPolicy, awsPolicyType, { - [key]: { value }, - }); - updatePolicy({ - updatedPolicy, - }); - }} - hasInvalidRequiredVars={hasInvalidRequiredVars} - /> ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx b/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx index b06ee2db39912..3cfdcae190eb4 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx @@ -5,21 +5,12 @@ * 2.0. */ -import { - EuiAccordion, - EuiCallOut, - EuiHorizontalRule, - EuiLink, - EuiSpacer, - EuiTitle, - useEuiTheme, -} from '@elastic/eui'; -import React, { useState } from 'react'; +import { EuiAccordion, EuiHorizontalRule, EuiSpacer, EuiTitle, useEuiTheme } from '@elastic/eui'; +import React from 'react'; import { css } from '@emotion/react'; import { FormattedMessage } from '@kbn/i18n-react'; import { useHasVulnerabilities } from '@kbn/cloud-security-posture/src/hooks/use_has_vulnerabilities'; import { useHasMisconfigurations } from '@kbn/cloud-security-posture/src/hooks/use_has_misconfigurations'; -import { i18n } from '@kbn/i18n'; import type { EntityIdentifierFields } from '../../../common/entity_analytics/types'; import { MisconfigurationsPreview } from './misconfiguration/misconfiguration_preview'; import { VulnerabilitiesPreview } from './vulnerabilities/vulnerabilities_preview'; @@ -29,8 +20,6 @@ import { DETECTION_RESPONSE_ALERTS_BY_STATUS_ID } from '../../overview/component import { useNonClosedAlerts } from '../hooks/use_non_closed_alerts'; import type { EntityDetailsPath } from '../../flyout/entity_details/shared/components/left_panel/left_panel_header'; -const ENTITY_INSIGHT_CALLOUT_HIDDEN_KEY = 'InsightsCallOutHidden'; - export type CloudPostureEntityIdentifier = | Extract< EntityIdentifierFields, @@ -56,25 +45,18 @@ export const EntityInsight = ({ const { euiTheme } = useEuiTheme(); const insightContent: React.ReactElement[] = []; - const { - hasMisconfigurationFindings: showMisconfigurationsPreview, - has3PMisconfigurationFindings, - } = useHasMisconfigurations(field, value); - - const { hasVulnerabilitiesFindings, has3PVulnerabilitiesFindings } = useHasVulnerabilities( + const { hasMisconfigurationFindings: showMisconfigurationsPreview } = useHasMisconfigurations( field, value ); + const { hasVulnerabilitiesFindings } = useHasVulnerabilities(field, value); + const showVulnerabilitiesPreview = hasVulnerabilitiesFindings && field === 'host.name'; const { to, from } = useGlobalTime(); - const { - hasNonClosedAlerts: showAlertsPreview, - filteredAlertsData, - alertHas3rdPartyData, - } = useNonClosedAlerts({ + const { hasNonClosedAlerts: showAlertsPreview, filteredAlertsData } = useNonClosedAlerts({ field, value, to, @@ -82,15 +64,6 @@ export const EntityInsight = ({ queryId: DETECTION_RESPONSE_ALERTS_BY_STATUS_ID, }); - const [showCallOut, setShowCallOut] = useState( - localStorage.getItem(ENTITY_INSIGHT_CALLOUT_HIDDEN_KEY) !== 'true' - ); - - const onDismiss = () => { - setShowCallOut(false); - localStorage.setItem(ENTITY_INSIGHT_CALLOUT_HIDDEN_KEY, 'true'); - }; - if (showAlertsPreview) { insightContent.push( <> @@ -156,47 +129,7 @@ export const EntityInsight = ({ } > - {(has3PMisconfigurationFindings || - has3PVulnerabilitiesFindings || - alertHas3rdPartyData) && - showCallOut ? ( - <> - - - - - {'Learn more'} - - ), - }} - /> - - - - - ) : ( - - )} + {insightContent} From e939d9191afaba589d8c7de9365f3b301cf0bdc2 Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 29 Sep 2025 23:23:00 +0200 Subject: [PATCH 17/54] update snapshot --- .../__snapshots__/disabled_call_out.test.tsx.snap | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap index 054263a81373d..1e357de548ab6 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap +++ b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap @@ -3,6 +3,7 @@ exports[`ScriptingDisabledCallOut should render normally 1`] = ` Date: Wed, 1 Oct 2025 22:55:36 +0200 Subject: [PATCH 18/54] fix unit test --- .../file_upload/public/components/import_complete_view.tsx | 4 ++-- .../home/snapshot_list/components/snapshot_search_bar.tsx | 2 +- .../settings/components/outputs_table/integration_status.tsx | 4 ++-- .../components/outputs_table/integration_sync_flyout.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx b/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx index 099465c50222c..b4225165f680d 100644 --- a/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx +++ b/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx @@ -104,7 +104,7 @@ export class ImportCompleteView extends Component { if (this.props.failedPermissionCheck) { return ( { : ''; return ( = ({ {error ? ( <> = memo( {syncedIntegrationsStatus?.error && ( Date: Thu, 2 Oct 2025 13:22:07 +0200 Subject: [PATCH 19/54] ci errors --- .../file_upload/public/components/import_complete_view.tsx | 2 +- .../public/attachments/page/attachment_children.tsx | 4 ++-- .../components/connector_description_popover.tsx | 4 ++-- .../components/generate_api_key_modal/modal.tsx | 2 +- .../search_index/connector/api_key_configuration.tsx | 6 +++--- .../components/search_index/index_error.tsx | 2 +- .../components/search_index/overview.tsx | 4 ++-- .../applications/shared/api_key/create_api_key_flyout.tsx | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx b/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx index b4225165f680d..adc392a7c4896 100644 --- a/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx +++ b/x-pack/platform/plugins/private/file_upload/public/components/import_complete_view.tsx @@ -165,7 +165,7 @@ export class ImportCompleteView extends Component { if (this.props.importResults.failures?.length) { return ( = ({ indexN ) : ( ) : indexName === '' ? ( ) : !hasApiKey ? ( = ({ indexName }) => { }, [data]); return errors.length > 0 ? ( { {isConnectorIndex(indexData) && error && ( <> { <> {isModalVisible && } = ({ onClose )} {error && ( Date: Thu, 2 Oct 2025 13:30:28 +0200 Subject: [PATCH 20/54] push conflicting files from main to merge upstream --- .../public/attachments/page/attachment_children.tsx | 2 -- .../components/connector_description_popover.tsx | 2 -- .../search_index/components/generate_api_key_modal/modal.tsx | 1 - .../search_index/connector/api_key_configuration.tsx | 3 --- .../components/search_index/index_error.tsx | 1 - .../components/search_index/overview.tsx | 2 -- .../components/search_indices/delete_index_modal.tsx | 1 - .../applications/shared/api_key/create_api_key_flyout.tsx | 1 - 8 files changed, 13 deletions(-) diff --git a/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx b/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx index 11cfa7a1840cb..704b0a09ac82f 100644 --- a/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx +++ b/x-pack/solutions/observability/plugins/observability/public/attachments/page/attachment_children.tsx @@ -62,7 +62,6 @@ export function PageAttachmentChildren({ if (!isInternalUrl(href)) { return ( = ({ indexN ) : ( ) : indexName === '' ? ( ) : !hasApiKey ? ( = ({ indexName }) => { }, [data]); return errors.length > 0 ? ( { {isConnectorIndex(indexData) && error && ( <> { <> {isModalVisible && } { {deleteModalIndexHasInProgressSyncs && ( <> = ({ onClose )} {error && ( Date: Fri, 3 Oct 2025 10:24:23 +0200 Subject: [PATCH 21/54] Update src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_editor.tsx Co-authored-by: Davis McPhee --- .../public/components/field_editor/field_editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_editor.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_editor.tsx index 20ac5c42c4c74..e1908dd8aa0ec 100644 --- a/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_editor.tsx +++ b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_editor.tsx @@ -297,7 +297,7 @@ const FieldEditorComponent = ({ field, onChange, onFormModifiedChange, isDisable {field?.parentName && ( <> Date: Fri, 3 Oct 2025 10:24:33 +0200 Subject: [PATCH 22/54] Update src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx Co-authored-by: Davis McPhee --- .../delete_data_view_flyout/delete_data_view_flyout_content.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx b/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx index 730755c21fb4a..e4b60bdb2ef0f 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx +++ b/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx @@ -217,7 +217,7 @@ export const DeleteModalContent: React.FC = ({ /> ) : ( - + )}
      From a7f4b85b40790f8f68f7b6dada621a61a9acbd20 Mon Sep 17 00:00:00 2001 From: Paulina Shakirova Date: Fri, 3 Oct 2025 10:24:43 +0200 Subject: [PATCH 23/54] Update src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx Co-authored-by: Davis McPhee --- .../components/scripting_call_outs/disabled_call_out.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx index c3949e16c44db..1cbcec653c61d 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx +++ b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx @@ -17,7 +17,7 @@ export const ScriptingDisabledCallOut = ({ isVisible = false }) => { return isVisible ? ( Date: Fri, 3 Oct 2025 10:24:55 +0200 Subject: [PATCH 24/54] Update src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx Co-authored-by: Davis McPhee --- .../components/scripting_call_outs/warning_call_out.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx index 572e19a4133f7..663748f4a71d1 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx +++ b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx @@ -54,7 +54,7 @@ export const ScriptingWarningCallOut = ({ isVisible = false }: ScriptingWarningC Date: Fri, 3 Oct 2025 10:25:03 +0200 Subject: [PATCH 25/54] Update src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx Co-authored-by: Davis McPhee --- .../public/components/doc_viewer_table/table_grid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx index 04c0f2d976635..b85a0dc46992a 100644 --- a/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx +++ b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_grid.tsx @@ -216,7 +216,7 @@ export function TableGrid({ {Boolean(warningMessage) && (
      - +
      )} From 45e8bbfc6c2226c761658b953354de6008e01fb5 Mon Sep 17 00:00:00 2001 From: Paulina Shakirova Date: Fri, 3 Oct 2025 10:25:17 +0200 Subject: [PATCH 26/54] Update src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx Co-authored-by: Davis McPhee --- .../public/components/edit_index_pattern/edit_index_pattern.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx index 5148c5a9fbd53..9abee203dd41f 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx +++ b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx @@ -240,7 +240,7 @@ export const EditIndexPattern = withRouter( <> Date: Fri, 3 Oct 2025 10:25:34 +0200 Subject: [PATCH 27/54] Update src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx Co-authored-by: Davis McPhee --- .../delete_data_view_flyout/delete_data_view_flyout_content.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx b/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx index e4b60bdb2ef0f..363f76509a1b7 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx +++ b/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx @@ -210,7 +210,7 @@ export const DeleteModalContent: React.FC = ({ {showRelationshipsCallout ? ( <> Date: Fri, 3 Oct 2025 08:49:16 +0000 Subject: [PATCH 28/54] [CI] Auto-commit changed files from 'node scripts/eslint_all_files --no-cache --fix' --- .../delete_data_view_flyout_content.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx b/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx index 363f76509a1b7..0a4858e2e9e32 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx +++ b/src/platform/plugins/shared/data_view_management/public/components/delete_data_view_flyout/delete_data_view_flyout_content.tsx @@ -217,7 +217,12 @@ export const DeleteModalContent: React.FC = ({ /> ) : ( - + )}
      From 7f7ef624dd148c3f5e7096b53ff5f622232234e8 Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 6 Oct 2025 12:20:13 +0200 Subject: [PATCH 29/54] update snapshot --- .../__snapshots__/warning_call_out.test.tsx.snap | 6 ------ .../components/scripting_call_outs/warning_call_out.tsx | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap index 27b73653de1f5..e654de9cd9ec1 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap +++ b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap @@ -61,12 +61,6 @@ Array [

      -
      ,
      Date: Tue, 7 Oct 2025 21:11:16 +0200 Subject: [PATCH 30/54] Update x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com> --- .../components/required_fields/required_fields.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx index 3a3b32a0a622f..d4579a7367a66 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/required_fields/required_fields.tsx @@ -147,7 +147,7 @@ const RequiredFieldsList = ({ <> {hasWarnings && ( Date: Tue, 7 Oct 2025 21:11:27 +0200 Subject: [PATCH 31/54] Update x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/rule_preview/index.tsx Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com> --- .../rule_creation_ui/components/rule_preview/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/rule_preview/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/rule_preview/index.tsx index 1e5b6a205de41..828c7af4cc398 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/rule_preview/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/rule_preview/index.tsx @@ -270,7 +270,7 @@ const RulePreviewComponent: React.FC = ({ {showInvocationCountWarning && ( <> Date: Tue, 7 Oct 2025 21:11:37 +0200 Subject: [PATCH 32/54] Update x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/data_view_selector_field/data_view_selector_field.tsx Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com> --- .../data_view_selector_field/data_view_selector_field.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/data_view_selector_field/data_view_selector_field.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/data_view_selector_field/data_view_selector_field.tsx index 3b9c34c564217..16886d87c246f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/data_view_selector_field/data_view_selector_field.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/data_view_selector_field/data_view_selector_field.tsx @@ -63,7 +63,7 @@ export function DataViewSelectorField({ field }: DataViewSelectorProps): JSX.Ele {field.value === SECURITY_DEFAULT_DATA_VIEW_ID && ( <> Date: Wed, 15 Oct 2025 18:34:21 +0200 Subject: [PATCH 33/54] Update x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../src/components/configuration/item_form_row.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx b/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx index 2cdd78717dd2c..0f99fb82ba98d 100644 --- a/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx +++ b/x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/configuration/item_form_row.tsx @@ -111,7 +111,7 @@ export const ItemFormRow: React.FC = ({ <> Date: Wed, 15 Oct 2025 18:38:33 +0200 Subject: [PATCH 34/54] Update x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../components/import_settings/semantic_text_info.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx index 9c2c609e10b29..621bb16e747d2 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/file_data_visualizer/components/import_settings/semantic_text_info.tsx @@ -24,7 +24,7 @@ export const SemanticTextInfo: FC = ({ results }) => { Date: Thu, 16 Oct 2025 09:23:59 +0200 Subject: [PATCH 35/54] Update x-pack/platform/plugins/shared/ml/public/application/components/rule_editor/rule_editor_flyout.js Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../application/components/rule_editor/rule_editor_flyout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/rule_editor/rule_editor_flyout.js b/x-pack/platform/plugins/shared/ml/public/application/components/rule_editor/rule_editor_flyout.js index 482e5ee242023..7b32e8e2a6a52 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/rule_editor/rule_editor_flyout.js +++ b/x-pack/platform/plugins/shared/ml/public/application/components/rule_editor/rule_editor_flyout.js @@ -690,7 +690,7 @@ class RuleEditorFlyoutUI extends Component { /> Date: Thu, 16 Oct 2025 09:24:18 +0200 Subject: [PATCH 36/54] Update x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/text_expansion/text_expansion_output.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../test_models/models/text_expansion/text_expansion_output.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/text_expansion/text_expansion_output.tsx b/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/text_expansion/text_expansion_output.tsx index 50900bf2622ff..77f18e7deea54 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/text_expansion/text_expansion_output.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/text_expansion/text_expansion_output.tsx @@ -148,7 +148,7 @@ export const DocumentResultWithTokens: FC<{ > <> - + Date: Thu, 16 Oct 2025 09:24:50 +0200 Subject: [PATCH 38/54] Update x-pack/platform/plugins/shared/ml/public/application/model_management/models_list.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../ml/public/application/model_management/models_list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/model_management/models_list.tsx b/x-pack/platform/plugins/shared/ml/public/application/model_management/models_list.tsx index f7de18174f20d..f6ad723715076 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/model_management/models_list.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/model_management/models_list.tsx @@ -653,7 +653,7 @@ export const ModelsList: FC = ({ isElserCalloutVisible ? ( <> Date: Thu, 16 Oct 2025 09:25:04 +0200 Subject: [PATCH 39/54] Update x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/recognize/page.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../ml/public/application/jobs/new_job/recognize/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/recognize/page.tsx b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/recognize/page.tsx index 45c4e50594ae7..31dd7874ce197 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/recognize/page.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/recognize/page.tsx @@ -303,7 +303,7 @@ export const Page: FC = ({ moduleId, existingGroupIds }) => { {displayQueryWarning && ( <> Date: Thu, 16 Oct 2025 09:25:39 +0200 Subject: [PATCH 40/54] Update x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../public/connector_types/inference/params.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx index c723e9ed639ae..634801796d2e6 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx @@ -82,7 +82,7 @@ const InferenceServiceParamsFields: React.FunctionComponent< if (!isEndpointExists) { return ( - + Date: Thu, 16 Oct 2025 09:27:15 +0200 Subject: [PATCH 41/54] Update x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/analysis_fields_table.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../components/configuration_step/analysis_fields_table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/analysis_fields_table.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/analysis_fields_table.tsx index 56c800a27da3f..84f69428e72e5 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/analysis_fields_table.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/analysis_fields_table.tsx @@ -255,7 +255,7 @@ export const AnalysisFieldsTable: FC<{ )} {tableItems.length === 0 && ( Date: Thu, 16 Oct 2025 09:28:02 +0200 Subject: [PATCH 42/54] Update x-pack/platform/plugins/shared/ml/public/application/components/upgrade/upgrade_warning.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../public/application/components/upgrade/upgrade_warning.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/upgrade/upgrade_warning.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/upgrade/upgrade_warning.tsx index 2b09ae50df76d..7f29981a39452 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/upgrade/upgrade_warning.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/upgrade/upgrade_warning.tsx @@ -20,7 +20,7 @@ export const UpgradeWarning: FC = () => { return ( Date: Thu, 16 Oct 2025 09:28:24 +0200 Subject: [PATCH 43/54] Update x-pack/platform/plugins/shared/ml/public/application/components/saved_objects_warning/saved_objects_warning.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../components/saved_objects_warning/saved_objects_warning.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/saved_objects_warning/saved_objects_warning.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/saved_objects_warning/saved_objects_warning.tsx index aeab1b00e2691..4951fbe083eea 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/saved_objects_warning/saved_objects_warning.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/saved_objects_warning/saved_objects_warning.tsx @@ -97,7 +97,7 @@ export const SavedObjectsWarning: FC = ({ return showWarning === false ? null : ( <> Date: Thu, 16 Oct 2025 07:52:11 +0000 Subject: [PATCH 44/54] [CI] Auto-commit changed files from 'node scripts/eslint_all_files --no-cache --fix' --- .../public/connector_types/inference/params.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx index 634801796d2e6..88ba47c52be09 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/params.tsx @@ -82,7 +82,12 @@ const InferenceServiceParamsFields: React.FunctionComponent< if (!isEndpointExists) { return ( - + Date: Fri, 17 Oct 2025 11:44:11 +0200 Subject: [PATCH 45/54] Update x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> --- .../ml/public/application/jobs/new_job/pages/job_type/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx index 33b8ae7c30ef0..f4f2ca69bdc0d 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx @@ -288,7 +288,7 @@ export const Page: FC = () => { {isTimeBasedIndex === false && ( <> - +announceOnMount={false} Date: Fri, 17 Oct 2025 13:40:36 +0200 Subject: [PATCH 46/54] resolve some comments --- .../impl/connectorland/connector_missing_callout/index.tsx | 2 +- .../embeddables/field_stats/field_stats_initializer.tsx | 1 - .../public/routes/components/settings_tab/change_kb_model.tsx | 2 +- .../routes/components/settings_tab/product_doc_setting.tsx | 2 +- .../components/flyout_components/item_conditions/index.tsx | 2 +- .../components/entity_analytics_anomalies/index.tsx | 2 +- .../tabs/risk_inputs/risk_inputs_tab.tsx | 2 +- .../entity_store/components/engines_status/index.tsx | 4 +--- .../components/privileged_access_detection/index.tsx | 2 +- .../privileged_access_detection/pad_chart/pad_heatmap.tsx | 2 +- .../components/privileged_users_table/index.tsx | 2 +- .../components/risk_level_panel/index.tsx | 2 +- .../components/esql_dashboard_panel/esql_dashboard_panel.tsx | 2 +- .../components/select_index_modal.tsx | 2 +- .../entity_details/user_right/components/managed_user.tsx | 2 +- .../public/resolver/view/panels/node_events_of_type.tsx | 2 +- 16 files changed, 15 insertions(+), 18 deletions(-) diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx index b47f97711a9bb..bc28af941ee87 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx @@ -40,7 +40,7 @@ export const ConnectorMissingCallout: React.FC = React.memo(({ isConnecto <> {showMissingCallout ? ( = ({ announceOnMount={false} size="s" iconType="info" - announceOnMount title={ diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/entity_analytics_anomalies/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/entity_analytics_anomalies/index.tsx index 0ba7aba7770ea..9fd702d5f55b5 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/entity_analytics_anomalies/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/entity_analytics_anomalies/index.tsx @@ -165,7 +165,7 @@ export const EntityAnalyticsAnomalies = () => { {incompatibleJobCount > 0 && ( <> ({ if (riskScoreError) { return ( { useErrorToast(errorMessage, error); if (error) { - return ( - - ); + return ; } if (!data || isStatusAPILoading) return ; diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx index c4f26bf570cfc..889c13b2126eb 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/privileged_access_detection/index.tsx @@ -64,7 +64,7 @@ export const PrivilegedAccessDetectionsPanel: React.FC<{ spaceId: string }> = ({ <> {padInstallationStatusError && ( = ({ spaceId }) /> {hasError && ( = ({ (isError ? (
      > ) : isError ? (
      {error ? ( <> - + {LOADING_ERROR_MESSAGE} diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx index 5ae06837f3daa..b96c71cc591c8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/components/managed_user.tsx @@ -114,7 +114,7 @@ export const ManagedUser = ({ <> {!entraManagedUser && !oktaManagedUser && !managedUser.isLoading ? ( ) : hasError || !node ? ( Date: Fri, 17 Oct 2025 14:24:11 +0200 Subject: [PATCH 47/54] manually resolve conflicts --- .../public/visualize_app/utils/get_top_nav_config.tsx | 3 --- .../share_menu/flyout/flyout.component.tsx | 10 ++-------- .../change_point_detection/fields_config.tsx | 1 - .../public/services/setup_technology_selector.tsx | 1 - .../mappings_datastreams_rollover_modal.tsx | 1 - .../simulate_template/simulate_template.tsx | 1 - 6 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.tsx index 54ab55fb6d1ad..4f29b15a775ce 100644 --- a/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.tsx +++ b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.tsx @@ -327,7 +327,6 @@ export const getTopNavConfig = ( pdfReports: { draftModeCallOut: ( = ({ , ]; warningText = [ - , + , ]; } diff --git a/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/fields_config.tsx b/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/fields_config.tsx index 05b06cc7a6bc6..311814c2c50fe 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/fields_config.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/fields_config.tsx @@ -748,7 +748,6 @@ export const ChangePointResults: FC = ({ {cardinalityExceeded ? ( <> = ( {error && ( <> Date: Fri, 17 Oct 2025 14:25:26 +0200 Subject: [PATCH 48/54] resolve manual conflict --- .../workpad_header/share_menu/flyout/flyout.component.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/platform/plugins/private/canvas/public/components/workpad_header/share_menu/flyout/flyout.component.tsx b/x-pack/platform/plugins/private/canvas/public/components/workpad_header/share_menu/flyout/flyout.component.tsx index 65908ab7ecc1f..3bfc53c6b80d0 100644 --- a/x-pack/platform/plugins/private/canvas/public/components/workpad_header/share_menu/flyout/flyout.component.tsx +++ b/x-pack/platform/plugins/private/canvas/public/components/workpad_header/share_menu/flyout/flyout.component.tsx @@ -181,8 +181,7 @@ export const ShareWebsiteFlyout: FC = ({ , ]; warningText = [ - + , , ]; } From c20ee90a187a1e9fdad92b0a36e11624c9f2a2bc Mon Sep 17 00:00:00 2001 From: "paulina.shakirova" Date: Mon, 20 Oct 2025 10:45:14 +0200 Subject: [PATCH 49/54] resolve comments --- .../mappings_ds_rollover_modal.tsx | 1 + .../index_templates/simulate_template/simulate_template.tsx | 1 + .../rule_customizations_diff/rule_customizations_flyout.tsx | 2 +- .../rule_customizations_flyout_subheader.tsx | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/platform/plugins/shared/index_management/public/application/components/component_templates/component_template_wizard/component_template_ds_mappings/mappings_ds_rollover_modal.tsx b/x-pack/platform/plugins/shared/index_management/public/application/components/component_templates/component_template_wizard/component_template_ds_mappings/mappings_ds_rollover_modal.tsx index 186eef3a7d3fc..fdf1830115b51 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/components/component_templates/component_template_wizard/component_template_ds_mappings/mappings_ds_rollover_modal.tsx +++ b/x-pack/platform/plugins/shared/index_management/public/application/components/component_templates/component_template_wizard/component_template_ds_mappings/mappings_ds_rollover_modal.tsx @@ -86,6 +86,7 @@ export const MappingsDsRolloverModal: React.FunctionComponent = ({ {error && ( <> Date: Mon, 20 Oct 2025 11:39:15 +0200 Subject: [PATCH 50/54] fix broken dist --- .../application/jobs/new_job/pages/job_type/page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx index f4f2ca69bdc0d..0af766d3d45de 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/job_type/page.tsx @@ -288,7 +288,12 @@ export const Page: FC = () => { {isTimeBasedIndex === false && ( <> -announceOnMount={false} + Date: Mon, 27 Oct 2025 11:52:22 +0100 Subject: [PATCH 51/54] update snap --- .../__snapshots__/disabled_call_out.test.tsx.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap index 1e357de548ab6..21f7be4f2c091 100644 --- a/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap +++ b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap @@ -3,7 +3,7 @@ exports[`ScriptingDisabledCallOut should render normally 1`] = ` Date: Mon, 27 Oct 2025 12:17:11 +0100 Subject: [PATCH 52/54] duplicate prop --- .../public/routes/components/ai_assistant_selection_page.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx b/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx index f0fe89b0fc443..f99f17c874634 100644 --- a/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx +++ b/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx @@ -94,7 +94,6 @@ export function AiAssistantSelectionPage() { Date: Thu, 30 Oct 2025 14:33:29 +0100 Subject: [PATCH 53/54] fix conflicts --- .../document_details/right/components/investigation_guide.tsx | 1 - .../document_details/right/components/response_section.tsx | 1 - .../flyout/entity_details/user_right/components/managed_user.tsx | 1 - 3 files changed, 3 deletions(-) diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/investigation_guide.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/investigation_guide.tsx index fc438b79dda77..b5e848b7d9fa5 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/investigation_guide.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/investigation_guide.tsx @@ -80,7 +80,6 @@ export const InvestigationGuide: React.FC = () => { if (hasInvestigationGuide && !isLinkEnabled) { return ( { if (!isNewNavigationEnabled && isPreviewMode) { return ( {!entraManagedUser && !oktaManagedUser && !managedUser.isLoading ? ( Date: Thu, 30 Oct 2025 15:43:02 +0100 Subject: [PATCH 54/54] increase one chat limit --- packages/kbn-optimizer/limits.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-optimizer/limits.yml b/packages/kbn-optimizer/limits.yml index 18776e643644a..b4012d3fa10f0 100644 --- a/packages/kbn-optimizer/limits.yml +++ b/packages/kbn-optimizer/limits.yml @@ -117,7 +117,7 @@ pageLoadAssetSize: observabilityLogsExplorer: 4918 observabilityOnboarding: 12872 observabilityShared: 75115 - onechat: 20161 + onechat: 20180 osquery: 47422 painlessLab: 6299 presentationPanel: 11484