Arguseye renders components directly from a project, using the project’s own packages. I’m extending that preview engine so it can compare a component across the base and head revisions of a pull request.
The first implementation is built locally. It is unreleased, and the public npm and extension packages do not contain these changes yet. The CI-specific checks pass locally; full-suite release validation and a hosted GitHub Actions run are still open.
Keep the comparison inputs fixed
A useful comparison needs the same inputs on both revisions. Rediscovering props after an edit could make a component look different because the input changed.
The base capture records the resolved props, viewport, theme, actions and expectations. The head comparison replays those saved values. A versioned capture manifest records the original project root and a relative component path so another checkout can render the matching file.
Relocation applies only to the target path. Props, snapshots, diagnostics and browser fixtures retain their original values. The renderer checks that the new target stays within its permitted file boundary and exists.
These are the development commands from the local implementation:
node dist/cli.mjs matrix /checkouts/base/matrix.json --root /checkouts/base --out /artifacts/base --json
node dist/cli.mjs matrix-diff --baseline /artifacts/base --root /checkouts/head --out /artifacts/head --fail-on-change --json
Each checkout needs its own installed application dependencies. Both captures need matching browser, OS, fonts and capture settings. A known environment mismatch leaves the evidence incomplete.
A screenshot can stay the same while the interface changes
In one local check, I changed a button’s accessible label without changing its visible text. The result had zero changed pixels, while its accessibility text changed. The CI comparison returned a failing exit code.
In another check, a padding edit increased the captured component height from 117px to 137px. The output retained the before and after images, dimensions and highlighted pixel diff.
Accessibility text is another source of change evidence. It is not an accessibility compliance audit.
Preserve failures and missing evidence
The default comparison remains useful for review: a complete visual change can return successfully. Adding --fail-on-change makes detected changes fail CI after the available artifacts have been written.
Render errors, failed checks and incomplete context also fail. A missing capture stays not-compared. A failed expectation in the base capture remains a failure even if the head revision repairs it. Otherwise, a comparison could conceal a baseline that never met its own checks.
Provider setup uses actual project modules and deterministic preview state. I verified a nested auth/theme example across checkouts, including a broken head setup. Supplying preview context does not reconstruct an authenticated backend.
What the workflow covers
The repository workflow uses a registered React fixture matrix. It captures the plan from the base revision, builds one Arguseye and uses one Chromium installation for both captures. It installs the fixture dependencies separately for each checkout.
The job keeps the available images and JSON when comparisons fail. Its summary records revision IDs and coverage; a separate manifest includes the plan hash and capture identity.
This first version runs explicitly registered cases, with a maximum of 12 cases per matrix. Automatic selection from modified files remains future work, along with validation on larger component libraries. I’m keeping those limits visible while finishing release checks.
Arguseye’s public project is at https://github.com/DarkWorldCoder/arguseye. This article describes local development work, not a released CI service.
Top comments (0)