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

feat(perf): Add beta badge to tag explorer (#26034)

Adds a beta badge to the tag explorer to point out that it's a new feature.
k-fish 3 лет назад
Родитель
Сommit
7538818bd9
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      static/app/views/performance/transactionSummary/tagExplorer.tsx

+ 7 - 1
static/app/views/performance/transactionSummary/tagExplorer.tsx

@@ -4,6 +4,7 @@ import styled from '@emotion/styled';
 import {Location, LocationDescriptorObject, Query} from 'history';
 
 import {GuideAnchor} from 'app/components/assistant/guideAnchor';
+import FeatureBadge from 'app/components/featureBadge';
 import GridEditable, {
   COL_WIDTH_UNDEFINED,
   GridColumn,
@@ -475,7 +476,12 @@ function TagsHeader(props: HeaderProps) {
 
   return (
     <Header>
-      <SectionHeading>{t('Suspect Tags')}</SectionHeading>
+      <SectionHeading>
+        <div>
+          {t('Suspect Tags')}
+          <FeatureBadge type="beta" noTooltip />
+        </div>
+      </SectionHeading>
       <StyledPagination pageLinks={pageLinks} onCursor={handleCursor} size="small" />
     </Header>
   );