mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-13 09:51:22 +00:00
#5426 merged this branch at 11bc8c56, so only the two guard commits are
left here. #5426 also added its own guard for the "Page presses" rule
(`page_modules_take_presses_from_the_router_without_repeating_hit_tests`),
which conflicted with them in `page_pointer/tests.rs` and CLAUDE.md.
Resolved as one test, `page_modules_act_on_a_press_only_through_the_router`:
- kept from main: the seven press handlers must read `view.router.owner`
and test no point of their own (the form field's two pointer checks
pinned to `p`), and that check's unit test;
- replaced: main's "module hit test called by path only in
`PageHits::at`" list, by HIT_TESTERS, which also covers bare calls and
`…_hit` and says why each caller may;
- covered: main's `router.press` check, by ROUTER_WRITERS.
CLAUDE.md's "Page presses" line names the merged test.
Seen failing on main's code with a bare hit call put into comment hover
and with `select_input` reading the owner without `router.owner(`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>