grafana/public
Virginia Cepeda 7338164612
Alerting: Add alert instance picker (#67138)
* Add Preview template and payload editor to templates form

* Add TemplatePreview test and update css

* Preview errors for each template that is wrong

* Enable preview templating only for Grafana Alert Manager

* Use harcoded default payload instead of requesting it to the backend

* Update error response in the api definition

* Add spinner when loading result for preview

* Update api request followind DD changes

* Use pre instead of TextArea to render the preview

* Fix tests

* Add alert list editor

* Add start and end time for alert generator

* Add preview for data list added in the modal

* Update copies and move submit button in alert generator to the bottom

* Copy updates

* Refactor

* Use tab instead of button to preview

* Move payload editor next to the content

* Copy update

* Refactor

* Adress PR review comments

* Fix wrong json format throwing an exception when adding more data

* Use monaco editor for payload

* Only show text 'Preview for...'  when we have more than one define

* Fix some errors

* Update CollapseSection style

* Add tooltip for the Payload info icon explaining the available list of alert data fields in preview

* Set payload as invalid if it's not an array

* Fix test

* Update text in AlertTemplateDataTable

* Add separators to distinguish lines that belong to the preview

* Use harcoded default payload instead of requesting it to the backend

* Add alert instance picker

* Add rule search capability and cleanup

* Display alert instance extra information on hover

* Rebase and integrate with existing view

* Display folder under rule name

* Display unique labels for alert instances

* Remove unneeded interface

* Reset state after closing the modal

* Refactor useEffect and useMemo

* Move common code to variable

* Refactor to avoid setting filtered rules as state

* Disable instance selector button when there are errors in the payload

* Validate payload on button click

* Change warning text

* Add support for state filters in alertmanager alerts request

* Use RTK Query to fetch alert instances

* Address review comments

* Fix lint

---------

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
2023-04-28 12:58:15 -03:00
..
app Alerting: Add alert instance picker (#67138) 2023-04-28 12:58:15 -03:00
dashboards Chore: Update version of @grafana/eslint-config (#53403) 2022-08-08 15:19:15 +01:00
emails Email: Mark HTML comments as "safe" in email templates (#64546) 2023-03-28 13:05:21 +02:00
fonts Theme: Use Inter font by default (#59544) 2022-12-01 11:59:37 +00:00
gazetteer Geomap: Add GeoJSON gazetteer (#40589) 2021-10-19 21:05:55 -07:00
img PageNotFound: G10 Redesign (#66909) 2023-04-28 08:18:14 +02:00
lib AzureMonitor: Kusto language support (#33528) 2021-05-11 16:48:59 +02:00
locales NestedFolders: Connect Search input fields to state manager (#67193) 2023-04-26 15:42:25 +01:00
maps Geomap: include sample geojson files (#39057) 2021-09-10 09:05:03 -07:00
sass AppNotificationList: Improves position now that topnav is live (#66959) 2023-04-24 10:20:47 +02:00
test Datasource: Overhaul plugin error handling and action buttons (#67014) 2023-04-28 15:57:17 +02:00
testdata MarketTrend: add new alpha panel (#40909) 2021-11-05 18:01:26 -07:00
vendor Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
views Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00
api-merged.json Query History: Remove migration (#67470) 2023-04-28 16:03:51 +01:00
openapi3.json Query History: Remove migration (#67470) 2023-04-28 16:03:51 +01:00
robots.txt