55 camelCaseToParagraph ,
66 formatDateForOverviewBar ,
77} from '../../../../utils' ;
8- import { useLocationPath } from '../../../hooks' ;
8+ import { useHistory , useLocationPath } from '../../../hooks' ;
99// import { translate } from './translate';
1010import { BasePage } from '../BasePage' ;
1111import { Configuration } from './Configuration' ;
@@ -76,6 +76,7 @@ export interface RunDetailRouteParams {
7676
7777export const RunDetail : React . FC = ( ) => {
7878 const locationPath = useLocationPath ( ) ;
79+ const history = useHistory ( ) ;
7980 const { stackComponentId, runId, run } = useService ( ) ;
8081 // debugger;
8182 // debugger;
@@ -157,6 +158,24 @@ export const RunDetail: React.FC = () => {
157158 { run . name }
158159 </ Paragraph >
159160 </ Box >
161+ < Box >
162+ < Paragraph style = { headStyle } > PIPELINE NAME</ Paragraph >
163+ < Paragraph
164+ size = "small"
165+ style = { {
166+ color : '#22BBDD' ,
167+ textDecoration : 'underline' ,
168+ cursor : 'pointer' ,
169+ marginTop : '10px' ,
170+ } }
171+ onClick = { ( event ) => {
172+ event . stopPropagation ( ) ;
173+ history . push ( routePaths . pipeline . configuration ( run . pipeline ?. id ) ) ;
174+ } }
175+ >
176+ { run . pipeline ?. name }
177+ </ Paragraph >
178+ </ Box >
160179 < Box >
161180 < Paragraph style = { headStyle } > STATUS</ Paragraph >
162181 < Paragraph
@@ -173,6 +192,24 @@ export const RunDetail: React.FC = () => {
173192 < RunStatus run = { run } />
174193 </ Paragraph >
175194 </ Box >
195+ < Box >
196+ < Paragraph style = { headStyle } > STACK NAME</ Paragraph >
197+ < Paragraph
198+ size = "small"
199+ style = { {
200+ color : '#22BBDD' ,
201+ textDecoration : 'underline' ,
202+ cursor : 'pointer' ,
203+ marginTop : '10px' ,
204+ } }
205+ onClick = { ( event ) => {
206+ event . stopPropagation ( ) ;
207+ history . push ( routePaths . stack . configuration ( run . stack ?. id ) ) ;
208+ } }
209+ >
210+ { run . stack ?. name }
211+ </ Paragraph >
212+ </ Box >
176213 < Box >
177214 < Paragraph style = { headStyle } > AUTHOR</ Paragraph >
178215 < Paragraph style = { { color : '#515151' , marginTop : '10px' } } >
0 commit comments