Skip to content

Commit 7d3076e

Browse files
authored
feat(preprod): Create shell of buildComparison page and wireup routes (#97731)
Create shell of buildComparison page and wireup routes Just placeholder content for now, will begin implementing designs soon
1 parent 001187b commit 7d3076e

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

static/app/routes.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,14 +2496,21 @@ function buildRoutes(): RouteObject[] {
24962496

24972497
const preprodChildren: SentryRouteObject[] = [
24982498
{
2499-
index: true,
2499+
path: ':artifactId/',
25002500
component: make(() => import('sentry/views/preprod/buildDetails/buildDetails')),
25012501
deprecatedRouteProps: true,
25022502
},
2503+
{
2504+
path: 'compare/:headArtifactId/:baseArtifactId/',
2505+
component: make(
2506+
() => import('sentry/views/preprod/buildComparison/buildComparison')
2507+
),
2508+
deprecatedRouteProps: true,
2509+
},
25032510
];
25042511
const preprodRoutes: SentryRouteObject = {
2505-
path: '/preprod/:projectId/:artifactId/',
2506-
component: make(() => import('sentry/views/preprod/buildDetails/index')),
2512+
path: '/preprod/:projectId/',
2513+
component: make(() => import('sentry/views/preprod/index')),
25072514
withOrgPath: true,
25082515
children: preprodChildren,
25092516
deprecatedRouteProps: true,
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import * as Layout from 'sentry/components/layouts/thirds';
2+
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
3+
import {useParams} from 'sentry/utils/useParams';
4+
5+
export default function BuildComparison() {
6+
const params = useParams<{
7+
baseArtifactId: string | null;
8+
headArtifactId: string | null;
9+
projectId: string;
10+
}>();
11+
const headArtifactId = params.headArtifactId;
12+
const baseArtifactId = params.baseArtifactId;
13+
const projectId = params.projectId;
14+
15+
return (
16+
<SentryDocumentTitle title="Build comparison">
17+
<Layout.Page>
18+
<Layout.Header>Build comparison header</Layout.Header>
19+
20+
<Layout.Body>
21+
<Layout.Main>
22+
Build comparison main content head: {headArtifactId} base: {baseArtifactId}{' '}
23+
project: {projectId}
24+
</Layout.Main>
25+
</Layout.Body>
26+
</Layout.Page>
27+
</SentryDocumentTitle>
28+
);
29+
}

0 commit comments

Comments
 (0)