Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 19m19s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 6m13s
Heimdall Gitea / Build and scan agent image (push) Successful in 14m44s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m48s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m9s
Heimdall Gitea / CI policy (push) Successful in 10s
Merge pull request #138 Co-authored-by: Arnaud Dartois <admin@tordais.cc>
3.0 KiB
3.0 KiB
name, description
| name | description |
|---|---|
| heimdall-pwa | Implement and accept Heimdall's root-hosted, online-first Blazor PWA without persisting private application data. |
Heimdall PWA
The supported PWA deployment is at the web origin root (/). The Blazor app uses Interactive Server, so camera, event, account and administration screens require a live server circuit. Offline mode is an informational page only; never add authenticated HTML, API results, media, credentials or SignalR traffic to CacheStorage or replay mutations offline.
Implementation map
src/Heimdall.Web/Components/App.razorlinks the web manifest and raster/Apple icons and loadsjs/pwa-register.js.wwwroot/manifest.webmanifestdefines stable root scope, standalone display and PNG/SVG icons.wwwroot/service-worker.jscaches only/offline.html,/manifest.webmanifestand/pwa-icon.svg. It falls back only for failed same-origin GET navigations and excludes API, auth, Blazor, hubs, health, metrics and operational/documentation paths.- The worker must remain waiting after an update.
pwa-register.jsshows a reload action for a waiting worker; only that action sendsACTIVATE_UPDATE, then reloads aftercontrollerchange. Do not unconditionally callskipWaiting()orclients.claim()because this can replace resources during an active form or live session. - Installation UI is progressive: use
beforeinstallpromptwhere the browser provides it; otherwise explain the platform's browser-menu installation steps. Browsers without PWA installation support must keep the site usable.
Acceptance
- Run
tests/Heimdall.E2E.Testswith its disposable PostgreSQL fixture and Chromium. Check unauthenticated manifest and icon access, exact public-shell contents, offline navigation fallback, and absence of cached private content. - Build the changed source through the disposable Central + PostgreSQL Compose recipe in
skills/compose-disposable-recipe/SKILL.md; probe/healthz,/manifest.webmanifest,/service-worker.jsand the offline page. Use unique project/ports/credentials/volumes and install an EXIT cleanup trap before build/start. Remove the project, verify zero containers/volumes/networks, then remove and verify absence of each exact project-unique local image tag, even after failure; retain shared upstream images and report cleanup errors. Assign the locally built Central image a project-unique tag; remove and verify that exact tag after teardown, while retaining shared .NET/PostgreSQL bases. - Review
docs/pwa.mdand deployment instructions for HTTPS, root hosting, reverse proxy/WebSocket support, update and rollback behavior. Report physical iOS/Android/desktop installation, HTTPS proxy, and mobile sleep/network testing only when run on those real environments. - Keep the PWA backlog open for validations that require real browsers/devices or remote push infrastructure. Do not claim Web Push exists without a tested VAPID backend, subscriptions, revocation and permission-aware delivery.