grafana/public/app/features
Virginia Cepeda e5cb1ceae0
Alerting: Suggest previously entered custom labels (#57783)
* [Alerting] - replace label inputs with dropdowns (#57019)

* Add AlertLabelDropdown component

It will be used to pick from or create new labels

* Adapt LabelsField component to use AlertLabelDropdown instead of inputs

* Add tests for LabelsField component

Plus a few other tests were adapted to work with the label dropdowns

* Use ref in component

* Fix showing placeholders in the label dropdowns

* Minor syntax change

* Remove unneeded import after rebase

* Display custom labels

When a label key is selected, its corresponding values are shown in the dropdown

* Add tooltip explaining where labels in the dropdowns come from

* Fix import of Stack component

* Avoid duplicated values

* Improvements based on review

* Display labels for currently selected datasource only

* Refactor AlertsField to allow to choose whether to suggest labels or not

* Suggest labels for NotificationStep and tests

* Don't suggest labels in TestContactPointModal

* [LabelsField] - refactor: get dataSourceName as a parameter

* [LabelsField] - extract common code into reusable components

* Display loading spinner while fetching rules

* LabelsField - refactor

Removing the suggest prop and the default dataSource 'grafana'. Instead, the component now relies on the dataSourceName param. If it's set it means we want to show suggestions so we fetch the labels, otherwise, if not set, we show the plain input texts without suggestions.

* Add test for LabelsField without suggestions

* Show custom labels for grafana managed alerts

When the dataSourceName in the NotificationsStep component has a null value, we can assume it's because we're dealing with grafana managed alerts. In that case we set the correct value.

* Fix tests after latest changes

Since we removed the combobox from the TestContactPoints modal, tests had to be adjusted

* Update texts

* initialize all new added inputs with empty data
2022-11-11 10:29:59 -03:00
..
admin Chore: Migrate more usage of v1 themes to v2 (#57680) 2022-11-02 10:25:08 +00:00
alerting Alerting: Suggest previously entered custom labels (#57783) 2022-11-11 10:29:59 -03:00
annotations Plugins: Added hook to make it easier to track interactions in plugins (#56126) 2022-11-02 16:57:57 +01:00
api-keys Navigation: Add descriptions to NavModelItems (#55669) 2022-09-23 16:08:08 +01:00
canvas Canvas: Improve disabled inline editing UX (#58610) 2022-11-10 13:04:42 -08:00
commandPalette Explore: Remove camel case from tracking labels (#56809) 2022-10-13 12:12:50 +02:00
comments Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
connections Connections: Support standalone plugin pages (#57772) 2022-11-10 11:14:23 +01:00
correlations Correlations: add tracking for add, update, delete, and details expanded (#58239) 2022-11-08 10:10:09 +00:00
dashboard Chore: move to node 18 (#58570) 2022-11-11 11:34:00 +00:00
datasources Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
dimensions Canvas: Fix setting icon from field data #58499 2022-11-10 10:56:31 -08:00
explore Explore: Support fields interpolation in logs panel (#58426) 2022-11-10 15:33:17 +01:00
expressions Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
folders LibraryPanels: Replace folderID with folderUID (#56414) 2022-11-02 16:49:02 +01:00
geo Geomap: Spatial operations location options transform e2e test (#54162) 2022-08-25 17:34:24 -04:00
inspector Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
invites Auth: Check for OrgUsersAdd on frontend to display pending invites (#58217) 2022-11-04 11:14:59 +00:00
library-panels Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
live Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
logs Explore: Support fields interpolation in logs panel (#58426) 2022-11-10 15:33:17 +01:00
manage-dashboards Dashboards: Provide better error messages in SaveDashboardAsForm (#57866) 2022-11-08 22:11:02 +08:00
notifications Page: Update profile page components to use new navId (#51664) 2022-07-11 14:35:30 +02:00
org Revert: Query editor components from grafana-ui (#57436) 2022-10-24 17:12:36 +02:00
panel Panels: Fixes crashing issue when migrating angular panels (#58232) 2022-11-08 16:26:02 +01:00
playlist Reconcile coremodels, entities, objects under new kind framework (#56492) 2022-11-10 12:36:40 -08:00
plugins Navigation: Convert PluginDetails page to use new Page extensions (#58509) 2022-11-09 14:44:38 +00:00
profile Chore/React18: Update component prop types (#56898) 2022-10-14 10:24:32 +01:00
query Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
runtime Runtime: remove updateLocation from window context (#42857) 2021-12-07 20:01:35 -08:00
sandbox Chore/React18: Update component prop types (#56898) 2022-10-14 10:24:32 +01:00
scenes Scene: ObjectVariable for supporting the built in system variables and object scoped variables (__data for example) (#58291) 2022-11-09 10:27:20 +01:00
search Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
serviceaccounts ServiceAccounts: Add background service to check for token leaks (#53658) 2022-11-07 05:46:19 -05:00
storage Accessibility: Enable rule jsx-a11y/no-noninteractive-element-interactions (#58077) 2022-11-03 10:55:58 +00:00
teams Chore: more any/type assertion improvements (#57450) 2022-10-25 11:04:35 +02:00
templating ElasticSearch: Fix lucene formatted variables being wrongly escaped (#54981) 2022-09-15 17:18:57 +02:00
transformers Chore: Migrate usage of v1 theme to v2 (#58154) 2022-11-03 18:15:55 +00:00
users RBAC: Remove builtin role code (#53767) 2022-08-18 12:25:37 +02:00
variables Variables: SceneVariable update process (#57784) 2022-11-09 08:02:24 +01:00
all.ts Chore: Remove empty and leftover files (#55757) 2022-09-26 11:33:07 -04:00