Skip to content

feat(zoom): move between the page's figures with Up and Down - #398

Merged
vite-hub[bot] merged 2 commits into
mainfrom
feat/zoom-figure-keys
Nov 10, 2026
Merged

vite-hub[bot] merged 2 commits into
mainfrom
feat/zoom-figure-keys

Conversation

@onmax

@onmax onmax commented Nov 9, 2026

Copy link
Copy Markdown
Owner

On a review page with several before/after blocks, such as this Drop page with four ::compare blocks in a row, you have to close the zoom, scroll and reopen it for each comparison.

This PR makes ↑ and ↓ open the previous or next figure on the page, at its first item, while ← and → keep stepping between before and after. A figure is a gallery, a named group, or an item on its own, in document order.

  • A tall item that scrolls in the stage scrolls first, then moves on at its end.
  • The ends don't wrap.
  • The page scrolls beneath, so closing flies back to the figure shown and returns focus to it.
  • A focused slider (or input) keeps its own arrow keys. That also fixes ←/→ firing on a zoomed slider compare.
  • A new .cz-place shows "Figure 3 of 4" in the header. It's hidden on touch screens, which get no new gesture: a vertical drag closes the viewer in PhotoSwipe, Fancybox, lightGallery and GLightbox, so a swipe between figures would surprise people.

Percy uses the same keys for visual review: ↑/↓ between snapshots, ←/→ between original and new. UX plan: https://drop.vitehub.dev/d/p2zxjp237x9x/zoom-up-down-figures

A new e2e test in e2e/zoom.e2e.ts walks four figures: an image, a compare, a slider compare and a tall image. pnpm ready passes, apart from a remark-to-comark CLI test that timed out under load and passes on its own. I haven't tried it on the Drop page itself, since that needs a release.

@pullfrog

pullfrog Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

No configured credential can serve this run. Your ChatGPT subscription has hit its usage limit, which resets at 2026-11-13 17:11 UTC. Re-trigger after it resets, or add an API key for this provider, which Pullfrog falls back to automatically.

The providers' responses
CODEX_AUTH_JSON: the ChatGPT plan's usage limit is reached

Pick another model →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using gpt-6.1-sol

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T17:26:59.740188Z
We couldn’t complete this review. Comment @codex review to try again.
c194c66 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@398

comark-badge

pnpm add https://pkg.pr.new/comark-badge@398

comark-cards

pnpm add https://pkg.pr.new/comark-cards@398

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@398

comark-cast

pnpm add https://pkg.pr.new/comark-cast@398

comark-charts

pnpm add https://pkg.pr.new/comark-charts@398

comark-chat

pnpm add https://pkg.pr.new/comark-chat@398

comark-chips

pnpm add https://pkg.pr.new/comark-chips@398

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@398

comark-code

pnpm add https://pkg.pr.new/comark-code@398

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@398

comark-colors

pnpm add https://pkg.pr.new/comark-colors@398

comark-comments

pnpm add https://pkg.pr.new/comark-comments@398

comark-critic

pnpm add https://pkg.pr.new/comark-critic@398

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@398

comark-details

pnpm add https://pkg.pr.new/comark-details@398

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@398

comark-diff

pnpm add https://pkg.pr.new/comark-diff@398

comark-embed

pnpm add https://pkg.pr.new/comark-embed@398

comark-fields

pnpm add https://pkg.pr.new/comark-fields@398

comark-figure

pnpm add https://pkg.pr.new/comark-figure@398

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@398

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@398

comark-github

pnpm add https://pkg.pr.new/comark-github@398

comark-icon

pnpm add https://pkg.pr.new/comark-icon@398

comark-include

pnpm add https://pkg.pr.new/comark-include@398

comark-keys

pnpm add https://pkg.pr.new/comark-keys@398

comark-links

pnpm add https://pkg.pr.new/comark-links@398

comark-linter

pnpm add https://pkg.pr.new/comark-linter@398

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@398

comark-mark

pnpm add https://pkg.pr.new/comark-mark@398

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@398

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@398

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@398

comark-media

pnpm add https://pkg.pr.new/comark-media@398

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@398

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@398

comark-outline

pnpm add https://pkg.pr.new/comark-outline@398

comark-properties

pnpm add https://pkg.pr.new/comark-properties@398

comark-qr

pnpm add https://pkg.pr.new/comark-qr@398

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@398

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@398

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@398

comark-sources

pnpm add https://pkg.pr.new/comark-sources@398

comark-steps

pnpm add https://pkg.pr.new/comark-steps@398

comark-table

pnpm add https://pkg.pr.new/comark-table@398

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@398

comark-tests

pnpm add https://pkg.pr.new/comark-tests@398

comark-time

pnpm add https://pkg.pr.new/comark-time@398

comark-ui

pnpm add https://pkg.pr.new/comark-ui@398

comark-xref

pnpm add https://pkg.pr.new/comark-xref@398

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@398

commit: f1a9d34

@vite-hub

vite-hub Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-10T11:54:01.275Z 3m 36s
View session Completed 2026-11-10T07:54:07.593Z 5m 35s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Ready; no further repair needed. Package-local `vp test run test/zoom.test.ts`: 10 passed. Focused `vp lint` passed with one verified pre-existing warning; `git diff --check` passed. Hosted build, checks, e2e and publishing passed. All supplied feedback was inspected; no actionable findings remain. Pullfrog failed because review credentials reached their usage limit.

View session

Pushed f1a9d34 fixing P1 figure skipping with interleaved named groups. The regression failed before repair and passed afterward. pnpm test:e2e e2e/zoom.e2e.ts --workers 1: 25 passed; package-local vp test run test/zoom.test.ts: 10 passed. Prerequisite builds, focused lint and formatting passed, with one pre-existing lint warning. Awaiting hosted checks; automated reviewers were unavailable due quotas.

@pullfrog

pullfrog Bot commented Nov 10, 2026

Copy link
Copy Markdown

No configured credential can serve this run. Your ChatGPT subscription has hit its usage limit, which resets at 2026-11-13 17:11 UTC. Re-trigger after it resets, or add an API key for this provider, which Pullfrog falls back to automatically.

The providers' responses
CODEX_AUTH_JSON: the ChatGPT plan's usage limit is reached

Pick another model →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using gpt-6.1-sol

@vite-hub
vite-hub Bot merged commit d3856d2 into main Nov 10, 2026
5 of 6 checks passed
@vite-hub
vite-hub Bot deleted the feat/zoom-figure-keys branch November 10, 2026 12:01
@github-actions github-actions Bot mentioned this pull request Nov 10, 2026
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