From cdd675d247491450ff525de65d0f119951d06b3a Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sun, 28 Jun 2026 21:36:14 +0000 Subject: [PATCH] Restore tap-to-begin kiosk welcome and add visitor/staff choice step. After tapping begin, users pick Visitor or Staff icon cards before entering the respective check-in or sign-in flows. Co-authored-by: Cursor --- resources/js/kiosk-flow.js | 15 +++++- .../views/frontdesk/kiosk/index.blade.php | 46 ++++++++++++++++--- tests/Feature/FrontdeskPhase7Test.php | 2 +- 3 files changed, 54 insertions(+), 9 deletions(-) diff --git a/resources/js/kiosk-flow.js b/resources/js/kiosk-flow.js index 0733def..f3f0635 100644 --- a/resources/js/kiosk-flow.js +++ b/resources/js/kiosk-flow.js @@ -177,12 +177,14 @@ export function registerKioskFlow(Alpine) { goBack() { if (this.step === 'type') { - this.step = 'welcome'; + this.step = this.employeeKioskEnabled ? 'choose' : 'welcome'; this.typeIndex = 0; } else if (this.step === 'details') { this.prevFormStep(); - } else if (this.step === 'staff_identify') { + } else if (this.step === 'choose') { this.step = 'welcome'; + } else if (this.step === 'staff_identify') { + this.step = 'choose'; } else if (this.step === 'staff_actions') { this.step = 'staff_identify'; } else if (this.step === 'staff_step_out') { @@ -222,6 +224,15 @@ export function registerKioskFlow(Alpine) { this.resetTimer(); }, + beginKiosk() { + if (this.employeeKioskEnabled) { + this.step = 'choose'; + } else { + this.startVisitorFlow(); + } + this.resetTimer(); + }, + startVisitorFlow() { this.step = 'type'; this.resetTimer(); diff --git a/resources/views/frontdesk/kiosk/index.blade.php b/resources/views/frontdesk/kiosk/index.blade.php index fa53aaf..471b1e0 100644 --- a/resources/views/frontdesk/kiosk/index.blade.php +++ b/resources/views/frontdesk/kiosk/index.blade.php @@ -43,7 +43,7 @@ @include('frontdesk.partials.kiosk-brand')
- {{-- Welcome --}} + {{-- Welcome: tap to begin --}} + + {{-- Choose: visitor or staff --}} +