Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OMICRON_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f2e6237e57a36873fc748b6ecd9e42b8ef208c88
d1fc7da4c01c4e7b17c7b3319df712390fae68fa
7 changes: 7 additions & 0 deletions app/forms/instance-create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { GiB } from '@oxide/util'

import type { DiskTableItem } from 'app/components/form'
import { CheckboxField } from 'app/components/form'
import { FullPageForm } from 'app/components/form'
import { DiskSizeField } from 'app/components/form'
import {
Expand Down Expand Up @@ -72,6 +73,8 @@ const values: InstanceCreateInput = {
* We actually don't care about this value outside of that.
*/
networkInterfaceType: 'default',

start: true,
}

export default function CreateInstanceForm({
Expand Down Expand Up @@ -166,6 +169,7 @@ export default function CreateInstanceForm({
...values.disks,
],
externalIps: [{ type: 'ephemeral' }],
start: values.start,
},
})
})
Expand All @@ -176,6 +180,9 @@ export default function CreateInstanceForm({
>
<NameField id="name" />
<DescriptionField id="description" />
<CheckboxField id="start-instance" name="start" label="Start Instance">
Start Instance
</CheckboxField>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. As a followup we might want to add a tooltip or something explaining what this means in more detail, but this is fine. We need to do that in a million places. Maybe we could add a description that says "If unchecked, the instance will be created in the stopped state" or something? Doesn't seem too important, really.

Copy link
Collaborator

@david-crespo david-crespo Sep 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm just kidding, I just saw the screenshot and remembered it's a checkbox. I don't think we have a nice way of putting a description on a checkbox.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the attached label perhaps?


<Divider />

Expand Down
62 changes: 33 additions & 29 deletions libs/api/__generated__/Api.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/api/__generated__/OMICRON_VERSION

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.