Skip to content

feat: mark blocks that draw their own frame with data-comark-frame - #384

Merged
vite-hub[bot] merged 3 commits into
mainfrom
feat/frame-marker
Nov 7, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
feat/frame-marker

Conversation

@onmax

@onmax onmax commented Nov 7, 2026

Copy link
Copy Markdown
Owner

A host that frames its examples has to know which blocks already draw a border or a surface, so it doesn't frame them twice. Today that means a list of 24 block classes. comark-ui's docs repeat it four times in docs/play-preview.css, twice in Example.vue, and once in Packages.vue, and @vite-hub/docs keeps its own copy. Every new framed block has to be added to each list.

This PR puts data-comark-frame on the root of every block that draws its own frame, in the HTML, Vue, React, and Svelte renderers: code blocks, tabs and code groups, magic move, diffs, charts, diagrams, Mermaid, embeds and link cards, GitHub callouts, file trees, carousels, cards and card groups, casts, details and accordions, test reports, properties, stat tiles, quizzes, videos, and code notes. The docs' CSS selects [data-comark-frame] instead of the lists, and the theming guide documents it.

It's an attribute and not a class because each package's classes carry that package's prefix, and this marker is shared by all of them, like data-not-typeset and data-wide. React writes it as data-comark-frame="" and the other renderers as data-comark-frame; both match [data-comark-frame]. A code block inside a code group carries it too, so a host that wants the outer frame selects a direct child, as the guide's example does.

ui.test.ts checks the marker on a code block, a code group, a callout, and a diff in HTML and Vue, and its absence on a paragraph. It fails on main. The other test changes add the attribute to the expected markup. A fixture rendered with comark-ui/html matches main pixel for pixel in light, .dark, and system dark. pnpm ready passes.

Packages.vue's list didn't have videos or code notes, so on the landing canvas those now lose their margin too, like the other framed blocks.

A host that frames its examples had to list about 30 block classes to know
which blocks already draw a border or a surface. Every such block root now
carries `data-comark-frame` in every renderer, and the docs' example frames
select it instead of the lists.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-07T11:38:04.521719Z
We couldn’t complete this review. Comment @codex review to try again.
2dc3889 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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

Important

Annotated screenshots and comparisons still do not satisfy the new direct-child frame-marker contract.

Reviewed changes Reviewed the introduction of data-comark-frame across package renderers and the migration of docs selectors to the shared marker.

  • Renderer marker contract Adds the shared marker to framed roots across HTML, React, Vue, and Svelte implementations.
  • Docs integration Replaces package-specific class allowlists with [data-comark-frame] and documents direct-child host selection.
  • Verification Updates package snapshots and adds preset-level HTML and Vue coverage for representative framed blocks.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

Comment thread packages/annotate/test/annotate.test.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@384

comark-badge

pnpm add https://pkg.pr.new/comark-badge@384

comark-cards

pnpm add https://pkg.pr.new/comark-cards@384

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@384

comark-cast

pnpm add https://pkg.pr.new/comark-cast@384

comark-charts

pnpm add https://pkg.pr.new/comark-charts@384

comark-chat

pnpm add https://pkg.pr.new/comark-chat@384

comark-chips

pnpm add https://pkg.pr.new/comark-chips@384

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@384

comark-code

pnpm add https://pkg.pr.new/comark-code@384

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@384

comark-colors

pnpm add https://pkg.pr.new/comark-colors@384

comark-comments

pnpm add https://pkg.pr.new/comark-comments@384

comark-critic

pnpm add https://pkg.pr.new/comark-critic@384

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@384

comark-details

pnpm add https://pkg.pr.new/comark-details@384

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@384

comark-diff

pnpm add https://pkg.pr.new/comark-diff@384

comark-embed

pnpm add https://pkg.pr.new/comark-embed@384

comark-fields

pnpm add https://pkg.pr.new/comark-fields@384

comark-figure

pnpm add https://pkg.pr.new/comark-figure@384

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@384

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@384

comark-github

pnpm add https://pkg.pr.new/comark-github@384

comark-icon

pnpm add https://pkg.pr.new/comark-icon@384

comark-include

pnpm add https://pkg.pr.new/comark-include@384

comark-keys

pnpm add https://pkg.pr.new/comark-keys@384

comark-links

pnpm add https://pkg.pr.new/comark-links@384

comark-linter

pnpm add https://pkg.pr.new/comark-linter@384

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@384

comark-mark

pnpm add https://pkg.pr.new/comark-mark@384

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@384

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@384

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@384

comark-media

pnpm add https://pkg.pr.new/comark-media@384

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@384

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@384

comark-outline

pnpm add https://pkg.pr.new/comark-outline@384

comark-properties

pnpm add https://pkg.pr.new/comark-properties@384

comark-qr

pnpm add https://pkg.pr.new/comark-qr@384

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@384

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@384

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@384

comark-sources

pnpm add https://pkg.pr.new/comark-sources@384

comark-steps

pnpm add https://pkg.pr.new/comark-steps@384

comark-table

pnpm add https://pkg.pr.new/comark-table@384

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@384

comark-tests

pnpm add https://pkg.pr.new/comark-tests@384

comark-time

pnpm add https://pkg.pr.new/comark-time@384

comark-ui

pnpm add https://pkg.pr.new/comark-ui@384

comark-xref

pnpm add https://pkg.pr.new/comark-xref@384

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@384

commit: 55a023a

@vite-hub

vite-hub Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-07T12:28:48.048Z 21m 27s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Pushed d66dbf7, resolving the merge conflict and Pullfrog P1 missing annotate root markers. Three regression cases failed before the fix; annotate tests now pass 72/72. Package build, focused tsrs, vp lint, vp fmt --check, and Vue compilation pass. Browser verification was unavailable because Chromium is absent. Resolved the fixed review thread; awaiting CI.

@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 follow-up that closes the annotate frame-marker gap identified in the prior Pullfrog review.

  • Annotated block roots Marked standalone screenshots, slider comparisons, and carousel comparisons with data-comark-frame on their outer .ca elements.
  • Contract coverage Added focused renderer tests covering all three annotated block forms and updated existing markup expectations.
  • Docs integration Simplified the example preview selectors so server-rendered annotate blocks follow the same marker contract as other framed blocks without package-specific exceptions.

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

@vite-hub
vite-hub Bot merged commit 0ab38fc into main Nov 7, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the feat/frame-marker branch November 7, 2026 13:49
@github-actions github-actions Bot mentioned this pull request Nov 7, 2026
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