feat(waiter): install-app dialog (first visit) + "Εγκατάσταση εφαρμογής" in the side drawer

Replaces the thin bottom banner with a proper dialog (taller than wide):
app icon, four reasons to install (starts instantly, survives WiFi drops,
encrypted link, finds the server + updates itself), the three install
steps, "Λήψη εφαρμογής" and "Όχι τώρα". It opens by itself once, on the
first browser visit; closing it or tapping download marks it seen for good
(previously a 7-day dismissal, and once gone there was no way back).
Afterwards it is reachable from the side drawer, right above Settings.

Offered only where it makes sense: a browser on an Android phone (never in
the native app, on iPhones or desktops) and only if this venue's server
actually serves the APK (HEAD /downloads/xenia-waiter.apk, checked once).

Verified in Edge emulating Android / iPhone / desktop against the prod
build: auto-opens once, "Όχι τώρα" persists across reloads, drawer item
above Settings reopens it, not offered on iPhone/desktop or when the
server has no APK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 22:01:05 +03:00
co-authored by Claude Opus 5.5
parent 251cac9807
commit a349043abb
5 changed files with 203 additions and 101 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ import { SSEProvider } from './context/SSEContext'
import ConnectivityBar from './components/ConnectivityBar'
import AppShell from './components/AppShell'
import UpdatePrompt from './components/UpdatePrompt'
import InstallAppBanner from './components/InstallAppBanner'
import InstallAppDialog from './components/InstallAppDialog'
import VenuesPage from './pages/VenuesPage'
import ServerRediscovery from './components/ServerRediscovery'
import BundleSync from './components/BundleSync'
@@ -447,7 +447,7 @@ export default function App() {
<ConnectivityBar />
{/* Native builds ship their UI in the app bundle — no service worker to update */}
{deliveryMode() !== 'native' && <UpdatePrompt />}
<InstallAppBanner />
<InstallAppDialog />
{deliveryMode() === 'native' && <ServerRediscovery />}
{deliveryMode() === 'native' && <BundleSync />}
<Routes>