Clarify host alert copy when a visitor checks in.
Deploy Ladill Frontdesk / deploy (push) Successful in 54s

Tell hosts the visitor is here to see them and include purpose when provided.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-29 07:28:14 +00:00
co-authored by Cursor
parent a216666867
commit fedc1b2763
@@ -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'],
);
}