Skip to content

iOS PWA safe areas, feedback/foutmeldingen en how-to's in actieve vorm (#54, #55) - #56

Merged
Atrium0804 merged 19 commits into
mainfrom
54-ios-safe-area-insets
Nov 11, 2026
Merged

Atrium0804 merged 19 commits into
mainfrom
54-ios-safe-area-insets

Conversation

@Atrium0804

Copy link
Copy Markdown
Owner

Summary

Brengt alles wat al live op de NAS draait naar main, plus de how-to-herstructurering van #55.

 app/static/
   index.html
-    <meta name="theme-color">              # iOS 27: wazige bovenrand in geïnstalleerde PWA
+    viewport-fit=cover + safe-area-insets  # header/footer vrij van statusbalk en home-indicator
+    viewport.js                            # één hoogtebron voor toetsenbord/rotatie
   manifest.webmanifest
-    theme_color
   sw.js                                    # shell-cache v19, zonder wielie.jpg
 docs/how-to/
-  chatdiagnostiek-tonen.md …               # 5 pagina's hernoemd naar actieve vorm
+  toon-chatdiagnostiek-op-je-telefoon.md …
+  gebruik-feedback-om-prompts-te-finetunen.md

Gedragsafwijkingen in de chat:

 feedback versturen
-  altijd "Bedankt voor je feedback.", knoppen op slot
+  mislukt → "Feedback niet verstuurd. Probeer het opnieuw." + opnieuw proberen
 chatfout
-  ruwe browsertekst ("Failed to fetch", JSON SyntaxError)
+  serverfout of "Er ging iets mis. Probeer het opnieuw."
 na een antwoord
-  focus op vraagveld (iOS-toetsenbord dekt antwoord af)
+  alleen bij (pointer: fine)

Daarnaast: Wheely → Wielie, Wielie-icoon in clubkleuren, rode rand om tekstballonnen.

