Skip to content

Commit e8bf056

Browse files
authored
Add docs link to silo create form, "SAML JIT" -> "SAML" (#2314)
add docs link to silo create form, SAML JIT -> SAML
1 parent 01d6158 commit e8bf056

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

app/forms/silo-create.tsx

+21-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { SideModalForm } from '~/components/form/SideModalForm'
2020
import { useForm } from '~/hooks'
2121
import { addToast } from '~/stores/toast'
2222
import { FormDivider } from '~/ui/lib/Divider'
23+
import { Message } from '~/ui/lib/Message'
2324
import { pb } from '~/util/path-builder'
2425
import { GiB } from '~/util/units'
2526

@@ -102,6 +103,7 @@ export function CreateSiloSideModalForm() {
102103
loading={createSilo.isPending}
103104
submitError={createSilo.error}
104105
>
106+
<Message variant="info" content={<HelpMessage />} />
105107
<NameField name="name" control={form.control} />
106108
<DescriptionField name="description" control={form.control} />
107109
<CheckboxField name="discoverable" control={form.control}>
@@ -139,7 +141,7 @@ export function CreateSiloSideModalForm() {
139141
column
140142
control={form.control}
141143
items={[
142-
{ value: 'saml_jit', label: 'SAML JIT' },
144+
{ value: 'saml_jit', label: 'SAML' },
143145
{ value: 'local_only', label: 'Local only' },
144146
]}
145147
/>
@@ -164,3 +166,21 @@ export function CreateSiloSideModalForm() {
164166
</SideModalForm>
165167
)
166168
}
169+
170+
function HelpMessage() {
171+
return (
172+
<>
173+
Read the{' '}
174+
<a
175+
href="https://docs.oxide.computer/guides/operator/silo-management"
176+
// don't need color and hover color because message text is already color-info anyway
177+
className="underline"
178+
target="_blank"
179+
rel="noreferrer"
180+
>
181+
Silo Management
182+
</a>{' '}
183+
guide to learn more.
184+
</>
185+
)
186+
}

app/ui/lib/Message.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const linkColor: Record<Variant, string> = {
6868

6969
export const Message = ({
7070
title,
71+
// TODO: convert content to a children prop
7172
content,
7273
className,
7374
variant = 'success',

0 commit comments

Comments
 (0)