mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
* Add smart type selection when creating a new alert rule * Auto switch when switch button has not been clicked yet * remove unnecessay code after the last refacgtor * Refactor * Remove unneeded prop * Move SmartAlertTypeDetector to its own file * Fix tests * Refactor: new useSetExpressionAndDataSource hook * Fix expressions not been propagated when switching from one type to another * Change texts * Update tests * Update text in switch button * Update texts and tests * Refactor: move code to getCanSwitch new method * Move smart alert after queries and remove auto-switch * Remove expressions and restore them when switching between grafana and cloud type * Rename previous expression state * Fix tests * Add data source name for data source-managed alert selection * Update reducer when changing cloud data source * PR review suggestions * PR review suggestions 2nd part * PR review suggestions 3th part * Fix canSwitch * Update texts on smart alert --------- Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com> |
||
---|---|---|
.. | ||
components | ||
partials | ||
state | ||
unified | ||
utils | ||
AlertHowToModal.tsx | ||
AlertRuleItem.test.tsx | ||
AlertRuleItem.tsx | ||
AlertRuleList.test.tsx | ||
AlertRuleList.tsx | ||
AlertTab.tsx | ||
AlertTabCtrl.test.ts | ||
AlertTabCtrl.ts | ||
AlertTabIndex.tsx | ||
EditNotificationChannelPage.tsx | ||
FeatureTogglePage.tsx | ||
getAlertingValidationMessage.test.ts | ||
getAlertingValidationMessage.ts | ||
NewNotificationChannelPage.tsx | ||
NotificationsListPage.tsx | ||
routes.tsx | ||
StateHistory.tsx | ||
TestRuleResult.test.tsx | ||
TestRuleResult.tsx |