diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index 5cb99d6629ba..ea748ee7ed4a 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -7452,7 +7452,7 @@ paths: summary: Get all alerts for a case tags: - cases - x-technical-preview: true + x-state: Technical preview '/api/cases/{caseId}/comments': delete: description: > @@ -7820,7 +7820,7 @@ paths: summary: Get cases for an alert tags: - cases - x-technical-preview: true + x-state: Technical preview /api/cases/configure: get: description: > @@ -27276,7 +27276,7 @@ components: maxItems: 1000 type: array title: Alert identifiers - x-technical-preview: true + x-state: Technical preview Cases_alert_indices: description: > The alert indices. It is required only when `type` is `alert`. If you @@ -27294,7 +27294,7 @@ components: maxItems: 1000 type: array title: Alert indices - x-technical-preview: true + x-state: Technical preview Cases_alert_response_properties: type: object properties: @@ -28432,7 +28432,7 @@ components: description: The rule name. example: security_rule type: string - x-technical-preview: true + x-state: Technical preview Cases_searchFieldsType: description: The fields to perform the `simple_query_string` parsed query against. enum: @@ -28625,7 +28625,7 @@ components: - type: string - type: boolean type: array - x-technical-preview: true + x-state: Technical preview description: $ref: '#/components/schemas/Cases_case_description' settings: @@ -28651,7 +28651,7 @@ components: tags: $ref: '#/components/schemas/Cases_template_tags' type: array - x-technical-preview: true + x-state: Technical preview Cases_update_alert_comment_request_properties: description: Defines properties for case comment requests when type is alert. type: object diff --git a/src/plugins/unified_search/public/dataview_picker/change_dataview.styles.ts b/src/plugins/unified_search/public/dataview_picker/change_dataview.styles.ts index 9727c8f6e159..21ece7f82e88 100644 --- a/src/plugins/unified_search/public/dataview_picker/change_dataview.styles.ts +++ b/src/plugins/unified_search/public/dataview_picker/change_dataview.styles.ts @@ -12,15 +12,18 @@ import { calculateWidthFromEntries } from '@kbn/calculate-width-from-char-count' import { DataViewListItemEnhanced } from './dataview_list'; const MIN_WIDTH = 300; +const MAX_MOBILE_WIDTH = 350; export const changeDataViewStyles = ({ fullWidth, dataViewsList, theme, + isMobile, }: { fullWidth?: boolean; dataViewsList: DataViewListItemEnhanced[]; theme: EuiThemeComputed; + isMobile: boolean; }) => { return { trigger: { @@ -30,7 +33,10 @@ export const changeDataViewStyles = ({ borderBottomLeftRadius: 0, }, popoverContent: { - width: calculateWidthFromEntries(dataViewsList, ['name', 'id'], { minWidth: MIN_WIDTH }), + width: calculateWidthFromEntries(dataViewsList, ['name', 'id'], { + minWidth: MIN_WIDTH, + ...(isMobile && { maxWidth: MAX_MOBILE_WIDTH }), + }), }, }; }; diff --git a/src/plugins/unified_search/public/dataview_picker/change_dataview.tsx b/src/plugins/unified_search/public/dataview_picker/change_dataview.tsx index d89621d59867..06ed558ce7a0 100644 --- a/src/plugins/unified_search/public/dataview_picker/change_dataview.tsx +++ b/src/plugins/unified_search/public/dataview_picker/change_dataview.tsx @@ -17,6 +17,7 @@ import { EuiContextMenuItem, useEuiTheme, useGeneratedHtmlId, + useIsWithinBreakpoints, EuiIcon, EuiText, EuiContextMenuPanelProps, @@ -68,10 +69,13 @@ export function ChangeDataView({ const kibana = useKibana(); const { application, data, dataViews, dataViewEditor } = kibana.services; + const isMobile = useIsWithinBreakpoints(['xs']); + const styles = changeDataViewStyles({ fullWidth: trigger.fullWidth, dataViewsList, theme: euiTheme, + isMobile, }); // Create a reusable id to ensure search input is the first focused item in the popover even though it's not the first item diff --git a/test/functional/screenshots/.empty b/test/functional/screenshots/.empty deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/x-pack/plugins/cases/docs/openapi/bundled.json b/x-pack/plugins/cases/docs/openapi/bundled.json index 659ab18aab15..6b84ab8e090f 100644 --- a/x-pack/plugins/cases/docs/openapi/bundled.json +++ b/x-pack/plugins/cases/docs/openapi/bundled.json @@ -288,7 +288,7 @@ "summary": "Get cases for an alert", "operationId": "getCasesByAlertDefaultSpace", "description": "You must have `read` privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're seeking.\n", - "x-technical-preview": true, + "x-state": "Technical preview", "tags": [ "cases" ], @@ -1264,7 +1264,7 @@ "get": { "summary": "Get all alerts for a case", "description": "You must have `read` privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're seeking.\n", - "x-technical-preview": true, + "x-state": "Technical preview", "operationId": "getCaseAlertsDefaultSpace", "tags": [ "cases" @@ -3573,7 +3573,7 @@ }, "templates": { "type": "array", - "x-technical-preview": true, + "x-state": "Technical preview", "items": { "type": "object", "properties": { @@ -3611,7 +3611,7 @@ }, "customFields": { "type": "array", - "x-technical-preview": true, + "x-state": "Technical preview", "description": "Custom field values in the template.", "items": { "type": "object", @@ -3976,7 +3976,7 @@ "maxItems": 1000 } ], - "x-technical-preview": true, + "x-state": "Technical preview", "example": "6b24c4dc44bc720cfc92797f3d61fff952f2b2627db1fb4f8cc49f4530c4ff42" }, "alert_indices": { @@ -3994,13 +3994,13 @@ "maxItems": 1000 } ], - "x-technical-preview": true + "x-state": "Technical preview" }, "rule": { "title": "Alerting rule", "description": "The rule that is associated with the alerts. It is required only when `type` is `alert`. This functionality is in technical preview and may be changed or removed 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.\n", "type": "object", - "x-technical-preview": true, + "x-state": "Technical preview", "properties": { "id": { "description": "The rule identifier.", diff --git a/x-pack/plugins/cases/docs/openapi/bundled.yaml b/x-pack/plugins/cases/docs/openapi/bundled.yaml index db2a7960614d..40c86d41e1b2 100644 --- a/x-pack/plugins/cases/docs/openapi/bundled.yaml +++ b/x-pack/plugins/cases/docs/openapi/bundled.yaml @@ -168,7 +168,7 @@ paths: operationId: getCasesByAlertDefaultSpace description: | You must have `read` privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're seeking. - x-technical-preview: true + x-state: Technical preview tags: - cases parameters: @@ -844,7 +844,7 @@ paths: summary: Get all alerts for a case description: | You must have `read` privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're seeking. - x-technical-preview: true + x-state: Technical preview operationId: getCaseAlertsDefaultSpace tags: - cases @@ -2468,7 +2468,7 @@ components: maxLength: 256 templates: type: array - x-technical-preview: true + x-state: Technical preview items: type: object properties: @@ -2498,7 +2498,7 @@ components: $ref: '#/components/schemas/connector_types' customFields: type: array - x-technical-preview: true + x-state: Technical preview description: Custom field values in the template. items: type: object @@ -2765,7 +2765,7 @@ components: items: type: string maxItems: 1000 - x-technical-preview: true + x-state: Technical preview example: 6b24c4dc44bc720cfc92797f3d61fff952f2b2627db1fb4f8cc49f4530c4ff42 alert_indices: title: Alert indices @@ -2777,13 +2777,13 @@ components: items: type: string maxItems: 1000 - x-technical-preview: true + x-state: Technical preview rule: title: Alerting rule description: | The rule that is associated with the alerts. It is required only when `type` is `alert`. This functionality is in technical preview and may be changed or removed 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. type: object - x-technical-preview: true + x-state: Technical preview properties: id: description: The rule identifier. diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/alert_identifiers.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/alert_identifiers.yaml index cca8eb74f501..3c60cb395a4c 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/alert_identifiers.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/alert_identifiers.yaml @@ -12,5 +12,5 @@ oneOf: items: type: string maxItems: 1000 -x-technical-preview: true +x-state: Technical preview example: 6b24c4dc44bc720cfc92797f3d61fff952f2b2627db1fb4f8cc49f4530c4ff42 \ No newline at end of file diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/alert_indices.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/alert_indices.yaml index 5c741e9601c4..9674e7bcf1ea 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/alert_indices.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/alert_indices.yaml @@ -11,4 +11,4 @@ oneOf: items: type: string maxItems: 1000 -x-technical-preview: true \ No newline at end of file +x-state: Technical preview \ No newline at end of file diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/rule.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/rule.yaml index 09712b57ce13..6eb50e6adda4 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/rule.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/rule.yaml @@ -5,7 +5,7 @@ description: > This functionality is in technical preview and may be changed or removed 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. type: object -x-technical-preview: true +x-state: Technical preview properties: id: description: The rule identifier. diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/templates.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/templates.yaml index b01cf5ad1f34..ae82bfa2ed14 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/templates.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/templates.yaml @@ -1,5 +1,5 @@ type: array -x-technical-preview: true +x-state: Technical preview items: type: object properties: @@ -16,7 +16,7 @@ items: $ref: 'case_configure_connector_properties.yaml' customFields: type: array - x-technical-preview: true + x-state: Technical preview description: Custom field values in the template. items: type: object diff --git a/x-pack/plugins/cases/docs/openapi/paths/api@cases@alerts@{alertid}.yaml b/x-pack/plugins/cases/docs/openapi/paths/api@cases@alerts@{alertid}.yaml index cef35ea07852..5175d5e4f9d7 100644 --- a/x-pack/plugins/cases/docs/openapi/paths/api@cases@alerts@{alertid}.yaml +++ b/x-pack/plugins/cases/docs/openapi/paths/api@cases@alerts@{alertid}.yaml @@ -5,7 +5,7 @@ get: You must have `read` privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're seeking. - x-technical-preview: true + x-state: Technical preview tags: - cases parameters: diff --git a/x-pack/plugins/cases/docs/openapi/paths/api@cases@{caseid}@alerts.yaml b/x-pack/plugins/cases/docs/openapi/paths/api@cases@{caseid}@alerts.yaml index cbf4803df681..584f9ed8aa7d 100644 --- a/x-pack/plugins/cases/docs/openapi/paths/api@cases@{caseid}@alerts.yaml +++ b/x-pack/plugins/cases/docs/openapi/paths/api@cases@{caseid}@alerts.yaml @@ -4,7 +4,7 @@ get: You must have `read` privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're seeking. - x-technical-preview: true + x-state: Technical preview operationId: getCaseAlertsDefaultSpace tags: - cases