Skip to content

Cleaning up - #8

Merged
agarny merged 2 commits into
opencor:mainfrom
agarny:cleaning-up
Nov 25, 2026
Merged

agarny merged 2 commits into
opencor:mainfrom
agarny:cleaning-up

Conversation

@agarny

@agarny agarny commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings November 25, 2026 09:44
@agarny
agarny merged commit adcf7a2 into opencor:main Nov 25, 2026
5 checks passed
@agarny
agarny deleted the cleaning-up branch November 25, 2026 09:45

Copilot AI 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.

🟡 Changes recommended

An active moderate issue remains in src/widgets/PlotWidget.vue: the context-menu action captures stale visibility data and may overwrite updated trace state when selected.

1 open issue
What changed in this PR

This PR refactors trace-visibility behavior into reusable, unit-tested utilities and updates single-trace context-menu behavior and documentation.

Changes:

  • Extracts trace toggling, isolation, and context-menu action logic into traceVisibilityUtils.ts.
  • Adds focused tests for visibility transitions and single- versus multi-trace behavior.
  • Updates PlotWidget.vue, README documentation, and the package version.
File Description
src/​widgets/​PlotWidget.vue Uses the extracted trace-visibility utilities and adds single-trace context-menu behavior.
src/​common/​traceVisibilityUtils.ts Defines reusable trace toggling, isolation, and legend action logic.
src/​common/​traceVisibilityUtils.test.ts Tests visibility transformations and context-menu behavior across representative trace states.
README.md Documents showing or hiding the only trace through the context menu.
package.json Bumps the package version.

Review effort: Lite

Comment thread src/widgets/PlotWidget.vue Resolved
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.

2 participants