-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made it easier to identify different type of runs based on their names
- Loading branch information
1 parent
6185d8a
commit 000ee58
Showing
10 changed files
with
141 additions
and
20 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
src/views/testingPerfs/content/runs/data/availableRuns/getQueries.graphql
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
5 changes: 3 additions & 2 deletions
5
src/views/testingPerfs/content/runs/data/compareRuns/getQueries.graphql
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from 'react'; | ||
import MenuItem from '@material-ui/core/MenuItem/MenuItem'; | ||
import Select from '@material-ui/core/Select/Select'; | ||
import FormControl from '@material-ui/core/FormControl/FormControl'; | ||
import FormHelperText from '@material-ui/core/FormHelperText/FormHelperText'; | ||
|
||
interface Run { | ||
id: string; | ||
name: string; | ||
startedAt: string; | ||
} | ||
|
||
interface Props { | ||
setMaxRunsCount: (value: number) => void; | ||
maxRunsCount: number; | ||
} | ||
|
||
const MaxRuns: React.FC<Props> = (props: Props) => { | ||
const { maxRunsCount, setMaxRunsCount } = props; | ||
|
||
return ( | ||
<FormControl> | ||
<Select | ||
label="Max Number of Runs" | ||
id="max-number-of-runs" | ||
value={maxRunsCount} | ||
style={{ width: 150, textAlign: 'left' }} | ||
onChange={(event: any) => { | ||
if (event.target.value !== null) { | ||
setMaxRunsCount(Number(event.target.value)); | ||
} | ||
}} | ||
> | ||
<MenuItem value={5}>5</MenuItem> | ||
<MenuItem value={10}>10</MenuItem> | ||
<MenuItem value={50}>50</MenuItem> | ||
<MenuItem value={100}>100</MenuItem> | ||
<MenuItem value={200}>200</MenuItem> | ||
<MenuItem value={500}>500</MenuItem> | ||
<MenuItem value={1000}>1000</MenuItem> | ||
</Select> | ||
<FormHelperText>Max number of runs</FormHelperText> | ||
</FormControl> | ||
); | ||
}; | ||
export default MaxRuns; |