-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide filter query by job displayName, add pristine jobs reports (#897
) * Provide filter query by job displayName, add disabled pristine jobs reports * Added Pristine Jobs to React UI * Provide filter query by job displayName, add disabled pristine jobs reports Co-authored-by: Miguel Sousa <[email protected]> Co-authored-by: Victor Castell <[email protected]>
- Loading branch information
1 parent
f1ba46a
commit 79eaa39
Showing
11 changed files
with
130 additions
and
87 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: | ||
Disallow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as React from 'react'; | ||
import { FC } from 'react'; | ||
import Icon from '@material-ui/icons/NewReleases'; | ||
|
||
import CardWithIcon from './CardWithIcon'; | ||
|
||
interface Props { | ||
value?: string; | ||
} | ||
|
||
const UntriggeredJobs: FC<Props> = ({ value }) => { | ||
return ( | ||
<CardWithIcon | ||
to='/jobs?filter={"status":"untriggered"}' | ||
icon={Icon} | ||
title='Untriggered Jobs' | ||
subtitle={value} | ||
/> | ||
); | ||
}; | ||
|
||
export default UntriggeredJobs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
import * as React from "react"; | ||
import SuccessIcon from '@material-ui/icons/CheckCircle'; | ||
import FailedIcon from '@material-ui/icons/Cancel'; | ||
import UntriggeredIcon from '@material-ui/icons/Timer'; | ||
import { Tooltip } from '@material-ui/core'; | ||
|
||
const StatusField = (props: any) => { | ||
return props.record === undefined ? null : (props.record[props.source] === 'success' ? <Tooltip title="Success"><SuccessIcon htmlColor="green" /></Tooltip> : <Tooltip title="Success"><FailedIcon htmlColor="red" /></Tooltip>); | ||
if (props.record === undefined) { | ||
return null | ||
} else { | ||
if (props.record[props.source] === 'success') { | ||
return <Tooltip title="Success"><SuccessIcon htmlColor="green" /></Tooltip> | ||
} else if (props.record[props.source] === 'failed') { | ||
return <Tooltip title="Error"><FailedIcon htmlColor="red" /></Tooltip> | ||
} else { | ||
return <Tooltip title="Waiting to Run"><UntriggeredIcon htmlColor="blue" /></Tooltip> | ||
} | ||
} | ||
}; | ||
|
||
export default StatusField; |