Add organization, host, and credential type detail view help text.

This commit is contained in:
Marliana Lara 2022-04-26 11:50:36 -04:00
parent 677187a43e
commit c84fac65e0
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE
4 changed files with 17 additions and 3 deletions

View File

@ -76,6 +76,7 @@ function CredentialTypeDetails({ credentialType }) {
rows={6}
name="input"
dataCy="credential-type-detail-input"
helpText={t`Input schema which defines a set of ordered fields for that type.`}
/>
<VariablesDetail
label={t`Injector configuration`}
@ -83,6 +84,7 @@ function CredentialTypeDetails({ credentialType }) {
rows={6}
name="injector"
dataCy="credential-type-detail-injector"
helpText={t`Environment variables or extra variables that specify the values a credential type can inject.`}
/>
<UserDateDetail
label={t`Created`}

View File

@ -74,6 +74,7 @@ function HostDetail({ host }) {
<Detail
label={t`Inventory`}
dataCy="host-inventory"
helpText={t`The inventory that this host belongs to.`}
value={
<Link to={`/inventories/inventory/${inventory.id}/details`}>
{inventory.name}

View File

@ -94,12 +94,22 @@ function OrganizationDetail({ organization }) {
/>
<Detail label={t`Description`} value={description} />
{license_info?.license_type !== 'open' && (
<Detail label={t`Max Hosts`} value={`${max_hosts}`} />
<Detail
label={t`Max Hosts`}
value={`${max_hosts}`}
helpText={t`The maximum number of hosts allowed to be managed by
this organization. Value defaults to 0 which means no limit.
Refer to the Ansible documentation for more details.`}
/>
)}
<ExecutionEnvironmentDetail
virtualEnvironment={custom_virtualenv}
executionEnvironment={summary_fields?.default_environment}
isDefaultEnvironment
helpText={t`The execution environment that will be used for jobs
inside of this organization. This will be used a fallback when
an execution environment has not been explicitly assigned at the
project, job template or workflow level.`}
/>
<UserDateDetail
label={t`Created`}
@ -115,6 +125,7 @@ function OrganizationDetail({ organization }) {
<Detail
fullWidth
label={t`Instance Groups`}
helpText={t`The Instance Groups for this Organization to run on.`}
value={
<ChipGroup
numChips={5}

View File

@ -4,7 +4,7 @@ import { useHistory, useParams } from 'react-router-dom';
import { CardBody } from 'components/Card';
import { TokensAPI, UsersAPI } from 'api';
import useRequest from 'hooks/useRequest';
import UserTokenFrom from '../shared/UserTokenForm';
import UserTokenForm from '../shared/UserTokenForm';
function UserTokenAdd({ onSuccessfulAdd }) {
const history = useHistory();
@ -36,7 +36,7 @@ function UserTokenAdd({ onSuccessfulAdd }) {
return (
<CardBody>
<UserTokenFrom
<UserTokenForm
handleCancel={handleCancel}
handleSubmit={handleSubmit}
submitError={submitError}