Repository navigation
feat(ui): renderIssues and ComarkIssues draw a document's meta.issues - #420
Conversation
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.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Latest result Pull request merged. Final answersSession 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. 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. |
There was a problem hiding this comment.
ℹ️ 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()andComarkIssueswith 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.
gpt-6.1-sol(xhigh) | 𝕏
There was a problem hiding this comment.
✅ 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.
gpt-6.1-sol(xhigh) | 𝕏
|
The failing |
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |

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 })tocomark-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 "::question1 has no id" reads as "#1".titleandhinttake text or a function of the count, andhint: ""drops the hint. The styles use the shared--comark-*tokens and the danger color, sit in thecomarklayer, and ship incomark-ui/style.csstoo.ComarkIssuesincomark-ui/vuedraws the same markup from ametaprop 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/uitests pass (14 files), with new tests for the markup, the empty case, custom title and hint, escaping, and Vue rendering the same HTML asrenderIssues().style.test.tschecks the styles are incomark-ui/style.css.pnpm typecheck,vp lintandvp fmton the changed files,pnpm run doctorfor ui, andpnpm run lint:docs.pnpm docs:build; the screenshots render a sample doc throughcomark-ui/htmlon a plain page.