small changes to placeholder and hint text in CA forms (#27372)

For #26606

small changes to digicert and custom scep forms placeholders and help
text
This commit is contained in:
Gabriel Hernandez 2025-03-20 22:03:10 +00:00 committed by GitHub
parent aad329b0da
commit c30d3ac03b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 6 deletions

View file

@ -69,7 +69,10 @@ export const getDisplayErrMessage = (err: unknown) => {
message = INVALID_API_TOKEN_ERROR;
} else if (reason.includes("invalid profile GUID")) {
message = INVALID_PROFILE_GUID_ERROR;
} else if (reason.includes("invalid URL")) {
} else if (
reason.includes("invalid URL") ||
reason.includes("no such host")
) {
message = INVALID_URL_ERROR;
} else if (reason.includes("private key")) {
message = PRIVATE_KEY_NOT_CONFIGURED_ERROR;

View file

@ -47,7 +47,7 @@ const CustomSCEPForm = ({
config?.integrations.custom_scep_proxy ?? [],
isEditing
),
[config?.integrations.custom_scep_proxy]
[config?.integrations.custom_scep_proxy, isEditing]
);
const [
formValidation,
@ -83,8 +83,8 @@ const CustomSCEPForm = ({
error={formValidation.name?.message}
onChange={onInputChange}
parseTarget
placeholder="SCEP_WIFI"
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_CUSTOM_SCEP_CHALLENGE_SCEP_WIFI)."
placeholder="WIFI_CERTIFICATE"
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_CUSTOM_SCEP_CHALLENGE_WIFI_CERTIFICATE)."
/>
<InputField
label="SCEP URL"

View file

@ -91,9 +91,9 @@ const DigicertForm = ({
value={name}
onChange={onInputChange}
error={formValidation.name?.message}
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_CERT_DATA_DIGICERT_WIFI)."
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_DIGICERT_DATA_WIFI_CERTIFICATE)."
parseTarget
placeholder="DIGICERT_WIFI"
placeholder="WIFI_CERTIFICATE"
/>
<InputField
name="url"