Skip to content

Commit da548c8

Browse files
chore(preprod): Add clickable link to _admin launchpad page for info fetch (#103189)
Closes EME-627
1 parent ef82c67 commit da548c8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

static/gsAdmin/views/launchpadAdminPage.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Button} from 'sentry/components/core/button';
77
import {CompactSelect} from 'sentry/components/core/compactSelect';
88
import {Input} from 'sentry/components/core/input';
99
import {Container, Flex, Grid} from 'sentry/components/core/layout';
10+
import {Link} from 'sentry/components/core/link';
1011
import {Heading, Text} from 'sentry/components/core/text';
1112
import ConfigStore from 'sentry/stores/configStore';
1213
import type {Region} from 'sentry/types/system';
@@ -380,6 +381,27 @@ function LaunchpadAdminPage() {
380381
{fetchedArtifactInfo && (
381382
<Container background="secondary" border="primary" radius="md" padding="lg">
382383
<Flex direction="column" gap="md">
384+
{fetchedArtifactInfo.artifact_info?.project?.organization_slug &&
385+
fetchedArtifactInfo.artifact_info?.project?.slug &&
386+
fetchedArtifactInfo.artifact_info?.id && (
387+
<Container
388+
background="tertiary"
389+
border="primary"
390+
radius="sm"
391+
padding="md"
392+
>
393+
<Flex direction="column" gap="xs">
394+
<Text bold size="sm">
395+
Artifact URL:
396+
</Text>
397+
<Link
398+
to={`https://${fetchedArtifactInfo.artifact_info.project.organization_slug}.sentry.io/preprod/${fetchedArtifactInfo.artifact_info.project.slug}/${fetchedArtifactInfo.artifact_info.id}/`}
399+
>
400+
{`https://${fetchedArtifactInfo.artifact_info.project.organization_slug}.sentry.io/preprod/${fetchedArtifactInfo.artifact_info.project.slug}/${fetchedArtifactInfo.artifact_info.id}/`}
401+
</Link>
402+
</Flex>
403+
</Container>
404+
)}
383405
<Heading as="h3">Fetched Artifact Information</Heading>
384406
<InfoDisplay>
385407
<pre>{JSON.stringify(fetchedArtifactInfo, null, 2)}</pre>

0 commit comments

Comments
 (0)