Skip to content

feat(ui): renderIssues and ComarkIssues draw a document's meta.issues - #420

Merged
vite-hub[bot] merged 4 commits into
mainfrom
feat/render-issues
Nov 13, 2026
Merged

vite-hub[bot] merged 4 commits into
mainfrom
feat/render-issues

Conversation

@onmax

@onmax onmax commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Every comark-ui plugin reports a document's problems in meta.issues, one sentence each that names the block and the fix, but nothing in comark-ui shows them. A host that publishes documents it didn't write has to build its own box, and Drop carries one: about 50 lines of HTML in its renderer and 95 lines of CSS on its own tokens.

This adds renderIssues(meta, { title, hint }) to comark-ui/html. It returns an open <details class="cis"> with a warning icon, the title ("This document has 3 problems"), a hint ("Fix them in the Markdown."), and one item per problem, with its styles inlined, or an empty string when there are none. Backticks in an issue read as code, and "::question 1 has no id" reads as "#1". title and hint take text or a function of the count, and hint: "" drops the hint. The styles use the shared --comark-* tokens and the danger color, sit in the comark layer, and ship in comark-ui/style.css too.

ComarkIssues in comark-ui/vue draws the same markup from a meta prop and adds the styles on mount. I didn't add React or Svelte components; the HTML string covers them for now.

Before and after, light and dark: before/after on Drop

Validation:

  • packages/ui tests pass (14 files), with new tests for the markup, the empty case, custom title and hint, escaping, and Vue rendering the same HTML as renderIssues(). style.test.ts checks the styles are in comark-ui/style.css.
  • pnpm typecheck, vp lint and vp fmt on the changed files, pnpm run doctor for ui, and pnpm run lint:docs.
  • I didn't run the Playwright e2e suite or pnpm docs:build; the screenshots render a sample doc through comark-ui/html on a plain page.

renderIssues(meta, { title, hint }) from comark-ui/html returns an open details box listing each problem, with its styles on the comark tokens, or an empty string. ComarkIssues in comark-ui/vue draws the same markup, and comark-ui/style.css carries the styles.
@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-13T17:09:17.546878Z
We couldn’t complete this review. Comment @codex review to try again.
319d955 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.

@vite-hub

vite-hub Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-13T21:09:23.764Z 5m 34s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Merged 7c6c25f directly: required checks passed and review threads were resolved.

Session

Pushed 7c6c25f resolving the prepared merge conflicts while preserving both issues-box and highlighter guidance. UI build and eight focused issue/style tests pass; repository lint passes with four unrelated warnings. The previous build failed on Iconify fetches. Existing review fixes remain intact, with no unresolved findings supplied. Awaiting checks on the new HEAD.

Session

Pushed 7c6c25f resolving the prepared merge conflicts while preserving both issues-box and highlighter guidance. UI build and eight focused issue/style tests pass; repository lint passes with four unrelated warnings. The previous build failed on Iconify fetches. Existing review fixes remain intact, with no unresolved findings supplied. Awaiting checks on the new HEAD.

Session

Pushed 7c6c25f resolving the prepared merge conflicts while preserving both issues-box and highlighter guidance. UI build and eight focused issue/style tests pass; repository lint passes with four unrelated warnings. The previous build failed on Iconify fetches. Existing review fixes remain intact, with no unresolved findings supplied. Awaiting checks on the new HEAD.

Session

Pushed 7c6c25f resolving the prepared merge conflicts while preserving both issues-box and highlighter guidance. UI build and eight focused issue/style tests pass; repository lint passes with four unrelated warnings. The previous build failed on Iconify fetches. Existing review fixes remain intact, with no unresolved findings supplied. Awaiting checks on the new HEAD.

Session

Pushed 7c6c25f resolving the prepared merge conflicts while preserving both issues-box and highlighter guidance. UI build and eight focused issue/style tests pass; repository lint passes with four unrelated warnings. The previous build failed on Iconify fetches. Existing review fixes remain intact, with no unresolved findings supplied. Awaiting checks on the new HEAD.

View session

Pushed 7c6c25f resolving the prepared merge conflicts while preserving both issues-box and highlighter guidance. UI build and eight focused issue/style tests pass; repository lint passes with four unrelated warnings. The previous build failed on Iconify fetches. Existing review fixes remain intact, with no unresolved findings supplied. Awaiting checks on the new HEAD.

