Repository navigation
fix(zoom): the HTML renderer's script shows the aside and maps copies too - #25
Merged
Merged
Conversation
… too #14 was squashed from a branch older than #16, so it added data-zoom-aside, copyOf, and originalOf to a copy of the zoom script in client.ts, while the HTML renderer kept inlining script.ts without them. Pages rendered to HTML got no aside and no mapping, and start() lost #16's fixes: keyboard opening of nested items, hidden items left out of a group, and data-zoom-src loading behind the page image. script.ts has the aside and the mapping again, on top of #16, and client.ts is the wrapper around it it was before. An e2e test checks both on a page from the HTML renderer.
Contributor
Latest result Pull request merged. Final answersSession Pull request merged. Session Pull request merged. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. |
commit: |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
onmax
added a commit
to vite-hub/drop
that referenced
this pull request
Oct 20, 2026
…re anchor through the zoom's own mapping comark-annotate 0.2.0, with comark-zoom and comark-annotate patched to comark-plugins main plus onmax/comark-ui#25 and #15 until a release has them: the zoom puts a screenshot's notes in a column beside it, a mark and its note light up together, and the zoom's events map copies to the page and back (copyOf/originalOf). The frame runtime uses that mapping instead of its own child-index walk. A comment on a note in the zoom draws in a layer inside the notes column, which covered it on the zoom's layer, and anchors to the note on the page. 0.2.0 renamed a screenshot's `url` to `href` and `label` to `title`, and reports the old names. Published docs keep them, so the renderer reads them as the new names; the pr-evidence skill teaches the new ones. Issues are in meta.issues now. The render cache's integrity moves to 3, since the screenshot markup changed.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Single zoom runtime — Consolidates the full interaction implementation in
packages/zoom/src/script.ts, so the HTML renderer andstart()share aside rendering, context shells, copy mapping, keyboard behavior, hidden-item filtering, anddata-zoom-srchandling. - Client and public types — Reduces
packages/zoom/src/client.tsto the CSS-backed wrapper and re-exportsZoomDetailfrom the shared runtime. - HTML aside and mapping coverage — Adds an end-to-end check for the HTML-rendered aside,
content,copyOf, andoriginalOfbehavior, and removes the obsolete doctor suppression.
gpt-5.6-sol | 𝕏
Closed
onmax
added a commit
that referenced
this pull request
Oct 20, 2026
…mark lights up its note there The stage, not the figure, is the zoom item now, with `.ca` and `.ca-screenshot` as its contexts and the figcaption as its aside (#14, #25), so the notes sit beside the zoomed image at a size that reads. In the zoom, hovering a mark or a note lights the other, between the zoomed copy and the aside only: the thumbnails are copies too. e2e checks that the aside is to the right of the frame, that a note lights its mark and no thumbnail, and that the zoom's copyOf/originalOf map the image and the note to the page and back.
onmax
added a commit
that referenced
this pull request
Oct 20, 2026
…mark lights up its note there (#15) The stage, not the figure, is the zoom item now, with `.ca` and `.ca-screenshot` as its contexts and the figcaption as its aside (#14, #25), so the notes sit beside the zoomed image at a size that reads. In the zoom, hovering a mark or a note lights the other, between the zoomed copy and the aside only: the thumbnails are copies too. e2e checks that the aside is to the right of the frame, that a note lights its mark and no thumbnail, and that the zoom's copyOf/originalOf map the image and the note to the page and back.
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.

#14 was squashed from a branch older than #16. It added
data-zoom-aside,copyOf, andoriginalOfto a second copy of the zoom script inclient.ts, but the HTML renderer still inlinesscript.ts, which has none of them. #24 then added a doctor suppression for that copy.What that broke on
main:copyOf/originalOf.start()fromcomark-zoom/clientlost fix(zoom)!: open nested items by keyboard, skip hidden ones, and load data-zoom-src behind the page image #16's fixes: opening nested items by keyboard, leaving hidden items out of a group, and loadingdata-zoom-srcbehind the page image.This PR:
data-zoom-context, and the copy mapping intoscript.ts, on top of fix(zoom)!: open nested items by keyboard, skip hidden ones, and load data-zoom-src behind the page image #16. Each context shell keeps fix(zoom)!: open nested items by keyboard, skip hidden ones, and load data-zoom-src behind the page image #16'scolor: inherit.client.tsthe thin wrapper it was before feat(zoom): data-zoom-aside shows a caption beside the zoomed item, and the events map copies to the page and back #14 again.client.ts.ZoomDetailand the event typings live inscript.tsagain. Their fields are the ones #14 documented.#15's annotate changes (
data-zoomon the stage, notes linking in the zoom) depend on this.Checks
pnpm readypasses.pnpm docs:build && pnpm test:e2e e2e/zoom.e2e.ts e2e/annotate.e2e.ts: 15 passed. That includes a new test on a page from the HTML renderer: the aside sits to the right of the item,contentis the item's copy, andcopyOf/originalOfmap an aside element there and back.🤖 Generated with Claude Code