Repository navigation
fix(plugins): stop sizing plugin layouts with the viewport - #192
Merged
Merged
Conversation
Drop 100vw and viewport heights from plugin layouts so a left navigation can shrink the plugin area. Binding columns and Cleanup panels fill that area and scroll inside. Dialogs keep viewport units.
Ellipsize panel titles and keep the info icon at the right. Put the filter buttons on their own row, and give the control-block column a little more width than the dataset column.
Wrap the Publisher and Subscriber radios in the GOOSE and SMV message binding plugins so they sit side by side. The two lists still fill the remaining height and scroll on their own.
Generate invalid number-field values with the same rules as an HTML number input, so scientific notation such as "1e0" is no longer treated as invalid. Run the plugin browser tests in en-US and UTC so validation timestamps match the snapshots.
Keep snapshot files in LF so the snapshot loader can read them. And wait for the FCDA filter menu to close.
|
The Vite build dropped the old PUBLIC_URL prefix, so a preview page asked for its script and data at the domain root. - Set Vite's base from PUBLIC_URL so the shell loads under /open-scd/pr-preview/pr-N/. - Set the document base to %BASE_URL% so the NSD files, help pages, and the schema worker stay on that path. - Copy each external-plugin directory into dist, and load Ace from the relative path ace so it follows the document base. A build without PUBLIC_URL keeps base /, so the normal build is unchanged.
The publisher renders into a shadow root and calls importNode there. The polyfill adds that method, but the preview requested it from the domain root and the build did not include the file. - Move the polyfill to public/polyfill so Vite copies it into dist. - Load it and the service worker from the Vite base. - Copy sw.js into dist. A build without PUBLIC_URL still serves both from /.
Move manifest.json into public so Vite copies it into dist and Help can load the application version. Similar to com-pas#622
Author
|
Some Screenshots of Visible changes: |
noraeb
approved these changes
Dec 3, 2026
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.
Story
In many plugins, the viewport height was used to calculate the available area. That is wrong in almost all cases. Instead, you should simply use 100 percent.
Only dialogs may use the viewport height, since they use the full height and width.
It's similar with the viewport width. Here, 100 viewport width has often been used directly, because in the current OpenSCD a plugin also has 100 percent viewport width. But in the future there will be a navigation menu on the left, so the full width will no longer be available. Here, the correct value should be "100%" instead of "100vw".
Main Change:
Drop 100vw and viewport heights from plugin layouts so a left
navigation can shrink the plugin area. Binding columns and Cleanup
panels fill that area and scroll inside. Dialogs keep viewport units.
Most visible changes:
Cleanup Plugin
Subscriber Messages Binding Plugins for GOOSE and SMV
Side-Quest 1: Test-Improvements:
Side-Quest 2: serve the PR preview from its Pages path
The Vite build dropped the old PUBLIC_URL prefix, so a preview page
asked for its script and data at the domain root.
/open-scd/pr-preview/pr-N/.
and the schema worker stay on that path.
the relative path ace so it follows the document base.
A build without PUBLIC_URL keeps base /, so the normal build is unchanged.
The PR-URL https://com-pas.github.io/open-scd/pr-preview/pr-192/ should work now.