Fix kiosk 'Install' installing the main hvac app instead
The whole hvac SPA shares one index.html/<link rel=manifest>, so 'Install' from any route always used the main manifest (start_url '/hvac/', staff AuthGate) -- hit 2026-08-26, installing from /hvac/kiosk opened the staff login instead of the kiosk password prompt. Fix: new static kiosk-manifest.webmanifest (start_url/scope '/hvac/kiosk', name 'HVAC Kiosk'), swapped into the document's manifest link while the Kiosk route is mounted (useKioskManifest hook), restored on unmount. Reuses the existing hvac icon set. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
55afcaa786
commit
9b4e49b801
2 changed files with 32 additions and 0 deletions
13
frontend/public/kiosk-manifest.webmanifest
Normal file
13
frontend/public/kiosk-manifest.webmanifest
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "HVAC Kiosk",
|
||||
"short_name": "HVAC Kiosk",
|
||||
"start_url": "/hvac/kiosk",
|
||||
"scope": "/hvac/kiosk",
|
||||
"display": "standalone",
|
||||
"theme_color": "#c1440e",
|
||||
"background_color": "#c1440e",
|
||||
"icons": [
|
||||
{ "src": "/hvac/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
|
||||
{ "src": "/hvac/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue