Repository navigation
fix(deps): pin comark-ui at onmax/comark-ui#465, so a zoomed stacked chart keeps its bars - #237
Conversation
…chart keeps its bars
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. |
There was a problem hiding this comment.
Important
The new pin fixes the ordinary stacked-chart zoom, but it breaks date localization on direct Markdown pages and fails the existing date test.
Approach: Taking the SVG fix upstream is the right approach, but this preview also changes the date renderer that Drop’s CSP needs to support.
Reviewed changes I verified the frozen install, checked the zoom in Chromium, and ran both Drop test suites.
- Comark pins: The four dependencies and their lockfile resolutions move together to
755ebda9(0.13.0). - Rendered Markdown: The zoomed SVG now uses its own clip paths. The same upgrade also brings in native dialogs and a new date runtime. The root suite had one failure (the date test); all seven Nuxt package tests passed.
gpt-6.2-sol(high) | 𝕏
| "comark-chips": "https://pkg.pr.new/onmax/comark-ui/comark-chips@755ebda929bfb0d4ac41313aa06c2122c6c10b96", | ||
| "comark-comments": "https://pkg.pr.new/onmax/comark-ui/comark-comments@755ebda929bfb0d4ac41313aa06c2122c6c10b96", | ||
| "comark-linter": "https://pkg.pr.new/onmax/comark-ui/comark-linter@755ebda929bfb0d4ac41313aa06c2122c6c10b96", | ||
| "comark-ui": "https://pkg.pr.new/onmax/comark-ui/comark-ui@755ebda929bfb0d4ac41313aa06c2122c6c10b96", |
There was a problem hiding this comment.
P2 — Class: zoomed SVG IDs collide with existing anchors. With this pin, a heading like # cch-9qqigf-1-0-cz1 before the annotated Pigeons chart can claim the ID that the first zoom assigns to a clip path. I verified in Chromium that the reference resolves to the heading and the bar loses its rounded clipping; the published upstream follow-up 6992260b avoids those collisions.
Technical details
# Include the upstream SVG ID follow-up
## Affected sites
- `package.json:72–75` and `pnpm-lock.yaml` — the coordinated pins resolve to `755ebda9`, before zoom checks whether a generated clone ID is already taken.
## Required outcome
- Repin the four Comark packages together to include `6992260b` and regenerate the lockfile. The preview artifacts are already available.There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes I reviewed 9ff46c9 against the previous review. The focused tests passed, and Chromium confirmed that the direct Markdown response’s CSP permits both date scripts: the date changed to “yesterday” with a fixed reader clock, and Escape dismissed the tooltip.
- CSP allowlist: Extracted each inline script separately from the trusted zoom and properties fixtures, so each gets its own hash.
- Regression test: Updated the frontmatter date fixture to check Comark’s new markup and verify that every emitted script is allowlisted.
gpt-6.2-sol(high) | 𝕏

Zooming a stacked bar chart in a drop shows its legend, labels and notes, but no bars. The zoom's copy pointed its
clip-pathat the original chart's clip path, which is hidden while zoomed. onmax/comark-ui#465 fixes it in comark-zoom.This moves the four comark-ui pins from
a484fedd(#451's branch) to755ebda9, #465's head on top of comark-uimain. That also brings in #457 (the zoom opens as a native<dialog>), #462 and #464. pkg.pr.new builds only PR commits, so the pin is #465's head and not its merge commit.Before/after: https://drop.vitehub.dev/d/v585jhj2d5hq/chart-zoom-bars
The new pin also brings comark-ui#453: a frontmatter date in the properties box now renders in comark-time's markup, and its inline script is
relativize, which rewrites the date against the reader's clock, so a cached render doesn't freeze its words. The box now writes two scripts, soRENDERER_SCRIPTStakes every<script>from each sample render instead of one greedy match, and the CSP test checks the new markup.I only updated the lockfile here (
pnpm install --lockfile-only) and didn't build Drop locally; CI runs the full build.