UI fixes beta9 (#2950)
* UI fixes Signed-off-by: Vansh Bhatia <vansh@chaosnative.com>
This commit is contained in:
parent
48d3f9ce7a
commit
c52ae1dd1a
|
@ -171,7 +171,7 @@ const SideBar: React.FC = () => {
|
||||||
<UsageIcon />
|
<UsageIcon />
|
||||||
</CustomisedListItem>
|
</CustomisedListItem>
|
||||||
)}
|
)}
|
||||||
<hr id="quickActions" />
|
<hr className={classes.quickActions} />
|
||||||
<CustomisedListItem
|
<CustomisedListItem
|
||||||
key="litmusDocs"
|
key="litmusDocs"
|
||||||
handleClick={() => {
|
handleClick={() => {
|
||||||
|
|
|
@ -36,10 +36,10 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
},
|
},
|
||||||
drawerList: {
|
drawerList: {
|
||||||
marginTop: theme.spacing(8.375),
|
marginTop: theme.spacing(8.375),
|
||||||
'& #quickActions': {
|
},
|
||||||
width: '80%',
|
quickActions: {
|
||||||
border: `1px solid ${theme.palette.border.main}`,
|
width: '80%',
|
||||||
},
|
border: `1px solid ${theme.palette.border.main}`,
|
||||||
},
|
},
|
||||||
versionlogo: {
|
versionlogo: {
|
||||||
width: '1.25rem',
|
width: '1.25rem',
|
||||||
|
|
|
@ -15,12 +15,14 @@ import BackButton from '../../../components/Button/BackButton';
|
||||||
import GithubInputFields from '../../../components/GitHubComponents/GithubInputFields/GithubInputFields';
|
import GithubInputFields from '../../../components/GitHubComponents/GithubInputFields/GithubInputFields';
|
||||||
import GitHubToggleButton from '../../../components/GitHubComponents/GitHubToggleButtons/GitHubToggleButton';
|
import GitHubToggleButton from '../../../components/GitHubComponents/GitHubToggleButtons/GitHubToggleButton';
|
||||||
import Loader from '../../../components/Loader';
|
import Loader from '../../../components/Loader';
|
||||||
|
import { constants } from '../../../constants';
|
||||||
import {
|
import {
|
||||||
ADD_MY_HUB,
|
ADD_MY_HUB,
|
||||||
GENERATE_SSH,
|
GENERATE_SSH,
|
||||||
SAVE_MY_HUB,
|
SAVE_MY_HUB,
|
||||||
UPDATE_MY_HUB,
|
UPDATE_MY_HUB,
|
||||||
} from '../../../graphql/mutations';
|
} from '../../../graphql/mutations';
|
||||||
|
import { GET_HUB_STATUS } from '../../../graphql/queries';
|
||||||
import {
|
import {
|
||||||
CreateMyHub,
|
CreateMyHub,
|
||||||
MyHubData,
|
MyHubData,
|
||||||
|
@ -28,15 +30,13 @@ import {
|
||||||
SSHKey,
|
SSHKey,
|
||||||
SSHKeys,
|
SSHKeys,
|
||||||
} from '../../../models/graphql/user';
|
} from '../../../models/graphql/user';
|
||||||
|
import { HubStatus } from '../../../models/redux/myhub';
|
||||||
import { getProjectID } from '../../../utils/getSearchParams';
|
import { getProjectID } from '../../../utils/getSearchParams';
|
||||||
import {
|
import {
|
||||||
isValidWebUrl,
|
isValidWebUrl,
|
||||||
validateStartEmptySpacing,
|
validateStartEmptySpacing,
|
||||||
} from '../../../utils/validate';
|
} from '../../../utils/validate';
|
||||||
import useStyles from './styles';
|
import useStyles from './styles';
|
||||||
import { constants } from '../../../constants';
|
|
||||||
import { HubStatus } from '../../../models/redux/myhub';
|
|
||||||
import { GET_HUB_STATUS } from '../../../graphql/queries';
|
|
||||||
|
|
||||||
interface GitHub {
|
interface GitHub {
|
||||||
HubName: string;
|
HubName: string;
|
||||||
|
@ -373,7 +373,6 @@ const MyHubConnectDrawer: React.FC<MyHubConnectDrawerProps> = ({
|
||||||
return (
|
return (
|
||||||
<Drawer
|
<Drawer
|
||||||
className={classes.drawer}
|
className={classes.drawer}
|
||||||
variant="persistent"
|
|
||||||
anchor="right"
|
anchor="right"
|
||||||
open={drawerState}
|
open={drawerState}
|
||||||
classes={{
|
classes={{
|
||||||
|
|
|
@ -69,7 +69,7 @@ const ScheduleAndRunStats: React.FC<ScheduleAndRunStatsProps> = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper className={classes.workflowGraphs}>
|
<Paper elevation={0} className={classes.workflowGraphs}>
|
||||||
<Tabs
|
<Tabs
|
||||||
value={activeTab}
|
value={activeTab}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
|
|
@ -2,9 +2,9 @@ import { makeStyles, Theme } from '@material-ui/core/styles';
|
||||||
|
|
||||||
const useStyles = makeStyles((theme: Theme) => ({
|
const useStyles = makeStyles((theme: Theme) => ({
|
||||||
workflowGraphs: {
|
workflowGraphs: {
|
||||||
padding: theme.spacing(3.125, 3.75, 3.125, 10),
|
padding: theme.spacing(4.75, 3.75, 4.75, 10),
|
||||||
height: '100%',
|
height: '100%',
|
||||||
marginBottom: theme.spacing(3.125),
|
filter: `drop-shadow(0px 0.3px 0.9px rgba(0, 0, 0, 0.1)) drop-shadow(0px 1.6px 3.6px rgba(0, 0, 0, 0.13))`,
|
||||||
},
|
},
|
||||||
graphContainer: {
|
graphContainer: {
|
||||||
width: '900px',
|
width: '900px',
|
||||||
|
|
|
@ -70,7 +70,7 @@ const WorkflowGraphs: React.FC<WorkflowGraphsProps> = ({ data }) => {
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<div className={classes.graphs}>
|
<div className={classes.graphs}>
|
||||||
<ScheduleAndRunStats filter={filters} />
|
<ScheduleAndRunStats filter={filters} />
|
||||||
<Paper className={classes.radialChartContainer}>
|
<Paper elevation={0} className={classes.radialChartContainer}>
|
||||||
<RadialChart
|
<RadialChart
|
||||||
radialData={graphData}
|
radialData={graphData}
|
||||||
legendTableHeight={150}
|
legendTableHeight={150}
|
||||||
|
|
|
@ -19,7 +19,8 @@ const useStyles = makeStyles((theme) => ({
|
||||||
radialChartContainer: {
|
radialChartContainer: {
|
||||||
width: '22rem',
|
width: '22rem',
|
||||||
borderRadius: '0.1875rem',
|
borderRadius: '0.1875rem',
|
||||||
marginBottom: theme.spacing(3.125),
|
padding: theme.spacing(1.25, 4.125, 1.25, 4.125),
|
||||||
|
filter: `drop-shadow(0px 0.3px 0.9px rgba(0, 0, 0, 0.1)) drop-shadow(0px 1.6px 3.6px rgba(0, 0, 0, 0.13))`,
|
||||||
},
|
},
|
||||||
selectText: {
|
selectText: {
|
||||||
height: '2.5rem',
|
height: '2.5rem',
|
||||||
|
|
|
@ -24,6 +24,7 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
padding: theme.spacing(3.125),
|
padding: theme.spacing(3.125),
|
||||||
border: `1px solid ${theme.palette.border.main}`,
|
border: `1px solid ${theme.palette.border.main}`,
|
||||||
borderRadius: 3,
|
borderRadius: 3,
|
||||||
|
backgroundColor: theme.palette.background.paper,
|
||||||
},
|
},
|
||||||
locallyText: {
|
locallyText: {
|
||||||
fontSize: '1.25rem',
|
fontSize: '1.25rem',
|
||||||
|
@ -40,6 +41,7 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
marginTop: theme.spacing(2.5),
|
marginTop: theme.spacing(2.5),
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
borderRadius: 3,
|
borderRadius: 3,
|
||||||
|
backgroundColor: theme.palette.background.paper,
|
||||||
},
|
},
|
||||||
infoText: {
|
infoText: {
|
||||||
maxWidth: '25rem',
|
maxWidth: '25rem',
|
||||||
|
|
|
@ -9,6 +9,7 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
padding: theme.spacing(3.125),
|
padding: theme.spacing(3.125),
|
||||||
border: `1px solid ${theme.palette.border.main}`,
|
border: `1px solid ${theme.palette.border.main}`,
|
||||||
borderRadius: 3,
|
borderRadius: 3,
|
||||||
|
backgroundColor: theme.palette.background.paper,
|
||||||
},
|
},
|
||||||
radio: {
|
radio: {
|
||||||
color: theme.palette.primary.main,
|
color: theme.palette.primary.main,
|
||||||
|
|
Loading…
Reference in New Issue