Repository navigation
Cleaning up - #8
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.