[docs] KeepHerSafeApps: Round trip on the tablet, the page between Android's bars, review, gaps closed, lessons

This commit is contained in:
2026-11-17 22:22:36 +01:00
parent e262b8f295
commit d5f37b3149
13 changed files with 243 additions and 32 deletions
+3 -3
View File
@@ -11,10 +11,10 @@ and **how to apply it**.
| [`design.md`](design.md) | 1 | Wording, silence, empty states. |
| [`art.md`](art.md) | 3 | The image pipeline. |
| [`code.md`](code.md) | 4 | TypeScript, Svelte, async ordering, Rust. |
| [`technical.md`](technical.md) | 9 | The browser and the build as platforms. |
| [`testing.md`](testing.md) | 15 | What makes a test worth having, and how a passing test lies. |
| [`technical.md`](technical.md) | 10 | The browser and the build as platforms. |
| [`testing.md`](testing.md) | 16 | What makes a test worth having, and how a passing test lies. |
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
| [`process.md`](process.md) | 4 | Workflow, commits, credentials, honesty about what shipped. |
| [`process.md`](process.md) | 5 | Workflow, commits, credentials, honesty about what shipped. |
A file is created with its first real entry. An empty lessons file only looks like
knowledge.
+11
View File
@@ -59,3 +59,14 @@ On Windows the interpreter also chooses line endings.
**How to apply it.** Edit source files with the edit tool. When a script is needed, write
it to a file first (the scratchpad), then run the file.
## Git Bash rewrites Android paths
**What happened.** On 2026-11-17 `adb shell ls -l /sdcard/Download/…` typed in Git Bash answered
`ls: C:/Program: No such file or directory`: MSYS turned `/sdcard/…` into
`C:/Program Files/Git/sdcard/…` before adb saw it.
**Why it bit.** The rewrite is silent and the error looks like the device's.
**How to apply it.** Prefix hand-typed adb commands with `MSYS_NO_PATHCONV=1`, or pass arguments from
Node (`spawnSync`), which the shell does not touch.
+14
View File
@@ -124,3 +124,17 @@ a permission a library adds.
**How to apply it.** Check permissions, backup flags and WebView switches on the APK and on the
installed package, and name each allowed exception precisely (this package's own receiver guard,
not any app's).
## Tauri's Android activity draws under the system bars
**What happened.** The first screenshot of the Android app on the tablet (2026-11-17) showed the clock
over the title and the navigation bar over *Bring her back from a file*. Tauri's generated
`MainActivity` calls `enableEdgeToEdge()`, and Android WebView does not reliably report the bars to
the page as `env(safe-area-inset-*)` (Culina found the same on an emulator).
**Why it bit.** Every test before it read the page, not the screen: the button was there, enabled and
clickable by script, and hidden from a finger.
**How to apply it.** Look at a screenshot of every new platform before calling it done. Keep the page
between the bars in the activity (padding from `WindowInsetsCompat`), paint the bars with the page's
own background, and carry the activity in `apps/rosea-tauri/android/java/` because `gen/` is regenerated.
+15
View File
@@ -212,3 +212,18 @@ happens first (the setup fails). On a shared device, a leftover is somebody else
clean-up tolerate half-done setup (`page?.close()`, `browser?.close()`); retry connections that
race a cold start (the script tries for 30 s). After every device run, check: `pidof` the app is
empty, `reverse --list` and `forward --list` are empty.
## When a hand-run probe passes and the check fails, the check is the bug
**What happened.** On 2026-11-17 the Android round trip (`e2e/apps/check-garden.ts`) failed three
times at *Bring her back from a file*, while a probe doing the same steps by hand passed. Two
differences, both in the check: it tapped the picker while the screen was still sliding in, and it
matched nodes by description too, so it tapped DocumentsUI's *Preview the file …* button, which
comes before the file's own name in the tree.
**Why it bit.** A check that drives someone else's screen (Android's picker) carries assumptions
about that screen. When it fails, the app is the first suspect, and the check's own guesses are not.
**How to apply it.** When a device check fails, do the steps once by hand with screenshots before
changing the app. On a system screen, match the exact visible text, and tap only a node that stands
still across two readings.