Repository navigation
feat: one Copy control for tables and charts, with a menu of formats - #231
Conversation
… as a table or Markdown
Codex Review SummaryThis 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. |
Latest result Pull request merged. Final answersSession Pull request merged. Session Updated the branch with main because main changed packages/charts/README.md, packages/table/README.md after its checks ran; waiting for checks on the new head. Session Updated the branch with main because main changed packages/charts/README.md, packages/table/README.md after its checks ran; waiting for checks on the new head. Session Updated the branch with main because main changed packages/charts/README.md, packages/table/README.md after its checks ran; waiting for checks on the new head. Session Updated the branch with main because main changed packages/charts/README.md, packages/table/README.md after its checks ran; waiting for checks on the new head. Session Updated the branch with main because main changed packages/charts/README.md, packages/table/README.md after its checks ran; waiting for checks on the new head. Session Updated the branch with main because main changed packages/charts/README.md, packages/table/README.md after its checks ran; waiting for checks on the new head. Session Pushed e405d87 resolving the merge conflict while preserving version 0.7.0 and the chart-copy description. Frozen dependency refresh succeeded. Package-scoped vp test run passed 49 chart and 14 table tests; focused vp lint, vp fmt --check, and git diff --check passed. Pullfrog’s earlier menu finding remains fixed, with no outstanding actionable feedback. Awaiting hosted CI. Session Pushed e405d87 resolving the merge conflict while preserving version 0.7.0 and the chart-copy description. Frozen dependency refresh succeeded. Package-scoped vp test run passed 49 chart and 14 table tests; focused vp lint, vp fmt --check, and git diff --check passed. Pullfrog’s earlier menu finding remains fixed, with no outstanding actionable feedback. Awaiting hosted CI. Session Pushed e405d87 resolving the merge conflict while preserving version 0.7.0 and the chart-copy description. Frozen dependency refresh succeeded. Package-scoped vp test run passed 49 chart and 14 table tests; focused vp lint, vp fmt --check, and git diff --check passed. Pullfrog’s earlier menu finding remains fixed, with no outstanding actionable feedback. Awaiting hosted CI. Session Pushed e405d87 resolving the merge conflict while preserving version 0.7.0 and the chart-copy description. Frozen dependency refresh succeeded. Package-scoped vp test run passed 49 chart and 14 table tests; focused vp lint, vp fmt --check, and git diff --check passed. Pullfrog’s earlier menu finding remains fixed, with no outstanding actionable feedback. Awaiting hosted CI. |
There was a problem hiding this comment.
ℹ️ No critical issues — one copy-menu inconsistency inline.
Reviewed changes the two commits that replace table copy buttons with a split control and add chart image/data copying across HTML, React, Vue, and Svelte.
- Table copying writes HTML with TSV fallback for spreadsheet-friendly paste, while retaining Markdown and CSV formats in an accessible keyboard menu.
- Chart copying serializes theme-painted SVG output to PNG, falls back to table data for annotated charts, and exposes table and Markdown data formats.
- Runtime integration adds shared delegated listeners, lifecycle cleanup, one-time HTML scripts/styles, hover and focus styling, and status announcements.
- Coverage and documentation update package references and add unit and Chromium clipboard tests for formats, theme color, dimensions, and keyboard navigation.
gpt-5.6-sol | 𝕏
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-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-mark
comark-mathml
comark-media
comark-metrics
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review, the latest commit aligned each split menu with its “other formats” contract.
- Filtered primary formats removed Table from table and marked-chart menus, and Image from ordinary chart menus, while preserving the intended alternatives.
- Updated interaction coverage asserted the new menu counts, first focused item, keyboard wrapping, and exact renderer output for ordinary and marked charts.
- Verified focused paths passed lint plus 41 chart tests and 10 table tests after building the required workspace packages.
gpt-5.6-sol | 𝕏

Tables and charts get one copy control: a Copy button for the format most people want, and an arrow that opens a menu of the others.
comark-table. Copy now writes the table as HTML with tab-separated text beside it, so Google Sheets, Excel, Notion, and Docs paste real cells (CSV pasted into Sheets landed in one column). The menu copies Markdown, a table that renders on GitHub, and CSV, which stays since these tables come from CSV files.
comark-charts. A Copy button over the card's top corner, shown on hover or focus, copies the chart as a PNG at twice its size. The page's rules swap Flint's inks for the theme's colors, and an SVG drawn as an image sees none of them, so the script sets each element's computed paint on the copy before drawing it. The menu copies the Data table as a table or as Markdown. A chart with notes copies its data, since the PNG would leave the notes out. Charts had no script before; the HTML renderer now inlines one, and the Vue, React, and Svelte components start and stop it, replacing the undocumented
addStyles.The menu is a
menuofmenuitems: ArrowDown on the arrow opens it on its first item, arrows, Home, and End move, Escape returns to the arrow, and Tab or a click outside closes it. A status line announces each copy.Checks.
pnpm readypasses. New e2e tests read the clipboard: the table's HTML and TSV, Markdown, and CSV with the keyboard path, and the chart's PNG, decoded to confirm the page's red theme color is in it, plus the data as TSV and Markdown.Known limits: the PNG uses the system font, since an SVG drawn as an image can't load the page's web fonts. Image copy is tested in Chromium only; elsewhere it either works or says "Couldn't copy here".