Skip to content

Cleaning up - #9

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

agarny merged 6 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:51

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

The change still has two moderate issues in PlotWidget.vue: a menu action can target the wrong trace after list changes, and its displayed label can become inconsistent with the command executed.

2 open issues
What changed in this PR

This PR updates legend context-menu handling so trace visibility actions are recalculated when selected after data changes, and increments the package patch version.

Changes:

  • Recomputes trace visibility actions at context-menu selection time.
  • Skips actions when the original trace index is no longer present.
  • Bumps the package version from 0.20261125.4 to 0.20261125.5.
File Description
src/​widgets/​PlotWidget.vue Updates legend context-menu visibility action handling for changing trace data.
package.json Increments the package patch version.

Review effort: Lite

Comment thread src/widgets/PlotWidget.vue Resolved
Comment thread src/widgets/PlotWidget.vue Resolved

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

Active critical and moderate issues in ContextMenuWidget.vue can misdirect keyboard focus and open submenus after items change, potentially executing the wrong command.

2 open issues
2 resolved since last review

Review effort: Lite

Comment thread src/widgets/ContextMenuWidget.vue Resolved
Comment thread src/widgets/ContextMenuWidget.vue Resolved

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 because label-based matching can focus a different duplicate-labeled action and execute the wrong command when items change.

1 open issue
2 resolved since last review

Review effort: Lite

Comment thread src/widgets/ContextMenuWidget.vue Resolved

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.

🔵 Needs a closer look

Human assessment is needed because the legend menu’s trace identity can change after updates, causing actions to target the wrong trace.

No open issues 🎉

1 resolved since last review

Review effort: Lite

@agarny
agarny merged commit 8657ca6 into opencor:main Nov 25, 2026
5 checks passed
@agarny
agarny deleted the cleaning-up branch November 25, 2026 10:26
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