diff --git a/apps/web/src/components/NewWorkspaceForm.tsx b/apps/web/src/components/NewWorkspaceForm.tsx index fdf9f090..9c389c30 100644 --- a/apps/web/src/components/NewWorkspaceForm.tsx +++ b/apps/web/src/components/NewWorkspaceForm.tsx @@ -33,7 +33,7 @@ const schema = z.object({ .min(3, { message: t`URL must be at least 3 characters long`, }) - .max(24, { message: t`URL cannot exceed 24 characters` }) + .max(64, { message: t`URL cannot exceed 64 characters` }) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/, { message: t`URL can only contain letters, numbers, and hyphens`, }) diff --git a/apps/web/src/pages/api/stripe/create_checkout_session.ts b/apps/web/src/pages/api/stripe/create_checkout_session.ts index 78cac3ee..6be70a66 100644 --- a/apps/web/src/pages/api/stripe/create_checkout_session.ts +++ b/apps/web/src/pages/api/stripe/create_checkout_session.ts @@ -11,7 +11,7 @@ import { withRateLimit } from "@kan/api/utils/rateLimit"; const workspaceSlugSchema = z .string() .min(3) - .max(24) + .max(64) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/); interface CheckoutSessionRequest { diff --git a/apps/web/src/views/settings/components/UpdateWorkspaceUrlForm.tsx b/apps/web/src/views/settings/components/UpdateWorkspaceUrlForm.tsx index ff22281d..9535d353 100644 --- a/apps/web/src/views/settings/components/UpdateWorkspaceUrlForm.tsx +++ b/apps/web/src/views/settings/components/UpdateWorkspaceUrlForm.tsx @@ -33,7 +33,7 @@ const UpdateWorkspaceUrlForm = ({ .min(3, { message: t`URL must be at least 3 characters long`, }) - .max(24, { message: t`URL cannot exceed 24 characters` }) + .max(64, { message: t`URL cannot exceed 64 characters` }) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/, { message: t`URL can only contain letters, numbers, and hyphens`, }), diff --git a/packages/api/src/routers/board.ts b/packages/api/src/routers/board.ts index 31796a83..7506e3a8 100644 --- a/packages/api/src/routers/board.ts +++ b/packages/api/src/routers/board.ts @@ -218,7 +218,7 @@ export const boardRouter = createTRPCRouter({ workspaceSlug: z .string() .min(3) - .max(24) + .max(64) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/), boardSlug: z .string() diff --git a/packages/api/src/routers/workspace.ts b/packages/api/src/routers/workspace.ts index 48c9d8cb..f0531f91 100644 --- a/packages/api/src/routers/workspace.ts +++ b/packages/api/src/routers/workspace.ts @@ -160,7 +160,7 @@ export const workspaceRouter = createTRPCRouter({ workspaceSlug: z .string() .min(3) - .max(24) + .max(64) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/), }), ) @@ -207,7 +207,7 @@ export const workspaceRouter = createTRPCRouter({ slug: z .string() .min(3) - .max(24) + .max(64) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/) .optional(), }), @@ -290,7 +290,7 @@ export const workspaceRouter = createTRPCRouter({ slug: z .string() .min(3) - .max(24) + .max(64) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/) .optional(), description: z.string().min(3).max(280).optional(), @@ -424,7 +424,7 @@ export const workspaceRouter = createTRPCRouter({ workspaceSlug: z .string() .min(3) - .max(24) + .max(64) .regex(/^(?![-]+$)[a-zA-Z0-9-]+$/), }), )