From 081f71ba1cd293b81bb2d5b3879d371eeb59860f Mon Sep 17 00:00:00 2001 From: Timur Mashara <62305878+tmashara@users.noreply.github.com> Date: Fri, 30 Oct 2026 10:28:28 +0100 Subject: [PATCH] Slider view in report.html A sidebar "Slider view" toggle swaps each card's left/right/diff images for both shots stacked with tops aligned and a full-height range input as the divider, so a few-pixel shift can be dragged across in place. Co-Authored-By: Claude Opus 5.5 --- docs/output.md | 4 +++- src/report.ts | 22 +++++++++++++++++++++- tests/unit/report.test.ts | 14 ++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/docs/output.md b/docs/output.md index 99d4a4d..8c682bc 100644 --- a/docs/output.md +++ b/docs/output.md @@ -310,7 +310,9 @@ any difference fails, so there is no amber. The summary on top counts routes, sh differing shots, errors, accepted and stale accepted; gives the mean and the worst score, linked to its card; and lists only the differing shots, by route. Findings repeated on two or more routes, and with `--computed` the style findings, sit collapsed under it. Then a -card per shot, lowest score first. +card per shot, lowest score first, showing left, right and diff side by side; the sidebar's +**Slider view** toggle swaps those for both shots stacked, tops aligned, with a divider you +drag anywhere on the shot to reveal left on one side and right on the other. ## evidence.html diff --git a/src/report.ts b/src/report.ts index c8c21e4..9e52ca5 100644 --- a/src/report.ts +++ b/src/report.ts @@ -313,6 +313,7 @@ function sidebar(results: RouteResult[], threshold: number | null): string { ${shots.map((r) => shotLink(r, threshold)).join("")}`; }); return `