Evidence

  • Before: test_chat_deviations.cjs faalde op actual: 'Failed to fetch', actual: 'Verstuur feedbackBedankt voor je feedback.' na een mislukte POST, en focus op touchscreen; test_no_theme_color_because_ios_blurs_top_edge faalde.
    After: pytest tests app/tests → 186 passed (incl. Playwright-layouttests Chromium/WebKit en test_docs_naming.py); node --test app/tests/*.cjs → 41 passed.
  • Op het toestel (iPhone, iOS 27): kale testpagina scherp zonder theme-color, wazig met alleen theme_color in het manifest. Het echte scherm blijft wazig; zie de comment in iOS PWA: statusbalk overlapt header en home-indicator klippt invoerbalk (safe-area-insets ontbreken op main) #54.

Merge Danger

Door: two-way

Alleen statische frontend, docs en tests; revert + cache-bump volstaat.

Blast Radius: PWA-installaties

Geïnstalleerde apps krijgen een witte statusbalk i.p.v. blauw; iOS leest dat pas na herinstallatie. Links naar de oude how-to-namen buiten de repo breken.

Closes #55
Refs #54 (blijft open: wazige kop op het echte scherm onder iOS 27 is uitgesteld)

Ivo Stieltjes and others added 19 commits November 10, 2026 22:17
#54)

Oorzaak: app/static/index.html bevatte geen env(safe-area-inset-*) regels.
Met viewport-fit=cover viel in standalone-PWA modus de iOS-statusbalk over
de header en de home-indicator over de footer/invoerbalk. De fix was tijdens
#35 geschreven maar nooit meegekomen in PR #36; hij overleefde alleen in
capture-commit 45d3cc3 op prototype/taalniveau-gui.

Fix: alleen de safe-area-padding overgenomen uit 45d3cc3 (header
padding-top/right/left, footer padding-bottom/right/left als
calc(<base> + env(safe-area-inset-*, 0px))). Zonder prototypeblok en zonder
Wheely->Wielie rename. CRLF line-endings behouden.

Regressietest: test_index_has_safe_area_insets in app/tests/test_app.py
assert dat de geserveerde HTML de env(safe-area-inset-top) regel in het
header-blok en env(safe-area-inset-bottom) in het footer-blok bevat.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
CONTRIBUTING.md zei alleen `pytest`, maar fastapi/pytest zitten niet in de
standaard-`python` — alleen in de project-venv. Werkstap 4 en de checklist
noemen nu `.venv\Scripts\python -m pytest app/tests` vanuit repo-root, plus
het eenmalig aanmaken van de venv met app\requirements-dev.txt. De docstring
van app/tests/test_app.py vermeldt hetzelfde commando en het juiste pad naar
requirements-dev.txt (app/, niet repo-root).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
Na a67d650 bleef het op iPhone misgaan:
- Invoervelden < 16px (#question 0.95rem, feedback 0.8rem) lieten iOS bij
  focus inzoomen; de zoom bleef hangen, waardoor de header onder de
  statusbalk schoof en de Verstuur-knop buiten beeld viel. Beide nu 16px.
- iOS 26 negeert theme-color/black-translucent en tekent de statusbalk zelf,
  getint naar de body-achtergrondkleur of een fixed/sticky element bovenin.
  Body-achtergrondkleur is nu var(--accent) (afbeelding dekt hem af) en de
  header is sticky; manifest background_color gelijk aan theme_color.
- Service worker cache naar v6.

Regressietests in app/tests/test_app.py voor de 16px-invoervelden en de
body-/header-kleur.

Co-authored-by: Copilot <[email protected]>
Alle .msg-ballonnen (bot en gebruiker) krijgen 1px solid var(--danger),
het clubrood dat ook de invoerbalk en Verstuur-knop gebruiken. De grijze
rand van de bot-ballon vervalt. Service worker cache naar v7.

Co-authored-by: Copilot <[email protected]>
wielie.jpg omgekleurd naar exact clubblauw (#033ec2) en clubrood (#e00720);
schaduw behouden. Rug: egaal rood rond nek/schouder, kort rood/blauw
dambordverloop, verder blauw. Shirtblokken egaal geschilderd (geen
JPEG-randen). PWA-iconen opnieuw gegenereerd met scripts/make_icons.py.
Service worker cache naar v8.

Co-authored-by: Copilot <[email protected]>
App-naam (manifest short_name, apple-mobile-web-app-title), header,
taalniveau-uitleg, typ-indicator, how-to "zet chatbot op je beginscherm"
en tests. Service worker cache naar v9.

Co-authored-by: Copilot <[email protected]>
Replace device-height corrections with visual viewport sizing and offset handling. Add browser regressions, opt-in geometry diagnostics, and the controlled default status-bar trial.

The device test confirms the bottom strip is gone; the blurred PWA heading remains unresolved. Record the evidence and next Mac inspection steps without claiming a complete fix.

Validation: 63 app tests and 31 JavaScript tests passed.

Co-authored-by: Copilot <[email protected]>
Step 1 of the GUI rebuild: separate /lab/ installation without background, safe areas, viewport.js or service worker. Root service worker skips /lab/ (cache v17).

Co-authored-by: Copilot <[email protected]>
…agnosis (#54)

Step 1 minimal page was blurred in the installed PWA but sharp in a Safari tab.

Co-authored-by: Copilot <[email protected]>
Only the top strip is blurred in the installed PWA; content scrolled below it is sharp.

Co-authored-by: Copilot <[email protected]>
Measured: iOS blurs the top 36 css px below the opaque status bar in standalone mode, blending the light bar into the content.

Co-authored-by: Copilot <[email protected]>
devswha/ovis#164 reports no iOS 27 blur with status-bar-style default; our default page still blurred 36px. Theme-color is the remaining difference under test.

Co-authored-by: Copilot <[email protected]>
…ed (#54)

Diag-4 without any theme-color: no top-edge blur on iOS 27. This isolates meta vs manifest.

Co-authored-by: Copilot <[email protected]>
Root cause: on iOS 27 an installed PWA with a theme-color (meta tag or manifest theme_color) gets a system blur over the top ~36 css px below the status bar. Isolated on device with /lab/ variants: no theme-color = sharp; manifest theme_color alone = blurred. Safari tabs are unaffected.

Trade-off: no blue theme tint on Android/iOS bars; sharpness wins. Shell cache v18.

Co-authored-by: Copilot <[email protected]>
- Failed feedback (network or non-2xx) now says 'Feedback niet verstuurd. Probeer het opnieuw.' and can be retried; previously it always thanked the user and locked the buttons.
- Chat errors show only the server's own error text, otherwise a Dutch fallback instead of raw browser/JSON parse messages.
- The question field is refocused only on fine-pointer devices so the iOS keyboard no longer covers a fresh answer.
- wielie.jpg (icon source only) is no longer part of the offline shell.

Co-authored-by: Copilot <[email protected]>
…out theme-color (#54)

Real screen still blurred after theme-color removal; lab-diag-4 was sharp. Variables: blue top edge and viewport-fit=cover.

Co-authored-by: Copilot <[email protected]>
)

theme-color removal fixed a bare test page but not the real screen (blue header, viewport-fit=cover). Separating experiment not run; deferred as an iOS 27 bug. Findings in docs/how-to/toon-chatdiagnostiek-op-je-telefoon.md.

Co-authored-by: Copilot <[email protected]>
…-to-namen in actieve vorm (#55)

- nieuwe how-to gebruik-feedback-om-prompts-te-finetunen.md: de hele loop
  feedback ophalen -> analyseren (trace_conversation) -> failing case in
  evalset -> prompt/config wijzigen -> create_agents.py --apply -> eval-gate
  -> geanonimiseerd in LEARNINGS.md
- how-to-pagina's hernoemd naar actieve werkwoordsvorm (kebab-case):
  synchroniseer-libraries, stel-websearch-allowlist-in,
  toon-chatdiagnostiek-op-je-telefoon, maak-of-update-productie-agents,
  raadpleeg-feedback-voor-triage; alle links bijgewerkt (incl. pre-existing
  kapotte ../how-to-link in system-prompt.md, gevonden door de nieuwe test)
- naamregel vastgelegd in DOCUMENTATION_GUIDE.md en de write-documentation
  skill
- nieuwe test tests/test_docs_naming.py: kebab-case in docs/how-to/, index
  in README, relative .md-links resolven

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
@Atrium0804
Atrium0804 merged commit 3886b9d into main Nov 11, 2026
2 checks passed
@Atrium0804
Atrium0804 deleted the 54-ios-safe-area-insets branch November 13, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How-to feedback-loop naar prompt-finetuning documenteren + how-to-pagina's hernoemen naar actieve vorm

1 participant