File tree Expand file tree Collapse file tree 4 files changed +29
-22
lines changed
pages/CreateWorkspacePage Expand file tree Collapse file tree 4 files changed +29
-22
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ data "coder_parameter" "image_type" {
42
42
type = " string"
43
43
name = " Coder Image"
44
44
default = " codercom/oss-dogfood:latest"
45
- description = " The Docker image used to run your workspace."
45
+ description = " The Docker image used to run your workspace. Choose between nix and non-nix images. "
46
46
option {
47
- icon = " /icon/ubuntu .svg"
48
- name = " Dogfood Ubuntu "
47
+ icon = " /icon/coder .svg"
48
+ name = " Dogfood (Default) "
49
49
value = " codercom/oss-dogfood:latest"
50
50
}
51
51
option {
Original file line number Diff line number Diff line change @@ -34,9 +34,7 @@ export const templateByName = (
34
34
) : QueryOptions < Template > => {
35
35
return {
36
36
queryKey : templateByNameKey ( organization , name ) ,
37
- queryFn : async ( ) => {
38
- return API . getTemplateByName ( organization , name ) ;
39
- } ,
37
+ queryFn : async ( ) => API . getTemplateByName ( organization , name ) ,
40
38
} ;
41
39
} ;
42
40
Original file line number Diff line number Diff line change @@ -220,9 +220,20 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
220
220
< Margins size = "medium" >
221
221
< PageHeader
222
222
actions = {
223
- < Button size = "sm" variant = "outline" onClick = { onCancel } >
224
- Cancel
225
- </ Button >
223
+ < >
224
+ { newFormContext && (
225
+ < Button
226
+ size = "sm"
227
+ variant = "outline"
228
+ onClick = { newFormContext . toggleOptedOut }
229
+ >
230
+ Try out the new workspace creation flow ✨
231
+ </ Button >
232
+ ) }
233
+ < Button size = "sm" variant = "outline" onClick = { onCancel } >
234
+ Cancel
235
+ </ Button >
236
+ </ >
226
237
}
227
238
>
228
239
< Stack direction = "row" >
@@ -247,12 +258,6 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
247
258
</ Stack >
248
259
</ PageHeader >
249
260
250
- { newFormContext && (
251
- < button type = "button" onClick = { newFormContext . toggleOptedOut } >
252
- Try out the new workspace creation flow ✨
253
- </ button >
254
- ) }
255
-
256
261
< HorizontalForm
257
262
name = "create-workspace-form"
258
263
onSubmit = { form . handleSubmit }
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ export const CreateWorkspacePageViewExperimental: FC<
260
260
</ button >
261
261
</ div >
262
262
< div className = "flex flex-col gap-6 max-w-screen-sm mx-auto" >
263
- < header className = "flex flex-col gap-2 mt-10" >
263
+ < header className = "flex flex-col items-start gap-2 mt-10" >
264
264
< div className = "flex items-center gap-2" >
265
265
< Avatar
266
266
variant = "icon"
@@ -277,13 +277,17 @@ export const CreateWorkspacePageViewExperimental: FC<
277
277
< h1 className = "text-3xl font-semibold m-0" > New workspace</ h1 >
278
278
279
279
{ template . deprecated && < Pill type = "warning" > Deprecated</ Pill > }
280
- </ header >
281
280
282
- { newFormContext && (
283
- < button type = "button" onClick = { newFormContext . toggleOptedOut } >
284
- Go back to the classic workspace creation flow
285
- </ button >
286
- ) }
281
+ { newFormContext && (
282
+ < Button
283
+ size = "sm"
284
+ variant = "subtle"
285
+ onClick = { newFormContext . toggleOptedOut }
286
+ >
287
+ Go back to the classic workspace creation flow
288
+ </ Button >
289
+ ) }
290
+ </ header >
287
291
288
292
< form
289
293
onSubmit = { form . handleSubmit }
You can’t perform that action at this time.
0 commit comments