Просмотр исходного кода

enable activated rule details link (#69630)

Enables navigating to an alert rule details page for activated alerts
Nathan Hsieh 10 месяцев назад
Родитель
Сommit
2b968d3846
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      static/app/views/alerts/list/rules/activatedRuleRow.tsx

+ 6 - 1
static/app/views/alerts/list/rules/activatedRuleRow.tsx

@@ -13,6 +13,7 @@ import type {MenuItemProps} from 'sentry/components/dropdownMenu';
 import {DropdownMenu} from 'sentry/components/dropdownMenu';
 import {DropdownMenu} from 'sentry/components/dropdownMenu';
 import ErrorBoundary from 'sentry/components/errorBoundary';
 import ErrorBoundary from 'sentry/components/errorBoundary';
 import IdBadge from 'sentry/components/idBadge';
 import IdBadge from 'sentry/components/idBadge';
+import Link from 'sentry/components/links/link';
 import LoadingIndicator from 'sentry/components/loadingIndicator';
 import LoadingIndicator from 'sentry/components/loadingIndicator';
 import TextOverflow from 'sentry/components/textOverflow';
 import TextOverflow from 'sentry/components/textOverflow';
 import TimeSince from 'sentry/components/timeSince';
 import TimeSince from 'sentry/components/timeSince';
@@ -258,7 +259,11 @@ function ActivatedRuleListRow({
     <ErrorBoundary>
     <ErrorBoundary>
       <AlertNameWrapper>
       <AlertNameWrapper>
         <AlertNameAndStatus>
         <AlertNameAndStatus>
-          <AlertName>{rule.name}</AlertName>
+          <AlertName>
+            <Link to={`/organizations/${orgId}/alerts/rules/details/${rule.id}/`}>
+              {rule.name}
+            </Link>
+          </AlertName>
           <AlertActivationDate>{renderLatestActivation()}</AlertActivationDate>
           <AlertActivationDate>{renderLatestActivation()}</AlertActivationDate>
         </AlertNameAndStatus>
         </AlertNameAndStatus>
       </AlertNameWrapper>
       </AlertNameWrapper>