Repository navigation
Conversation
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.
|
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.
|
Danyill, |
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. |
General upgrade to latest UI, build tools, actions, CI. Improve UI for removal options.