1
0
Fork 0
Commit graph

4 commits

Author SHA1 Message Date
3b3bba5d54 test(audit): refresh baseline after the final mobile gate
Full 390x844 pass on a fresh dev server: 68/68 routes ok, zero findings in
every violation class (overflow, grid, hoverOnly, tapTarget), leaving only
the review tiers (611 marginal, 6 WCAG-exempt inline links, 1 informational
hidden-on-mobile) plus the banking hydration fix.
2026-10-12 23:04:29 -04:00
5765492494 test(audit): measure effective tap targets and report violation tiers
Raw element boxes overstated violations, so the check now measures what a
user actually taps, and reports the tiers separately (violation under
24px, marginal 24-39px, inline-exempt):

- effective target is the wrapping label, or label[for] for small
  checkables only. Verified in the browser that clicking a label toggles
  its Radix Switch (label rows are 84px tall); a Select's 14px caption
  label is not charged because its 36px trigger is the real target
- stretched-link cards (after:absolute inset-0) are measured on the
  positioned ancestor, not the 18px anchor inside
- sr-only proxy controls (under 8px) and input[type=range] are excluded
  (a slider's thumb is the target, not the 4px track)
- display:inline anchors in prose get the WCAG 2.5.8 inline exception and
  are reported as tapTargetInlineText
- refreshed baseline: 0 violations, 573 marginal, 6 inline, 1 hidden
2026-10-12 22:17:58 -04:00
61535aba58 test(audit): correct mobile viewport emulation and grid heuristic
The harness was measuring against a viewport Chromium had already widened:
with isMobile true it grows the layout viewport to fit overflowing content,
so scrollWidth > innerWidth could never fire and real overflows were masked.
hasTouch alone gives (pointer: coarse) while keeping the 390px viewport
fixed, which is what surfaced the remaining resources overflow.

- grid class: flag only grids that overflow a non-scrolling container;
  drop the narrow-track rule (it flagged intentional icon columns) and
  skip min-w-max boards, which scroll by design
- structures detail now resolves from game-structures (the page's
  collection), so the previous phantom 404 is gone
- refreshed baseline: overflow, grid and hoverOnly all at zero
2026-10-12 20:17:27 -04:00
d016075481 test(audit): add mobile layout audit harness with 390x844 baseline
Pass 2 Session A: scripted Playwright audit over all frontend routes at
mobile viewport, classifying overflow, dialog, grid, hoverOnly,
hiddenMobile, tapTarget (<24px WCAG violation) and tapTargetMarginal
(24-39px review tier) findings.

- resolves dynamic route ids from REST, skips unresolvable ones instead
  of navigating literal bracket URLs
- blocks the realtime SSE stream, uses domcontentloaded, retries 5xx and
  errors once, and aborts if the dev server dies mid-run
- AUDIT_ROUTE_FILTER for targeted re-audits (writes filtered files so
  the baseline report is never clobbered)
- markdown report clusters findings into cross-route pattern groups;
  Sessions B-D fix per class and re-run this as the regression gate
- includes the initial baseline report (159 tap violations, 24 overflow
  findings on 6 routes, 4 cramped grids, 1 hover-only, 1 hidden-on-mobile)
2026-10-12 18:36:43 -04:00