Repository navigation
fix(audit): sweep both colour schemes, see clipped overflow, and stop the cookie banner covering the phone frame - #1014
Merged
Merged
Conversation
… the cookie banner covering the phone frame The visual sweep for release 5 needs every route in light and dark at 1440 and 390. sweep-routes.mjs walked every route but only in light, waited a fixed 1.5 s, and judged phone overflow by document width alone. smoke-authed.mjs had the scheme pass and #998's ready-wait, but never set cookie consent, so the banner covered the bottom fifth of every phone shot. - lib/app-ready.mjs: one copy of the cookie-consent seed, #998's ready-wait, scheme parsing, and frame facts. Both scripts use it. - sweep-routes.mjs: --scheme light|dark|both, colorScheme plus the stored preference, and the scheme in each filename. It expects light on the (public) group (LIGHT_ONLY_GROUP) and the requested theme everywhere else, checks the computed page ground as well as the data-theme stamp, and fails the run on a mismatch. - `clipped`: visible elements whose right edge passes the viewport outside a horizontal scroller. hScroll misses content cut off by an overflow:hidden ancestor. On its first run it found the quiet-hours row on /dashboard/notifications/settings pushing "to" and the end field off-card. - A page that half-loads and logs ERR_CONNECTION_* before the theme stamps is now the dead dev server (exit 97, #680), not a theme failure. The final exit goes through finish(), which re-checks the server. - SWEEP_MODES=worker, for a seeded worker with no org. - smoke-authed.mjs: seeds consent. The dark-pass hint no longer tells you to set EXPO_PUBLIC_DARK_MODE, which #999 removed. Headers no longer ask for `functions serve`; the stack serves `api` itself. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first full sweep flagged every Communities screen at 390: the folder-tab strip measured 391px inside a horizontal scroller that overflowed by 1px, and both the edge check and the scroller check used a 1px tolerance. Sub-pixel rounding, not a cut. Any overflow-x: auto|scroll ancestor now exempts its content, and the edge tolerance is 2px. Re-run: the four Communities false positives are gone; EEO, Project hiring, HRIS, quiet hours and Connections' Export CSV still flag, and each is a real cut in the capture. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 6, 2026
Closed
Contributor
Author
|
Pushed f68e3d6: the first full sweep flagged every Communities screen at 390 because the folder-tab strip measured 391 px inside a scroller that overflowed by 1 px. Any That sweep (592 captures) is now the release-5 epic, #1036. |
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.
The harness half of the release-5 visual sweep (#622). Running the sweep needs every route in light and dark, at 1440 and 390. Neither capture script could do all of that.
What was wrong
sweep-routes.mjswalks every route but captured light only (@preferred_themewas hardcoded). It waited a fixed 1.5 s, not fix(audit): wait for the theme stamp and the loading overlay before capturing #998's ready-wait. It judged phone overflow byscrollWidthalone, which misses content clipped by anoverflow: hiddenancestor.smoke-authed.mjsnever set cookie consent, so the banner covered the bottom ~20% of every 390 px capture. That's exactly where phone overflow shows. Its dark-pass failure hint still said to start the server withEXPO_PUBLIC_DARK_MODE=1, which feat(theme): ship dark mode — gate off, system scheme followed on web and native, Appearance in Settings #999 removed.gotoresolved, the half-loaded page got recorded as a theme failure, not as infra. The trial run hit exactly this, after 72 minutes on a 16 GB heap.What changed
scripts/audit/lib/app-ready.mjs: one copy of the consent seed, the ready-wait,--schemeparsing and frame facts, so the two scripts can't drift again.sweep-routes.mjs --scheme light|dark|both:colorSchemeand the stored preference) and puts the scheme in each filename.(public)group (LIGHT_ONLY_GROUPindark-mode-flag.ts) and the requested theme everywhere else.data-themestamp, since a stamp is not a themed tree.clippedfact: visible elements whose right edge passes the viewport, excluding ones inside a horizontal scroller (tab strips and boards are meant to scroll).ERR_CONNECTION_*now exits 97 (infra), and the final exit goes throughfinish(), which re-checks the server.SWEEP_MODES=worker, for a seeded worker with no org.functions serve; the stack servesapiitself.Evidence
hScrollcannot see. On/dashboard/notifications/settings(1440) the quiet-hours start field fills the card and pushes "to" and the end field past the edge: the input sits at x=1432–2448 in a 1440 viewport. That finding will be filed from the sweep.data-theme="dark"and a dark ground,rgb(22, 17, 13), on every signed-in route tried.ERR_CONNECTION_RESETand was reported asrendered unset. With this change that same case exits 97.smoke-authed.mjs --scheme both: against a static export of this commit it ran 8/8 routes with themes as requested, exit 0, and no banner in the phone frames.pnpm --filter scaffald-app exec expo export --platform web, thenexpo serve, the same recipe as ci(e2e): run the office kanban suite nightly against a static web export, and prove its red path #811.No app code changes.
🤖 Generated with Claude Code