@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 P0 or P1 findings; two small rendering defects are noted inline.

Reviewed changes — Reviewed the HTML and Vue issue boxes, their shared rendering and styling, and the accompanying build, documentation, and test changes.

  • Issue rendering: Adds renderIssues() and ComarkIssues with configurable titles and hints, inline code formatting, and empty-state handling.
  • Shared styles: Themes the disclosure on the shared tokens and includes its rules in comark-ui/style.css.
  • Documentation and verification: Documents both APIs and adds rendering and stylesheet tests; the workspace build, all 14 UI test files, typecheck, changed-file lint, UI Doctor, and docs lint passed.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread packages/ui/src/issues.ts Resolved
Comment thread packages/ui/src/html.ts Resolved

@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; no P0 or P1 findings remain.

Reviewed changes — Re-reviewed 19a8fe2, covering the fixes since the prior review at 319d955.

  • Preserved literal diagnostic text by escaping ampersands in issue messages, titles, and hints before HTML generation in both renderers.
  • Added frame markers to the HTML and Vue roots so hosts recognize the issue box's own frame.
  • Extended regression coverage for literal entities and HTML/Vue parity, including the frame attribute.

Validation passed: workspace build, all 14 UI test files (324 tests passed, one skipped), workspace typecheck, and changed-file lint. Public-export DOM checks also confirmed the original parsed-filename reproduction and host frame selector now work in both renderers.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@vite-hub

vite-hub Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

The failing check / check and Preview Package checks come from Doctor in unchanged packages/git-graph. I reproduced the identical five warnings with vite-doctor . --no-cache --max-warnings 0 --format text on both PR HEAD 19a8fe2 and an archive of exact base f69708dcdeff39dacc48c5569cc31205f622b0e1: TS0012 at src/read.ts:363 and TS0008 at src/draw.ts:201 and src/index.ts:128,138,140. This PR changes neither that package nor dependency inputs. Please repair those Doctor warnings on main and comment here after the fix lands so this PR can resume. The five issue-rendering tests and repository lint pass; the previous rendering findings remain fixed.

@pkg-pr-new

pkg-pr-new Bot commented Nov 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-annotate@420

comark-badge

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-badge@420

comark-cards

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cards@420

comark-carousel

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-carousel@420

comark-cast

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cast@420

comark-charts

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-charts@420

comark-chat

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-chat@420

comark-chips

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-chips@420

comark-cjk

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cjk@420

comark-code

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-code@420

comark-code-notes

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-code-notes@420

comark-colors

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-colors@420

comark-comments

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-comments@420

comark-critic

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-critic@420

comark-deflist

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-deflist@420

comark-details

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-details@420

comark-diagrams

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-diagrams@420

comark-diff

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-diff@420

comark-embed

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-embed@420

comark-fields

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-fields@420

comark-figure

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-figure@420

comark-file-tree

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-file-tree@420

comark-footnotes

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-footnotes@420

comark-git-graph

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-git-graph@420

comark-github

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-github@420

comark-icon

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-icon@420

comark-include

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-include@420

comark-keys

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-keys@420

comark-links

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-links@420

comark-linter

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-linter@420

comark-magic-move

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-magic-move@420

comark-mark

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-mark@420

markdown-it-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/markdown-it-to-comark@420

marked-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/marked-to-comark@420

comark-mathml

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-mathml@420

comark-media

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-media@420

comark-metrics

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-metrics@420

migrate-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/migrate-to-comark@420

comark-outline

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-outline@420

comark-properties

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-properties@420

comark-qr

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-qr@420

comark-quiz

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-quiz@420

comark-reading-time

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-reading-time@420

remark-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/remark-to-comark@420

comark-sources

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-sources@420

comark-steps

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-steps@420

comark-table

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-table@420

comark-tabs

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-tabs@420

comark-tests

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-tests@420

comark-time

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-time@420

comark-ui

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

comark-xref

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-xref@420

comark-zoom

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-zoom@420

commit: 7c6c25f

@vite-hub
vite-hub Bot merged commit 8b88f72 into main Nov 13, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the feat/render-issues branch November 13, 2026 21:25
@github-actions github-actions Bot mentioned this pull request Nov 13, 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