From f1f552ad2de8ac7767a12669fbdaf6a7c4d16c25 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Sun, 18 Jan 2026 11:14:42 +0100 Subject: [PATCH] fix(admin-pwa): fix location saving and dashboard refresh delay --- app/Http/Requests/Tenant/EventStoreRequest.php | 1 + resources/js/admin/mobile/EventFormPage.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/Http/Requests/Tenant/EventStoreRequest.php b/app/Http/Requests/Tenant/EventStoreRequest.php index f2260d6..c1060e4 100644 --- a/app/Http/Requests/Tenant/EventStoreRequest.php +++ b/app/Http/Requests/Tenant/EventStoreRequest.php @@ -50,6 +50,7 @@ class EventStoreRequest extends FormRequest 'features' => ['nullable', 'array'], 'features.*' => ['string'], 'settings' => ['nullable', 'array'], + 'settings.location' => ['nullable', 'string', 'max:255'], 'settings.branding' => ['nullable', 'array'], 'settings.branding.*' => ['nullable'], 'settings.engagement_mode' => ['nullable', Rule::in(['tasks', 'photo_only'])], diff --git a/resources/js/admin/mobile/EventFormPage.tsx b/resources/js/admin/mobile/EventFormPage.tsx index 88880a0..644ce55 100644 --- a/resources/js/admin/mobile/EventFormPage.tsx +++ b/resources/js/admin/mobile/EventFormPage.tsx @@ -246,6 +246,8 @@ export default function MobileEventFormPage() { }, }); const nextSlug = resolveEventSlugAfterUpdate(slug, updated); + await queryClient.invalidateQueries({ queryKey: ['tenant-events'] }); + void refetch(); navigate(adminPath(`/mobile/events/${nextSlug}`)); } else { const payload = {