Skip to content

Upgrade - #3

Merged
danyill merged 34 commits into
mainfrom
upgrade
Oct 21, 2026
Merged

danyill merged 34 commits into
mainfrom
upgrade

Conversation

@danyill

@danyill danyill commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

General upgrade to latest UI, build tools, actions, CI. Improve UI for removal options.

stee-re and others added 23 commits April 24, 2026 11:40
Co-authored-by: Copilot <copilot@github.com>
Apply edits from detail.edit and bind each removal test to its own
SCL fixture. Add coverage for ConnectedAP removal and LNode unbinding,
and declare the XML editor test dependency.
Replace editCount with the reactive docVersion API property.
Verify IED list refreshes after edits and undo using opaque versions.

Correct the README's plugin name, menu classification, and API
requirements while preserving upstream structure and references.
Preserve unique LNodes with iedName="None" by default, with an
unchecked option to delete them alongside the selected IEDs.

Disable and reset the option when no selected IED has public LNode
bindings, and preserve IED selection when changing the option.

Document the behavior and cover preservation, deletion, undo,
existing unbound LNodes, and successive removals across refreshes.
Offer optional removal of associated LNodes, emptied SubNetworks and
Communication, preserving LNodes and parent-section metadata by default.

Add progressive removal options, read-only SCL previews and a
confirmation
dialog summarizing deletions, retained empty sections and schema
warnings.
Keep selections when returning from review and close dialogs after
removal.

Group each removal operation into a single undo entry. Expand regression
coverage, demo scenarios and usage documentation.
Rename the package, entry point and element to oscd-menu-remove-ieds.
Regenerate the lockfile against the npm registry so npm ci and tsc work.
Move demo-only dependencies to devDependencies and add the files allowlist.
Move the IED label, removal edits and confirmation summary into pure
foundation modules with unit tests. Fix the dangling separator for IEDs
without manufacturer or type and the trailing separator for a missing
schema edition. Raise the WebKit test timeout until the test helpers land.
Add the host-aware mount helper, the DOM driver, shadow-DOM utilities and
the SCL fixtures outside src. The old spec keeps passing while the rewrite
follows the UI changes.
Localize every user-visible string with @lit/localize and map the
--oscd-theme-* palette to the internal --oscd-* tokens. Add the host height
contract, an empty state, selection preservation across external edits, and
close the dialog on Escape. Rewrite the specs around the plugin and driver
helpers with coverage thresholds.
Capture the dialog, options, confirmation, SCL review, empty, search and
dark-theme states with local fonts. Baselines stay CI-owned and are not
created locally. Add the binary attribute for screenshots.
Replace the retired workflows with a test workflow, a gated release and
deploy workflow, and a CI-owned visual baseline workflow. Add the release
package name, fix the demo shell and menu entries, and exclude specs, tests,
demo and the deploy page from the npm package.
Add the user guide, link its images to the CI-owned screenshot baselines,
and correct the README package, URLs, Node version and host requirements.
CI installs Chromium only, so the default run must not launch Firefox and
WebKit. Document BROWSERS=chromium,firefox,webkit for a full local check.
Update the step status and worklog with the test, bundle, package, demo,
documentation and remaining-risk results.
Replace the 0.8fr grid row with a content-sized flex panel and a 40 percent
cap. The IED list takes the remaining height. Add layout tests for one and
several options.
Move the removal options to a wider right-hand column, keep the checkbox
at its natural width, and place each review action below its label.
Add Select all shown and Clear selection, which follow the current search.
Always show the right-hand options column and reserve the dialog size, so
adding or removing an IED no longer moves the list. Show a hint when there
are no options, and focus the search field when the dialog opens.
@danyill

danyill commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

Ideally we'd merge openscd/scl-lib#159 and update scl-lib before finishing this off.

Wait for the dialog open animation and a loaded ACE preview before the
screenshot, disable the text caret, and allow a 0.5 percent pixel
difference for text antialiasing. Regenerate the CI baselines once.
The CI baselines are regenerated with the animation waits. Local review
screenshots differ only because Ace uses the system monospace font.
Add a regression test for two IEDs without section changes: one past
entry, undo restores the original document, and redo restores the result.
The page repeated information that the other task pages already give.
Remove it from the navigation and the documentation plan.
The confirmation component owns an oscd-dialog, so its animation runs in
a second shadow root. Collect animations recursively and wait for them all
before the screenshot.
@stee-re

stee-re commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Danyill,
I took a look at your changes - they all seem to me to be very strong improvements. I had shown Christian my work on the oscd-remove-ied (which I am delighted your renamed to oscd-menu-remove-ied by the way) and he was putting a hard push on changing the UI to exactly how you made it!! I pushed back because I felt the top to bottom flow was important - and I was nervious having these critical 'options' would have been less important placed on the right. But now that I see it in action I am convinced my concerns were ill founded.
One thing I am sad to see, is you dropped the oscd-editor-source. I really found this to be a great improvement to the overall DX. I'm curious as to why you removed it - it can only help anyone developing this plugin.

@danyill
danyill merged commit 5ce4bb0 into main Oct 21, 2026
4 checks passed
@danyill

danyill commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

One thing I am sad to see, is you dropped the oscd-editor-source. I really found this to be a great improvement to the overall DX. I'm curious as to why you removed it - it can only help anyone developing this plugin.

You are right, general slackness I expect. Restored. We should probably always have validating too.

Thanks for taking a look, I think I'm going to merge and then deal with release issues.

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