Browse Source

fix(perf): Rename "Query Insights" in sidebar (#57032)

- Rename Query Insights to Queries, it's clearer
- Use full badges, since now there's plenty of room
George Gritsouk 1 year ago
parent
commit
e5e4e498bd

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

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

+ 3 - 3
static/app/components/sidebar/sidebarItem.tsx

@@ -144,9 +144,9 @@ function SidebarItem({
 
   const badges = (
     <Fragment>
-      {showIsNew && <FeatureBadge type="new" variant="short" />}
-      {isBeta && <FeatureBadge type="beta" variant="short" />}
-      {isAlpha && <FeatureBadge type="alpha" variant="short" />}
+      {showIsNew && <FeatureBadge type="new" />}
+      {isBeta && <FeatureBadge type="beta" />}
+      {isAlpha && <FeatureBadge type="alpha" />}
     </Fragment>
   );