grafana/public/app/features/dimensions
Sonia Aguilar 3854be1fcb
Alerting: Implement template preview for Grafana AlertManager (#65530)
* 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

* Fix text

* Use subDays instead of addDays for substracting days
2023-04-28 17:05:45 +02:00
..
editors Alerting: Implement template preview for Grafana AlertManager (#65530) 2023-04-28 17:05:45 +02:00
color.ts FieldValues: Use simple array in panel visualizations (#66706) 2023-04-17 14:46:29 -07:00
context.ts Canvas: Add tooltip for data links (#61648) 2023-01-20 16:26:51 +00:00
index.ts Geomap: Add rotation option for markers layer (#41992) 2021-11-23 08:23:43 -08:00
resource.test.ts Canvas: Add icon value mapping (#59013) 2022-11-22 14:39:19 -08:00
resource.ts FieldValues: Use simple array in panel visualizations (#66706) 2023-04-17 14:46:29 -07:00
scalar.test.ts FieldValues: Use simple array in panel visualizations (#66706) 2023-04-17 14:46:29 -07:00
scalar.ts FieldValues: Use simple array in panel visualizations (#66706) 2023-04-17 14:46:29 -07:00
scale.test.ts FieldValues: Use simple array in panel visualizations (#66706) 2023-04-17 14:46:29 -07:00
scale.ts FieldValues: Use simple array in panel visualizations (#66706) 2023-04-17 14:46:29 -07:00
text.ts FieldValues: Use simple array in panel visualizations (#66706) 2023-04-17 14:46:29 -07:00
types.ts Geomap: refactor and cleanup structures (#52760) 2022-07-25 20:12:20 -04:00
utils.ts FieldValues: Use standard array functions (#67012) 2023-04-20 22:03:38 -07:00