Browse Source

chore(profiling): Update empty state wording in profiling widgets (#53373)

Clarify the empty states imply no regression/improvement.
Tony Xiao 1 year ago
parent
commit
8c31900dda
1 changed files with 5 additions and 1 deletions
  1. 5 1
      static/app/views/profiling/landing/functionTrendsWidget.tsx

+ 5 - 1
static/app/views/profiling/landing/functionTrendsWidget.tsx

@@ -120,7 +120,11 @@ export function FunctionTrendsWidget({
         )}
         {!isError && !isLoading && !hasTrends && (
           <EmptyStateWarning>
-            <p>{t('No functions found')}</p>
+            {trendType === 'regression' ? (
+              <p>{t('No regressed functions detected')}</p>
+            ) : (
+              <p>{t('No improved functions detected')}</p>
+            )}
           </EmptyStateWarning>
         )}
         {hasTrends && (