Repository navigation
feat(visual): pinpoint README overflow candidates without exposing content - #187
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Cross-project review — content assessment (not independent approval)
Exact head: fd933582d189e8e97ddd07919d0180aa9d4f2a92 · Related: #16 · COMMENT, no blocking content defect identified within this bounded diagnostic change.
I inspected all four changed files, the probe's existing measurement contract, the synthetic Node harness, the accessibility checklist, Issue #16, and repository review/security instructions.
- The new geometry path reports only descendant index, lowercase tag, and left/right pixel excess. It does not add element text, attributes, classes, IDs, or links to
overflowInspection.samples; the existing independent image/path diagnostics are unchanged. - It preserves both page and Markdown scroll-width measurements even when the geometry scan finds nothing, limits rectangle inspection to the first 2,000 descendants and output samples to eight, and explicitly avoids claiming that rectangles certify WCAG conformance.
- The checklist's same-tab lookup agrees with the
querySelectorAll("*")ordering used by the probe. The Unreleased changelog is present. New regression tests cover an overflowingpre, zero geometry candidates with positive Markdown scroll width, and absence of sample-only private strings/URLs.
Hosted verification: Quality checks #40726355655 completed successfully: six jobs, including Python 3.11/3.14/Windows, lint, and both Action self-tests. Job logs show the seven test_visual_probe cases passing, with 464 total tests on Python 3.11 (six skipped) and Windows Python 3.14 (two skipped). Checkout used PR merge candidate 501c4c0011db6988ffd51bfe03e708b62d8e341a, which incorporates the exact head above, rather than checking out the raw head. I did not independently run the full suite or conduct a live 320px/400%-zoom/keyboard/screen-reader assessment.
Non-blocking precision note: article.querySelectorAll("*") first constructs a NodeList of all descendants; the 2,000 bound applies to rectangle reads, not to DOM enumeration or NodeList allocation. The tests also do not yet exercise either 2,000-node truncation or the eight-sample cap. This does not contradict the current stated diagnostic output contract, but an explicit high-cardinality fixture would protect those limits if the feature grows.
Because the authenticated reviewer and PR author are both drevendev, this is content evidence only, not independent APPROVE or a substitute for any required review/enforcement gate. No merge performed.
andy-zen-dev
left a comment
There was a problem hiding this comment.
Independent exact-head review — fd933582d189e8e97ddd07919d0180aa9d4f2a92 — APPROVE for this bounded README overflow diagnostic change (Related: #16; issue's wider visual-design acceptance remains open).
Inspected all four changed files, the complete browser-console probe and its Node-backed test harness, current AGENTS.md/CONTRIBUTING.md, Issue #16, prior review and CI. The new geometry path caps rectangle inspection at 2,000 descendants and returns at most eight index/tag/left-right-excess samples without serializing descendant text, attributes or URLs. Existing scroll-width measurements survive when no geometry candidates are detected, and the checklist correctly presents the output as investigation leads rather than WCAG failures. The documented index lookup matches querySelectorAll('*') ordering; Unreleased changelog is present.
At this exact head, GitHub Quality checks run 40726355655 completed SUCCESS with all six jobs passing (Python 3.11, Python 3.14, Python 3.14 Windows, two Action self-tests and Lint). Combined commit-status contexts are empty; they are not counted as separate successes. I did not run the full suite locally or perform live 320px/400%-zoom, keyboard or screen-reader acceptance. querySelectorAll('*') still constructs a complete NodeList before the 2,000 rectangle-read cap, and explicit high-cardinality/cap regression fixtures are absent; these are non-blocking follow-up hardening opportunities, not claimed guarantees of bounded DOM enumeration.
No blocking defect identified within the PR's stated scope. This approval does not complete Issue #16 or assert accessibility conformance.
Reader problem
The existing GitHub-rendered README probe reports page and Markdown overflow in pixels, but not which element causes the excess. At narrow widths maintainers must manually inspect all descendants. This makes the otherwise useful reflow measurement difficult to act on.
Bounded change (existing visual guidance / #16)
preelement, a non-overflowing sample, and absence of sensitive element text/URL data.Verification and limits
The branch is limited to the existing public console probe, its Python/Node regression harness, the manual acceptance checklist, and public CHANGELOG. Full local tests are not claimed because direct repository checkout from this environment cannot resolve GitHub DNS. Current GitHub CI on the exact PR head and separate later-run review are required before integration. No GitHub-rendered 320px, 400% zoom, keyboard or screen-reader acceptance has been performed. Geometry samples are diagnostics, not WCAG conformance evidence.
No releases, settings, other-repository changes or private controls. MIT license preserved.
Related: #16.