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

[sitemap] Add new "staticIcon" parameter #3735

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

lolodomo
Copy link
Contributor

@lolodomo lolodomo commented Jul 30, 2023

When set, the UI should not provide the item state when requestiong the OH icon and should not request again the icon when the item state is updated.

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier lg.hc@free.fr

@lolodomo lolodomo requested a review from a team as a code owner July 30, 2023 08:18
@lolodomo lolodomo marked this pull request as draft July 30, 2023 08:19
@mherwege
Copy link
Contributor

mherwege commented Jul 30, 2023

@lolodomo lolodomo marked this pull request as ready for review July 31, 2023 09:43
@lolodomo
Copy link
Contributor Author

lolodomo added a commit to lolodomo/openhab-webui that referenced this pull request Jul 31, 2023
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.

Depends on openhab/openhab-core#3735

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo
Copy link
Contributor Author

lolodomo commented Aug 7, 2023

@openhab/core-maintainers : a review would be appreciated, it is only 35 new lines.

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

When set, the UI should not provide the item state when requestiong the
OH icon and should not request again the icon when the item state is
updated.

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo
Copy link
Contributor Author

lolodomo commented Aug 9, 2023

See openhab/openhab-android#3404 (comment)

Ok, changed. staticIcon must now be assigned with an icon reference. And there will be a syntax error if you have icon and staticIcon both set for a sitemap element. They are exclusive for the same sitemap element.

lolodomo added a commit to lolodomo/openhab-webui that referenced this pull request Aug 9, 2023
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.

Depends on openhab/openhab-core#3735

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Sounds like a great solution - thank you!

@kaikreuzer kaikreuzer merged commit c12067a into openhab:main Aug 13, 2023
2 checks passed
@kaikreuzer kaikreuzer added this to the 4.1 milestone Aug 13, 2023
@kaikreuzer kaikreuzer added the enhancement An enhancement or new feature of the Core label Aug 13, 2023
@lolodomo lolodomo deleted the sitemap_staticIcon branch August 13, 2023 17:56
kaikreuzer pushed a commit to openhab/openhab-webui that referenced this pull request Sep 9, 2023
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.

Depends on openhab/openhab-core#3735

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
stefan-hoehn pushed a commit to stefan-hoehn/openhab-webui that referenced this pull request Sep 23, 2023
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.

Depends on openhab/openhab-core#3735

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
JustinGeorgi pushed a commit to JustinGeorgi/openhab-webui that referenced this pull request Sep 24, 2023
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.

Depends on openhab/openhab-core#3735

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: jgeorgi <justin.georgi@gmail.com>
JustinGeorgi pushed a commit to JustinGeorgi/openhab-webui that referenced this pull request Sep 24, 2023
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.

Depends on openhab/openhab-core#3735

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: jgeorgi <justin.georgi@gmail.com>
digitaldan pushed a commit to digitaldan/openhab-webui that referenced this pull request Sep 24, 2023
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.

Depends on openhab/openhab-core#3735

Related to openhab/openhab-android#3404

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
ghys pushed a commit to openhab/openhab-webui that referenced this pull request Sep 30, 2023
Related to openhab/openhab-core#3735

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
lolodomo added a commit to lolodomo/openhab-docs that referenced this pull request Nov 12, 2023
Related to openhab/openhab-core#3735

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-docs that referenced this pull request Nov 12, 2023
Related to openhab/openhab-core#3735

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-docs that referenced this pull request Nov 12, 2023
Related to openhab/openhab-core#3735

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-docs that referenced this pull request Nov 12, 2023
Related to openhab/openhab-core#3735

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
stefan-hoehn pushed a commit to openhab/openhab-docs that referenced this pull request Nov 19, 2023
* [sitemap] New parameter staticIcon

Related to openhab/openhab-core#3735

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comment: choosing the icon

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

---------

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants