Repository navigation
iOS: permission prompts in both languages, and copy that says Face ID or Touch ID - #135
Merged
Merged
Conversation
…#127) On iOS, expo-file-system resumes only from the base64 resume data NSURLSession produces on a pause, and .part does not exist until the file is complete, so every stopped download started again from zero. - download-resume.ts (pure, tested): which path each platform takes, the record kept next to .part, and when to fall back to a clean restart. - The download screen pauses the running download on iOS when the app goes to the background or the connection drops; the pause saves the resume data in <name>.part.resume, and the next attempt resumes from it. A missing, stale or rejected record means one clean restart. - partialModel and the model update read the saved bytes on iOS. - Android keeps its byte offset path. The SHA-256 check is unchanged. Signed-off-by: Daniel Bejarano <dbejarano820@gmail.com>
…the form (#130) On an iPhone with the GitHub app, the github.com link opens in the app, which drops the query, so the report never reached the form. File it on GitHub now copies the exact report with the plain local copy every time, then lets the system open the link with its default handler (the GitHub app or the browser), on Android and iOS. The screen says the report is copied, to paste it into the Report field if the form opens empty, and to pick Device report if the app shows a list. The too-long path says the same. The decision lives in fileReport() in device-lab-view.ts, tested under node --test. Signed-off-by: Daniel Bejarano <dbejarano820@gmail.com>
… or Touch ID
The iOS permission prompts come from packages/copy (common.ios.*). A config plugin,
plugins/with-ios-purpose-strings, writes the English text into Info.plist in place of the defaults
expo-secure-store and expo-calendar would write, and sets `locales`, so prebuild writes en.lproj and es.lproj
InfoPlist.strings. A missing key fails the prebuild.
Strings that named the fingerprint now use {biometric}, {biometricStart} or {aBiometric}. createTranslator takes
defaults, and the app fills them from common.biometric.*: fingerprint on Android, Face ID or Touch ID on an iPhone
(from supportedAuthenticationTypesAsync), and "Face ID or Touch ID" when the phone reports neither. The few of
those strings that said Android retired a key now say the key was retired. A hash's fingerprint and the Device lab
copy are unchanged.
The restricted-settings steps and the exact-alarm hint are Android's: an iPhone no longer shows them, on the
onboarding permissions step or in What Hermit can use.
Closes #128
Signed-off-by: Daniel Bejarano <dbejarano820@gmail.com>
juancguerrerodev
marked this pull request as ready for review
November 27, 2026 19:45
juancguerrerodev
force-pushed
the
dbejarano820/128-ios-copy
branch
from
November 27, 2026 19:45
a9cb5c6 to
8ca2b67
Compare
10 of 16 tasks
12 of 16 tasks
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 #128
On an iPhone, the system permission prompts were Expo's English defaults, and the app's copy said "fingerprint" and gave Android's restricted-settings steps. This puts the iOS prompts in
packages/copyin both locales, names the biometric by platform (Face ID or Touch ID on an iPhone, fingerprint on Android), and hides Android-only hints on iOS.common.ios.faceIdUsage,common.ios.calendarsUsageandcommon.ios.remindersUsage. A config plugin,apps/mobile/plugins/with-ios-purpose-strings.js, reads them frompackages/copy, writes the English text into Info.plist (replacing what expo-secure-store and expo-calendar would write), and setslocales, so prebuild writesen.lprojandes.lprojInfoPlist.strings. A missing key fails the prebuild. It's listed before those plugins because mods run last-listed first, so its text is what stays.{biometric},{biometricStart}or{aBiometric}.createTranslator(dict, defaults)fills placeholders a call doesn't pass, andbiometricWords(dict, kind)reads the words fromcommon.biometric.*. The app sets the kind once at startup (applyBiometricName): Android gets fingerprint. An iPhone gets Face ID or Touch ID fromsupportedAuthenticationTypesAsync, and "Face ID or Touch ID" when it reports neither. A few sentences were reworded so they read right with every word and in Spanish (no gender agreement with "huella"). The strings that said Android retired a key now say the key was retired. A hash's fingerprint (SHA-256, SHA-1, the action's hash) and the Device lab copy (HM-SET-10, changed in another PR) are unchanged.showsRestrictedHelp(platform)inpackages/runtime. On iOS, the onboarding permissions step and What Hermit can use don't show the restricted-settings steps, and reminders don't show the exact-alarm hint.Known limit: on an iPhone, the kind is read asynchronously at launch. A screen drawn before that read finishes keeps "fingerprint" until it renders again. In practice the read finishes long before any screen that names the biometric.
Size: about 590 changed non-test lines, over the 400 guide. Most of it is the two locale files (about 430 lines, a one-for-one rewording). If you'd rather have it split: (1) the purpose-strings plugin plus hiding the Android-only hints (about 120 lines), then (2) the biometric wording (the rest).
Vision fit
Hermit speaks Spanish and English from day one, and says plain, true things. On an iPhone that means system prompts in the user's language and a name for the biometric the phone actually has.
Non-negotiables
Approvals, the cage and the hard limits are unchanged. Only the words naming the biometric changed. Sheets still show only code-written copy.
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.Tests written first, and how they failed before the code:
packages/copy/test/copy.test.ts: the iOS purpose strings exist in both locales; every biometric kind has every form; Android says fingerprint and an iPhone says Face ID or Touch ID; every string using the placeholders renders for every iOS kind with no "fingerprint", "huella" or "Android" left; no copy outside the Device lab names the fingerprint directly, except a hash's. Before: 5 failed (IOS_PURPOSE_KEYS,BIOMETRIC_KINDS,biometricWordsmissing, andHM-APPR-01.approve: expected 'Approve with fingerprint' not to match /fingerprint/i).packages/runtime/test/settings-view.test.ts: an iPhone gets no restricted-settings or exact-alarm help. Before:showsRestrictedHelp is not a function.apps/mobile/src/biometric-name.test.ts: the kind by OS and supported types. Before: module not found.apps/mobile/plugins/ios-purpose-strings.test.mjs: every purpose key the plugins write has copy in both locales. It runs Expo's Info.plist mods with expo-secure-store, expo-local-authentication and expo-calendar and checks no default survives, and that app.json lists the plugin first. Before:common.ios.faceIdUsage in en,packages/copy has no common.ios.faceIdUsage, andlistedfailed.mode-view.test.ts,pay-copy.test.tsandw1-replies.test.tsread the raw copy, so they now expect{biometric}. Their test translators fill it the way the app's does.Prebuild proof (
CI=1 npx expo prebuild -p ios --no-install), the generated files:Before this change the same Info.plist had Expo's "Allow $(PRODUCT_NAME) to access your calendars" (and the reminders and Face ID equivalents) and no
locales. Hermit doesn't read the iOS Reminders list, so its prompt says so. expo-calendar declares the key anyway.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
Screenshots to come, taken on the phone (iPhone and Android). Screens to capture: the iOS Face ID and calendar system prompts (es and en); onboarding permissions (HM-ONB-04) with notifications denied; What Hermit can use (HM-SET-09) on both platforms; an approval sheet (HM-APPR-01); the vault (HM-VAULT-01); and the wallet with its key (HM-PAY-01).
New dependencies and network calls
n/a. No new dependency.
expo-local-authenticationis already a dependency;supportedAuthenticationTypesAsyncis a local OS call.AI agents