Repository navigation
Snapshot page: images at their own size with zoom, a draggable slider, comments in every view - #25
Merged
Merged
Conversation
… from -2x/@2x names), fitted to the screen by default, with Fit/100%/200% zoom (z, or click an image) shared by every view; the slider's divider follows a press anywhere on the image, with a grab handle, touch and arrow keys, and no range input (also in the PDF compare tool); comments in every view (diff: this build; slider: the side where the press starts, the divider by its handle while commenting; baseline and this build: the image shown), with the hint centred in the page header
… takes every view (baseline and this build too); a page only one side has keeps the pair centred (the empty side takes the other's width); get_snapshot's images doc breaks between sentences
VisualCIdocspring/visualci · build #120 · 18 changed, 8 added, 275 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent
This PR vs base: 18 changed, 8 added since #119, across 1 build
Updated as builds change. Agents can review with VisualCI's MCP tools. |
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.
Nathan's three asks on the snapshot page. (Was #14, stacked on #7; GitHub closed it when #7 merged and deleted its branch.)
1. Images at their own size, with zoom. Phone screenshots were stretched to half the page's width each, which made the page enormously long.
…-2xand@2x, else 1.zcycles it, and a click on an image zooms in and keeps the clicked point under the pointer (Fit → 100%, or 200% if it's already at its own size; another click goes back to Fit). Both sides and the diff share it, and an image zoomed past its column scrolls sideways.2. The slider.
ew-resizeover the image.SliderStage).3. Comments in every mode.
Tests:
comment-pins.test.tsx: a pin made in each mode lands on the right image at the right pixels; in the slider, the clips follow the divider, a press while commenting doesn't move it, and the handle and arrow keys still do; without comment mode, a press moves it, a drag follows, and there's no range input; the hint shows only in comment mode.zoom.test.ts: capture scale, widths never above the image's own size, and click zoom steps.Checked on the dev server (headless, 1440×900 light and dark, and 390×844), with the demo's phone pair (
dashboard/390-light) and desktop pair:Review: the snapshot page screenshots change (the zoom control in the review bar; images at their own size; the slider's handle and caption, with no range input).
From #14's review (build 110):
app/snapshot/slider, after the other snapshot pages, since a?mode=link is remembered), so the handle and the missing range input are covered.?mode=now takes every view, Baseline and This build included.get_snapshot'simagesdoc breaks between sentences, not mid-sentence.