Skip to content

test: measure usable control targets at their actual reach - #4987

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-4927
Nov 1, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-4927

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

The control-size sweep now reaches preview diagnostics through About this page, following #4895, and measures the usable target each control offers. Both pointer cases failed before this repair and pass afterward. The 24px and 44px floors stay the same.

The remaining failures were in the probe: it rejected a wide version row because Compare intentionally owns its end, and it assumed a command's row-wide hit area was centred on its label even when a touch description stood below it. The probe now checks the central minimum-size portion of a wider face and locates an expanded hit area from its containing block and computed insets. A covered centre still fails. This changes test measurement only.

Validation: both cases of test_every_control_the_layer_offers_is_a_box_the_user_can_hit pass, as does test_the_add_field_previews_the_option_it_will_make, which consumes the shared aim measurement. Temporary negative controls also pass: expanding Compare across the fine-pointer version target is detected, and removing the coarse-pointer command's hit-area pseudo-element is detected. Pre-commit checks and git diff --check pass.

Closes #4927.

Follow the About route introduced by #4895 instead of requiring the removed preview menu row. Both pointer cases now reach their size assertions; those still reproduce the version-row overlap and a coarse-pointer command target below the floor. No size assertion is weakened.

Refs #4927

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Withholding the verdict under the PR description's explicit hold: the remaining target-size failures need diagnosis and repair before landing. Running both pointer cases reproduced the reported results after preview visibility and surface coverage passed: the fine-pointer case reports the v1 row at 0×0 under .lf-fp-face, and the coarse-pointer case reports “Select mode” at 87.3×20.3 under .lf-ui.

The layer sweep requires an independent minimum-size target, rather than every point of a wider row's face: Compare intentionally owns the version row's end. Keep the full-face reading for callers that request no floor.

An absolute hit-area pseudo-element can belong to an ancestor instead of its label. Read its origin from the containing block and computed insets, so a command with a description underneath is not tested above its row. Keep the label's centre on axes where the face already meets the floor, and reject a covered centre.

Both pointer cases failed at the old head and pass with this measurement. Temporary negative controls detect a covered version target and a command whose touch reach is removed. No runtime or target floor changes.

Refs #4927
@leaf-agent leaf-agent changed the title test: reach preview diagnostics in the control-size sweep test: measure usable control targets at their actual reach Nov 1, 2026
@leaf-agent
leaf-agent merged commit 966c8b8 into main Nov 1, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4927 branch November 1, 2026 20:19
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.

Control-size sweep never reaches its expected preview row

1 participant