Browse Source

fix(profiling): update text and hide flag when we enter GA (#47894)

Profiling -> Profiles is more accurate in this context + hide beta flag
when GA is enabled
Jonas 1 year ago
parent
commit
af31f882bb
1 changed files with 6 additions and 2 deletions
  1. 6 2
      static/app/views/performance/transactionSummary/header.tsx

+ 6 - 2
static/app/views/performance/transactionSummary/header.tsx

@@ -230,8 +230,12 @@ function TransactionHeader({
                 textValue={t('Profiling')}
                 hidden={!hasProfiling}
               >
-                {t('Profiling')}
-                <FeatureBadge type="beta" tooltipProps={{disabled: true}} />
+                {t('Profiles')}
+                {organization.features.includes('profiling-ga') ? (
+                  <FeatureBadge type="new" tooltipProps={{disabled: true}} />
+                ) : (
+                  <FeatureBadge type="beta" tooltipProps={{disabled: true}} />
+                )}
               </TabList.Item>
             </TabList>
           );