hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 684e3d8b11 iOS setup: read the keyboard's Full Access reports and say what to do
The tester's sheet said Full Access "Not confirmed yet" with nothing tying it
to the field below, so the fix looked like Settings again. In the simulator
the grant kills Hex and its keyboard: back in Hex the sheet stays unconfirmed
until the Hex keyboard runs once, and the only hint was a faint placeholder in
an unfocused field. After Full Access was turned off the sheet kept saying On.

What changed
- KeyboardSetupMonitor.fullAccess (on, off, unconfirmed) from the keyboard's
  reports (KeyboardFullAccess.resolve), with when Hex last came to the
  foreground (willEnterForeground, or launch). fullAccessOn stays for
  onboarding and the step count. It refreshes on the keyboard's Darwin
  notification as well as the 1 s poll, so the row flips while the sheet is
  open.
- Full Access row: "Not confirmed yet" with "Switch to Hex below to confirm."
  under it; "Off" with "Turn on Allow Full Access in Settings." once a keyboard
  said so since Hex came back.
- While unconfirmed the field takes focus as the sheet opens or Hex comes
  back, so the keyboard comes up: Hex, if it was last, confirms at once;
  another keyboard shows "Switch to Hex with (globe)" (was "Tap here, then...",
  kept while unfocused), in the muted ink instead of the faint one, with a
  border while focused.
- zh-Hans strings for the three new lines; README's Setup paragraph.

Verified on anomastudio (iPhone 13 Pro simulator, iOS 27.2, Release, ad-hoc
signed with the App Group), before (e0e8b225) and after:
- Grant, back to Hex without typing: before Not confirmed yet until the user
  found the field; after unconfirmed, the field focuses, the Hex keyboard
  confirms and the row shows On within about 3 s.
- Hex used in Contacts, then back: On before and after.
- Sheet field: On before and after (about 1 s).
- Keyboard opened without Full Access: before Not confirmed yet; after Off.
- Revoke: before Hex is ready, also after the keyboard ran without it; after
  Off once a keyboard says so, unconfirmed if that was before Hex came back.
  Three revoke and grant cycles in a row: Off then On each time.
- Reinstall over an install: On kept; delete and reinstall: unconfirmed until
  the keyboard runs.
- xcodebuild test: 468 tests, 0 failures, 1 skipped (testSetupMonitorFollows
  TheKeyboardsReports included, through a real Darwin notification).
Not verified on a physical iPhone.
2026-11-21 02:21:18 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: text replacements take the shortcut's leading capital (#2153) 2026-11-21 07:19:21 +00:00
CleanupTaggerTests.swift iOS: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +00:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: Hex's own recording mixes with other audio, and keyboard dictation asks paused audio to resume (#2151) 2026-11-21 06:58:47 +00:00
DictationLearningTests.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: emoji panel memory, category taps, an eight-column Frequently used, and the system's look (#2142) 2026-11-21 04:31:34 +00:00
FullKeyboardEngineTests.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
HexKeyGestureTests.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
KeyboardBridgeTests.swift iOS setup: read the keyboard's Full Access reports and say what to do 2026-11-21 02:21:18 -05:00
KeyboardLayoutTests.swift iOS: Polish keyboard, diacritic autocorrect, and a bilingual partner fix (#2143) 2026-11-21 04:43:47 +00:00
ShiftStateMachineTests.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
SwipeDecoderTests.swift iOS: swipe typing for English and Spanish (Experiment, off by default) (#2106) 2026-11-20 22:30:53 +00:00
TranscriptCleanupTests.swift iOS: text replacements without autocorrect, End with a period, and emoji and symbols on the Dictation bar (#2147) 2026-11-21 06:24:16 +00:00
TypingLogTests.swift iOS: opaque keyboard panel so stale system layers can't show through, and a nil-safe field ID (#2139) 2026-11-21 03:45:47 +00:00