Repository navigation
Mobile audit + emulation check tool (dev only) - #33
Open
fromknowware wants to merge 4 commits into
Open
fromknowware wants to merge 4 commits into
fromknowware wants to merge 4 commits into
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
knowware-book | 0796e1d | Oct 20 2026, 08:47 PM |
This was referenced Oct 18, 2026
drafts/mobile/AUDIT.md lists every issue with page, widths, severity, evidence and the PR that fixes it. scripts/mobile-check.mjs reloads each page under true device emulation (puppeteer-core + system Chrome) and fails on horizontal overflow, tap targets under 44px, text fields under 16px, a dock bar covering content, console/CSP errors and axe violations in light, dark and warm. Developer tool only: not wired into the build or CI. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…on, dock checks, console errors
…manual-check list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fromknowware
force-pushed
the
mobile/audit-and-check
branch
from
October 20, 2026 00:52
9708df8 to
7528844
Compare
Owner
Author
|
Status: #32 (nav and dock) is merged. All other mobile PRs are rebased onto the current |
1 of 2 tasks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Read this first. Scope and results of the whole mobile effort:
drafts/mobile/AUDIT.md: every issue (page, device width, what is wrong, severity, evidence screenshot, fix PR), the measurements before and after, and a list of what to check on a real phone.The fix PRs (independent, each branched off
main, none merged)Combined in one scratch branch: 140 page/device runs (20 pages × 7 devices), 0 failures (overflow, 44px targets, 16px fields, dock bar, console/CSP errors, axe in light/dark/warm). On
mainthe same run had overflow on 2 pages at 320/360, about 250 tap targets under 44px per width (180 of them the nav, footer and dock), and about 770 text nodes under 12px.What is in this PR
drafts/mobile/AUDIT.md+drafts/mobile/shots/audit/*.jpg: the audit (small JPEGs).scripts/mobile-check.mjs+docs/mobile-check.md: the regression check. Loads each page at 320, 360, 375, 390, 430, 844×390 and 768×1024 under true device emulation and fails on: horizontal overflow (measured withoverflow-x:hiddenlifted), tap targets under 44px (listed), text fields under 16px, the dock covering content or its controls under 44px, console/CSP errors, axe violations in light/dark/warm.npm run mobile-check.puppeteer-coreas a devDependency only (no browser download; uses the installed Chrome). No CI change, no site dependency, no runtime code.drafts/mobile/tools/: the screenshot helpers used for the before/after images.Correction worth knowing
My first scan reported 40 dark/warm colour-contrast violations. They were an artefact: axe ran while the 0.7s theme transition was still animating colours. With transitions off there are zero violations on
main; the tool now measures after the transition, and no contrast PR exists.Notes
--window-size=390,844: headless Chrome lays out at about 500px and crops, which fakes a cut-off. The tool usesEmulation.setDeviceMetricsOverride.unit-and-build,integration) pass on every PR.Workers Builds: knowware-bookfails on every PR and onmainitself (pre-existing, unrelated).Test plan
node scripts/mobile-check.mjsonmain@ d61b634 (baseline) and on the combined branch (after)npm testunaffected (no source changes in this PR)🤖 Generated with Claude Code