kibana/packages/kbn-alerts-ui-shared
Jiawei Wu e4805fc9e0
[RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949)
## Summary
Partially resolves: https://github.com/elastic/kibana/issues/164255,
this is 2/3 of the scoped query changes.

Maintenance window scoped query frontend changes. Adds the ability to
add and edit scoped query for maintenance windows. Due to limitations
with the alerts search bar and each solution fetches AAD fields, we only
allow users to associate scoped query with 1 category (manangement,
o11y, or security solution). The intended usage in this case is for the
user to create multiple maintenance windows if they wish to apply scoped
queries to multiple solutions.

### To test:
go to
`x-pack/plugins/alerting/public/pages/maintenance_windows/constants.ts`
and set `IS_SCOPED_QUERY_ENABLED` to `true`

### Scoped query off, multiple category allowed:

![image](dbf03e8e-f9bd-449c-8d23-0b474fe5a9c4)

### Scoped query on, multiple category disallowed:

![image](368f954a-7671-410b-839b-77f0420f26fa)

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-12-04 15:18:33 -08:00
..
src [RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949) 2023-12-04 15:18:33 -08:00
index.ts [RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949) 2023-12-04 15:18:33 -08:00
jest.config.js [RAM] Autocomplete (#158454) 2023-08-30 19:04:14 -07:00
kibana.jsonc [RAM] Bring flapping status and settings in o11y (#150483) 2023-02-07 20:52:26 -07:00
package.json [RAM] Bring flapping status and settings in o11y (#150483) 2023-02-07 20:52:26 -07:00
README.mdx [RAM] Bring flapping status and settings in o11y (#150483) 2023-02-07 20:52:26 -07:00
setup_tests.ts [RAM] Autocomplete (#158454) 2023-08-30 19:04:14 -07:00
tsconfig.json [RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949) 2023-12-04 15:18:33 -08:00

# @kbn/alerts-ui-shared

---
id: AlertsUIShared/Components/AlertLifecycleStatusBadge
slug: /kbn-alerts-ui-shared/src/alert_lifecycle_status_badge/index.tsx
title: Alert Lifecycle Status
description: A component to show the status of an alert
tags: ['kbn-alerts-ui-shared', 'component']
date: 2023-02-07
---

## Description

A component to show the status of an alert