Merge pull request #730 from bluewave-labs/update/display-name

Update all areas where it says friendly name to display name.
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-08-27 10:49:05 -07:00
commit c15979c3f9
6 files changed
+14 -14

No files matched your search

@@ -62,7 +62,7 @@ const CreateNewMaintenanceWindow = () => {
startTime: dayjs(), startTime: dayjs(),
duration: "60", duration: "60",
unit: "minutes", unit: "minutes",
friendlyName: "", displayName: "",
AddMonitors: "", AddMonitors: "",
}); });
const [errors, setErrors] = useState({}); const [errors, setErrors] = useState({});
@@ -82,7 +82,7 @@ const CreateNewMaintenanceWindow = () => {
startTime: values.startTime.format("HH:mm"), startTime: values.startTime.format("HH:mm"),
duration: values.duration, duration: values.duration,
unit: values.unit, unit: values.unit,
friendlyName: values.friendlyName, displayName: values.displayName,
addMonitors: values.AddMonitors, addMonitors: values.AddMonitors,
}; };
@@ -178,14 +178,14 @@ const CreateNewMaintenanceWindow = () => {
), ),
}, },
{ {
title: "Friendly name", title: "Display name",
component: ( component: (
<Field <Field
id="friendly-name" id="display-name"
placeholder="Maintanence at __ : __ for ___ minutes" placeholder="Maintanence at __ : __ for ___ minutes"
value={values.friendlyName} value={values.displayName}
onChange={(e) => handleChange(e, "friendlyName")} onChange={(e) => handleChange(e, "displayName")}
error={errors.friendlyName} error={errors.displayName}
/> />
), ),
}, },
@@ -314,7 +314,7 @@ const Configure = () => {
<Field <Field
type="text" type="text"
id="monitor-name" id="monitor-name"
label="Friendly name" label="Display name"
isOptional={true} isOptional={true}
placeholder="Google" placeholder="Google"
value={monitor?.name || ""} value={monitor?.name || ""}
@@ -193,7 +193,7 @@ const CreateMonitor = () => {
<Field <Field
type="text" type="text"
id="monitor-name" id="monitor-name"
label="Friendly name" label="Display name"
isOptional={true} isOptional={true}
placeholder="Google" placeholder="Google"
value={monitor.name} value={monitor.name}
@@ -223,7 +223,7 @@ const PageSpeedConfigure = () => {
</Stack> </Stack>
<Stack gap={theme.gap.xl}> <Stack gap={theme.gap.xl}>
<Stack direction="row"> <Stack direction="row">
<Typography component="h3">Monitor friendly name</Typography> <Typography component="h3">Monitor display name</Typography>
<Field <Field
type="text" type="text"
id="monitor-name" id="monitor-name"
@@ -116,7 +116,7 @@ const CreatePageSpeed = () => {
<Typography component="h1">Create pagespeed monitor</Typography> <Typography component="h1">Create pagespeed monitor</Typography>
<Stack gap={theme.gap.xl}> <Stack gap={theme.gap.xl}>
<Stack direction="row"> <Stack direction="row">
<Typography component="h3">Monitor friendly name</Typography> <Typography component="h3">Monitor display name</Typography>
<Field <Field
type="text" type="text"
id="monitor-name" id="monitor-name"
+3 -3
View File
@@ -136,9 +136,9 @@ const maintenanceWindowValidation = joi.object({
"any.only": "Unit must be one of ['minutes', 'hours', 'days'].", "any.only": "Unit must be one of ['minutes', 'hours', 'days'].",
"any.required": "Unit is required.", "any.required": "Unit is required.",
}), }),
friendlyName: joi.string().max(50).required().messages({ displayName: joi.string().max(50).required().messages({
"string.empty": "Friendly name is required.", "string.empty": "Display name is required.",
"string.max": "Friendly name must be less than 50 characters long", "string.max": "Display name must be less than 50 characters long",
}), }),
addMonitors: joi.string().max(50).required().messages({ addMonitors: joi.string().max(50).required().messages({
"string.empty": "Add monitors is required.", "string.empty": "Add monitors is required.",