Repository navigation
fix: green CI on main after #14 and #17 - #24
Conversation
#14 was squashed from a branch older than #12 and #21, so it put back annotate's earlier read.ts and tests: an unknown prop named `constructor` or `__proto__` printed Object's own value as its hint, viewports compared as strings ("0900x0360" no longer matched "900x360"), and two tests expected the old href message. Those parts are restored; #17's compare mode stays. The slider e2e test clicked at coordinates measured before focusing the handle, which can scroll the page, so it missed the slider under load. It measures again before that click. zoom's client.ts holds its own copy of the zoom script since #14, so its doctor suppression covers it too.
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for GitHub merge request 5c6ae8f4-b0c9-49f8-a006-8cc4cd188669. 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. |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This review covers the annotate validation restorations, slider e2e coordinate fix, and zoom doctor suppression in this PR.
- Annotate validation Restores safe own-property hint lookup and compares parsed viewport width and height numerically, including padded dimensions.
- Regression coverage Updates the href diagnostics and adds tests for padded viewports and
constructor/__proto__prop names. - Slider e2e stability Re-measures the slider after focus and grip interaction before clicking, avoiding stale coordinates after page scrolling.
- Zoom doctor configuration Suppresses the lifecycle diagnostic for the non-component
src/client.tsruntime module.
gpt-5.6-sol | 𝕏

mainhas been red since #14 (Preview Package runs for 142b3d0 and e884944). There are three causes:Annotate regressions from feat(zoom): data-zoom-aside shows a caption beside the zoomed item, and the events map copies to the page and back #14. It was squashed from a branch older than fix(annotate)!: clearer issues, title and href props, theming, and aligned side notes #12 and fix(annotate): report an unsafe bound link even next to a plain one #21, so it put back an earlier
read.tsand earlier tests:constructoror__proto__printedfunction Object() { [native code] }or[object Object]as its hint, because theObject.hasOwnguard was gone;0900x0360no longer matched900x360;hrefmessage.Those parts are restored. feat(annotate): a slider mode for compare #17's compare
modestays as is.Flaky slider e2e test from feat(annotate): a slider mode for compare #17. The final click used coordinates measured before
handle.focus()and the grip click, both of which can scroll the page. When it scrolled, the click landed 276 px below the slider and nothing zoomed. It failed 20 times in 30 runs with 8 workers. Measuring again before the click: 90 of 90 pass.Doctor warning in
comark-zoom. CI never reached this step onmain. The suppression only coveredsrc/script.ts, butsrc/client.tsholds a full copy of the script again since feat(zoom): data-zoom-aside shows a caption beside the zoomed item, and the events map copies to the page and back #14, so the suppression now covers it too.Locally,
pnpm release:check(format, build, lint, typecheck, 72 tests, doctor) and the 30 e2e tests pass.Follow-up, not in this PR: zoom now has two diverged copies of its browser script.
script.tsis what the HTML renderer inlines; it has #16's tab-stop clean-up, hidden-item skipping, the line-height probe, and scroll restoration.client.tsis what the Vue, React, and Svelte components run; it has #14'sdata-zoom-aside,copyOf/originalOf, nested contexts, anddata-zoom-src. Each renderer is missing the other's features. They should be merged back intoscript.tswithclient.tsas a thin wrapper again. I left that alone becausefix/zoom-copy-text-stylesis changing zoom right now.🤖 Generated with Claude Code