Graph Panel widget: add a context menu#395
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a “save figure / export” feature to GraphPanel plots (Fixes #386) by introducing a right-click context menu for image export, clipboard copy, and CSV data export, plus UI support for showing export progress.
Changes:
- Add Plotly graph context menu actions (zoom/reset, copy to clipboard, export image formats, export data to CSV).
- Add a blocking progress message UI and provide it to child components for long-running operations (CSV export).
- Extend plot trace metadata (xValue/yValue) to support correct CSV headers and update CSP to allow blob-backed images.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/renderer/src/components/widgets/GraphPanelWidget.vue | Adds context menu + image/clipboard/CSV export logic for Plotly graphs. |
| src/renderer/src/components/views/SimulationExperimentView.vue | Populates new trace metadata fields needed for CSV export; tweaks COMBINE archive error message. |
| src/renderer/src/components/OpenCOR.vue | Introduces provided progress-message API and renders a blocking progress overlay. |
| src/renderer/src/components/BlockingMessageComponent.vue | Adds optional determinate progress bar support. |
| src/renderer/src/common/constants.ts | Adds NO_DELAY constant used to yield during CSV export. |
| src/renderer/src/common/common.ts | Adds sleep(ms) helper used by CSV export and progress UI pacing. |
| src/renderer/index.html | Updates CSP to allow blob: images (needed for exported image flows). |
| src/renderer/package.json | Version bump + dependency patch updates. |
| src/renderer/bun.lock | Lockfile updates for renderer deps. |
| package.json | Version bump + dependency patch updates. |
| bun.lock | Lockfile updates for root deps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Apparently, this is nothing to be concerned with, but at the same time I am not keen on warnings, so...
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #386.