From 19d692afe7cfafa012bbbee21482e62ad8b3eacd Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Thu, 14 May 2026 01:18:04 -0400 Subject: [PATCH] feat(fusion_clock): NFC kiosk QWeb template with static chrome + setup wizard Replace placeholder template with full version: static chrome (company, clock, date, location, settings button), one-time setup wizard state, hidden video/canvas for camera, and data-* attrs for JS feature flags. Update test assertion from h1 text to nfc_kiosk_root id to match new markup. Co-Authored-By: Claude Opus 4.7 (1M context) --- fusion_clock/tests/test_clock_nfc_kiosk.py | 2 +- fusion_clock/views/kiosk_nfc_templates.xml | 37 ++++++++++++++++++---- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/fusion_clock/tests/test_clock_nfc_kiosk.py b/fusion_clock/tests/test_clock_nfc_kiosk.py index e58ba12d..7a47e9ec 100644 --- a/fusion_clock/tests/test_clock_nfc_kiosk.py +++ b/fusion_clock/tests/test_clock_nfc_kiosk.py @@ -35,7 +35,7 @@ class TestNfcKioskController(HttpCase): self.authenticate('nfc-kiosk-test', 'kioskpass123') response = self.url_open('/fusion_clock/kiosk/nfc') self.assertEqual(response.status_code, 200) - self.assertIn('NFC Clock Kiosk', response.text) + self.assertIn('nfc_kiosk_root', response.text) from odoo.tests.common import TransactionCase diff --git a/fusion_clock/views/kiosk_nfc_templates.xml b/fusion_clock/views/kiosk_nfc_templates.xml index d01d472a..500e3225 100644 --- a/fusion_clock/views/kiosk_nfc_templates.xml +++ b/fusion_clock/views/kiosk_nfc_templates.xml @@ -5,14 +5,39 @@ -
-

NFC Clock Kiosk

-
- No NFC kiosk location configured for . Ask your administrator to configure one in Fusion Clock settings. + + + + +
+ + +
+
--:--
+
+
+ Clock at: + ⚠ No location configured
-
-

Clock at:

+ + + +
+ +
+

Welcome to Fusion Clock NFC Kiosk

+

Tap the button below to enable the NFC reader and camera. This is a one-time setup for this device.

+ +
+ + +