Repository navigation
fix(mobile): hide Android-only erase lines on iOS (#212) - #257
Merged
juancguerrerodev merged 1 commit intoDec 6, 2026
Merged
juancguerrerodev merged 1 commit into
juancguerrerodev merged 1 commit into
Conversation
10 of 16 tasks
Contributor
saurabhbhoir456
force-pushed
the
fix/delete-ios-lines-212
branch
from
December 6, 2026 08:17
71eec7a to
4034fc1
Compare
10 of 16 tasks
Contributor
Author
|
Self-review update from the author: this branch is cleaned up.
|
juancguerrerodev
force-pushed
the
fix/delete-ios-lines-212
branch
from
December 6, 2026 09:10
4034fc1 to
7d166c3
Compare
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.
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.tswith a pureeraseLines(os): only when the OS is exactly"android"does the "what goes" list keeplistMessagesand 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.tsxreadsPlatform.OSthrough 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 outlistMessagesand 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 testVision fit
Principle 4, honest about limits: the screen now only claims what is true on the phone it is on.
Non-negotiables
Checklist
acceptedproposal.delete-view.test.tswas written first and failed on the missing module, then passed; forcing the Android branch fails the iOS and only-Android tests.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode 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 (doubledC:\C:\paths), untouched by this change.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.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
Taken with the preview harness (
pnpm build && pnpm shoot delete-confirminapps/mobile/preview). The harness pinsPlatform.OSto 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:
New dependencies and network calls
None. No new dependency and no new network call.
AI agents
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).