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

[mainui] support staticIcon parameter in sitemap configuration #1999

Merged
merged 5 commits into from
Sep 30, 2023

Conversation

mherwege
Copy link
Contributor

Related to openhab/openhab-core#3735

I will test when openhab/openhab-core#3735 has been merged.

@mherwege mherwege requested a review from a team as a code owner July 31, 2023 18:23
@mherwege mherwege marked this pull request as draft July 31, 2023 18:23
@relativeci
Copy link

relativeci bot commented Jul 31, 2023

Job #1144: Bundle Size — 15.76MiB (~-0.01%).

8441707(current) vs 6e4b025 main#1143(baseline)

⚠️ Bundle contains 16 duplicate packages

Metrics (no changes)
                 Current
Job #1144
     Baseline
Job #1143
Initial JS 1.67MiB 1.67MiB
Initial CSS 608.89KiB 608.89KiB
Cache Invalidation 93.94% 93.94%
Chunks 219 219
Assets 689 689
Modules 1700 1700
Duplicate Modules 90 90
Duplicate Code 1.95% 1.95%
Packages 138 138
Duplicate Packages 15 15
Total size by type (2 changes)
                 Current
Job #1144
     Baseline
Job #1143
CSS 859.49KiB 859.49KiB
Fonts 526.1KiB 526.1KiB
HTML 1.23KiB 1.23KiB
IMG 140.74KiB 140.74KiB
JS 9.26MiB (~-0.01%) 9.26MiB
Media 295.6KiB 295.6KiB
Other 4.73MiB (~-0.01%) 4.73MiB

View job #1144 reportView main branch activity

@lolodomo
Copy link
Contributor

@mherwege : please check that it is compliant with the change that was finally merged.

@mherwege mherwege marked this pull request as ready for review August 19, 2023 19:59
@mherwege
Copy link
Contributor Author

@lolodomo It should now be compliant with the latest syntax.

Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
Copy link
Member

@ghys ghys left a comment

Choose a reason for hiding this comment

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

Thanks @mherwege - the additional unit tests are appreciated.
One remark below, otherwise LGTM:

Comment on lines 14 to 15
} else if (key === 'staticIcon') {
} else if (key === 'icon') {
Copy link
Member

Choose a reason for hiding this comment

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

This will do nothing in case of key === 'staticIcon' (empty block); is it intended? What's the point of it if so?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for noticing, must have thought I was using a Java case statement.

Signed-off-by: Mark Herwege <[email protected]>
Copy link
Member

@ghys ghys left a comment

Choose a reason for hiding this comment

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

Thanks, all good now!

@ghys ghys merged commit 87e68aa into openhab:main Sep 30, 2023
4 checks passed
@ghys ghys added enhancement New feature or request main ui Main UI labels Sep 30, 2023
@ghys ghys added this to the 4.1 milestone Sep 30, 2023
@mherwege mherwege deleted the static_icon branch October 27, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants