Skip to content

Visual layout checks on signed-in screens (h3-studio#897) - #360

Merged
apedintensor merged 1 commit into
mainfrom
claude/visual-layout-checks
Oct 31, 2026
Merged

apedintensor merged 1 commit into
mainfrom
claude/visual-layout-checks

Conversation

@apedintensor

Copy link
Copy Markdown
Member

Owner 2026-10-31: automate the alignment/overlap checks instead of the owner spotting them by eye.

What runs: npm run audit:visual (new CI step after audit:layout; failing screens uploaded as visual-failures). It opens, at 1440×900 and 1280×760:

  • storyboard dock with the playhead at 0:00 and mid-film,
  • the shot takes panel and trim bar,
  • the enhance dialog,

and checks geometry rules per screen (no-overlap, same-midline, inside, starts-above, left-of, clips-like) plus the existing layout-audit checks (offscreen, clipped text, spilling buttons, tiny text, page errors), now shared via tools/layout-shared.mjs.

Signed-in without login: tools/visual/storyboard.har is one qa-user project's API traffic recorded once from staging and replayed with Playwright routeFromHAR; every other request is refused (videos blank, stable). CI never signs in. tools/visual/sanitize-har.mjs strips headers, cookies, signed URLs, e-mails and generation internals (steps, provider, cost) — this repo is public; grep confirmed none remain. Re-recording steps in tools/visual/README.md.

Proof: with the pre-#358/#359 CSS the run fails exactly on today's bugs — playhead grip 12 px over the pictures, last ruler label past the bar, in-use dot 10.5 px off the badge line, trim fill missing; with current CSS all 8 screen×viewport checks pass.

References (ideas, no code copied): Playwright HAR replay and visual comparisons (built-in); lost-pixel/lost-pixel and reg-viz/reg-suit (screenshot-baseline workflows, planned as the next step with Linux-generated baselines); Galen Framework (layout-spec rules like "near/inside/aligned", Java, unmaintained) for the declarative geometry rules. Screenshot baselines are left for a follow-up so they can be generated on the CI image.

…-studio#897)

audit:visual opens the storyboard dock (playhead at 0:00 and mid-film), the
shot takes panel and trim bar, and the enhance dialog at two viewports,
replaying one qa-user project's API traffic (no login, no network), and
fails on geometry rules: playhead grip over the pictures or labels, last
ruler label past the bar, in-use dot off the quality badge's line, trim
fill not clipped to the bar, plus the layout audit's generic checks.
Verified to fail on the pre-fix CSS. The fixture is sanitised (no cookies,
signed URLs, e-mails or generation internals) for this public repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant