Skip to content

Commit 4b51f56

Browse files
committed
help text in the identity provider form? in this economy?
1 parent 1a555e1 commit 4b51f56

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

app/forms/idp/create.tsx

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ import { HL } from '~/components/HL'
2020
import { useSiloSelector } from '~/hooks/use-params'
2121
import { addToast } from '~/stores/toast'
2222
import { FormDivider } from '~/ui/lib/Divider'
23+
import { Message } from '~/ui/lib/Message'
2324
import { SideModal } from '~/ui/lib/SideModal'
2425
import { readBlobAsBase64 } from '~/util/file'
26+
import { links } from '~/util/links'
2527
import { pb } from '~/util/path-builder'
2628

2729
import { MetadataSourceField, type IdpCreateFormValues } from './shared'
@@ -120,7 +122,32 @@ export function CreateIdpSideModalForm() {
120122
submitError={createIdp.error}
121123
submitLabel="Create provider"
122124
>
123-
<NameField name="name" control={form.control} />
125+
<Message
126+
content={
127+
<>
128+
Read the{' '}
129+
<a
130+
href={links.identityProvidersDocs}
131+
className="underline"
132+
target="_blank"
133+
rel="noreferrer"
134+
>
135+
Rack Configuration
136+
</a>{' '}
137+
guide to learn more about setting up an identity provider.
138+
</>
139+
}
140+
/>
141+
<NameField
142+
name="name"
143+
control={form.control}
144+
description={
145+
<>
146+
A short name for the provider in our system. Users will see it in the path to
147+
the login page: <code>/login/{silo}/saml/idp-name</code>.
148+
</>
149+
}
150+
/>
124151
<DescriptionField name="description" control={form.control} required />
125152
<TextField
126153
name="technicalContactEmail"

app/ui/lib/Message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const Message = ({
7171
// TODO: convert content to a children prop
7272
content,
7373
className,
74-
variant = 'success',
74+
variant = 'info',
7575
cta,
7676
icon,
7777
}: MessageProps) => {

0 commit comments

Comments
 (0)