Skip to content

Shall blue dot decorator be extended with other styles? #4211

Description

@andrewfg

In #4069 the MainUI Thing overview list applies a "blue dot" decorator to the online status badge of any Thing that has a non null / non blank online status description text.

There has been some discussion here openhab/openhab-addons#20758 (comment) and here openhab/openhab-addons#20758 (comment) about this.

The original PR applies the "blue dot" in a binary manner .. if there is a non null / non blank online status description text then it is applied, and otherwise not. By contrast @lsiepel feels that the "blue dot" may be confusing, and he is suggesting that instead of having a single blue decorator mark, there should perhaps be several possible decorator styles .. perhaps as follows:

  • DecoratorStyle.NONE - never apply a decorator even if there is an online status description text
  • DecoratorStyle.INFORMATION - use existing (and therefore default) blue dot decorator
  • DecoratorStyle.WARNING - use (say) an amber decorator
  • DecoratorStyle.CRITICAL - use (say) a red decorator

So I am opening this issue to see if we can get some consensus among developers and maintainers on whether the decorator should be a) simply a blue dot dependent on the presence/absence of an online status description text, of b) something more sophisticated. (Note the latter would require some changes in OH core and OH webui, albeit these are relatively easy to do).

This discussion is related to openhab/openhab-core#5587 which discusses the circumstances under which an online status description text may/shall be applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions