Skip to content

fix(deps): pin comark-ui at onmax/comark-ui#465, so a zoomed stacked chart keeps its bars - #237

Merged
onmax merged 2 commits into
mainfrom
fix/comark-ui-chart-zoom
Nov 18, 2026
Merged

onmax merged 2 commits into
mainfrom
fix/comark-ui-chart-zoom

Conversation

@onmax

@onmax onmax commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Zooming a stacked bar chart in a drop shows its legend, labels and notes, but no bars. The zoom's copy pointed its clip-path at 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) to 755ebda9, #465's head on top of comark-ui main. 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, so RENDERER_SCRIPTS takes 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.

@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-18T14:12:56.719409Z
We couldn’t complete this review. Comment @codex review to try again.
5ec9feb 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

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.

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

Comment thread package.json Resolved
Comment thread package.json
"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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@onmax
onmax merged commit b4bb97f into main Nov 18, 2026
4 checks passed

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

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

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