diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.ts index 4ea51df2b..43c40d154 100644 --- a/backend/src/lib/api-docs/constants.ts +++ b/backend/src/lib/api-docs/constants.ts @@ -597,7 +597,7 @@ export const RAW_SECRETS = { environment: "The slug of the environment to list secrets from.", secretPath: "The secret path to list secrets from.", includeImports: "Weather to include imported secrets or not.", - tagSlugs: "The comma seperated tag slugs to filter secrets" + tagSlugs: "The comma separated tag slugs to filter secrets" }, CREATE: { secretName: "The name of the secret to create.", diff --git a/backend/src/server/routes/v1/secret-tag-router.ts b/backend/src/server/routes/v1/secret-tag-router.ts index 9fc08d6c7..99f04c6bd 100644 --- a/backend/src/server/routes/v1/secret-tag-router.ts +++ b/backend/src/server/routes/v1/secret-tag-router.ts @@ -158,7 +158,7 @@ export const registerSecretTagRouter = async (server: FastifyZodProvider) => { .trim() .describe(SECRET_TAGS.UPDATE.slug) .refine((v) => slugify(v) === v, { - message: "Invalid slug. Should contain only characters, numbers and hyphen." + message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens." }), color: z.string().trim().describe(SECRET_TAGS.UPDATE.color) }), diff --git a/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx b/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx index 5eabb093d..acbcdcb2d 100644 --- a/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx +++ b/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx @@ -93,7 +93,7 @@ const createTagSchema = z.object({ .trim() .toLowerCase() .refine((v) => slugify(v) === v, { - message: "Invalid slug. Should contain only characters, numbers and hyphen." + message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens." }), color: z.string().trim() }); diff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/SecretTagsSection/AddSecretTagModal.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/SecretTagsSection/AddSecretTagModal.tsx index 0a2c4856e..75f6b69bf 100644 --- a/frontend/src/views/Settings/ProjectSettingsPage/components/SecretTagsSection/AddSecretTagModal.tsx +++ b/frontend/src/views/Settings/ProjectSettingsPage/components/SecretTagsSection/AddSecretTagModal.tsx @@ -11,7 +11,7 @@ import { UsePopUpState } from "@app/hooks/usePopUp"; const schema = z.object({ slug: z.string().refine((v) => slugify(v) === v, { - message: "Invalid slug. Should contain only characters, numbers and hyphen." + message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens." }) });