Repository navigation
fix(wda): a native floating search bar covers the rows under it - #150
Merged
Merged
Conversation
Read natively (iOS 27), the tree is flat: the floating search bar at the bottom of Settings is a bare SearchField straight under the Application, without the Toolbar WDA's tree wraps it in. It didn't count as covering anything, so tapping a row under it by text tapped the row's center and opened the search; a scroll search could stop with its target there too. A SearchField straight under the Application in the lower 40% of the screen now counts as a floating bar: it covers the rows under it and takes taps BAR_SLOP beyond its frame, as the Toolbar does through WDA. Regression case #152, unit test on a tree read from the phone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Derrors
added a commit
to cosinec/iphone-control
that referenced
this pull request
Nov 17, 2026
Resolve the conflicts with Derrors#141-Derrors#147: keep both sets of client tests, and rows Derrors#146-Derrors#151 from main. This branch's row becomes Derrors#153 (Derrors#152 goes to the native floating search bar fix, Derrors#150). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Derrors
added a commit
to cosinec/iphone-control
that referenced
this pull request
Nov 17, 2026
Bring in Derrors#150: its CHANGELOG line and regression row Derrors#152 come before this branch's line and row Derrors#153. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Derrors
added a commit
to cosinec/iphone-control
that referenced
this pull request
Nov 17, 2026
Resolve the conflicts with Derrors#141-Derrors#150: TapElement's dispatch keeps main's scroll search and this branch's clearing of before_action on a miss; CHANGELOG lines after main's; this branch's regression row becomes Derrors#154 (Derrors#152 is Derrors#150's, Derrors#153 is Derrors#148's). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Under native control (iOS 27) the element tree is flat: the floating search bar at the bottom of Settings is a bare
SearchFieldstraight under theApplication, without theToolbarthat WDA's tree wraps it in. So it didn't count as covering anything. Tapping a row under it by text tapped the row's center, and the bar took the tap: Settings opened its search instead of the row.iphone_tap_elementwithscroll(#147) could stop with its target there as well. Found while reviewing #147.A
SearchFieldstraight under theApplicationin the lower 40% of the screen now counts as a floating bar (floating_searchinparse_tree): it covers the rows under it, and the area where it takes taps is the measured one, not its frame. On the phone the bar swallows taps up to about 58 pt above its field (field top 866: a tap at 806 still opens the row under it, 812, 820 and 826 do nothing), soSEARCH_BAR_REACH= 58 and 34 pt to the sides and below (SEARCH_BAR_SIDE, the plate plusBAR_SLOP). A row half in that area is tapped above it; a row fully in it is reported as covered and not tapped, and a scroll search goes on scrolling.WDA trees are unchanged: their search field sits inside a
Toolbarwith its parent not theApplication, so the new rule doesn't apply there.Tests
1. Unit tests
cargo test --workspace --all-features --locked,cargo clippy --workspace --all-targets --all-features --locked -- -D warningsandcargo fmt --check(per package) pass (Rust 1.89 in Docker, Debian 12; clippy with the two lints 1.89 reports and CI's 1.99 doesn't allowed). The one local failure,tasks::tests::the_agent_cant_control_its_own_task, fails onmainthe same way in this container (process parentage); CI runs it.elements::tests::a_native_floating_search_field_covers_the_rows_under_it, on a tree read from the phone (settings-floating-search-native-ios27.xml): a row clear of the bar is tapped at its center, a row in the bar's area is covered, a row half in it is tapped at y ≤ 806. Without the fix the covered row comes back asCenter((215, 844)).#[ignore]tests of the changed area run by hand: none apply2. Real-device regression
tests/device/run.pydefault steps pass on this branch (exit code 0): 16 calls, 0 failed, 15.3 stests/device/scenarios.pypasses on this branch: tools, typing, fresh, batch, menu: 41 checks, 0 failed (lockandurlnot affected)main, same device: 16 calls, 0 failed, 14.8–15.6 s over three runs earlier today; no step clearly slower3. Regression cases (docs/dev/regression-cases.md)
tap_point_avoids_floating_search_baron the WDA tree still passes), release: 0.2.8 #151 (scroll search) re-run on the device4. Real-device proof of the fix or feature
main, gone with this branch, same device and stepsSteps and results (before / after)
Settings opened fresh, one or two slow swipes (215,634)→(215,307), so that a row sits under the search bar.
Checklist
🤖 Generated with Claude Code