add tooltips for client login fields (#1184)

This commit is contained in:
mfrances17 2021-09-17 13:50:56 -04:00 committed by GitHub
parent 775885c56b
commit 6063c8db96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View file

@ -176,7 +176,7 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => {
{/* The type for the children of Select are incorrect, so we need a fragment here. */} {/* The type for the children of Select are incorrect, so we need a fragment here. */}
{/* eslint-disable-next-line react/jsx-no-useless-fragment */} {/* eslint-disable-next-line react/jsx-no-useless-fragment */}
<> <>
{loginThemes?.map((theme) => ( {loginThemes.map((theme) => (
<SelectOption <SelectOption
selected={theme.name === value} selected={theme.name === value}
key={theme.name} key={theme.name}
@ -190,6 +190,13 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => {
</FormGroup> </FormGroup>
<FormGroup <FormGroup
label={t("consentRequired")} label={t("consentRequired")}
labelIcon={
<HelpItem
helpText="clients-help:consentRequired"
forLabel={t("consentRequired")}
forID="kc-consent-switch"
/>
}
fieldId="kc-consent" fieldId="kc-consent"
hasNoPaddingTop hasNoPaddingTop
> >
@ -210,6 +217,13 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => {
</FormGroup> </FormGroup>
<FormGroup <FormGroup
label={t("displayOnClient")} label={t("displayOnClient")}
labelIcon={
<HelpItem
helpText="clients-help:displayOnClient"
forLabel={t("displayOnClient")}
forID="kc-display-on-client-switch"
/>
}
fieldId="kc-display-on-client" fieldId="kc-display-on-client"
hasNoPaddingTop hasNoPaddingTop
> >
@ -231,6 +245,13 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => {
</FormGroup> </FormGroup>
<FormGroup <FormGroup
label={t("consentScreenText")} label={t("consentScreenText")}
labelIcon={
<HelpItem
helpText="clients-help:consentScreenText"
forLabel={t("consentScreenText")}
forID="kc-consent-screen-text"
/>
}
fieldId="kc-consent-screen-text" fieldId="kc-consent-screen-text"
> >
<TextArea <TextArea

View file

@ -124,5 +124,10 @@ export default {
keyAlias: "Archive alias for your private key and certificate.", keyAlias: "Archive alias for your private key and certificate.",
keyPassword: "Password to access the private key in the archive", keyPassword: "Password to access the private key in the archive",
storePassword: "Password to access the archive itself", storePassword: "Password to access the archive itself",
consentRequired: "If enabled, users have to consent to client access.",
displayOnClient:
"Applicable only if 'Consent Required' is on for this client. If this switch is off, the consent screen will contain just the consents corresponding to configured client scopes. If on, there will be also one item on the consent screen about this client itself.",
consentScreenText:
"Applicable only if 'Display Client On Consent Screen' is on for this client. Contains the text which will be on the consent screen about permissions specific just for this client.",
}, },
}; };