- Remove Color picker OOTB label, add custom label

- Add label for logo
- Replace react beautiful dnd with hello-pangea to fix the  "defaultProps will not be supported " console warning due to react beatuful dnd deprecation
- Add all the checkboxes and respective validation
- Remove subdomain from UI display
- Pass Handlers as context for both tabs to ease code scalability
- All Status page fields are now ready for submission
This commit is contained in:
Shemy Gan committed 2025-01-17 14:34:29 -05:00
1 parent 642c5f0479
commit 045a9cff3a
11 files changed
+243 -257

No files matched your search

+7 -3
View File
@@ -189,7 +189,7 @@ const logoImageValidation = joi.object({
}),
});
const publicPageGeneralSettingsValidation = joi.object({
const publicPageSettingsValidation = joi.object({
publish: joi.bool(),
companyName: joi
.string()
@@ -205,7 +205,11 @@ const publicPageGeneralSettingsValidation = joi.object({
"array.empty": "At least one monitor is required",
"any.required": "Monitors are required",
}),
logo: logoImageValidation
logo: logoImageValidation,
showUptimePercentage: joi.boolean(),
showBarcode: joi.boolean(),
showBarcode: joi.boolean()
});
const settingsValidation = joi.object({
ttl: joi.number().required().messages({
@@ -321,6 +325,6 @@ export {
maintenanceWindowValidation,
advancedSettingsValidation,
infrastructureMonitorValidation,
publicPageGeneralSettingsValidation,
publicPageSettingsValidation,
logoImageValidation
};