Repository navigation
fix(annotate): put Hide marks in the zoomed header beside Copy - #472
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
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.
gpt-6.2-sol(high) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. 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 |
There was a problem hiding this comment.
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.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ 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.
ArrowRightreaches 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.
gpt-6.2-sol(high) | 𝕏
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |

Zoomed, Copy moves into the dialog's header, but Hide marks stayed in the frame. Its
right:2.75remoffset 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:
.ca-zoom-tools, since it holds more than Copy now..cz-dialog:has(.ca-zoom-tools .ca-hide>:checked) .cz-itemhides the zoomed marks and arrows.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