Browse Source

feat(perf): Update Database view UI labels (#56623)

~
George Gritsouk 1 year ago
parent
commit
ba13e2d350

+ 3 - 1
static/app/components/sidebar/index.tsx

@@ -234,7 +234,9 @@ function Sidebar({location, organization}: Props) {
                 isBeta={RELEASE_LEVEL === 'beta'}
                 isNew={RELEASE_LEVEL === 'new'}
                 label={
-                  <GuideAnchor target="performance-database">{t('Database')}</GuideAnchor>
+                  <GuideAnchor target="performance-database">
+                    {t('Query Insights')}
+                  </GuideAnchor>
                 }
                 to={`/organizations/${organization.slug}/performance/database/`}
                 id="performance-database"

+ 2 - 2
static/app/views/performance/database/databaseLandingPage.tsx

@@ -40,13 +40,13 @@ function DatabaseLandingPage() {
                 preservePageFilters: true,
               },
               {
-                label: 'Database',
+                label: 'Queries',
               },
             ]}
           />
 
           <Layout.Title>
-            {t('Database')}
+            {t('Queries')}
             <FeatureBadge type={RELEASE_LEVEL} />
           </Layout.Title>
         </Layout.HeaderContent>

+ 1 - 1
static/app/views/performance/database/databaseSpanSummaryPage.tsx

@@ -125,7 +125,7 @@ function SpanSummaryPage({params}: Props) {
                 preservePageFilters: true,
               },
               {
-                label: 'Database',
+                label: 'Queries',
                 to: normalizeUrl(
                   `/organizations/${organization.slug}/performance/database`
                 ),

+ 1 - 1
static/app/views/performance/landing/widgets/components/widgetContainer.spec.tsx

@@ -861,7 +861,7 @@ describe('Performance > Widgets > WidgetContainer', function () {
     );
 
     expect(await screen.findByTestId('performance-widget-title')).toHaveTextContent(
-      'Most Time Spent in DB Queries'
+      'Most Time-Consuming Queries'
     );
     expect(eventsMock).toHaveBeenCalledTimes(1);
     expect(eventsMock).toHaveBeenNthCalledWith(

+ 2 - 2
static/app/views/performance/landing/widgets/widgetDefinitions.tsx

@@ -262,8 +262,8 @@ export const WIDGET_DEFINITIONS: ({
     chartColor: WIDGET_PALETTE[0],
   },
   [PerformanceWidgetSetting.MOST_TIME_SPENT_DB_QUERIES]: {
-    title: t('Most Time Spent in DB Queries'),
-    subTitle: t('Suggested Queries'),
+    title: t('Most Time-Consuming Queries'),
+    subTitle: t('Top queries by total duration'),
     titleTooltip: getTermHelp(organization, PerformanceTerm.MOST_TIME_SPENT_DB_QUERIES),
     fields: [`time_spent_percentage()`],
     dataType: GenericPerformanceWidgetDataType.LINE_LIST,