Commit Graph

1101 Commits (f912de509c504ab2619bbcbca58fe959f0eb6ebf)

Author SHA1 Message Date
lolodomo 1c362ccf64
[BasicUI] Hide header row if label not explicitly set (#2112)
Applied to Chart/Image/Viodeo/Mapview/Webview elements.

Chart and Image elements are also now clickable.
Clicking allows toggling between header row shown and header row hidden.

Fix #2065

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-10-08 09:45:11 +02:00
Wouter Born fb8e84a635
Update bnd to 7.0.0 (#2111)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-7.0.0

Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-06 18:57:54 +02:00
lolodomo c76a8e37c8
[BasicUI] Prefer sitemap label to name in sitemap selection (#2110)
Sitemaps are now also sorted by label/name.
Dark theme is now properly handled.

In case several sitemaps have the same label, the sitemap name is
concatenated in parenthesis.

Fix #2101

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-10-06 10:07:00 +02:00
lolodomo 23550c65a9
[BasicUI] Prefer icon over text in buttons (switch element) (#2085)
Related to openhab/openhab-core#3441

Depends on openhab/openhab-core#3809

Icons will not be used if icons are not enabled (app setting).

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-10-03 19:28:54 +02:00
Mark Herwege 87e68aae61
[mainui] support staticIcon parameter in sitemap configuration (#1999)
Related to https://github.com/openhab/openhab-core/pull/3735

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-09-30 22:16:40 +02:00
Florian Hotze f32ef1f401
Fix `oh-` components cannot be configured in action modals (#2094)
Fixes #927.

When attempting to open an `oh-` Vue component, e.g.
`oh-colorpicker-card`, as action modal, it was not possible to configure
it, even though `actionModalConfig` was set.
This was because `oh-` componens take their configuration from the
computed `config` of the widget-mixin instead of the Vue component
`props`.
This PR fixes that by using the `actionModalConfig` for the computed
`config` of `oh-` components in action modals.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-30 21:59:56 +02:00
Florian Hotze 7893bd9b6c
Add error page for initial REST request failure & Abort further load (#1987)
Migitates and therefore closes #1205.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-30 21:56:02 +02:00
Wouter Born ec13c3d00c
Upgrade to Karaf 4.4.4 (#2098)
* Add specs features because Pax Web now depends on "asm".

Depends on https://github.com/openhab/openhab-core/pull/3814.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-09-30 10:47:42 +02:00
David Kesl c402d32563
Semantic model: Remove duplicate non-semantic tags in Item component (#2095)
Changes introduced into #2087 in combination with #2093 create duplicity
in showing non-semantic tags in the model page
(component/model/item-details.vue).
Non-semantic tags are displayed both in the Item and when edit mode is
enabled, in the accordion tag input in item-form.

Signed-off-by: David Kesl <david_git@keslovi.cz>
2023-09-27 10:08:44 +02:00
Viorel Cojocaru eee0277d89
Update RelativeCI agent action (#2063)
The RelativeCI action was using the CLI with an inline API key.

This PR replaces the RelativeCI CLI with the action agent running on workflow_run
event and in the context of the default branch (secrets are not leaked to forks). 

Signed-off-by: Viorel Cojocaru <vio@beanon.com>
2023-09-26 19:44:38 +02:00
David Kesl 044962251f
Semantic model: Add options to display and search Item names and tags (#2093)
Closes #2092.

- Adds possibility to display Item name and non-semantic tags in Semantic model tree view.
- Adds search for Items also based on Item name and tags depending on selected view options.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: David Kesl <david_git@keslovi.cz>
2023-09-26 16:57:51 +02:00
David Kesl 05c3417194
Items tag: added tags to list, unification of items tag edit (#2087)
Closes #2086

- Adds Non-semantic tags to Items list (e.g. /settings/items/)
consistently with similar list of Rules / Scripts / Pages.
- Extends `getItemTypeAndMetaLabel` with relatesTo part of Semantic
classification and moves it to a mixin.
- Fixes incorrect calculation of vue virtual box height on Items list.
- Replaces custom tag input with accordion tag input (inspired by
https://github.com/openhab/openhab-webui/pull/2078) and show number of
tags (inspired by https://github.com/openhab/openhab-webui/pull/2083).
- Moves the custom tag input to `item-form.vue`, so it is available also
in Model view, when creating Item from Thing etc.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: David Kesl <david_git@keslovi.cz>
2023-09-26 14:02:02 +02:00
JustinGeorgi 0cc4f27f3d
Fix decimal formatting for oh-stepper (#2090)
Fixes #2089.
Possibly regression from #1875.

Stepper formatValue was calculating displayed number of decimals from the value of the step property, not it's length.

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2023-09-25 22:38:39 +02:00
Mark Herwege 35c3ae05b9
Sitemap editor: Trim spaces from color value (#2091)
When generating the sitemap DSL from a UI configured sitemap with color
conditions, if the color in the condition has a leading space, it will
be included in the color string.
While this does not have an impact on the sitemap functionality (it
works), it is an issue if one would copy this sitemap to a sitemap file.
This PR strips the blanks from the color.

See #2082 and the example provided there.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-09-25 22:24:54 +02:00
jimtng 881a8b787e
[basicui] Number of Columns label (#2062)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-09-23 17:16:22 +02:00
David Kesl 6fd82e3351
Page edit: Add editing of tags (#2078)
Closes #2077.

This PR adds ability to add / change / remove Tags to Pages via MainUI.
It is using existing tag-input.vue component similar as UI for Items and
Rules.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: David Kesl <davidkesl76@gmail.com>
2023-09-22 10:40:30 +02:00
jimtng 671e791f06
Fix missing jar add-ons on settings page (#2079)
Fixes #2076.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-09-22 01:32:07 +02:00
Andrew Rowe 4876efd906
Change setup wizard icon to choose add-ons to install (#2073)
Signed-off-by: Andrew Rowe <exectechnology@gmail.com>
2023-09-21 20:20:33 +02:00
Florian Hotze cf3b218571
Fix SSE failure toast container not removed (#2075)
Fixes #2069.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-18 20:53:13 +02:00
Florian Hotze d2685e9a12
Add routes for home page tabs (#2074)
Adds routes for `/overview`, `/locations`, `/equipment` and
`/properties` so a home page reload keeps the tab and routing to
individual tabs is possible.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-18 20:51:53 +02:00
Florian Hotze 5068964ad8
Fixes/Improvements for sidebar highlighting, settings page & add-on store (#2053)
Follow-up for #1997.

- Addresses
https://github.com/openhab/openhab-webui/pull/1997/files#r1313446378:
Use filled icon for the add-on store.
- Fixes #2049: Fix sidebar highlighting for add-on settings and add-on
store pages.
- Fixes #2028: Fix tab is resetted to bindings when reloading the add-on
store (by using seperate routes for all tabs, therefore addresses
https://github.com/openhab/openhab-webui/pull/1997#issuecomment-1703221977).
- Closes #2048: Expand system settings by default on large screens where
three columns are used.
- Localize the "Show All" buttons.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Co-authored-by: Yannick Schaus <github@schaus.net>
2023-09-18 20:41:31 +02:00
stefan-hoehn b1a5ac82c0
[blockly] Allow `item xxx` to be used for `get xxx of item` (#2037)
The block can now take both “get item item xxx” or (new) “item xxx” directly.
I have also added some hint in the help tooltip that clarifies
how to work with the block when using it through variables because
Blockly has to make an assumption due to the fact that it cannot detect
what is provided in the variable.

See https://community.openhab.org/t/less-then-greater-then-comparison-return-value-seems-to-be-inverted/148910/9.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-09-17 14:54:46 +02:00
Jeremy c058b12f0c
Update Alexa color temperature supported item types (#2064)
Related to https://github.com/openhab/openhab-alexa/pull/613

Signed-off-by: jsetton <jeremy.setton@gmail.com>
2023-09-17 14:50:17 +02:00
Davek145 e1d90f706a
Add CO2 measurement badge to location card (#2068)
Closes #2067.

This PR introduces CO2 measument badge to the location card in MainUI.
It is same logic as other measuments badges, i.e. average from items
with Measurement and CO2 Semantic tags.

---------

Signed-off-by: David Kesl <davidkesl76@gmail.com>
2023-09-16 18:49:17 +02:00
Florian Hotze 2f7b1d7823
Profile page: Only show latest 10 sessions (#2061)
The openHAB demo's profile page takes ages to render because of the huge
sessions list. This should fix that problem.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-16 16:52:03 +02:00
Florian Hotze f2c008befb
Ensure semantic model pages are built after tags are loaded (#2066)
Fixes #2006.

With the attempt in #2029 failing due to #2054, this finally fixes an
issue where the semantic model pages (Equipment, Properties) were
missing translations.
This was due to a race condition, where the semantic model pages were
built before the tags were loaded.

This PR fixes this by watching for semantic model updates (i.e.
subscripting to the underlying Vuex mutation) and loading/building the
model pages after such an update.

Futher improvements:
- Initial loading of semantic tags is put in parallel with other API
requests performed on app init.
- Vuex semantics: A mutation is used for setting the semantic tags from
the action.
- Debug logging is added to both the semantic tag and the semantic model
page loading.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-16 16:31:53 +02:00
lolodomo 07aacc9ee5
[BasicUI] Handle the new parameter "staticIcon" (#1998)
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>
2023-09-09 13:30:57 +02:00
lolodomo 08a2d80db0
[BasicUI] Add a new header line for image, chart and video elements. (#2010)
Header line for video element contains icon and label.

Header line for image element contains icon, label and a button to
switch between no upscale and upscale of the image. Header line for
chart element contains icon, label and 4 buttons:
 - one button to show or hide the legend
 - one button to change the time range
 - one button to switch between no upscale and upscale of the chart
 - one button to refresh the chart

Fix handling of iconcolor and labelcolor parameters for mapview and
webview elements.

For image and chart elements, the header line is always present so that
user has an access to its buttons.
For video, mapview and webview elements, if the label is empty, the
header line is hidden.

For chart and image elements, there is now no upscale applied by default
(tablet/phone devices) but a button allows upscaling.

Closes #1939
Fixes #1367
Also related to #1930

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-09-09 12:31:03 +02:00
Jeremy 1ee7a2f972
Add alexa air quality monitor + remote device types (#2051)
Related to https://github.com/openhab/openhab-alexa/pull/601

Signed-off-by: jsetton <jeremy.setton@gmail.com>
2023-09-05 21:01:54 +02:00
Florian Hotze 6ba92932ee
oh-colorpicker: Fix command not sent when state null & style not accepted & cosmetic error on missing defaultColor (#1989)
Fixes #1713.

- Fix command not sent when current Item state is null.
- Fix style can not be set.
- Fix a (cosmetic) error thrown when defaultColor has no value.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-05 21:00:45 +02:00
Mark Herwege 5900864e1e
[mainui] Sitemap editor fix frequency and refresh parameters (#2033)
These parameters should be number instead of text.

See: https://github.com/openhab/openhab-webui/pull/1487#issuecomment-1332135771

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-09-05 20:53:11 +02:00
stefan-hoehn db103db550
fix uom block output type (#2036)
fixes #2008

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-09-05 20:49:51 +02:00
Mark Herwege 06f220fe53
[MainUI] Sitemap parser parse and discard comments (#2045)
Fixes https://github.com/openhab/openhab-webui/issues/2043

The sitemap parser was not able to cope with comments in the sitemap
text when pasted in from a sitemap file.
Comments will now be discarded (the REST API does not have fields for
comments), but the sitemap will still be parsed and saved.

Similarly, blanks where accepted in a number of places when defined in
text files, but not in the parser. This is now also corrected.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-09-05 20:48:09 +02:00
stefan-hoehn 25a09860ee
add blockly help buttons for missing sections and release dependant helpURL (#2035)
fixes #2014 
adds the help button for uom

---------

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-09-05 20:25:18 +02:00
Dan Cunningham 303ab55657
Reverts v-if/v-show change from #2029. (#2054)
Regression from #2029.

A few of my UI pages stopped loading properly. Specifically there seemed to be a condition where when the page would draw its widgets before other parts
of the page were loaded (or something similar, some race conditional).
This would result in widgets loading with the wrong state, colors, icons, etc that are dependent on item state.

I tracked it down to this
one very small change, reverting back to a `v-show` from `v-if` for the
main view ready state fixes this.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2023-09-04 19:16:38 +02:00
lolodomo 9799a326f2
[BasicUI] Input element: Fix visibility and label/icon color (#2022)
Fix #2021 

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-09-02 19:11:28 +02:00
Wouter Born c1440b4cf1
Use EEAs with maven-compiler-plugin (#2042)
Using this configuration the maven-compiler-plugin will also use the
Eclipse External Annotations. This results in more similar build results
when not using Eclipse like CI, on the CLI and when using other IDEs.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-09-01 22:07:34 +02:00
Florian Hotze 4c7298cef3
Redesign settings page & Add doc links (#1997)
Closes #1935.

- Moves transformations to a new list for visual separaration, as it is
only second class configuration.
- Renames System Services to System Settings.
- Add Add-on Settings, which opens the same settings page as the add-on
store, i.e. provides log, service config and persistence config (if
persistence service). Add-ons that only provide log settings are
considered advanced and hidden by default.
- Consolidate the add-on store and the newly added add-on settings into
a single place (refactoring included).
- Add doc links to Things, Items, pages, rules, scenes & scripts list
pages.
- Make some system settings advanced.
- Use a third column for large screens.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-01 21:19:42 +02:00
Florian Hotze 5b515ce65c
Developer sidebar: Add search for transformations (#1985)
Transformations are searchable by uid and label, and as the uid contains
the type, also by type.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-01 20:58:20 +02:00
Florian Hotze 1dcbaeb48c
Fix missing labels for semantic cards (#2029)
Fixes #2006.
Probably fixes the issue described in
https://github.com/openhab/openhab-webui/pull/1986#issuecomment-1656746939.

Reported on the community:
https://community.openhab.org/t/openhab-4-0-release-discussion/147957/86.

Sometimes, the equipment and property cards did not use the
translations.
I found out, that in some cases the equipment and property pages (Main
UI in general) initialized before the translations loaded, this
hopefully solves it.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-01 20:48:59 +02:00
Wouter Born 30ab36c221
Upgrade Maven and plug-ins (#2044)
* Use Maven 3.9.4 with GitHub Actions CI
* Upgrade Maven plug-ins

Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-30 13:28:01 +02:00
stefan-hoehn 9e9caba57c
[blockly] Fix timer remove regression (#2032)
Fixes #2002.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-08-29 09:40:14 +02:00
Wouter Born 312aa0e79f
Fix add-ons missing from About Details (#2034)
It is still using /bindings to get the data resulting in a 404 Not
Found. The other pages were updated in #1468.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-29 08:30:23 +02:00
Dooleweerdt 95995506b1
[blockly] Fix ZDT comparison between block on GraalJS (#2040)
Fixes #2038

Signed-off-by: Brian Dooleweerdt Rasmussen <brian.rasmussen80@gmail.com>
2023-08-26 23:11:19 +02:00
Florian Hotze a08c347b95
Delay toast on SSE communication failure by one second (#1993)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-08-19 19:57:00 +02:00
Florian Hotze 55b825c3de
Action module wizard: Update texts to mention scenes and scripts (#1994)
Closes #1921.
Depends on https://github.com/openhab/openhab-core/pull/3733.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-08-19 19:54:28 +02:00
Florian Hotze 66485118cd
oh-trend: Fix type of trendlineSampling parameter (#1995)
Fixes #1632.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-08-19 19:48:29 +02:00
Florian Hotze db174ed899
Fix missing root semantic classes (e.g. Equipment) (#2024)
Fixes #2003.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-08-19 19:47:08 +02:00
Florian Hotze db085040b6
Item details: Fix metadata error thrown when opened (#2030)
When the Item was a group Item and groupType was not defined, an error
was thrown. This fixes it.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-08-19 19:33:54 +02:00
Jeremy ee7c5ad15a
Alexa metadata: Add UoM support to use new Item unit symbol property (#2009)
Related to https://github.com/openhab/openhab-alexa/pull/598.

Signed-off-by: jsetton <jeremy.setton@gmail.com>
2023-08-19 14:05:52 +02:00