Commit Graph

1119 Commits (1c03c60f84388b9d7da0231df2d4ebb1e17d3fcf)

Author SHA1 Message Date
GiviMAD 1c03c60f84
Upgrade from webpack v4 to v5 (#2267)
Upgrade webpack and related build dependencies from v4 to v5.
Also upgrade the NodeJS and npm versions used by the Main UI build as well as babel.

The changes follow the recommendations of the webpack migration guide at https://webpack.js.org/migrate/5/ or are required changes for updated webpack plugins.
New default values causing problems have been overwritten, e.g. devServer.compress: false because compression broke the SSE event streams.
The ModuleConcatenationPlugin is not created manually in production mode anymore, as this setting broke the production build, and it is not neccassary to create that, as this plugin is automatically enabled in production mode.
See https://webpack.js.org/plugins/module-concatenation-plugin/.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2024-01-31 00:32:56 +01:00
Jeremy 424e646297
Update alexa range value attribute parameters (#2296)
Related to https://github.com/openhab/openhab-alexa/pull/650.
Related to https://github.com/openhab/openhab-alexa/pull/651.

Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-01-30 09:39:33 +01:00
Florian Hotze 6ea38c34cc
Lazy load the developer dock (#2294)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-30 00:11:00 +01:00
Florian Hotze 660b8f1578
Fix `oh-stepper` sends command on Item state update due to rounding (#2096)
Fixes #1186: Widget sends command on external update due to rounding.

This is done by replacing the generic change listener with listeners for
plusclick, minusclick and input for input element events.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-29 20:37:19 +01:00
Florian Hotze 89766f32bb
Transformation edit: Fix copy UID doesn't work (#2295)
Fixes #2292.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-28 23:14:10 +01:00
Florian Hotze a13d34a956
Rule/Script edit: Fix not editable not properly handled & Always show tags (#2276)
Fixes an issue where the configuration of a script action of a
file-based rule (e.g. those created using JSRule or Rule Builder of
openhab-js) was shown as editable, even though the rule is not editable
because it is provisioned from file.

Always show the tag input, even if there are no rule tags. This is more
consistent and avoids confusion, as you can now clearly see that a rule
has no tags.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-28 13:42:38 +01:00
lolodomo 1966ba3a53
[BasicUI] Replace non printable characters (#2284)
Fix #2250

Non printable characters are replaced by the unicode replacement
character.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-27 20:58:23 +01:00
Florian Hotze 4864f43326
Home page: Hide tab bar if all model tabs are hidden (#2291)
If all model tabs are hidden, the tab bar has only one entry and
therefore there is no need to display it.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-27 17:35:39 +01:00
Florian Hotze 8b6b262304
Help sidebar: Move docs to docs repo & Integrate them into the UI (#2253)
Follow-up for #2088.
Depends on https://github.com/openhab/openhab-docs/pull/2199.

Also add the help sidebar button to the settings and list pages where it
is missing.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-27 12:01:12 +01:00
Florian Hotze f30941e49c
Help Feature FAQ: Remove persistence FAQs (#2290) 2024-01-27 11:49:53 +01:00
Florian Hotze f493e970fe
Settings page: Fix add-on settings header displayed when no add-ons installed (#2289)
Fixes #2266.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-27 01:20:50 +01:00
openhab-bot 63613c1881
New Crowdin updates (#2237) 2024-01-26 16:43:19 +01:00
lolodomo 32a7393c65
[BasicUI] Close EventSource when leaving (#2282)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-21 21:35:50 +01:00
lolodomo 3a31e85fba
[BasicUI] Fix SSE reconnection to the current page (#2280)
After an error in the SSE connection, the event source is now
reconnected to the right sitemap page.

Fix one of both problems explained in #1757

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-20 22:28:38 +01:00
Florian Hotze 2c70e19983
Update mainui workflow to generate webpack-stats on push to main (#2278)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-18 09:09:51 +01:00
Yannick Schaus c89614d0af
Update descriptions in the settings menu (#2273)
Signed-off-by: Yannick Schaus <github@schaus.net>
2024-01-18 01:25:04 +01:00
Florian Hotze 64c1e3576a
Thing edit: Hide clear button for location if not editable or not ready (#2277)
Fixes #2272.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-17 22:30:05 +01:00
Wouter Born ef523642a9
Cleanup Java code (#2263)
This cleanup includes:

* Fix deprecations
* Fix JavaDocs
* Remove redundant toString calls
* Remove redundant semicolons
* Simplify boolean expressions
* Use diamond operator
* Use enhanced for loops
* Use instanceof pattern matching
* Use isEmpty instead of 0 comparisons
* Use lambdas
* Use static inner classes
* Use StandardCharsets

Also adds the SA_LOCAL_SELF_COMPARISON suppression similar as used in
other repositories for https://github.com/spotbugs/spotbugs/issues/1992.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-17 19:10:16 +01:00
Florian Hotze f912de509c
oh-colorpicker: Replace defaultColor option with an actual default color (#2270)
Remove the defaultColor option.
Instead use RGB(0,0,0) black as default color if the Item state holds no
valid color, so that the color picker is accessible.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-14 14:50:56 +01:00
dependabot[bot] 4d4aea4a69
Bump follow-redirects from 1.14.8 to 1.15.4 in /bundles/org.openhab.ui/web (#2264)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.8 to 1.15.4.

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-14 12:56:18 +01:00
lolodomo 5c116092f3
[BasicUI] Update the content of the default cfg file (#2269)
Add missing settings.

Fix #2261

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-14 11:39:26 +01:00
jimtng a7cf1a0a1d
[BasicUI] Fix Buttongrid alignment on desktop (#2260)
Fixes #2259

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-01-13 16:58:51 +01:00
lolodomo 5a09f71eae
[BaiscUI] Adjust the SVG icon in buttons to the current theme (#2257)
Only concerns SVG icons delivered by the openHAB icon servlet and having
"currentColor" as fill color.

Convertion to inline SVG is applied only if the "inline SVG" setting is
enabled.

Fix #2249

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-07 11:33:57 +01:00
Wouter Born 225e61c97c
Improve network-interface context support (#2246)
This allows for selecting multiple network interface names in
configuration parameters.

Related to:

* https://github.com/openhab/openhab-core/pull/3981
* https://github.com/openhab/openhab-addons/pull/16145

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-06 11:36:57 +01:00
Wouter Born afdfa01b07
Update license headers to 2024 (#2254)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 21:17:55 +01:00
lolodomo b6aeaa5760
[BasicUI] Enhance the description of the "Inline SVG" setting (#2247)
In order to explain the default value.

Related to #2240

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-02 19:56:06 +01:00
Mark Herwege 898b519c77
[BasicUI] icon.png minimal fix (#2232)
See comment
https://github.com/openhab/openhab-webui/pull/2231#issuecomment-1867570889

This is the minimal fix to the issue.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-01-02 19:26:18 +01:00
lolodomo b175d1b6bd
[BasicUI] Fix image element being link to a sub page (#2238)
Fix #2233

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-01 16:05:14 +01:00
Florian Hotze bf2f257afe
Settings pages: Fix x-overflow and large spaces on phone screens & Change icon for persistence config (#2248)
Follow-up for #2229.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-30 15:47:23 +01:00
Mark Herwege 2fe6ae9b3b
Add a new settings menu for persistence (#2229)
Persistence policies can be configured from the UI. However, it is
difficult to find, and one needs to know where to look. Apart from a
documentation issue, I think persistence is core enough to merrit its
own entry in the settings, so it becomes more prominent.

See for example here:
https://community.openhab.org/t/after-reboot-string-values-are-empty/152064/16

This adds a persistence entry below transformations to the settings menu.

The new persistence config page allows to set the default persistence,
and links to defining the policies for each installed persistence add-on.
There also is a "add" list entry to install more persistence add-ons.
If none is installed, it will explain persistence and link to the docs and the add-on store.

The default persistence settings has been removed from the system
settings, and the link to the persistence policy config from the add-on
settings page has been converted to a button.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-30 00:48:18 +01:00
Florian Hotze 0f35e0ef55
Fix Quickstart-Button shown for non-admin users (#2245)
Follow-up for #2209.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-30 00:32:14 +01:00
dependabot[bot] 3e5018b973
Bump minimatch from 3.0.4 to 3.0.8 in /bundles/org.openhab.ui.basic (#1779)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to
3.0.8.

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-29 23:19:21 +01:00
dependabot[bot] 25afea1c1f
Bump semver from 5.7.1 to 5.7.2 in /bundles/org.openhab.ui.basic (#1959)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-29 22:54:33 +01:00
dependabot[bot] 480f7ad239
Bump word-wrap from 1.2.3 to 1.2.5 in /bundles/org.openhab.ui.basic (#2236)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3
to 1.2.5.

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-27 19:28:17 +01:00
lolodomo 09df379308
[BasicUI] Fix closing h4 tag in sitemap list page (#2234)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-12-26 17:38:09 +01:00
Kai Kreuzer 4eda3ac170 Apply spotless after release
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-12-22 23:33:18 +01:00
openhab-bot f4cf9535f3 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 18:16:31 +00:00
Mark Herwege cdfe37a72b
[BasicUI] Fix icon none (#2231)
As described in
https://community.openhab.org/t/openhab-4-1-milestone-discussion/149502/222,
none.png is not found for BasicUI.

This PR replaces it with non.svg, see discussion on forum.

@lolodomo @florian-h05 I was behind my screen when I saw the issue. I
didn't test, but did the replacement based on info provided on the
forum.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-22 11:34:06 +01:00
openhab-bot a908b02820
New Crowdin updates (#2230) 2023-12-20 18:19:39 +01:00
openhab-bot 4593101773
New Crowdin updates (#2225) 2023-12-19 19:39:59 +01:00
Mark Herwege f94187652e
No suggestion for installed add-ons (#2226)
Suggestions are being shown in the add-on store for add-ons that are already installed.
This PR removes suggestions for installed add-ons.

See request here https://github.com/openhab/openhab-core/issues/3868#issuecomment-1859950504.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-19 18:49:11 +01:00
GiviMAD d52296a0e1
Add panel for voiceSystem metadata (#2222)
Refs https://github.com/openhab/openhab-core/pull/3925,
https://github.com/openhab/openhab-core/pull/3897 and
https://github.com/openhab/openhab-core/pull/3853.

---------

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-12-17 12:20:17 +01:00
openhab-bot 20a313f266
New Crowdin updates (#2201) 2023-12-17 10:58:39 +01:00
Florian Hotze ab080dc8d2
Model page: Add expand/collapse model button (#2224)
Brings #2191 to the model page:
Provides a button to expand or collapse the model tree.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-16 16:09:08 +01:00
Florian Hotze c8a58fb744
Update component docs (#2223)
Follow-up for #2190 and #2215.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-15 22:06:01 +01:00
Yannick Schaus a5cce9a4c9
Fix unwanted model card back navigation (#2221)
Fixes #2196.
Replaces #2211.

The double back navigation was caused by:

31f4c7065e/src/core/utils/history.js (L56-L61)

and `router.updateCurrentUrl()`, unlike the name implies, doesn't update
`router.url` for some reason (maybe a bug?).

-----

Signed-off-by: Yannick Schaus <github@schaus.net>
2023-12-15 21:54:32 +01:00
Florian Hotze 813fb72480
Update openhab-js tern defs (#2220)
This updates the tern defs used for autocompletion to the current
library version included in the addon (4.7.0).

Reference https://github.com/openhab/openhab-js/compare/v4.0.0...v4.7.0.

Last update of those was in #1710.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-14 21:35:31 +01:00
Mark Herwege da639e2f7d
Limit add-on settings menu list to bundles (#2217)
When installing rule templates or UI components or blockly libraries
from the marketplace, they get an entry in the add-on settings menu.
There is nothing that can be configured in these types of add-ons.
Therefore limit the list to bundles and features.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-14 08:58:13 +01:00
Florian Hotze f4773a7c86
Sitemap editor: Move collapse chevron for toolbar to the left (#2218)
Follow-up for #2193.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-13 23:55:15 +01:00
Mark Herwege 123a8d3fd7
Sitemap Editor: Buttongrid support (#2193)
This PR adds the Buttongrid element to the sitemap editor.
There is also some cleanup for configuration on small screens.
See https://github.com/openhab/openhab-core/pull/3810 and
https://github.com/openhab/openhab-android/issues/3494

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-13 20:28:41 +01:00