Skip to content

fix(annotate)!: clearer issues, title and href props, theming, and aligned side notes - #12

Merged
vite-hub[bot] merged 6 commits into
mainfrom
fix/annotate-review
Oct 20, 2026
Merged

vite-hub[bot] merged 6 commits into
mainfrom
fix/annotate-review

Conversation

@onmax

@onmax onmax commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Fixes from an audit of comark-annotate, plus the renames agreed for 0.2. Stacked on #11.

Breaking

  • meta.annotateIssues is now meta.issues. The plugin appends to it, so carousel and zoom can report there too.
  • ::screenshot{label} is now title, the name ::zoom and :::slide already use.
  • ::screenshot{url} is now href, and its link reads as the URL's host instead of "Preview".
  • Issue messages are reworded, 4- and 8-digit hex colors are rejected, and x="10%" or x=0x10 are reported.

Fixes

  • comark-annotate check a.md b.md only checked a.md and 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 ::carousel and ::zoom.
  • The documented .ca { --ca-color } override did nothing, because the figure declared its own palette. The palette and gutters now live on .ca only; zoomed screenshots sit in a copy of it (fix(zoom): a zoomed block keeps its size, so closing doesn't jump #11).
  • Annotations are named by their position in their own screenshot. Before, the count carried across a compare and included side notes.
  • Every message names its block. A screenshot is named by its src, or by its position and alt when the src is missing or shared. A compare is named by its position and title, and a stray annotation by its note. Compare messages end with the fix.
  • Unknown props are reported with the valid ones and a likely fix (label→title, width→w, colour→color, …). So is a :bound prop that points at missing frontmatter.
  • mark="none" without a side is reported, since nothing would point.
  • A light hex color gets a dark stamp number.
  • Viewports are parsed as WxH, so "1440 × 900" matches "1440x900".
  • Left and right notes sat 5rem × (1 − y) above their arrows when the screenshot also had a note above it, about 17px off in the docs' Pointers example. They now line up.
  • ::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 ready passes, and so do the e2e tests.

🤖 Generated with Claude Code

onmax added 2 commits October 20, 2026 10:01
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.
@pullfrog

pullfrog Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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 env::

OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1
OPENAI_COMPATIBLE_API_KEY: ${{ secrets.OPENAI_COMPATIBLE_API_KEY }}
OPENAI_COMPATIBLE_MODEL:
OPENAI_COMPATIBLE_CONTEXT: "128000"
OPENAI_COMPATIBLE_MAX_OUTPUT: "16384"

set the last two to the real limits of the model your endpoint serves. Pullfrog can't
discover them — your endpoint owns the model catalog — and without them completions are
capped at 32000 tokens (rejected outright by models with a smaller cap) and
auto-compaction is disabled, so long runs grow until your endpoint refuses them.

for full setup instructions, see https://docs.pullfrog.com/openai-compatible

Configure model →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using gpt-5.6-sol | 𝕏

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ 6d98dae 2026-10-20T09:21:59.002Z Visit the dashboard ↗
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ c68b77f 2026-10-20T08:35:30.347Z Visit the dashboard ↗
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ 772dd4e 2026-10-20T08:17:09.434Z Visit the dashboard ↗

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

pullfrog Bot commented Oct 20, 2026

Copy link
Copy Markdown

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 env::

OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1
OPENAI_COMPATIBLE_API_KEY: ${{ secrets.OPENAI_COMPATIBLE_API_KEY }}
OPENAI_COMPATIBLE_MODEL:
OPENAI_COMPATIBLE_CONTEXT: "128000"
OPENAI_COMPATIBLE_MAX_OUTPUT: "16384"

set the last two to the real limits of the model your endpoint serves. Pullfrog can't
discover them — your endpoint owns the model catalog — and without them completions are
capped at 32000 tokens (rejected outright by models with a smaller cap) and
auto-compaction is disabled, so long runs grow until your endpoint refuses them.

for full setup instructions, see https://docs.pullfrog.com/openai-compatible

Configure model →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using gpt-5.6-sol | 𝕏

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

pullfrog Bot commented Oct 20, 2026

Copy link
Copy Markdown

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 env::

OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1
OPENAI_COMPATIBLE_API_KEY: ${{ secrets.OPENAI_COMPATIBLE_API_KEY }}
OPENAI_COMPATIBLE_MODEL:
OPENAI_COMPATIBLE_CONTEXT: "128000"
OPENAI_COMPATIBLE_MAX_OUTPUT: "16384"

set the last two to the real limits of the model your endpoint serves. Pullfrog can't
discover them — your endpoint owns the model catalog — and without them completions are
capped at 32000 tokens (rejected outright by models with a smaller cap) and
auto-compaction is disabled, so long runs grow until your endpoint refuses them.

for full setup instructions, see https://docs.pullfrog.com/openai-compatible

Configure model →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using gpt-5.6-sol | 𝕏

@vite-hub
vite-hub Bot changed the base branch from fix/zoom-copy-text-styles to main October 20, 2026 09:13
@vite-hub

vite-hub Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-10-20T09:17:35.774Z 4m 1s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

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.

@pkg-pr-new

pkg-pr-new Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/comark-annotate@12
pnpm add https://pkg.pr.new/comark-carousel@12
pnpm add https://pkg.pr.new/comark-zoom@12

commit: 6d98dae

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

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 prepack scripts so dependent export targets are generated before packaging comark-carousel and comark-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 prior history.scrollRestoration setting.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@vite-hub
vite-hub Bot merged commit 41e6460 into main Oct 20, 2026
9 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 20, 2026
onmax added a commit that referenced this pull request Oct 20, 2026
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.
vite-hub Bot pushed a commit that referenced this pull request Oct 20, 2026
#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.
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