Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions static/gsAdmin/views/launchpadAdminPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,29 @@ function LaunchpadAdminPage() {
{fetchedArtifactInfo && (
<Container background="secondary" border="primary" radius="md" padding="lg">
<Flex direction="column" gap="md">
{fetchedArtifactInfo.artifact_info?.project?.organization_slug &&
fetchedArtifactInfo.artifact_info?.project?.slug &&
fetchedArtifactInfo.artifact_info?.id && (
<Container
background="tertiary"
border="primary"
radius="sm"
padding="md"
>
<Flex direction="column" gap="xs">
<Text bold size="sm">
Artifact URL:
</Text>
<StyledLink
href={`https://${fetchedArtifactInfo.artifact_info.project.organization_slug}.sentry.io/preprod/${fetchedArtifactInfo.artifact_info.project.slug}/${fetchedArtifactInfo.artifact_info.id}/`}
target="_blank"
rel="noopener noreferrer"
>
{`https://${fetchedArtifactInfo.artifact_info.project.organization_slug}.sentry.io/preprod/${fetchedArtifactInfo.artifact_info.project.slug}/${fetchedArtifactInfo.artifact_info.id}/`}
</StyledLink>
</Flex>
</Container>
)}
<Heading as="h3">Fetched Artifact Information</Heading>
<InfoDisplay>
<pre>{JSON.stringify(fetchedArtifactInfo, null, 2)}</pre>
Expand All @@ -400,6 +423,14 @@ const StyledInput = styled(Input)`
max-width: 300px;
`;

const StyledLink = styled('a')`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color: ${p => p.theme.blue300};
text-decoration: none;
&:hover {
text-decoration: underline;
}
`;

const InfoDisplay = styled('div')`
background: ${p => p.theme.background};
border: 1px solid ${p => p.theme.border};
Expand Down
Loading