Skip to content

IED Browser: right-click Copy exact RCB/property field values - #784

Merged
masarray merged 1 commit into
mainfrom
fix/ied-browser-property-context-copy
Nov 21, 2026
Merged

masarray merged 1 commit into
mainfrom
fix/ied-browser-property-context-copy

Conversation

@masarray

Copy link
Copy Markdown
Owner

User-requested IED Browser clipboard enhancement

Allow an engineer to right-click Report ID, RCB Name, Control Block reference and other visible IED Browser details to copy exact values and field names directly. Keep inspection passive and distinguish click target from focused/selected IED object.

Existing architecture and actual gap

The right-hand IED Browser detail panel is a virtualized ListView, not the DataGrid used for Command Grid, Event Log or IED Files. The prior global clipboard adapter already defined Copy value/name-and-value, but registered its menu only from the ListView Loaded class handler and could silently copy SelectedItem when right-click targeted a different row or blank space. Compact RCB object rows display a name while their Value represents status: the old Copy value therefore did not copy the visible RCB name.

Implementation

  • Reuse GridClipboardBehavior and its one weakly owned ListView state; attach explicitly after InitializeComponent before the deferred IED Browser tab loads, idempotent with the global Loaded handler.
  • Pin the actual right-clicked row when opening the menu; recheck reference identity against current ListView Items when executing any item. No SelectedItem fallback for pointer interaction or recycled/stale model rows.
  • Offer Copy value, Copy field / object name, Copy name and value, Copy visible properties. Preserve and compose any existing menu. Ctrl+C works with selected field; native Menu key and Shift+F10 keep the keyboard context.
  • Copy value for a compact RCB Object uses its displayed RCB name; Property rows (Report ID/Control Block reference/RCB Name) copy the untouched Value. The separate pair action retains field and value.
  • Preserve the opt-in Owner information disclosure and the current Browser Single selection (which gates Read, Write, Control). No IEC 61850 protocol action or new network read.
  • Protect with real WPF STA menu/idempotence checks, right-click identity resolver tests (stale/equal-looking row safety), RCB name vs status, field values, and XAML/constructor contracts.

Integration

This is a stacked PR on top of #783, because #783 has user-confirmed Event Log behavior but has not yet been merged into main. Base and CI should be reconciled after #783 integrates. No silent replacement of previous PR behavior.

Gates / remaining manual QA

Windows build, engineering and application regression, packaging smoke; manual IED Browser right click on actual RCB and data model fields, refresh, Ctrl+C, keyboard context, inspect status and verify no Read/Write/Control state changed. Do not merge without exact-head Windows verification and disposition of unrelated historical R7/R10 provenance checks.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-21T12:26:21.430903Z
We couldn’t complete this review. Comment @codex review to try again.
60effac PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown
Owner Author

Targeted IED Browser field-copy QA — stacked on accepted #783

Please exercise the right-hand IED Browser detail ListView, not just the left tree DataGrid or the Files Grid:

  1. Navigate to a live/SCL RCB; right-click the Report ID property value → Copy value. Paste in Notepad: must equal the displayed exact RptID, not a nearby selected property.
  2. Right-click Control Block reference → Copy value; paste the full visible string. Try Copy field / object name and Copy name and value separately.
  3. Right-click the compact RCB object row → Copy value must copy its RCB name, not its hidden StatusText; using Copy name and value still includes the row status.
  4. Select one field, right-click a different field: Copy must target the clicked field. Right-click empty area: field-specific Copy actions must be disabled (never borrow stale selection).
  5. Trigger Browser refresh / switch IED / reopen another RCB, then copy again. Must never copy a row from the previous model.
  6. Test Ctrl+C on selected property, Menu key / Shift+F10, Copy visible properties, and Owner information. Verify read-only navigation, Write/Control target selection, keyboard navigation, and virtualized scrolling are unchanged.

Only UI presentation data enters the clipboard. No MMS reads, writes, RCB reservations or Control commands are initiated by Copy.

Stack rationale: PR #783 is user-accepted but still open. This PR is based on that exact head so none of its working Event Log fixes are dropped. Retarget to main after #783 lands, then require exact integrated-head validation.

@masarray
masarray changed the base branch from fix/event-log-row-copy-interaction to main November 21, 2026 13:07
@masarray
masarray merged commit 97b2863 into main Nov 21, 2026
6 checks passed
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.

1 participant