From 13c72b5ee0f7013f1b82ae35fa8d81aa0e642eaa Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Mon, 18 May 2026 17:56:45 +0100 Subject: [PATCH] fix(admin-events): polish form papercuts - Hide the location field's static help text when a validation error is shown so the two near-identical messages stop stacking. - Replace `process.client` with `import.meta.client` (Nuxt 3+ pattern). - Accept either String or Date for EventTicketPurchase.eventStartDate; the parent passes the API's ISO string, which was logging a Vue prop type warning on every public event page render. --- app/components/EventTicketPurchase.vue | 2 +- app/pages/admin/events/create.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/EventTicketPurchase.vue b/app/components/EventTicketPurchase.vue index e78652e..0e61903 100644 --- a/app/components/EventTicketPurchase.vue +++ b/app/components/EventTicketPurchase.vue @@ -224,7 +224,7 @@ const props = defineProps({ required: true, }, eventStartDate: { - type: Date, + type: [String, Date], required: true, }, eventTitle: { diff --git a/app/pages/admin/events/create.vue b/app/pages/admin/events/create.vue index 7f910fe..1c6be51 100644 --- a/app/pages/admin/events/create.vue +++ b/app/pages/admin/events/create.vue @@ -122,7 +122,7 @@

{{ fieldErrors.location }}

-

+

Enter a video conference link or Slack channel (starting with #)

@@ -766,7 +766,7 @@ if (route.query.edit) { } // Check if we're duplicating an event -if (route.query.duplicate && process.client) { +if (route.query.duplicate && import.meta.client) { const duplicateData = sessionStorage.getItem("duplicateEventData"); if (duplicateData) { try { @@ -780,7 +780,7 @@ if (route.query.duplicate && process.client) { } // Check if we're creating a series event -if (route.query.series && process.client) { +if (route.query.series && import.meta.client) { const seriesData = sessionStorage.getItem("seriesEventData"); if (seriesData) { try {