Files
Heimdall/skills/pwa/SKILL.md
T
arnaud.dartois 636154572b
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
Complete remaining Heimdall features and acceptance
Merge pull request #138

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-06 11:14:49 +01:00

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.razor links the web manifest and raster/Apple icons and loads js/pwa-register.js.
  • wwwroot/manifest.webmanifest defines stable root scope, standalone display and PNG/SVG icons.
  • wwwroot/service-worker.js caches only /offline.html, /manifest.webmanifest and /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.js shows a reload action for a waiting worker; only that action sends ACTIVATE_UPDATE, then reloads after controllerchange. Do not unconditionally call skipWaiting() or clients.claim() because this can replace resources during an active form or live session.
  • Installation UI is progressive: use beforeinstallprompt where the browser provides it; otherwise explain the platform's browser-menu installation steps. Browsers without PWA installation support must keep the site usable.

Acceptance

  1. Run tests/Heimdall.E2E.Tests with 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.
  2. Build the changed source through the disposable Central + PostgreSQL Compose recipe in skills/compose-disposable-recipe/SKILL.md; probe /healthz, /manifest.webmanifest, /service-worker.js and 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.
  3. Review docs/pwa.md and 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.
  4. 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.