diff --git a/packages/common/src/core/schemas/shared/subschemas.ts b/packages/common/src/core/schemas/shared/subschemas.ts index 33cd99e45a3..0184da13f2b 100644 --- a/packages/common/src/core/schemas/shared/subschemas.ts +++ b/packages/common/src/core/schemas/shared/subschemas.ts @@ -9,6 +9,14 @@ export const ENTITY_NAME_SCHEMA = { type: "string", minLength: 1, maxLength: 250, + format: "entityTitleValidator", +}; + +export const SITE_ENTITY_NAME_SCHEMA = { + type: "string", + minLength: 1, + maxLength: 250, + format: "siteEntityTitleValidator", }; export const ENTITY_SUMMARY_SCHEMA = { diff --git a/packages/common/src/discussions/_internal/DiscussionUiSchemaCreate.ts b/packages/common/src/discussions/_internal/DiscussionUiSchemaCreate.ts index 54cfcc52f57..6dd20fc0230 100644 --- a/packages/common/src/discussions/_internal/DiscussionUiSchemaCreate.ts +++ b/packages/common/src/discussions/_internal/DiscussionUiSchemaCreate.ts @@ -33,6 +33,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `shared.fields.title.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts b/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts index 5f6d20b78a0..ef2e5f6bd27 100644 --- a/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts +++ b/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts @@ -44,6 +44,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `shared.fields.title.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/groups/_internal/GroupUiSchemaCreate.ts b/packages/common/src/groups/_internal/GroupUiSchemaCreate.ts index 6488ac6841e..94a16106388 100644 --- a/packages/common/src/groups/_internal/GroupUiSchemaCreate.ts +++ b/packages/common/src/groups/_internal/GroupUiSchemaCreate.ts @@ -46,6 +46,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/groups/_internal/GroupUiSchemaCreateAssociation.ts b/packages/common/src/groups/_internal/GroupUiSchemaCreateAssociation.ts index a83c6d8d710..c80d00b1302 100644 --- a/packages/common/src/groups/_internal/GroupUiSchemaCreateAssociation.ts +++ b/packages/common/src/groups/_internal/GroupUiSchemaCreateAssociation.ts @@ -51,6 +51,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/groups/_internal/GroupUiSchemaCreateEdit.ts b/packages/common/src/groups/_internal/GroupUiSchemaCreateEdit.ts index 4295ed1471b..0ca553c8c51 100644 --- a/packages/common/src/groups/_internal/GroupUiSchemaCreateEdit.ts +++ b/packages/common/src/groups/_internal/GroupUiSchemaCreateEdit.ts @@ -51,6 +51,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/groups/_internal/GroupUiSchemaCreateFollowers.ts b/packages/common/src/groups/_internal/GroupUiSchemaCreateFollowers.ts index aedab403dce..7566bc0961f 100644 --- a/packages/common/src/groups/_internal/GroupUiSchemaCreateFollowers.ts +++ b/packages/common/src/groups/_internal/GroupUiSchemaCreateFollowers.ts @@ -52,6 +52,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/groups/_internal/GroupUiSchemaCreateView.ts b/packages/common/src/groups/_internal/GroupUiSchemaCreateView.ts index ce810693ba1..0e6d743b5ff 100644 --- a/packages/common/src/groups/_internal/GroupUiSchemaCreateView.ts +++ b/packages/common/src/groups/_internal/GroupUiSchemaCreateView.ts @@ -51,6 +51,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/groups/_internal/GroupUiSchemaEdit.ts b/packages/common/src/groups/_internal/GroupUiSchemaEdit.ts index 72dd13b3b2e..af1c2f43a6a 100644 --- a/packages/common/src/groups/_internal/GroupUiSchemaEdit.ts +++ b/packages/common/src/groups/_internal/GroupUiSchemaEdit.ts @@ -40,6 +40,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts b/packages/common/src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts index ccdf4aea28b..f5999549ea5 100644 --- a/packages/common/src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts +++ b/packages/common/src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts @@ -47,6 +47,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `shared.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts b/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts index f87d9781c98..c9e459e3bc2 100644 --- a/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts +++ b/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts @@ -54,6 +54,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate2.ts b/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate2.ts index 0501d311b57..735ad83403d 100644 --- a/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate2.ts +++ b/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate2.ts @@ -34,6 +34,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts b/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts index a2a132e7c7a..d657867823c 100644 --- a/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts +++ b/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts @@ -45,6 +45,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/pages/_internal/PageUiSchemaCreate.ts b/packages/common/src/pages/_internal/PageUiSchemaCreate.ts index 0af2e38e463..1ae0552e3f5 100644 --- a/packages/common/src/pages/_internal/PageUiSchemaCreate.ts +++ b/packages/common/src/pages/_internal/PageUiSchemaCreate.ts @@ -34,6 +34,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/pages/_internal/PageUiSchemaEdit.ts b/packages/common/src/pages/_internal/PageUiSchemaEdit.ts index 8c0d55a6185..b17a590fec1 100644 --- a/packages/common/src/pages/_internal/PageUiSchemaEdit.ts +++ b/packages/common/src/pages/_internal/PageUiSchemaEdit.ts @@ -44,6 +44,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts b/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts index 30c1385f759..90314a79490 100644 --- a/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts +++ b/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts @@ -53,6 +53,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/projects/_internal/ProjectUiSchemaCreate2.ts b/packages/common/src/projects/_internal/ProjectUiSchemaCreate2.ts index 83646b775b8..652dc198eaa 100644 --- a/packages/common/src/projects/_internal/ProjectUiSchemaCreate2.ts +++ b/packages/common/src/projects/_internal/ProjectUiSchemaCreate2.ts @@ -34,6 +34,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts b/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts index 5172d7592de..e4f8b52490e 100644 --- a/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts +++ b/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts @@ -46,6 +46,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/sites/_internal/SiteSchema.ts b/packages/common/src/sites/_internal/SiteSchema.ts index 3920a33fd81..133102b242f 100644 --- a/packages/common/src/sites/_internal/SiteSchema.ts +++ b/packages/common/src/sites/_internal/SiteSchema.ts @@ -2,6 +2,7 @@ import { IAsyncConfigurationSchema } from "../../core"; import { ENTITY_IS_DISCUSSABLE_SCHEMA, PRIVACY_CONFIG_SCHEMA, + SITE_ENTITY_NAME_SCHEMA, } from "../../core/schemas/shared"; import { HubItemEntitySchema } from "../../core/schemas/shared/HubItemEntitySchema"; @@ -23,6 +24,7 @@ export const getSiteSchema = (siteId: string) => ...HubItemEntitySchema, properties: { ...HubItemEntitySchema.properties, + name: SITE_ENTITY_NAME_SCHEMA, _discussions: ENTITY_IS_DISCUSSABLE_SCHEMA, telemetry: PRIVACY_CONFIG_SCHEMA, _urlInfo: { diff --git a/packages/common/src/sites/_internal/SiteUiSchemaCreate.ts b/packages/common/src/sites/_internal/SiteUiSchemaCreate.ts index 74d16323bd7..60cb920e2e3 100644 --- a/packages/common/src/sites/_internal/SiteUiSchemaCreate.ts +++ b/packages/common/src/sites/_internal/SiteUiSchemaCreate.ts @@ -37,6 +37,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.siteEntityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts b/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts index 49975882d7e..d45dfc6d218 100644 --- a/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts +++ b/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts @@ -44,6 +44,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.siteEntityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/surveys/_internal/SurveyUiSchemaEdit.ts b/packages/common/src/surveys/_internal/SurveyUiSchemaEdit.ts index 765483488da..af41b4ca07d 100644 --- a/packages/common/src/surveys/_internal/SurveyUiSchemaEdit.ts +++ b/packages/common/src/surveys/_internal/SurveyUiSchemaEdit.ts @@ -41,6 +41,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `shared.fields.title.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/src/templates/_internal/TemplateUiSchemaEdit.ts b/packages/common/src/templates/_internal/TemplateUiSchemaEdit.ts index 227923fddff..69ea5def7e9 100644 --- a/packages/common/src/templates/_internal/TemplateUiSchemaEdit.ts +++ b/packages/common/src/templates/_internal/TemplateUiSchemaEdit.ts @@ -45,6 +45,12 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts b/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts index bbde6b6fff1..93907f5672d 100644 --- a/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts +++ b/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts @@ -25,6 +25,12 @@ describe("buildUiSchema: discussion create", () => { icon: true, labelKey: `shared.fields.title.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts b/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts index 92e1b34e379..5134a65edcb 100644 --- a/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts +++ b/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts @@ -68,6 +68,12 @@ describe("buildUiSchema: discussion edit", () => { icon: true, labelKey: "shared.fields.title.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, @@ -307,6 +313,12 @@ describe("buildUiSchema: discussion edit", () => { icon: true, labelKey: "shared.fields.title.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/groups/_internal/GroupUiSchemaCreate.test.ts b/packages/common/test/groups/_internal/GroupUiSchemaCreate.test.ts index a183cd2acfc..d07d942bef3 100644 --- a/packages/common/test/groups/_internal/GroupUiSchemaCreate.test.ts +++ b/packages/common/test/groups/_internal/GroupUiSchemaCreate.test.ts @@ -41,6 +41,12 @@ describe("GroupUiSchemaCreate", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/groups/_internal/GroupUiSchemaCreateAssociation.test.ts b/packages/common/test/groups/_internal/GroupUiSchemaCreateAssociation.test.ts index c34c4f17e4b..7a34408b06c 100644 --- a/packages/common/test/groups/_internal/GroupUiSchemaCreateAssociation.test.ts +++ b/packages/common/test/groups/_internal/GroupUiSchemaCreateAssociation.test.ts @@ -48,6 +48,12 @@ describe("GroupUiSchemaCreateAssociation", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/groups/_internal/GroupUiSchemaCreateEdit.test.ts b/packages/common/test/groups/_internal/GroupUiSchemaCreateEdit.test.ts index 5a4f3810392..7c98574fa51 100644 --- a/packages/common/test/groups/_internal/GroupUiSchemaCreateEdit.test.ts +++ b/packages/common/test/groups/_internal/GroupUiSchemaCreateEdit.test.ts @@ -48,6 +48,12 @@ describe("GroupUiSchemaCreateEdit", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/groups/_internal/GroupUiSchemaCreateFollowers.test.ts b/packages/common/test/groups/_internal/GroupUiSchemaCreateFollowers.test.ts index b69bcc6ee9e..8063e6d8a5a 100644 --- a/packages/common/test/groups/_internal/GroupUiSchemaCreateFollowers.test.ts +++ b/packages/common/test/groups/_internal/GroupUiSchemaCreateFollowers.test.ts @@ -45,6 +45,12 @@ describe("GroupUiSchemaCreateFollowers", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/groups/_internal/GroupUiSchemaCreateView.test.ts b/packages/common/test/groups/_internal/GroupUiSchemaCreateView.test.ts index ab89e81bf1d..267f39b7ba0 100644 --- a/packages/common/test/groups/_internal/GroupUiSchemaCreateView.test.ts +++ b/packages/common/test/groups/_internal/GroupUiSchemaCreateView.test.ts @@ -48,6 +48,12 @@ describe("GroupUiSchemaCreateView", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts b/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts index 35f0ed83eea..587cf6d52ec 100644 --- a/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts +++ b/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts @@ -34,6 +34,12 @@ describe("buildUiSchema: group edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts b/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts index cac08ade814..f0d3cdad0f3 100644 --- a/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts +++ b/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts @@ -55,6 +55,12 @@ describe("buildUiSchema: initiative template edit", () => { icon: true, labelKey: `shared.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts index 9803d30d35a..c777557439e 100644 --- a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts +++ b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts @@ -61,6 +61,12 @@ describe("buildUiSchema: initiative create", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, @@ -342,6 +348,12 @@ describe("buildUiSchema: initiative create", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate2.test.ts b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate2.test.ts index 121ff28a8b2..0d533279367 100644 --- a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate2.test.ts +++ b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate2.test.ts @@ -25,6 +25,12 @@ describe("buildUiSchema: initiative create", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts b/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts index d10d89d268b..9392ff402aa 100644 --- a/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts +++ b/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts @@ -77,6 +77,12 @@ describe("buildUiSchema: initiative edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, @@ -420,6 +426,12 @@ describe("buildUiSchema: initiative edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/pages/_internal/PageUiSchemaCreate.test.ts b/packages/common/test/pages/_internal/PageUiSchemaCreate.test.ts index 7696606e3ec..eba12da4e79 100644 --- a/packages/common/test/pages/_internal/PageUiSchemaCreate.test.ts +++ b/packages/common/test/pages/_internal/PageUiSchemaCreate.test.ts @@ -25,6 +25,12 @@ describe("buildUiSchema: site create", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts b/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts index a15e2e7c73b..82c2c43862e 100644 --- a/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts +++ b/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts @@ -68,6 +68,12 @@ describe("buildUiSchema: page edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts b/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts index c127d77b353..d42637c1619 100644 --- a/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts +++ b/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts @@ -57,6 +57,12 @@ describe("buildUiSchema: project create", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/projects/_internal/ProjectUiSchemaCreate2.test.ts b/packages/common/test/projects/_internal/ProjectUiSchemaCreate2.test.ts index 93585aee776..cd6851cb2d1 100644 --- a/packages/common/test/projects/_internal/ProjectUiSchemaCreate2.test.ts +++ b/packages/common/test/projects/_internal/ProjectUiSchemaCreate2.test.ts @@ -25,6 +25,12 @@ describe("buildUiSchema: project create", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts b/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts index ba473bb8a79..fd7457cc73d 100644 --- a/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts +++ b/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts @@ -77,6 +77,12 @@ describe("buildUiSchema: project edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, @@ -455,6 +461,12 @@ describe("buildUiSchema: project edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts b/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts index 682e94dafb4..6854098c359 100644 --- a/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts +++ b/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts @@ -25,6 +25,12 @@ describe("buildUiSchema: site create", () => { icon: true, labelKey: "some.scope.fields.name.maxLengthError", }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.siteEntityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts b/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts index 9e3eb43dea9..17aa96f3c7c 100644 --- a/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts +++ b/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts @@ -68,6 +68,12 @@ describe("buildUiSchema: site edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.siteEntityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/surveys/_internal/SurveyUiSchemaEdit.test.ts b/packages/common/test/surveys/_internal/SurveyUiSchemaEdit.test.ts index 91117282120..3b07307396c 100644 --- a/packages/common/test/surveys/_internal/SurveyUiSchemaEdit.test.ts +++ b/packages/common/test/surveys/_internal/SurveyUiSchemaEdit.test.ts @@ -54,6 +54,12 @@ describe("buildUiSchema: survey edit", () => { icon: true, labelKey: `shared.fields.title.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, }, diff --git a/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts b/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts index d5dd66f196f..ed9b34ec17e 100644 --- a/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts +++ b/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts @@ -37,6 +37,12 @@ describe("buildUiSchema: template edit", () => { icon: true, labelKey: `some.scope.fields.name.maxLengthError`, }, + { + type: "ERROR", + keyword: "format", + icon: true, + labelKey: `some.scope.fields.name.entityTitleValidatorError`, + }, ], }, },