Repository navigation
fix(annotate)!: clearer issues, title and href props, theming, and aligned side notes - #12
Conversation
The zoomed copy sits in the dialog, so it took the dialog's font and line height and reflowed to another height; the original then took its place on the last frame. The copy now inherits the page's text styles. Annotate screenshots zoom inside a copy of their .ca wrapper, so styles set on it reach the zoomed view.
|
This repo's model isn't fully set up yet. OpenAI-compatible model selected but required configuration is missing: OPENAI_COMPATIBLE_API_KEY. only the API key is sensitive — add it as a secret at https://github.com/onmax/comark-plugins/settings/secrets/actions. everything else is plain workflow OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1 set the last two to the real limits of the model your endpoint serves. Pullfrog can't for full setup instructions, see https://docs.pullfrog.com/openai-compatible
|
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
- Going back restored the scroll position saved when the zoom opened. A click during a smooth scroll left the page moving under the zoom, so closing jumped it back by the distance it had scrolled. Scroll restoration is off while the zoom holds a history entry, and opening stops a scroll under way. - A close during the opening animation measured the frame mid-flight and landed off the item. It now measures the settled frame and starts from where the frame is. - The animations aim at the copy's center, not the frame's, since margins inside the copy can sit in the frame but outside the item on the page. - A length line-height is passed on as a length, and a ratio as a ratio. - The zoomed copy keeps the dialog's color inside a data-zoom-context shell.
…igned side notes
- Issues go in `meta.issues`, appended so other plugins can add theirs.
- Every message names its block: a screenshot by its src, or by its position
and alt when the src is missing or shared; a compare by its position and
title; an annotation by its position in its own screenshot, with its stamp
number or side.
- Unknown props are reported with the valid ones and a likely fix, and so is
a `:bound` prop that points at missing frontmatter. Bindings to render-time
`data` or `props` are still left to the renderer.
- `mark="none"` without a `side` is reported, since nothing would point.
- Coordinates must be plain decimals: `10%` and `0x10` are reported, and a
missing one says it is required.
- Hex colors must have 3 or 6 digits, and their stamp gets a dark number
when the color is light.
- Viewports are parsed as WxH (with x or ×, and spaces), so "1440 × 900"
matches "1440x900"; anything else is reported.
- A host's `.ca { --ca-color }` now reaches the marks: the palette and gutters
are declared on `.ca` only, and a zoomed screenshot sits in a copy of it.
- Left and right notes line up with their arrows when the screenshot also has
a note above it.
- `::compare{title}` names the comparison for screen readers.
- The CLI checks several files, prefixing each issue with its file, prints one
line when a file can't be read or written, and knows `::carousel` and
`::zoom`.
BREAKING CHANGE: `meta.annotateIssues` is now `meta.issues`.
BREAKING CHANGE: `::screenshot{label}` is now `title`.
BREAKING CHANGE: `::screenshot{url}` is now `href`, and its link reads as the URL's host instead of "Preview".
772dd4e to
cd11f5f
Compare
|
This repo's model isn't fully set up yet. OpenAI-compatible model selected but required configuration is missing: OPENAI_COMPATIBLE_API_KEY. only the API key is sensitive — add it as a secret at https://github.com/onmax/comark-plugins/settings/secrets/actions. everything else is plain workflow OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1 set the last two to the real limits of the model your endpoint serves. Pullfrog can't for full setup instructions, see https://docs.pullfrog.com/openai-compatible
|
…ber, and check links properly - id, class, style, data-*, and aria-* aren't reported as unknown props. - Viewports compare as numbers, so 0900x0360 matches 900x360. - href must parse as an http or https URL with a host. - A bound src or href that Comark drops as unsafe is reported. - Props named like Object's own keys, such as constructor or a bound __proto__, are reported without leaking into the hint. - Names and values taken from the document are quoted in messages.
|
This repo's model isn't fully set up yet. OpenAI-compatible model selected but required configuration is missing: OPENAI_COMPATIBLE_API_KEY. only the API key is sensitive — add it as a secret at https://github.com/onmax/comark-plugins/settings/secrets/actions. everything else is plain workflow OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1 set the last two to the real limits of the model your endpoint serves. Pullfrog can't for full setup instructions, see https://docs.pullfrog.com/openai-compatible
|
Latest result Pull request merged. Final answersSession Pull request merged. Fixed the publish P1 by building comark-zoom before carousel and annotate packaging, resolved the prepared merge conflicts, and pushed one repair commit. Focused validation was blocked locally by the provider pnpm cache, then dependencies were refreshed. Pullfrog’s missing API key is an external unsupported review configuration, not a code defect. |
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the changes since the prior Pullfrog checkpoint, including the workspace packaging fix, the isolated line-height probe, and zoom teardown restoration coverage.
- Built workspace dependencies before packing — Updated package
prepackscripts so dependent export targets are generated before packagingcomark-carouselandcomark-annotate. - Isolated zoom line-height measurement — Prevented host page span rules from affecting the hidden probe used to distinguish proportional and fixed line heights.
- Restored scroll state on teardown — Covered the
stop()path so an open zoom restores the page's priorhistory.scrollRestorationsetting.
gpt-5.6-sol | 𝕏
The earlier merge of main kept this branch's annotate files and dropped main's annotate changes (#12, #21). This takes main as it is and adds the slider on top. It also drops the annotateIssues alias that main had replaced with meta.issues, suppresses the click that ends a drag by remembering whether the last press dragged instead of guessing a touch origin, and gives the zoomed slider's handle its tab stop back.
#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.

Fixes from an audit of comark-annotate, plus the renames agreed for 0.2. Stacked on #11.
Breaking
meta.annotateIssuesis nowmeta.issues. The plugin appends to it, so carousel and zoom can report there too.::screenshot{label}is nowtitle, the name::zoomand:::slidealready use.::screenshot{url}is nowhref, and its link reads as the URL's host instead of "Preview".x="10%"orx=0x10are reported.Fixes
comark-annotate check a.md b.mdonly checkeda.mdand could print "No problems." It now checks every file and prefixes each issue with its file. A file it can't read or write prints one line and exits 2, instead of a stack trace. It also renders::carouseland::zoom..ca { --ca-color }override did nothing, because the figure declared its own palette. The palette and gutters now live on.caonly; zoomed screenshots sit in a copy of it (fix(zoom): a zoomed block keeps its size, so closing doesn't jump #11).label→title,width→w,colour→color, …). So is a:boundprop that points at missing frontmatter.mark="none"without asideis reported, since nothing would point.::compare{title}names the comparison for screen readers.New e2e tests cover the theme override and the note alignment; both failed before the fix.
pnpm readypasses, and so do the e2e tests.🤖 Generated with Claude Code