Skip to content

Commit df3cb55

Browse files
committed
cloud create menu updates
1 parent bab15d9 commit df3cb55

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

www/src/components/create-cluster/CreateCluster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const SidebarWrapperSC = styled.div(({ theme }) => ({
210210

211211
const ContentWrapperSC = styled.div(({ theme }) => ({
212212
display: 'flex',
213-
margin: 'auto',
213+
height: 'fit-content',
214214
minWidth: 600,
215215
maxWidth: 720,
216216
flexDirection: 'column',

www/src/components/create-cluster/steps/ConfigureCloudInstanceStep.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export function ConfigureCloudInstanceStep() {
3535
const cloud = CloudProvider.Aws
3636
const [name, setName] = useState('')
3737
const [size, setSize] = useState<ConsoleSize>(ConsoleSize.Small)
38-
const [region, setRegion] = useState<string>(REGIONS[0])
38+
const [cloud, _setCloud] = useState<CloudProvider>(CloudProvider.Aws)
39+
const [region, _setRegion] = useState<string>(REGIONS[0])
3940
const [confirm, setConfirm] = useState(false)
4041

4142
const [showNameError, setShowNameError] = useState(false)
@@ -131,6 +132,19 @@ export function ConfigureCloudInstanceStep() {
131132
))}
132133
</Select>
133134
</FormFieldSC>
135+
{/* <FormFieldSC label="Cloud">
136+
<Select
137+
selectedKey={cloud}
138+
onSelectionChange={(cloud) => setCloud(cloud as CloudProvider)}
139+
>
140+
{Object.values(CloudProvider).map((value) => (
141+
<ListBoxItem
142+
key={value}
143+
label={value}
144+
/>
145+
))}
146+
</Select>
147+
</FormFieldSC>
134148
{cloud === CloudProvider.Aws && (
135149
<FormFieldSC label="Region">
136150
<Select
@@ -145,7 +159,7 @@ export function ConfigureCloudInstanceStep() {
145159
))}
146160
</Select>
147161
</FormFieldSC>
148-
)}
162+
)} */}
149163
</Flex>
150164
<Confirm
151165
open={confirm}
@@ -171,7 +185,7 @@ const ValidationHintSC = styled.span(({ theme }) => ({
171185

172186
const validateName = (name: string) => {
173187
const nameValidity = {
174-
length: name.length >= 4 && name.length <= 11,
188+
length: name.length >= 5 && name.length <= 15,
175189
lowercase: !/[A-Z]/.test(name),
176190
alphanumeric: !!name.match(/^[a-z0-9]+$/),
177191
startsWithLetter: !!name.at(0)?.match(/[a-z]/),
@@ -185,7 +199,7 @@ const validateName = (name: string) => {
185199
: !nameValidity.alphanumeric
186200
? 'Name must be alphanumeric'
187201
: !nameValidity.length
188-
? 'Name must be between 4 and 11 characters'
202+
? 'Name must be between 5 and 15 characters'
189203
: '',
190204
}
191205
}

0 commit comments

Comments
 (0)