Browse Source

feat(dashboards): Adds CM and MEPs beta badges (#37477)

edwardgou-sentry 2 years ago
parent
commit
1ccc473a84

+ 2 - 0
static/app/components/events/eventCustomPerformanceMetrics.tsx

@@ -2,6 +2,7 @@ import styled from '@emotion/styled';
 import {Location} from 'history';
 
 import {SectionHeading} from 'sentry/components/charts/styles';
+import FeatureBadge from 'sentry/components/featureBadge';
 import {Panel} from 'sentry/components/panels';
 import {t} from 'sentry/locale';
 import space from 'sentry/styles/space';
@@ -37,6 +38,7 @@ export default function EventCustomPerformanceMetrics({
   return (
     <Container>
       <SectionHeading>{t('Custom Performance Metrics')}</SectionHeading>
+      <FeatureBadge type="beta" />
       <Measurements>
         {measurementNames.map(name => {
           return (

+ 1 - 1
static/app/utils/customMeasurements/customMeasurementsProvider.tsx

@@ -86,7 +86,7 @@ export function CustomMeasurementsProvider({
           }
 
           const errorResponse =
-            e?.responseJSON ?? t('Unable to fetch custom measurements');
+            e?.responseJSON ?? t('Unable to fetch custom performance metrics');
           addErrorMessage(errorResponse);
           handleXhrErrorResponse(errorResponse)(e);
         });

+ 3 - 0
static/app/views/dashboardsV2/widgetCard/index.tsx

@@ -12,6 +12,7 @@ import Alert from 'sentry/components/alert';
 import Button from 'sentry/components/button';
 import {HeaderTitle} from 'sentry/components/charts/styles';
 import ErrorBoundary from 'sentry/components/errorBoundary';
+import FeatureBadge from 'sentry/components/featureBadge';
 import ExternalLink from 'sentry/components/links/externalLink';
 import {Panel} from 'sentry/components/panels';
 import Placeholder from 'sentry/components/placeholder';
@@ -330,6 +331,7 @@ class WidgetCard extends Component<Props, State> {
                               ),
                             }
                           )}
+                          <FeatureBadge type="beta" />
                         </StoredDataAlert>
                       );
                     }
@@ -344,6 +346,7 @@ class WidgetCard extends Component<Props, State> {
                               ),
                             }
                           )}
+                          <FeatureBadge type="beta" />
                         </StoredDataAlert>
                       );
                     }