Skip to content

Commit 2314480

Browse files
authored
feat(preprod): Add Beta badge to preprod (#102129)
Resolves EME-465 <img width="3802" height="314" alt="CleanShot 2025-10-27 at 11 58 32@2x" src="https://github.com/user-attachments/assets/3f8d504b-a76f-4f90-8045-f1ae9cba14cb" /> <img width="3830" height="290" alt="CleanShot 2025-10-27 at 11 58 45@2x" src="https://github.com/user-attachments/assets/ab58ff8c-5436-449b-a428-0edb34ad0002" /> <img width="1062" height="290" alt="CleanShot 2025-10-27 at 11 39 38@2x" src="https://github.com/user-attachments/assets/f5bb862a-4b3b-487f-9200-0d3afc74e585" />
1 parent 4f6597b commit 2314480

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

static/app/views/preprod/buildComparison/header/buildCompareHeaderContent.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styled from '@emotion/styled';
33
import {PlatformIcon} from 'platformicons';
44

55
import {Breadcrumbs, type Crumb} from 'sentry/components/breadcrumbs';
6+
import {FeatureBadge} from 'sentry/components/core/badge/featureBadge';
67
import {Flex, Stack} from 'sentry/components/core/layout';
78
import {Text} from 'sentry/components/core/text';
89
import {Heading} from 'sentry/components/core/text/heading';
@@ -49,7 +50,10 @@ export function BuildCompareHeaderContent(props: BuildCompareHeaderContentProps)
4950
return (
5051
<Flex justify="between" align="center" gap="lg">
5152
<Stack gap="lg" style={{padding: `0 0 ${theme.space.lg} 0`}}>
52-
<Breadcrumbs crumbs={breadcrumbs} />
53+
<Flex align="center" gap="sm">
54+
<Breadcrumbs crumbs={breadcrumbs} />
55+
<FeatureBadge type="beta" />
56+
</Flex>
5357
<Heading as="h1">Build comparison</Heading>
5458
<Flex gap="lg" wrap="wrap" align="center">
5559
<Flex gap="sm" align="center">

static/app/views/preprod/buildDetails/header/buildDetailsHeaderContent.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import {Link} from 'react-router-dom';
33

44
import {Breadcrumbs, type Crumb} from 'sentry/components/breadcrumbs';
5+
import {FeatureBadge} from 'sentry/components/core/badge/featureBadge';
56
import {Button} from 'sentry/components/core/button';
67
import {Flex} from 'sentry/components/core/layout';
78
import DropdownButton from 'sentry/components/dropdownButton';
@@ -124,7 +125,10 @@ export function BuildDetailsHeaderContent(props: BuildDetailsHeaderContentProps)
124125
return (
125126
<React.Fragment>
126127
<Layout.HeaderContent>
127-
<Breadcrumbs crumbs={breadcrumbs} />
128+
<Flex align="center" gap="sm">
129+
<Breadcrumbs crumbs={breadcrumbs} />
130+
<FeatureBadge type="beta" />
131+
</Flex>
128132
<Layout.Title>
129133
{project && <IdBadge project={project} avatarSize={28} hideName />}
130134
<Version version={version} anchor={false} truncate />

static/app/views/releases/detail/header/releaseHeader.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from 'react';
12
import styled from '@emotion/styled';
23
import type {Location} from 'history';
34
import pick from 'lodash/pick';
@@ -92,9 +93,14 @@ function ReleaseHeader({
9293
<FeatureBadge type="new" />
9394
</BadgeWrapper>
9495
) : (
95-
<NavTabsBadge type="default">
96-
{formatAbbreviatedNumber(numberOfMobileBuilds)}
97-
</NavTabsBadge>
96+
<React.Fragment>
97+
<NavTabsBadge type="default">
98+
{formatAbbreviatedNumber(numberOfMobileBuilds)}
99+
</NavTabsBadge>
100+
<BadgeWrapper>
101+
<FeatureBadge type="beta" />
102+
</BadgeWrapper>
103+
</React.Fragment>
98104
),
99105
}),
100106
textValue: t('Builds %s', numberOfMobileBuilds),

0 commit comments

Comments
 (0)