Repository navigation
feat: PWA — chatbot installeren als webapp op telefoon, incl. icon (fase 1 op NAS) - #36
Merged
Merged
Conversation
…ker-src/manifest-src (#35) - app/static/manifest.webmanifest: name 'WTC Chatbot', short_name 'Wheely', display standalone, relative start_url/scope, theme-color #033ec2, icons 192/512 + maskable 512 - app/static/sw.js: cachet alleen de app-shell; /chat, /feedback, /healthz worden NOOIT gecached (privacy); navigaties network-first - app/static/icons/: gegenereerd uit wielie.jpg via scripts/make_icons.py (192, 512, maskable 512 op clubblauw, apple-touch-icon 180, favicon 32) - index.html: manifest/icon/theme-color/apple-metatags, viewport-fit=cover, serviceWorker.register('/sw.js') - CSP in main.py + Caddyfile: worker-src 'self'; manifest-src 'self' - tests: manifest content-type, sw.js content-type + no-cache-API, iconen, head-tags, CSP — 17 app-tests groen Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
…stname chat.famstieltjes.nl (#35) - ADR-0007 amendeert ADR-0002 voor fase 1: NAS achter NPM + Let's Encrypt, API-key in fase 1 op de NAS, exit naar VPS is DNS-only - how-to 'Zet de chatbot op je beginscherm' (Android Chrome + iPhone Safari) - GLOSSARY: term Webapp (PWA); operations.md: key-locatie + monitoring fase 1 - NAS-referenties in deploy-nas.ps1 / docker-compose.nas.yml / app/README.md omgezet naar chat.famstieltjes.nl (VPS-domein wtchat.famstieltjes.nl blijft) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
) - index.html: wachtbericht 'Wheely denkt na…' tijdens /chat - Achtergrond 16-9.png (1,36 MB) vervangen door JPEG q80 (104 KB); sw.js shell cachet de jpg (cache-versie v2); A5 uit de shell (nergens gerefereerd) - main.py: Cache-Control — html/manifest/sw.js no-cache, statische assets public max-age=3600, API-antwoorden nooit gecachet - mistral_client.py: DEFAULT_TIMEOUT 180 -> 60s met leesbare RuntimeError bij timeout (eval gebruikt eigen timeout, ongewijzigd) - tests: cache-headers, timeout-default, wachtbericht — 20 app-tests groen Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
…r bericht - Router: licenties, verzekeringen, NK's, leeftijdscategorie, verzet en Titel 20 / Nationale Besluiten direct naar de knwu-agent; routeringsvraag alleen met de drie vaste vraagtypes. - Content-agents: eerst bronnen, dan één vraag per bericht (de vraag die de meeste antwoorden uitsluit), stoppen zodra het antwoord vastligt. - knwu-agent: licentiecategorie volgt alleen uit het geboortejaar. - club-agent: handoff naar knwu-agent voor licentievragen. - Eval: optionele velden `via: router` en `niet_in_antwoord`; nieuwe licentievraag end-to-end via de router. - Glossary: Licentie, Licentiecategorie, KNWU-lidmaatschap. Closes #38 Co-authored-by: Copilot <[email protected]>
Use a secure UUID fallback, guard failed startup, and add opt-in privacy-safe diagnostics with regression coverage. Verified chat recovery on the affected iPhone. Fixes #39. Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementeert #35: de chatbot is installeerbaar als webapp (PWA) op de telefoon, inclusief thuis-schermicon.
Wat er verandert
app/static/manifest.webmanifest— name "WTC Chatbot", short_name "Wheely", display standalone, relativestart_url/scope(VPS-migratie is straks DNS-only), theme-color#033ec2, icons 192/512 + maskableapp/static/sw.js— service worker die ALLEEN de app-shell cachet;/chat,/feedback,/healthzgaan altijd via netwerk en worden NOOIT gecached (privacy-belofte)app/static/icons/— gegenereerd uitwielie.jpgviascripts/make_icons.py(192, 512, maskable 512 op clubblauw, apple-touch-icon 180, favicon 32)index.html— manifest/icon/theme-color/apple-metatags,viewport-fit=cover, SW-registratiemain.py+Caddyfile:worker-src 'self'; manifest-src 'self'chat.famstieltjes.nl, Let's Encrypt) — amendeert ADR-0002; VPS blijft einddoeldocs/how-to/zet-chatbot-op-je-beginscherm.mdPerformance (gemeten: pagina 30-250 ms, /chat 25-47 s door de Mistral-agent-chain)
no-cache, statische assetsmax-age=3600, API-antwoorden nooit gecachetVerified
pytest app/tests: 20 passed; volledige suite: 95 passed + 43 subtests/healthzok, mistral reachable), manifest/sw.js/icons 200 met juiste content-typesDeploy (fase 1, NAS)
chat.famstieltjes.nl->http://wtchatbot:8000(Let's Encrypt, Force SSL, HTTP/2, HSTS) — gedraaid, site is live.envmetMISTRAL_API_KEY+MISTRAL_AGENT_IDop de NAS in/volume1/docker/wtchatbot/.\scripts\deploy-nas.ps1 -Apply -Up(opnieuw draaien voor deze perf-commit)curl -s https://chat.famstieltjes.nl/healthz; op telefoon: Android Chrome toont installatieprompt, iPhone Safari -> deelblad -> "Zet op beginscherm"Let op: webapp-installatie werkt alleen via HTTPS — op LAN-HTTP registreert de service worker niet (chat zelf wel).
Closes #35