Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create oscd-layout addon #1510

Merged
merged 20 commits into from
May 2, 2024
Merged

Conversation

juancho0202
Copy link
Contributor

@juancho0202 juancho0202 commented Apr 24, 2024

Some decisions taken here that I think award a discussion:

  • former Plugging mixin rendering functionality was separated into the oscd-layout addon
    • snapshot test which kept track of the hosting UI and plugins is now under a separate snapshot test for the layout addon
  • a "position: absolute; top: 0" style was added to the mwc-drawer to stick it to the top
  • the private get plugins array was awarded a @State annotation and a setter in order to use Lit's reactivity (plus I added a requestUpdate on the open-scd tag whenever someone adds a new external plugin)

- extracts all rendering UI logic including former Hosting mixin and Plugging mixin to the layout addon
- creates new events to connect layout addon to plugging loading functionality

Signed-off-by: Juan Munoz <juancho0202@gmail.com>
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
@juancho0202 juancho0202 linked an issue Apr 24, 2024 that may be closed by this pull request
juancho0202 and others added 5 commits April 24, 2024 09:40
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
…omments

Signed-off-by: Juan Munoz <juancho0202@gmail.com>
@juancho0202 juancho0202 marked this pull request as ready for review April 24, 2024 15:30
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Outdated Show resolved Hide resolved
packages/open-scd/src/addons/Layout.ts Show resolved Hide resolved
juancho0202 and others added 9 commits May 1, 2024 15:53
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
Co-authored-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
@juancho0202 juancho0202 requested a review from pascalwilbrink May 1, 2024 13:55
Signed-off-by: Juan Munoz <juancho0202@gmail.com>
Copy link
Member

@pascalwilbrink pascalwilbrink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pascalwilbrink pascalwilbrink merged commit 55d06d3 into main May 2, 2024
5 checks passed
@pascalwilbrink pascalwilbrink deleted the 1466-create-oscd-layout-addon branch May 2, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Create <oscd-layout> addon
2 participants