File tree Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -2496,14 +2496,21 @@ function buildRoutes(): RouteObject[] {
2496
2496
2497
2497
const preprodChildren : SentryRouteObject [ ] = [
2498
2498
{
2499
- index : true ,
2499
+ path : ':artifactId/' ,
2500
2500
component : make ( ( ) => import ( 'sentry/views/preprod/buildDetails/buildDetails' ) ) ,
2501
2501
deprecatedRouteProps : true ,
2502
2502
} ,
2503
+ {
2504
+ path : 'compare/:headArtifactId/:baseArtifactId/' ,
2505
+ component : make (
2506
+ ( ) => import ( 'sentry/views/preprod/buildComparison/buildComparison' )
2507
+ ) ,
2508
+ deprecatedRouteProps : true ,
2509
+ } ,
2503
2510
] ;
2504
2511
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' ) ) ,
2507
2514
withOrgPath : true ,
2508
2515
children : preprodChildren ,
2509
2516
deprecatedRouteProps : true ,
Original file line number Diff line number Diff line change
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
+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments