Skip to content

Commit 6d6bdf3

Browse files
authored
feat(perf): Change UI label of "HTTP" module to "Requests" (#68211)
We like that more for now, but also this makes it easy to change later. - Extract module title to constant - Rename module
1 parent eef0b0f commit 6d6bdf3

File tree

5 files changed

+21
-10
lines changed

5 files changed

+21
-10
lines changed

static/app/components/sidebar/index.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ import useOrganization from 'sentry/utils/useOrganization';
5252
import useProjects from 'sentry/utils/useProjects';
5353
import {normalizeUrl} from 'sentry/utils/withDomainRequired';
5454
import MetricsOnboardingSidebar from 'sentry/views/metrics/ddmOnboarding/sidebar';
55-
import {releaseLevelAsBadgeProps as HTTPModuleBadgeProps} from 'sentry/views/performance/http/settings';
55+
import {
56+
MODULE_TITLE as HTTP_MODULE_TITLE,
57+
releaseLevelAsBadgeProps as HTTPModuleBadgeProps,
58+
} from 'sentry/views/performance/http/settings';
5659

5760
import {ProfilingOnboardingSidebar} from '../profiling/ProfilingOnboarding/profilingOnboardingSidebar';
5861

@@ -269,7 +272,11 @@ function Sidebar() {
269272
<Feature features="performance-http-view" organization={organization}>
270273
<SidebarItem
271274
{...sidebarItemProps}
272-
label={<GuideAnchor target="performance-http">{t('HTTP')}</GuideAnchor>}
275+
label={
276+
<GuideAnchor target="performance-http">
277+
{HTTP_MODULE_TITLE}
278+
</GuideAnchor>
279+
}
273280
to={`/organizations/${organization.slug}/performance/http/`}
274281
id="performance-http"
275282
icon={<SubitemDot collapsed />}

static/app/views/performance/http/httpDomainSummaryPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
import {DurationChart} from 'sentry/views/performance/http/durationChart';
2828
import {HTTPSamplesPanel} from 'sentry/views/performance/http/httpSamplesPanel';
2929
import {ResponseRateChart} from 'sentry/views/performance/http/responseRateChart';
30-
import {RELEASE_LEVEL} from 'sentry/views/performance/http/settings';
30+
import {MODULE_TITLE, RELEASE_LEVEL} from 'sentry/views/performance/http/settings';
3131
import {ThroughputChart} from 'sentry/views/performance/http/throughputChart';
3232
import {MetricReadout} from 'sentry/views/performance/metricReadout';
3333
import * as ModuleLayout from 'sentry/views/performance/moduleLayout';
@@ -159,7 +159,7 @@ export function HTTPDomainSummaryPage() {
159159
preservePageFilters: true,
160160
},
161161
{
162-
label: 'HTTP',
162+
label: MODULE_TITLE,
163163
to: normalizeUrl(`/organizations/${organization.slug}/performance/http`),
164164
preservePageFilters: true,
165165
},
@@ -320,7 +320,7 @@ function LandingPageWithProviders() {
320320
return (
321321
<ModulePageProviders
322322
baseURL="/performance/http"
323-
title={[t('Performance'), t('HTTP'), t('Domain Summary')].join(' — ')}
323+
title={[t('Performance'), MODULE_TITLE, t('Domain Summary')].join(' — ')}
324324
features="performance-http-view"
325325
>
326326
<HTTPDomainSummaryPage />

static/app/views/performance/http/httpLandingPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {useOnboardingProject} from 'sentry/views/performance/browser/webVitals/u
1919
import {DomainsTable, isAValidSort} from 'sentry/views/performance/http/domainsTable';
2020
import {DurationChart} from 'sentry/views/performance/http/durationChart';
2121
import {ResponseRateChart} from 'sentry/views/performance/http/responseRateChart';
22-
import {RELEASE_LEVEL} from 'sentry/views/performance/http/settings';
22+
import {MODULE_TITLE, RELEASE_LEVEL} from 'sentry/views/performance/http/settings';
2323
import {ThroughputChart} from 'sentry/views/performance/http/throughputChart';
2424
import * as ModuleLayout from 'sentry/views/performance/moduleLayout';
2525
import {ModulePageProviders} from 'sentry/views/performance/modulePageProviders';
@@ -114,13 +114,13 @@ export function HTTPLandingPage() {
114114
preservePageFilters: true,
115115
},
116116
{
117-
label: t('HTTP'),
117+
label: MODULE_TITLE,
118118
},
119119
]}
120120
/>
121121

122122
<Layout.Title>
123-
{t('HTTP')}
123+
{MODULE_TITLE}
124124
<FeatureBadge type={RELEASE_LEVEL} />
125125
</Layout.Title>
126126
</Layout.HeaderContent>
@@ -204,7 +204,7 @@ const DOMAIN_TABLE_ROW_COUNT = 10;
204204
function LandingPageWithProviders() {
205205
return (
206206
<ModulePageProviders
207-
title={[t('Performance'), t('HTTP')].join(' — ')}
207+
title={[t('Performance'), MODULE_TITLE].join(' — ')}
208208
baseURL="/performance/http"
209209
features="performance-http-view"
210210
>

static/app/views/performance/http/settings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import type {BadgeType} from 'sentry/components/featureBadge';
2+
import {t} from 'sentry/locale';
3+
4+
export const MODULE_TITLE = t('Requests');
25

36
export const RELEASE_LEVEL: BadgeType = 'alpha';
47

static/app/views/performance/landing/widgets/components/selectableList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {getConfigurePerformanceDocsLink} from 'sentry/utils/docs';
1414
import usePageFilters from 'sentry/utils/usePageFilters';
1515
import useProjects from 'sentry/utils/useProjects';
1616
import {NoDataMessage} from 'sentry/views/performance/database/noDataMessage';
17+
import {MODULE_TITLE as HTTP_MODULE_TITLE} from 'sentry/views/performance/http/settings';
1718
import {getIsMultiProject} from 'sentry/views/performance/utils';
1819

1920
type Props = {
@@ -128,7 +129,7 @@ export function WidgetAddInstrumentationWarning({type}: {type: 'db' | 'http'}) {
128129
{tct(
129130
'No transactions with [spanCategory] spans found. You may need to add integrations to your [link] to capture these spans.',
130131
{
131-
spanCategory: type === 'db' ? t('Database') : t('HTTP'),
132+
spanCategory: type === 'db' ? t('Database') : HTTP_MODULE_TITLE,
132133
link: (
133134
<ExternalLink href={docsLink}>
134135
{t('performance monitoring setup')}

0 commit comments

Comments
 (0)