From fedc1b2763f79eacf3e1010799d97d06d8f72f32 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Mon, 29 Jun 2026 07:28:14 +0000 Subject: [PATCH] Clarify host alert copy when a visitor checks in. Tell hosts the visitor is here to see them and include purpose when provided. Co-authored-by: Cursor --- app/Services/Frontdesk/NotificationDispatcher.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/Services/Frontdesk/NotificationDispatcher.php b/app/Services/Frontdesk/NotificationDispatcher.php index 7d87953..d64cad6 100644 --- a/app/Services/Frontdesk/NotificationDispatcher.php +++ b/app/Services/Frontdesk/NotificationDispatcher.php @@ -25,11 +25,16 @@ class NotificationDispatcher public function visitorArrived(Visit $visit): bool { + $message = "{$visit->visitor->full_name} has checked in and is here to see you."; + if ($visit->purpose) { + $message .= " Purpose: {$visit->purpose}."; + } + return $this->dispatchVisitEvent( $visit, 'visitor_arrived', - 'Visitor has arrived', - "{$visit->visitor->full_name} has checked in.", + 'Visitor here to see you', + $message, ['icon' => 'user-check'], ); } @@ -62,8 +67,8 @@ class NotificationDispatcher $this->dispatchVisitEvent( $visit, 'visitor_waiting', - 'Visitor waiting', - "{$visit->visitor->full_name} is waiting in reception.", + 'Visitor waiting to see you', + "{$visit->visitor->full_name} is waiting in reception to see you.", ['icon' => 'clock'], ); }