Skip to content

Commit af8633a

Browse files
authored
ref(settings): Rename auth tokens and merge nav sections (#92803)
Rename `Auth Token` and `User Auth Token` to `Organization Token` and `Personal Token` respectively. Merge the nav section `API` into `Developer Settings`. - closes [TET-556: Merge sections and rename Auth Tokens and User Auth Tokens](https://linear.app/getsentry/issue/TET-556/merge-sections-and-rename-auth-tokens-and-user-auth-tokens) - docs update in getsentry/sentry-docs#13914
1 parent ebfa5d9 commit af8633a

File tree

22 files changed

+67
-89
lines changed

22 files changed

+67
-89
lines changed

static/app/components/sidebar/sidebarDropdown/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default function SidebarDropdown({orientation, collapsed, hideOrgLinks}:
154154
{t('User settings')}
155155
</SidebarMenuItem>
156156
<SidebarMenuItem to="/settings/account/api/">
157-
{t('User auth tokens')}
157+
{t('Personal Tokens')}
158158
</SidebarMenuItem>
159159
{hasOrganization && (
160160
<Hook

static/app/gettingStartedDocs/java/java.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const onboarding: OnboardingConfig<PlatformOptions> = {
198198
configurations: [
199199
{
200200
description: tct(
201-
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Auth Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
201+
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
202202
{
203203
link: <Link to="/settings/auth-tokens/" />,
204204
}

static/app/gettingStartedDocs/java/log4j2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const onboarding: OnboardingConfig<PlatformOptions> = {
219219
configurations: [
220220
{
221221
description: tct(
222-
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Auth Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
222+
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
223223
{
224224
link: <Link to="/settings/auth-tokens/" />,
225225
}

static/app/gettingStartedDocs/java/logback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const onboarding: OnboardingConfig<PlatformOptions> = {
224224
configurations: [
225225
{
226226
description: tct(
227-
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Auth Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
227+
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
228228
{
229229
link: <Link to="/settings/auth-tokens/" />,
230230
}

static/app/gettingStartedDocs/java/spring-boot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const onboarding: OnboardingConfig<PlatformOptions> = {
192192
configurations: [
193193
{
194194
description: tct(
195-
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Auth Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
195+
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
196196
{
197197
link: <Link to="/settings/auth-tokens/" />,
198198
}

static/app/gettingStartedDocs/java/spring.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const onboarding: OnboardingConfig<PlatformOptions> = {
236236
description: (
237237
<p>
238238
{tct(
239-
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Auth Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
239+
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
240240
{
241241
link: <Link to="/settings/auth-tokens/" />,
242242
}

static/app/gettingStartedDocs/kotlin/kotlin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const onboarding: OnboardingConfig<PlatformOptions> = {
160160
configurations: [
161161
{
162162
description: tct(
163-
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Auth Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
163+
'To see source context in Sentry, you have to generate an auth token by visiting the [link:Organization Tokens] settings. You can then set the token as an environment variable that is used by the build plugins.',
164164
{
165165
link: <Link to="/settings/auth-tokens/" />,
166166
}

static/app/routes.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,18 +415,18 @@ function buildRoutes() {
415415
/>
416416
<Route path="api/" name={t('API')}>
417417
<IndexRedirect to="auth-tokens/" />
418-
<Route path="auth-tokens/" name={t('User Auth Tokens')}>
418+
<Route path="auth-tokens/" name={t('Personal Tokens')}>
419419
<IndexRoute
420420
component={make(() => import('sentry/views/settings/account/apiTokens'))}
421421
/>
422422
<Route
423423
path="new-token/"
424-
name={t('Create New Token')}
424+
name={t('Create Personal Token')}
425425
component={make(() => import('sentry/views/settings/account/apiNewToken'))}
426426
/>
427427
<Route
428428
path=":tokenId/"
429-
name={t('Edit User Auth Token')}
429+
name={t('Edit Personal Token')}
430430
component={make(
431431
() => import('sentry/views/settings/account/apiTokenDetails')
432432
)}
@@ -983,20 +983,20 @@ function buildRoutes() {
983983
)}
984984
/>
985985
</Route>
986-
<Route path="auth-tokens/" name={t('Auth Tokens')}>
986+
<Route path="auth-tokens/" name={t('Organization Tokens')}>
987987
<IndexRoute
988988
component={make(() => import('sentry/views/settings/organizationAuthTokens'))}
989989
/>
990990
<Route
991991
path="new-token/"
992-
name={t('Create New Auth Token')}
992+
name={t('Create New Organization Token')}
993993
component={make(
994994
() => import('sentry/views/settings/organizationAuthTokens/newAuthToken')
995995
)}
996996
/>
997997
<Route
998998
path=":tokenId/"
999-
name={t('Edit Auth Token')}
999+
name={t('Edit Organization Token')}
10001000
component={make(
10011001
() => import('sentry/views/settings/organizationAuthTokens/authTokenDetails')
10021002
)}

static/app/types/hooks.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type SelectorItems from 'sentry/components/timeRangeSelector/selectorItem
1010
import type {TitleableModuleNames} from 'sentry/views/insights/common/components/modulePageProviders';
1111
import type {OrganizationStatsProps} from 'sentry/views/organizationStats';
1212
import type {RouteAnalyticsContext} from 'sentry/views/routeAnalyticsContextProvider';
13-
import type {NavigationItem, NavigationSection} from 'sentry/views/settings/types';
13+
import type {NavigationSection} from 'sentry/views/settings/types';
1414

1515
import type {Integration, IntegrationProvider} from './integrations';
1616
import type {
@@ -284,7 +284,6 @@ type OnboardingHooks = {
284284
* Settings navigation hooks.
285285
*/
286286
type SettingsHooks = {
287-
'settings:api-navigation-config': SettingsItemsHook;
288287
'settings:organization-navigation': OrganizationSettingsHook;
289288
'settings:organization-navigation-config': SettingsConfigHook;
290289
};
@@ -455,11 +454,6 @@ type OrganizationSettingsHook = (organization: Organization) => React.ReactEleme
455454
*/
456455
type SettingsConfigHook = (organization: Organization) => NavigationSection;
457456

458-
/**
459-
* Provides additional setting navigation items
460-
*/
461-
type SettingsItemsHook = (organization?: Organization) => NavigationItem[];
462-
463457
/**
464458
* Each sidebar label is wrapped with this hook, to allow sidebar item
465459
* augmentation.

static/app/views/settings/account/apiNewToken.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export default function ApiNewToken() {
5252
);
5353

5454
return (
55-
<SentryDocumentTitle title={t('Create User Auth Token')}>
55+
<SentryDocumentTitle title={t('Create New Personal Token')}>
5656
<div>
57-
<SettingsPageHeader title={t('Create New User Auth Token')} />
57+
<SettingsPageHeader title={t('Create New Personal Token')} />
5858
<TextBlock>
5959
{t(
60-
"Authentication tokens allow you to perform actions against the Sentry API on behalf of your account. They're the easiest way to get started using the API."
60+
"Personal tokens allow you to perform actions against the Sentry API on behalf of your account. They're the easiest way to get started using the API."
6161
)}
6262
</TextBlock>
6363
<TextBlock>

0 commit comments

Comments
 (0)