Skip to content

Commit 2f3ebac

Browse files
feat(toolbar): Iterate on Dev Toolbar settings page copy (#83963)
New copy writing, Beta tag, and link to the Docs ![SCR-20250123-mpbt](https://github.com/user-attachments/assets/517efe62-ff09-468f-8c36-e5e8a7b8a170) --------- Co-authored-by: Michelle Zhang <[email protected]>
1 parent 047d494 commit 2f3ebac

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

static/app/views/settings/project/navigationConfiguration.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Badge from 'sentry/components/badge/badge';
12
import {t} from 'sentry/locale';
23
import ConfigStore from 'sentry/stores/configStore';
34
import type {Organization} from 'sentry/types/organization';
@@ -68,8 +69,9 @@ export default function getConfiguration({
6869
},
6970
{
7071
path: `${pathPrefix}/toolbar/`,
71-
title: t('Developer Toolbar'),
72+
title: t('Dev Toolbar'),
7273
show: () => !!organization?.features?.includes('dev-toolbar-ui'),
74+
badge: () => <Badge type="beta">Beta</Badge>,
7375
},
7476
],
7577
},

static/app/views/settings/project/projectToolbar.tsx

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Access from 'sentry/components/acl/access';
22
import Feature from 'sentry/components/acl/feature';
33
import Alert from 'sentry/components/alert';
4+
import {LinkButton} from 'sentry/components/button';
45
import {CopyToClipboardButton} from 'sentry/components/copyToClipboardButton';
56
import Form from 'sentry/components/forms/form';
67
import JsonForm from 'sentry/components/forms/jsonForm';
@@ -14,6 +15,7 @@ import type {Project} from 'sentry/types/project';
1415
import {decodeScalar} from 'sentry/utils/queryString';
1516
import {useLocation} from 'sentry/utils/useLocation';
1617
import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
18+
import TextBlock from 'sentry/views/settings/components/text/textBlock';
1719
import PermissionAlert from 'sentry/views/settings/project/permissionAlert';
1820

1921
type RouteParams = {
@@ -41,8 +43,19 @@ function ProjectToolbarSettings({organization, project, params: {projectId}}: Pr
4143

4244
// additional data/props that is related to rendering of form field rather than data
4345
label: t('Allowed Origins'),
44-
help: t(
45-
'Domain URLs where the dev toolbar can be installed and access your data. Wildcards (*) are supported. Please separate multiple entries with a newline.'
46+
help: (
47+
<div>
48+
{t('Domains where the dev toolbar is allowed to access your data.')}
49+
<br />
50+
{t(
51+
'Protocol and port are optional; wildcard subdomains (*) are are supported.'
52+
)}
53+
<br />
54+
{tct(
55+
'Example: [code:localhost] is equivalent to [code:http://localhost] or [code:localhost:80]',
56+
{code: <code />}
57+
)}
58+
</div>
4659
),
4760
getData: data => ({options: data}),
4861
},
@@ -52,12 +65,24 @@ function ProjectToolbarSettings({organization, project, params: {projectId}}: Pr
5265

5366
return (
5467
<SentryDocumentTitle title={t('Toolbar Settings')} projectSlug={project.slug}>
55-
<SettingsPageHeader title={t('Developer Toolbar')} />
68+
<SettingsPageHeader
69+
title={t('Dev Toolbar')}
70+
action={
71+
<LinkButton href="https://docs.sentry.io/product/dev-toolbar/" external>
72+
{t('Read the Docs')}
73+
</LinkButton>
74+
}
75+
/>
5676
<Feature
5777
features="dev-toolbar-ui"
5878
organization={organization}
5979
renderDisabled={NoAccess}
6080
>
81+
<TextBlock>
82+
{t(
83+
`Bring critical Sentry insights and tools directly into your web app for easier troubleshooting with the Dev Toolbar.`
84+
)}
85+
</TextBlock>
6186
<PermissionAlert project={project} />
6287
{domain && (
6388
<Alert type="info" showIcon>

0 commit comments

Comments
 (0)