@@ -5,14 +5,15 @@ import waitingForEventImg from 'sentry-images/spot/waiting-for-event.svg';
5
5
6
6
import { ButtonBar } from 'sentry/components/core/button/buttonBar' ;
7
7
import { GuidedSteps } from 'sentry/components/guidedSteps/guidedSteps' ;
8
+ import ProjectBadge from 'sentry/components/idBadge/projectBadge' ;
8
9
import { AuthTokenGeneratorProvider } from 'sentry/components/onboarding/gettingStartedDoc/authTokenGenerator' ;
9
10
import { OnboardingCodeSnippet } from 'sentry/components/onboarding/gettingStartedDoc/onboardingCodeSnippet' ;
10
11
import { TabbedCodeSnippet } from 'sentry/components/onboarding/gettingStartedDoc/step' ;
11
12
import type { DocsParams } from 'sentry/components/onboarding/gettingStartedDoc/types' ;
12
13
import { useSourcePackageRegistries } from 'sentry/components/onboarding/gettingStartedDoc/useSourcePackageRegistries' ;
13
14
import { useLoadGettingStarted } from 'sentry/components/onboarding/gettingStartedDoc/utils/useLoadGettingStarted' ;
14
15
import platforms from 'sentry/data/platforms' ;
15
- import { t } from 'sentry/locale' ;
16
+ import { t , tct } from 'sentry/locale' ;
16
17
import ConfigStore from 'sentry/stores/configStore' ;
17
18
import { useLegacyStore } from 'sentry/stores/useLegacyStore' ;
18
19
import { space } from 'sentry/styles/space' ;
@@ -25,6 +26,16 @@ import {useNavigate} from 'sentry/utils/useNavigate';
25
26
import useOrganization from 'sentry/utils/useOrganization' ;
26
27
import FirstEventIndicator from 'sentry/views/onboarding/components/firstEventIndicator' ;
27
28
29
+ export function SetupTitle ( { project} : { project : Project } ) {
30
+ return (
31
+ < SetupTitleWrapper >
32
+ { tct ( 'Set up the Sentry SDK for\u00A0[projectBadge]' , {
33
+ projectBadge : < ProjectBadge project = { project } avatarSize = { 16 } /> ,
34
+ } ) }
35
+ </ SetupTitleWrapper >
36
+ ) ;
37
+ }
38
+
28
39
export default function UpdatedEmptyState ( { project} : { project ?: Project } ) {
29
40
const api = useApi ( ) ;
30
41
const organization = useOrganization ( ) ;
@@ -127,7 +138,7 @@ export default function UpdatedEmptyState({project}: {project?: Project}) {
127
138
< Divider />
128
139
< Body >
129
140
< Setup >
130
- < BodyTitle > { t ( 'Set up the Sentry SDK' ) } </ BodyTitle >
141
+ < SetupTitle project = { project } / >
131
142
< GuidedSteps
132
143
initialStep = { decodeInteger ( location . query . guidedStep ) }
133
144
onStepChange = { step => {
@@ -371,12 +382,6 @@ const HeaderWrapper = styled('div')`
371
382
padding: ${ space ( 4 ) } ;
372
383
` ;
373
384
374
- const BodyTitle = styled ( 'div' ) `
375
- font-size: ${ p => p . theme . fontSizeExtraLarge } ;
376
- font-weight: ${ p => p . theme . fontWeightBold } ;
377
- margin-bottom: ${ space ( 1 ) } ;
378
- ` ;
379
-
380
385
const Setup = styled ( 'div' ) `
381
386
padding: ${ space ( 4 ) } ;
382
387
@@ -390,6 +395,17 @@ const Setup = styled('div')`
390
395
}
391
396
` ;
392
397
398
+ export const BodyTitle = styled ( 'div' ) `
399
+ font-size: ${ p => p . theme . fontSizeExtraLarge } ;
400
+ font-weight: ${ p => p . theme . fontWeightBold } ;
401
+ margin-bottom: ${ space ( 1 ) } ;
402
+ ` ;
403
+
404
+ const SetupTitleWrapper = styled ( BodyTitle ) `
405
+ display: flex;
406
+ align-items: center;
407
+ ` ;
408
+
393
409
const Preview = styled ( 'div' ) `
394
410
padding: ${ space ( 4 ) } ;
395
411
` ;
0 commit comments