Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SelectGroups for instance flavors and Kubernetes version #17

Open
paulphys opened this issue Nov 7, 2024 · 0 comments
Open

Add SelectGroups for instance flavors and Kubernetes version #17

paulphys opened this issue Nov 7, 2024 · 0 comments

Comments

@paulphys
Copy link
Member

paulphys commented Nov 7, 2024

Before switching to the UI widgets provided by react-jsonschema-form we had <SelectGroups /> which as the name already implies, groups related fields into their own subsection.

<SelectGroup>
<SelectLabel>vCPU (oversubscribed)</SelectLabel>
<SelectItem value="SCS-1V-4">CPU: 1, RAM: 4GiB (SCS-1V-4)</SelectItem>
<SelectItem value="SCS-2V-8">CPU: 2, RAM: 8GiB (SCS-2V-8)</SelectItem>
<SelectItem value="SCS-4V-16">CPU: 4, RAM: 16GiB (SCS-4V-16)</SelectItem>
<SelectItem value="SCS-8V-32">CPU: 8, RAM: 32GiB (SCS-8V-32)</SelectItem>
<SelectItem value="SCS-1V-2">CPU: 1, RAM: 2GiB (SCS-1V-2)</SelectItem>
<SelectItem value="SCS-2V-4">CPU: 2, RAM: 4GiB (SCS-2V-4)</SelectItem>
<SelectItem value="SCS-4V-8">CPU: 4, RAM: 8GiB (SCS-4V-8)</SelectItem>
<SelectItem value="SCS-8V-16">CPU: 8, RAM: 16GiB (SCS-8V-16)</SelectItem>
<SelectItem value="SCS-16V-32">CPU: 16, RAM: 32GiB (SCS-16V-32)</SelectItem>
<SelectItem value="SCS-1V-8">CPU: 1, RAM: 8GiB (SCS-1V-8)</SelectItem>
<SelectItem value="SCS-2V-16">CPU: 2, RAM: 16GiB (SCS-2V-16)</SelectItem>
<SelectItem value="SCS-4V-32">CPU: 4, RAM: 32GiB (SCS-4V-32)</SelectItem>
<SelectItem value="SCS-2V-4-20s">CPU: 2, RAM: 4GiB (SCS-2V-4-20s)</SelectItem>
<SelectItem value="SCS-4V-16-100s">CPU: 4, RAM: 16GiB (SCS-4V-16-100s)</SelectItem>
<SelectItem value="SCS-1V-4-10">CPU: 1, RAM: 4GiB (SCS-1V-4-10)</SelectItem>
<SelectItem value="SCS-2V-8-20">CPU: 2, RAM: 8GiB (SCS-2V-8-20)</SelectItem>
<SelectItem value="SCS-4V-16-50">CPU: 4, RAM: 16GiB (SCS-4V-16-50)</SelectItem>
<SelectItem value="SCS-8V-32-100">CPU: 8, RAM: 32GiB (SCS-8V-32-100)</SelectItem>
<SelectItem value="SCS-1V-2-5">CPU: 1, RAM: 2GiB (SCS-1V-2-5)</SelectItem>
<SelectItem value="SCS-2V-4-10">CPU: 2, RAM: 4GiB (SCS-2V-4-10)</SelectItem>
<SelectItem value="SCS-4V-8-20">CPU: 4, RAM: 8GiB (SCS-4V-8-20)</SelectItem>
<SelectItem value="SCS-8V-16-50">CPU: 8, RAM: 16GiB (SCS-8V-16-50)</SelectItem>
<SelectItem value="SCS-16V-32-100">CPU: 16, RAM: 32GiB (SCS-16V-32-100)</SelectItem>
<SelectItem value="SCS-1V-8-20">CPU: 1, RAM: 8GiB (SCS-1V-8-20)</SelectItem>
<SelectItem value="SCS-2V-16-50">CPU: 2, RAM: 16GiB (SCS-2V-16-50)</SelectItem>
<SelectItem value="SCS-4V-32-100">CPU: 4, RAM: 32GiB (SCS-4V-32-100)</SelectItem>
</SelectGroup>

We therefore need to reimplement them in components/form/custom/SelectWidget. Use components/ui/select as guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant