From 97df5ee99b085684d7855baff5b5ba7272fe53d0 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Wed, 4 Feb 2026 15:32:00 +0100 Subject: [PATCH] feat: add validation for event name length in SiteSettingsPage to ensure it does not exceed 64 characters --- app/sites/[id]/settings/page.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index 74a89ac..d4cc389 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -156,6 +156,10 @@ export default function SiteSettingsPage() { return } const eventName = goalForm.event_name.trim().toLowerCase().replace(/\s+/g, '_') + if (eventName.length > 64) { + toast.error('Event name must be 64 characters or less') + return + } if (!/^[a-zA-Z0-9_]+$/.test(eventName)) { toast.error('Event name can only contain letters, numbers, and underscores') return