-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upcoming: [APL-55] - Application platform for Linode Kubernetes (#10753)
* apl integration * fix: added missing apl_enabled to call * feat: apl beta check * final styling changes * Split conditional beta call in seperate functions and types * removed beta type in favor for simplicity * replaced optional apl_enabled parameter with required parameter * reverted apl_enabled as required * somehow this exclamation mark got removed * added test for array for breadcrumbs * minor styling tweaks and some comments
- Loading branch information
1 parent
f51b555
commit c0d8900
Showing
23 changed files
with
433 additions
and
68 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
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
66 changes: 66 additions & 0 deletions
66
packages/manager/src/features/Kubernetes/CreateCluster/ApplicationPlatform.tsx
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,66 @@ | ||
import * as React from 'react'; | ||
|
||
import { Box } from 'src/components/Box'; | ||
import { Chip } from 'src/components/Chip'; | ||
import { FormControl } from 'src/components/FormControl'; | ||
import { FormControlLabel } from 'src/components/FormControlLabel'; | ||
import { FormLabel } from 'src/components/FormLabel'; | ||
import { Link } from 'src/components/Link'; | ||
import { Radio } from 'src/components/Radio/Radio'; | ||
import { RadioGroup } from 'src/components/RadioGroup'; | ||
import { Typography } from 'src/components/Typography'; | ||
|
||
export interface APLProps { | ||
setAPL: (apl: boolean) => void; | ||
setHighAvailability: (ha: boolean | undefined) => void; | ||
} | ||
|
||
export const APLCopy = () => ( | ||
<Typography> | ||
Add a pre-paved path to build, deploy, monitor and secure applications. | ||
<br /> | ||
<Link to="https://otomi.io"> | ||
Learn more about Application Platform for LKE. | ||
</Link> | ||
</Typography> | ||
); | ||
|
||
export const ApplicationPlatform = (props: APLProps) => { | ||
const { setAPL, setHighAvailability } = props; | ||
|
||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => { | ||
setAPL(e.target.value === 'yes'); | ||
setHighAvailability(e.target.value === 'yes'); | ||
}; | ||
|
||
return ( | ||
<FormControl> | ||
<FormLabel | ||
sx={(theme) => ({ | ||
'&&.MuiFormLabel-root.Mui-focused': { | ||
color: theme.name === 'dark' ? 'white' : theme.color.black, | ||
}, | ||
})} | ||
> | ||
<Box alignItems="center" display="flex" flexDirection="row"> | ||
<Typography variant="inherit"> | ||
Application Platform for LKE | ||
</Typography> | ||
<Chip color="primary" label="BETA" sx={{ ml: 1 }} /> | ||
</Box> | ||
</FormLabel> | ||
<APLCopy /> | ||
<RadioGroup onChange={(e) => handleChange(e)}> | ||
<FormControlLabel | ||
label={ | ||
<Typography>Yes, enable Application platform for LKE.</Typography> | ||
} | ||
control={<Radio />} | ||
name="yes" | ||
value="yes" | ||
/> | ||
<FormControlLabel control={<Radio />} label="No" name="no" value="no" /> | ||
</RadioGroup> | ||
</FormControl> | ||
); | ||
}; |
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
Oops, something went wrong.