import { schema } from '@kbn/config-schema' ; import { i18n } from '@kbn/i18n' ; import { UiSettingsParams } from '../../../../src/core/types' ; import { observabilityFeatureId } from '../common' ; import { enableComparisonByDefault , enableInspectEsQueries , maxSuggestions , } from '../common/ui_settings_keys' ; /**
 * uiSettings definitions for Observability.
 */ export const uiSettings = { [ enableInspectEsQueries ] : { category : [ observabilityFeatureId ] , name : i18n . translate ( 'xpack.observability.enableInspectEsQueriesExperimentName' , { defaultMessage : 'Inspect ES queries' , } ) , value : false , description : i18n . translate ( 'xpack.observability.enableInspectEsQueriesExperimentDescription' , { defaultMessage : 'Inspect Elasticsearch queries in API responses.' , } ) , schema : schema . boolean ( ) , } , [ maxSuggestions ] : { category : [ observabilityFeatureId ] , name : i18n . translate ( 'xpack.observability.maxSuggestionsUiSettingName' , { defaultMessage : 'Maximum suggestions' , } ) , value : 100 , description : i18n . translate ( 'xpack.observability.maxSuggestionsUiSettingDescription' , { defaultMessage : 'Maximum number of suggestions fetched in autocomplete selection boxes.' , } ) , schema : schema . number ( ) , } , [ enableComparisonByDefault ] : { category : [ observabilityFeatureId ] , name : i18n . translate ( 'xpack.observability.enableComparisonByDefault' , { defaultMessage : 'Comparison feature' , } ) , value : true , description : i18n . translate ( 'xpack.observability.enableComparisonByDefaultDescription' , { defaultMessage : 'Enable the comparison feature on APM UI' , } ) , schema : schema . boolean ( ) , } , } ;