Skip to content

fix(mobile): hide Android-only erase lines on iOS (#212) - #257

Merged
juancguerrerodev merged 1 commit into
DojoCodingLabs:mainfrom
saurabhbhoir456:fix/delete-ios-lines-212
Dec 6, 2026
Merged

juancguerrerodev merged 1 commit into
DojoCodingLabs:mainfrom
saurabhbhoir456:fix/delete-ios-lines-212

Conversation

@saurabhbhoir456

@saurabhbhoir456 saurabhbhoir456 commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Closes #212.

On an iPhone, the Delete everything screen (HM-SET-03) showed two Android-only lines: the captured WhatsApp messages line, and the note that Android permissions stay on. There is no capture on iOS, and no such permissions to mention.

Adds apps/mobile/src/delete-view.ts with a pure eraseLines(os): only when the OS is exactly "android" does the "what goes" list keep listMessages and the permissions note show. Every other OS gets the shorter list and no note. Android's list and note are exactly as before, and no copy changed. delete.tsx reads Platform.OS through it; the screen's list was a local constant and now lives with the rule.

Tests (apps/mobile/src/delete-view.test.ts, node:test): Android keeps all five lines and the note; iOS leaves out listMessages and the note; no other OS string gets the Android lines. Forcing the Android branch fails the iOS and only-Android tests.

How to check:

node --test --experimental-strip-types apps/mobile/src/delete-view.test.ts
pnpm --filter @hermit/mobile typecheck
pnpm --filter @hermit/mobile test

Vision fit

Principle 4, honest about limits: the screen now only claims what is true on the phone it is on.

Non-negotiables

  • This keeps every non-negotiable in AGENTS.md as it is.
  • Or it changes one, and this is the accepted RFC: n/a

Checklist

  • It closes one issue, linked above, or it's a small fix (a typo, a broken link, a wrong comment). A feature has an accepted proposal.
  • I wrote the failing test first. It fails without this change and passes with it. delete-view.test.ts was written first and failed on the missing module, then passed; forcing the Android branch fails the iOS and only-Android tests.
  • These pass: pnpm check:privacy, pnpm typecheck, pnpm lint, pnpm test and node scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. CI on this head: "Privacy, types, lint and tests" and "PR guard" pass. Locally the new test passes 3/3 and mobile typecheck passes; the full mobile suite on this Windows checkout shows pre-existing failures in source-scan tests (doubled C:\C:\ paths), untouched by this change.
  • No new network call, telemetry, analytics, ads or crash reporting. (A new request in an app adapter is explained below, with its host, skill and risk.)
  • No new dependency, or the reason for each one is below.
  • Every UI string is in packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. No copy changed; the keys stay for Android.
  • Tests, fixtures and screenshots use made-up data only.

Model path

  • This doesn't touch the model path: packages/model, agent, skills or eval, the prompt, the router, tool descriptions, normalizers, examples or the model file.
  • It does. The eval numbers from before and after are below, run as docs/evals.md says. No held-out case was tuned on.

Screenshots

  • No UI change.
  • UI change. Each changed screen is below, in both themes and both languages, with made-up data. The changed screen is Delete everything on iOS; Android is unchanged.
Light Deep sea
es-419 Delete everything on iOS, light, Spanish Delete everything on iOS, Deep sea, Spanish
en Delete everything on iOS, light, English Delete everything on iOS, Deep sea, English

Taken with the preview harness (pnpm build && pnpm shoot delete-confirm in apps/mobile/preview). The harness pins Platform.OS to android and the confirm shot was Spanish-only, so for these pictures only I temporarily reported iOS in the preview stub and widened that one shot to both languages; both edits were reverted and are not in this PR. The shoot manifests confirm the Android set has both lines in both languages and the iOS set has neither.

Android, light, English, unchanged, for comparison:

Delete everything on Android, light, English

New dependencies and network calls

None. No new dependency and no new network call.

AI agents

  • No AI agent wrote any part of this.
  • An AI agent helped. Which one, and what it did: Tinsel Alpha, an AI coding agent running in OpenCode, drafted the change and this description and ran the checks below, in a session directed by the author, who reviewed each step's report before it was pushed. The later branch cleanup (this PR reduced to the single iOS: the Delete everything screen shows Android-only lines #212 commit, cherry-picked onto current main) was done in the same kind of session and re-verified.
  • I read and ran everything in this pull request, and I can explain it.

What was run: node --test apps/mobile/src/delete-view.test.ts (3/3); pnpm --filter @hermit/mobile typecheck; preview screenshots on Android and iOS (4 shots each side, 0 errors; neither Android line appears in the iOS manifests).

@juancguerrerodev

Copy link
Copy Markdown
Contributor

Thanks! The change is right. One thing: the branch also carries #256's commit and two screenshots from #138. Please rebase onto main so only delete.tsx, delete-view.ts and its test remain. 🦀

@saurabhbhoir456

Copy link
Copy Markdown
Contributor Author

Self-review update from the author: this branch is cleaned up.

@juancguerrerodev
juancguerrerodev force-pushed the fix/delete-ios-lines-212 branch from 4034fc1 to 7d166c3 Compare December 6, 2026 09:10
@juancguerrerodev
juancguerrerodev merged commit 7d166c3 into DojoCodingLabs:main Dec 6, 2026
3 of 4 checks passed
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.

iOS: the Delete everything screen shows Android-only lines

3 participants