[PULSE-4] Goals & Events dashboard block and settings UI #5

Merged
uz1mani merged 8 commits from staging into main 2026-02-04 15:04:10 +00:00
7 changed files with 381 additions and 2 deletions
Showing only changes of commit 97df5ee99b - Show all commits

View File

@@ -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