Repository navigation
fix(carousel)!: scope controls to their carousel, follow RTL, report dropped content in meta.issues - #13
Conversation
|
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
|
772dd4e to
cd11f5f
Compare
fb88bb4 to
7bf4263
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
|
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
Latest result Pull request merged. Final answersSession Pull request merged. Session Fixed annotate validation by checking raw attributes, preserving unsafe bound src/href diagnostics while ignoring host attributes. Focused tests were unavailable locally because Corepack could not fetch pnpm and workspace package links were missing; diff checks passed. Committed and pushed 7002acb, and resolved the review thread. Awaiting current-head checks. Session Fixed annotate validation by checking raw attributes, preserving unsafe bound src/href diagnostics while ignoring host attributes. Focused tests were unavailable locally because Corepack could not fetch pnpm and workspace package links were missing; diff checks passed. Committed and pushed 7002acb, and resolved the review thread. Awaiting current-head checks. Session Fixed annotate validation by checking raw attributes, preserving unsafe bound src/href diagnostics while ignoring host attributes. Focused tests were unavailable locally because Corepack could not fetch pnpm and workspace package links were missing; diff checks passed. Committed and pushed 7002acb, and resolved the review thread. Awaiting current-head checks. Session Fixed annotate validation by checking raw attributes, preserving unsafe bound src/href diagnostics while ignoring host attributes. Focused tests were unavailable locally because Corepack could not fetch pnpm and workspace package links were missing; diff checks passed. Committed and pushed 7002acb, and resolved the review thread. Awaiting current-head checks. Session Fixed annotate validation by checking raw attributes, preserving unsafe bound src/href diagnostics while ignoring host attributes. Focused tests were unavailable locally because Corepack could not fetch pnpm and workspace package links were missing; diff checks passed. Committed and pushed 7002acb, and resolved the review thread. Awaiting current-head checks. Session Fixed annotate validation by checking raw attributes, preserving unsafe bound src/href diagnostics while ignoring host attributes. Focused tests were unavailable locally because Corepack could not fetch pnpm and workspace package links were missing; diff checks passed. Committed and pushed 7002acb, and resolved the review thread. Awaiting current-head checks. |
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This incremental review covers the changes since the prior reviewed version, including build sequencing and zoom history cleanup.
- Sequenced workspace builds — Updated package prepack commands so dependent workspace packages are built before packaging.
- Pinned CI actions — Replaced moving workflow action references with immutable commits and version comments.
- Restored scroll behavior after stop — Ensured a zoom dialog closed by
stop()restores the page's previoushistory.scrollRestorationsetting after history navigation.
gpt-5.6-sol | 𝕏
…dropped content in meta.issues
- Nested carousels: a carousel updates only its own counter and arrows, not those of a carousel in a slide.
- A zoomable slide's focus ring sits inside its edge, where the track doesn't clip it.
- Bound props (`:zoom`, `:columns`) resolve the same way in the parse plugin and every renderer, and Vue no longer
passes `{#id .class}` to the root, which the other renderers drop.
- Right-to-left pages: the counter, arrows, and keys follow the reading direction, and the chevrons flip.
- At the end of a track with several columns, the counter shows the last slide.
- Without the script the scrollbar stays, so a mouse can reach every slide.
- Comments inside `::carousel` are no longer empty slides.
- Arrows use aria-disabled, so a focused arrow keeps focus at the end and the keys keep working.
- Arrow keys leave Alt/Ctrl/Meta/Shift, handled events, form fields, media, tab lists, sliders, and wide code blocks alone.
- Only an image that stands alone in a slide is a centered block; inline images stay in their text.
- Paging respects prefers-reduced-motion, and quick clicks add up instead of reading a position mid-scroll.
- A slide with no title or image takes the carousel's title in the zoomed view.
BREAKING CHANGES:
- `data-columns` and `data-fits` are now `data-carousel-columns` and `data-carousel-fits`.
- `carouselHtml`'s `gallery` option is now `zoom`; `columns` is `number | string` and `title` is `string`.
- The plugin appends problems to `meta.issues` (exported type `CarouselMeta`): content outside every `:::slide`,
an empty carousel, `columns` outside 1 to 3, and a `:::slide` outside a carousel.
- A `:::slide` outside a carousel renders as a plain `<div>`.
- The arrows are disabled with `aria-disabled="true"` instead of the `disabled` attribute.
- An image alone in its paragraph inside a slide is lifted out of the paragraph, and a slide that is one sentence
with an image keeps its `<p>`.
- The Vue components set `inheritAttrs: false`.
… and check bound props - The script picks up carousels added after it runs, such as the ones after the HTML renderer's inline script, so they sync when they're shown. - Without scrollend, quick clicks still add up; a short pause in scrolling clears the target. - A link around nothing but an image is a standalone picture, centered like an image, and keeps its link. - `columns` must be 1, 2, or 3 as a number or a numeric string, so `:columns="true"` is reported. - The arrow keys also leave `summary`, combo boxes, spin buttons, menus, menu bars, and trees alone. - A `:zoom` or `:title` that reads render-time data is reported, since the slides take it while parsing.
There was a problem hiding this comment.
Important
The annotate merge fix introduces a regression in prop validation and the focused annotate test suite currently fails; please address this before merging.
Reviewed changes
This incremental review covers the changes since the prior Pullfrog review, specifically the annotate merge-conflict resolution and its new regression coverage.
- Reworked binding validation — Added a data-aware check intended to detect unsafe bound
srcandhrefvalues without being masked by neighboring plain attributes. - Restored annotate regression cases — Added coverage for host attributes, unsafe bound links, inherited object keys, and quoted issue names.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
Important
The annotate validation fix now regresses URL validation and internal attribute handling; please address these before merging.
Reviewed changes
This incremental review covers the changes since the prior Pullfrog review, specifically the raw-attribute validation and isolated unsafe-binding diagnostics in packages/annotate/src/read.ts.
- Validated raw attributes — Changed
checkPropsto inspect source attribute names so host attributes and unsafe boundsrc/hrefvalues remain diagnosable. - Simplified URL and issue formatting — Replaced URL parsing and quote handling with shorter regular-expression and interpolation implementations.
gpt-5.6-sol | 𝕏
| } | ||
| // Quotes what an author wrote, so a quote inside it can't blur where the name ends. | ||
| const quote = (value: string) => JSON.stringify(value); | ||
| const isHttp = (url: string) => /^https?:\/\/\S/i.test(url); |
There was a problem hiding this comment.
isHttp now accepts any non-whitespace suffix after http(s)://, so a value such as https://?x passes validation even though it has no host and cannot identify a page. This regresses the host check removed in this delta and allows the renderer to retain the malformed href; preserve the protocol check together with URL parsing and a non-empty hostname.
Technical details
# Preserve the host requirement for screenshot links
## Affected sites
- `packages/annotate/src/read.ts:63` — the new regular expression accepts `https://?x` and other hostless URLs.
- `packages/annotate/src/read.ts:207` — `readScreenshot` trusts `isHttp` for both the issue check and returned `href`.
## Required outcome
- Accept only `http` or `https` URLs with a non-empty host, matching the previous behavior.
- Reject malformed or hostless URLs and omit them from rendered links.| // Validate the source attributes, rather than the resolved map: resolution intentionally | ||
| // drops unsafe bindings and host attributes. Keep those bindings visible for diagnostics, | ||
| // while treating Comark's own attributes as renderer concerns. | ||
| for (const rawKey of Object.keys(node[1])) { |
There was a problem hiding this comment.
The new raw-key loop no longer removes the parser's internal $ attribute before prop validation. Any annotate block carrying that attribute will now emit a spurious unknown-prop issue, whereas the previous implementation explicitly deleted $; retain that exclusion while iterating raw keys.
Technical details
# Keep parser metadata out of prop diagnostics
## Affected sites
- `packages/annotate/src/read.ts:143` — `Object.keys(node[1])` is now validated directly without excluding `$`.
- `packages/annotate/src/read.ts:154` — the key is sent through unknown-prop validation, producing a false issue for parser metadata.
## Required outcome
- Validate raw author attributes while continuing to ignore the internal `$` attribute.
- Preserve the new host-attribute exclusions and isolated unsafe-binding checks.…ings by their path
163951f to
212fe25
Compare

Fixes from an audit of comark-carousel, plus the renames agreed for 0.2. Stacked on #12.
Breaking
data-columnsanddata-fitsare nowdata-carousel-columnsanddata-carousel-fits, matchingdata-carousel-stepanddata-carousel-ready.carouselHtml'sgalleryoption is nowzoom, the name Markdown uses.columnsandtitleare typed.meta.issues, as annotate does: content outside every:::slide(which is dropped), an empty carousel,columnsoutside 1–3, and a:::slideoutside a carousel. A stray slide renders as a plain<div>in every renderer, not as a zoomable "undefined of undefined".aria-disabledinstead ofdisabled, so focus stays on Next at the last slide.<p>, so only whole-slide images are centered blocks and inline badges stay in their sentence.inheritAttrs: false, so{#id .class}renders the same in all four renderers.Fixes
sync()found the nested carousel's controls first. A::carouselof::compareblocks hit this. Lookups are now scoped to the carousel's own controls.:zoom="false"and:columns="2"gave different output in HTML than in Vue and React. Everything now reads props withresolveAttributes.columns=2and 3 slides, the counter stopped at "2 / 3". It now shows the last slide at the end.titleas their heading.Six of the new e2e tests fail against the old client.
pnpm readypasses, and so do all 20 e2e tests.🤖 Generated with Claude Code