Skip to content

Feature: chatbot installeren als webapp (PWA) op telefoon, incl. icon — fase 1 op NAS #35

Closed

Description

@Atrium0804

Wat

De chatbot (chat-UI op app/static/index.html) installeerbaar maken als webapp op de telefoon, inclusief thuis-schermicon. Fase 1 draait op de Synology NAS achter NPM (zie app/docker-compose.nas.yml + scripts/deploy-nas.ps1); de VPS blijft de long-term target (ADR-0002).

Besluiten (grilling-sessie, alle vragen approved)

  • PWA, geen store-app (Capacitor) en geen bladwijzer.
  • Iconen afgeleid van app/static/wielie.jpg op clubblauw #033ec2: 512, 192, maskable 512 (80%-veilige zone), apple-touch-icon 180 (ondoorzichtig), favicon 32. Generator: scripts/make_icons.py, output committed in app/static/icons/.
  • Service worker cachet ALLEEN de app-shell; /chat, /feedback, /healthz gaan altijd via netwerk en worden NOOIT gecached (privacy-belofte: geen vraag-antwoord buiten de server om bewaren).
  • Manifest: name "WTC Chatbot", short_name "Wheely", display standalone, start_url/scope relatief (/) zodat de latere VPS-overstap DNS-only is, theme-color #033ec2.
  • iOS volwaardig: apple-touch-icon + apple-mobile-web-app-capable + status-bar-style + title + viewport-fit=cover.
  • CSP in app/main.py én app/Caddyfile uitbreiden met worker-src 'self'; manifest-src 'self'; hermetische tests mee-updaten.
  • NAS fase 1: NPM proxy host chat.famstieltjes.nl (Let's Encrypt, Force SSL) -> http://wtchatbot:8000 op het cloud-netwerk. Webapp-installatie is HTTPS-only; LAN-HTTP is test-only (service worker registreert niet op plain HTTP).
  • Deploy: scripts/deploy-nas.ps1 (bestaat al), .env met API-key leeft in fase 1 op de NAS — ADR-0007 documenteert de amendment van ADR-0002 (beschikbaarheid, dynamisch IP, key-locatie).
  • Geen in-app "installeer"-knop; wel een how-to in docs/how-to/ voor leden (Android Chrome + iOS Safari).

Definition of done

  • pytest app/tests groen incl. nieuwe tests (manifest content-type, sw.js, iconen, CSP, head-tags)
  • https://chat.famstieltjes.nl laadt manifest + sw.js; Android toont installatieprompt, iOS "Zet op beginscherm" met icon
  • ADR-0007 + GLOSSARY-term + how-to + operations.md bijgewerkt

Activity

  1. added
    needs-triage
    on Nov 5, 2026
  2. self-assigned this
    on Nov 6, 2026
  3. Atrium0804 commented on Nov 6, 2026

    @Atrium0804
    OwnerAuthor

    Acceptance resolution

    The user confirms that the iPhone home-screen icon is installed and that chat works when launched from the installed webapp. This verifies installed-webapp behavior, not merely a Safari tab.

    The user explicitly accepts unavailable Android installation testing as a limitation for this acceptance. Android installation and its prompt remain UNVERIFIED; this is an accepted exception to the original definition of done, not a passing Android test.

    Previously verified in this session:

    • All 21 app tests pass, including manifest, service-worker, icon, CSP and head-tag coverage.
    • Public HTTPS manifest and service worker returned HTTP 200.
    • ADR-0007, glossary entry, installation how-to and operations updates are present.
    • The Firefox chat startup failure was fixed and verified on the affected iPhone; the related bug is closed.

    A generic diagnostic JavaScript Error at line 0/column 0 remains unexplained, but did not prevent the verified Firefox chat. No claim is made that this error has been resolved.

    The route is clear and no larger wayfinder map is needed. Closing as completed with the explicitly accepted Android verification limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions