File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import LeftNavContainer from '@/components/NavigationBar/LeftNavContainer'
2+
23import dynamic from 'next/dynamic'
34import { NuqsAdapter } from 'nuqs/adapters/next/app'
45
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export type JobType = {
3636 command_name : string
3737 cluster_id : string
3838 cluster_name : string
39+ error ?: string
3940 context ?: {
4041 properties : {
4142 'spark.driver.cores' : string
Original file line number Diff line number Diff line change 11'use client'
22
3- import { PageHeader , SectionHeader } from '@patterninc/react-ui'
3+ import { Alert , PageHeader , SectionHeader } from '@patterninc/react-ui'
44import styles from './_job-Details.module.scss'
55import { JobDataTypesProps } from '../Helper'
66import SyntaxHighlighter from 'react-syntax-highlighter'
@@ -48,6 +48,9 @@ const JobDetailsHeader = ({ jobData }: JobDataTypesProps): React.JSX.Element =>
4848 className = { `${ styles . bottomSectionContainer } bgc-white pat-border-t bdrc-medium-purple` }
4949 >
5050 < div className = 'flex flex-direction-column pat-gap-4 pat-p-4' >
51+ { jobData ?. status === 'FAILED' ? (
52+ < Alert type = 'error' text = { jobData ?. error } />
53+ ) : null }
5154 { yamlContext ? (
5255 < div >
5356 < SectionHeader title = 'Context' />
You can’t perform that action at this time.
0 commit comments