Skip to content

fix(annotate): put Hide marks in the zoomed header beside Copy - #472

Merged
vite-hub[bot] merged 3 commits into
mainfrom
fix/annotate-hide-in-zoom-header
Nov 19, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
fix/annotate-hide-in-zoom-header

Conversation

@onmax

@onmax onmax commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Zoomed, Copy moves into the dialog's header, but Hide marks stayed in the frame. Its right:2.75rem offset only applies while Copy sits beside it, so on its own it slid to the image's top-right corner and covered what was under it, like the app's Save button in a PR screenshot.

Now both go into the header, in the order Hide marks, Copy, Close:

  • The header group is .ca-zoom-tools, since it holds more than Copy now.
  • Hide marks uses the same header button as Copy: 2.25rem, no border, accent on hover, 2.75rem on coarse pointers.
  • The toggle has left the frame, so .cz-dialog:has(.ca-zoom-tools .ca-hide>:checked) .cz-item hides the zoomed marks and arrows.
  • When a gallery changes slide, focus stays on whichever control the reader was on.

The e2e tests now find the toggle in the header and follow the new Tab order. Annotate's unit tests (73) and e2e tests (19) pass locally.

🤖 Generated with Claude Code

@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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The new Hide marks control extends into the image area, where part of it can’t be clicked. Moving the checkbox also breaks the documented copyOf() lookup for hosts that use the zoom API.

Approach: Putting both controls in the zoom header is the right fix, but the move needs to clear the old frame offsets and preserve zoom’s element mapping.

Reviewed changes — I reviewed the header relocation, mark visibility, gallery focus handling, and updated docs and tests.

  • Zoom controls: The zoom event handler groups Hide marks, Copy, and copy status before Close, and restores focus to the matching control when a slide changes.
  • Mark visibility: The header checkbox controls the zoomed marks and arrows without changing the checkbox on the page.
  • Verification: The package build passed, along with 19 Chromium E2E tests and 85 annotate unit tests (1 skipped). Both regressions were reproduced separately in Chromium with rendered Markdown.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread packages/annotate/src/styles.ts Resolved
Comment thread packages/annotate/src/script.ts Resolved
@vite-hub

vite-hub Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-19T14:38:18.262Z 4m 54s
View session Cancelled 2026-11-19T12:37:43.142Z 9m 33s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Pushed `09801f1` and resolved the review thread. The mapping test now uses `ArrowRight` to reach the second slide without clicking through the notes panel, and keeps both mapping assertions. The focused build and lint passed. Locally, 115 unit tests passed, three subprocess tests failed, and sandbox restrictions prevented the browser run. Awaiting CI.

Session

Pull request evidence changed.

Session

Pull request evidence changed.

Session

Pull request evidence changed.

Session

Pull request evidence changed.

Session

Pull request evidence changed.

Session

Pull request evidence changed.

Session

Pull request evidence changed.

Session

this host is full

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The new mapping regression test times out before it checks the second slide. The mapping itself works when the slide is changed with ArrowRight.

Approach: Tracking the cloned elements directly lets zoom preserve their identity when annotate moves controls into the header.

Reviewed changes — I reviewed c6b96d8 and verified both fixes from the prior review.

  • Reset the header toggle’s offsets. The bottom edge of Hide marks stays above the stage and remains clickable after scrolling.
  • Replaced child-path lookups with per-slide element mappings. I verified that both lookups find the relocated checkbox on open and after a keyboard slide change.
  • Extended Chromium coverage. The workspace build, typecheck, and 117 unit tests passed (one skipped). Of 48 annotate and zoom browser tests, 47 passed and the new mapping test timed out.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread e2e/annotate.e2e.ts Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. No P0 or P1 findings remain.

Reviewed changes — I reviewed 09801f1, the test-only change since the previous Pullfrog review.

  • Switched the mapping regression to keyboard navigation. ArrowRight reaches the second slide without relying on the obscured Next button, and the test still checks the element mapping on both slides.
  • Verified the fix in Chromium. The workspace build and all 48 annotate and zoom E2E tests passed.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

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

comark-badge

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

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@472

comark-cards

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

comark-carousel

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

comark-cast

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

comark-charts

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

comark-chat

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

comark-chips

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

comark-cjk

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

comark-code

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

comark-code-notes

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

comark-colors

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

comark-comments

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

comark-critic

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

comark-deflist

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

comark-details

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

comark-diagrams

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

comark-diff

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

comark-embed

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

comark-fields

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

comark-figure

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

comark-file-tree

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

comark-footnotes

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

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@472

comark-github

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

comark-icon

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

comark-include

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

comark-keys

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

comark-links

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

comark-linter

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

comark-magic-move

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

comark-mark

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

markdown-it-to-comark

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

marked-to-comark

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

comark-mathml

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

comark-media

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

comark-metrics

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

migrate-to-comark

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

comark-outline

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

comark-properties

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

comark-qr

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

comark-quiz

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

comark-reading-time

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

remark-to-comark

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

comark-sources

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

comark-steps

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

comark-table

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

comark-tabs

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

comark-tests

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

comark-time

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

comark-ui

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

comark-xref

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

comark-zoom

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

commit: 09801f1

@vite-hub
vite-hub Bot merged commit 51d3e74 into main Nov 19, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the fix/annotate-hide-in-zoom-header branch November 19, 2026 14:57
@github-actions github-actions Bot mentioned this pull request Nov 19, 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