Skip to content

Commit a9badc9

Browse files
committed
clean up design
1 parent e910eb3 commit a9badc9

File tree

4 files changed

+29
-22
lines changed

4 files changed

+29
-22
lines changed

dogfood/coder/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ data "coder_parameter" "image_type" {
4242
type = "string"
4343
name = "Coder Image"
4444
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."
4646
option {
47-
icon = "/icon/ubuntu.svg"
48-
name = "Dogfood Ubuntu"
47+
icon = "/icon/coder.svg"
48+
name = "Dogfood (Default)"
4949
value = "codercom/oss-dogfood:latest"
5050
}
5151
option {

site/src/api/queries/templates.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export const templateByName = (
3434
): QueryOptions<Template> => {
3535
return {
3636
queryKey: templateByNameKey(organization, name),
37-
queryFn: async () => {
38-
return API.getTemplateByName(organization, name);
39-
},
37+
queryFn: async () => API.getTemplateByName(organization, name),
4038
};
4139
};
4240

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,20 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
220220
<Margins size="medium">
221221
<PageHeader
222222
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+
</>
226237
}
227238
>
228239
<Stack direction="row">
@@ -247,12 +258,6 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
247258
</Stack>
248259
</PageHeader>
249260

250-
{newFormContext && (
251-
<button type="button" onClick={newFormContext.toggleOptedOut}>
252-
Try out the new workspace creation flow ✨
253-
</button>
254-
)}
255-
256261
<HorizontalForm
257262
name="create-workspace-form"
258263
onSubmit={form.handleSubmit}

site/src/pages/CreateWorkspacePage/CreateWorkspacePageViewExperimental.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export const CreateWorkspacePageViewExperimental: FC<
260260
</button>
261261
</div>
262262
<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">
264264
<div className="flex items-center gap-2">
265265
<Avatar
266266
variant="icon"
@@ -277,13 +277,17 @@ export const CreateWorkspacePageViewExperimental: FC<
277277
<h1 className="text-3xl font-semibold m-0">New workspace</h1>
278278

279279
{template.deprecated && <Pill type="warning">Deprecated</Pill>}
280-
</header>
281280

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>
287291

288292
<form
289293
onSubmit={form.handleSubmit}

0 commit comments

Comments
 (0)