Commit Graph

734 Commits (e77e3f48d50ed79fa30df167b361e09da8ae7855)

Author SHA1 Message Date
Wouter Born 5774f29e64
Upgrade SAT to 0.12.0 (#1193)
See the [0.12.0 milestone](https://github.com/openhab/static-code-analysis/milestone/18?closed=1) for all changes in this release.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:35:14 +01:00
Wouter Born 8d2ecaaa27
Configure default timeout of 15 minutes for all testable and lifecycle methods (#1195)
This helps to identify what tests cause builds to get stuck and it will more quickly end such builds.
When builds get stuck in tests, they would keep running for hours and then eventually when a timeout occurs, the job is killed without knowing why it got stuck.
Furhermore precious Jenkins executors will not keep being occupied by such jobs.

See: https://junit.org/junit5/docs/current/user-guide/#writing-tests-declarative-timeouts

It helps with identifying the root cause of issues like openhab/openhab-core#2551

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:30:30 +01:00
Wouter Born a65fb3792e
Suppress bnd warnings for unused imports/exports (#1196)
Ignores warnings like:

```
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Export-Package instructions: [org.openhab.*]
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Import-Package instructions: [io.swagger.v3.oas.annotations.*,
```

These are safe to ignore because the import/export packages are globally defined and not every bundle imports/exports all these packages.

The `skipIfEmpty` configuration furthermore prevents warnings when the bnd-maven-plugin runs on projects that don't have any code like BOMs.

More important compiler/SAT warnings standout more when there are fewer useless warnings.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:30:01 +01:00
Wouter Born 36170518cb
Fix/suppress PMD CompareObjectsWithEquals findings (#1190)
Newer PMD versions discover more CompareObjectsWithEquals findings.

Related to https://github.com/openhab/static-code-analysis/pull/423

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:29:32 +01:00
J-N-K 68d3ef4234
Fix add-on store UI with add-on services other than the distribution & the marketplace (#1202)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-11-14 17:13:35 +01:00
Jeremy 1671c1aaaf
Update alexa integration with new metadata syntax (#1145)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2021-11-14 17:08:26 +01:00
Gautier 9aeb301771
Addition of graphical layer management for canvas layouts (#1187)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2021-11-07 20:14:57 +01:00
stefan-hoehn 074b3f2fec
Expand Blockly with new blocks (part 1) & update to latest version (#1179)
This adds a great number of new openHAB-related blocks to the Blockly toolbox to:
- get info from items & things
- define timer and delays
- send push notifications (needs openHAB Cloud)
- play audio and speak text with text-to-speech
- store values for later retrieval in subsequent runs

If reorganizes the openHAB category into multiple domain-specific categories.

The code for the block definitions & code generation has been refactored heavily.

Update to latest stable Blockly version 6.20210701.0.

Includes code from (and supersedes) #875.

Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-11-07 19:50:52 +01:00
Yannick Schaus 245bd30bf3
Add-on store adjustments (#1192)
- Move non-rule templates automation add-ons to the second section
- Merge all non-widget UI add-ons to the second section
- Use GitHub well-known URLs in the openhab-docs repo (final or final-stable
  branch) for the logo URL - avoids having to cherry-pick new binding logos
  to stable, and CloudFlare caching issues
- Use correct version on next.openhab.org or www.openhab.org when clicking
  the logo in the details page
- Hide images with alt text set to "logo" in description. For marketplace
  entries this can be set with this syntax:
  `![logo](url)` or `![logo|...](url)`
- More prominent "show all" button for expandable sections

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-11-01 00:33:57 +01:00
openhab-bot dc3acca292
New Crowdin updates (#1127)
* New translations en.json (Norwegian)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Indonesian)

* New translations en.json (Indonesian)

* New translations en.json (Latvian)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Polish)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)
2021-10-31 19:34:53 +01:00
Wouter Born 48a95faae4
Update bnd to 6.0.0 (#1176)
For release notes, see:

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

Related to openhab/openhab-core#2514

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-23 13:15:03 +02:00
TheGreyDiamond 4b0214292a
Add action to oh-gauge-card (#1175)
Closes #1107.

Signed-off-by: TheGreyDiamond <s-einkauf@oest-rs.de>
Also-by: Yannick Schaus <github@schaus.net>
2021-10-13 21:09:51 +02:00
Yannick Schaus ed06717ca3
Fix home page initialization logic (#1177)
Regressions were introduced with #1055 where the state tracker wouldn't be started after going back to the home page from another page.
Also add a preloader which should only be displayed the first time.

Should fix #1161 & #1126.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-10-13 21:06:04 +02:00
Yannick Schaus 38425151c6
Add rule template support (#1173)
* WIP: Add rule template support

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-10-03 14:30:24 +02:00
Gautier 2b78c0910d
New fixed layout: canvas (#1100)
Addition of a fixed canvas layout able to freely position and resize widgets
over a background. Can be used for floorplans or schemas (as an alternative
to floorplan pages), with the controls rendered over the image.

Rework layout type selection - default to responsive - and allow to select
a fixed type layout when the page is empty.

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
Also-off-by: Yannick Schaus <github@schaus.net>
2021-10-01 15:47:57 +02:00
Yannick Schaus d8a16db016
Fix oh-icon not updating (#1167)
Fixes #1162.
Fixes #1164.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-09-25 00:32:33 +02:00
Yannick Schaus 11b9bbecdf
Replace Add-on Management UI with Add-on Store (#1158)
Depends on https://github.com/openhab/openhab-core/pull/2405.

This replaces the current section of the UI for managing
add-ons with a completely new "store-like" interface.
External data, like logos and detailed descriptions for
distribution add-ons are fetched from well-known locations
on the website or GitHub to provide a "store" look & feel.

The add-on store is orgnanized around 4 categories: bindings,
automation, UI, and others, with a separate search tab.
Each category is splitted into subsections. The availability
of these sections depend on the add-on services that are
registered. The sections currently supports add-ons provided
by the "karaf" & "marketplace" services, as provided by
https://github.com/openhab/openhab-core/pull/2405.
Other add-on services should be supported as well.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-09-25 00:06:58 +02:00
Wouter Born 738c3990ec
Prevent modified files with Maven builds (#1152)
Related to #241

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-18 16:14:32 +02:00
Wouter Born c6bc42e7a9
Upgrade to Karaf 4.3.3 (#1163)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-18 16:13:26 +02:00
Yannick Schaus 0c2b25beb8
Fix oh-icon's f7/material icons on mobile (#1156)
Should fix #1155.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-09-04 19:57:54 +02:00
Dan Cunningham 35db3b78ac
Restore color support in plan marker icons (#1154)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-09-04 18:44:22 +02:00
Wouter Born bed03b7c57
Bump and fix habot dependencies (#1153)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-04 18:42:11 +02:00
Stefan Triller 60fd5f3c46
Fix mimetype for disabling/enabling things (#1151)
Fixes #1150.

Signed-off-by: Stefan Triller <github@stefantriller.de>
2021-08-31 18:09:40 +02:00
dependabot[bot] cf9ae4a06b
Bump bcprov-jdk15on from 1.54 to 1.67 in /bundles/org.openhab.ui.habot (#1142)
Bumps [bcprov-jdk15on](https://github.com/bcgit/bc-java) from 1.54 to 1.67.
- [Release notes](https://github.com/bcgit/bc-java/releases)
- [Changelog](https://github.com/bcgit/bc-java/blob/master/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

---
updated-dependencies:
- dependency-name: org.bouncycastle:bcprov-jdk15on
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-30 01:04:42 +02:00
Yannick Schaus b402600ff1
Fix detection of protected user API operations (#1148)
The current implementation would set the access token before trying out calling `/rest/sitemaps` which would obviously always succeed, since the call would be made with the token. Therefore the "requireToken" flag would not be set properly and prevent the alternative SSE implementation (which allows headers) to be used.

Fixes #1146.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-08-30 00:59:18 +02:00
Yannick Schaus 01cee7bb29
oh-icon component improvements, Iconify icon support (#1149)
This allows the oh-icon to display both from more sources than the
OH icon servlet; bundled Framework7/Material icons can also be displayed
by this component (use `f7:` or `material:` prefixes).
Specifying no prefix will assume an OH icon for backward compatibility.

This also introduces Iconify (https://icon-sets.iconify.design) as an
icon source, allowing access to 100,000+ icons from various icon sets,
to display them in widgets like cards or floorplan markers.

The Iconify option requires Internet connectivity on the client to access
the external API but the underlying library will cache the icons in
local/session storage to limit the requests and speed up the rendering.

Update/fix documentation and plan marker default icon registration.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-08-30 00:58:46 +02:00
Rogier Hofboer f3fe7255a6
Fix failing subsequent builds by upgrading to Gulp 4.x - Fixes #241 (#1113)
Signed-off-by: Rogier Hofboer <rogier@hofboer.nl>
2021-08-25 19:51:53 +02:00
Matthew Skinner e705ec7bb4
[habot] Change "Removing old ephemeral card" log message to debug level (#1138)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2021-08-25 18:59:29 +02:00
lolodomo 5541f3ea65
[basicUI] Fix color selector placement (#1139)
Fix #934

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-08-11 12:40:41 +02:00
lolodomo 7aab7798f7
[basicUI] Fix few SAT warnings (#1141)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-08-11 12:38:15 +02:00
lolodomo 36658f571e
[basicUI] Fix handling of buttons when only 1 button (#1132)
Fix #1131

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-07-24 10:55:16 +02:00
Wouter Born ffbd450cd0
Apply Spotless (#1123)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-28 19:24:46 +02:00
jenkins 2bd5bafd04 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 19:54:38 +00:00
hubsif ed049e699a
Add releaseOnly parameter to sliders (#1122)
Add releaseOnly parameter to sliders
Rename interval parameter
Fixes #1114 

Signed-off-by: Hubert Nusser <hubsif@gmx.de>
Also-by: Yannick Schaus <github@schaus.net>
2021-06-27 18:17:32 +02:00
Georgios Moutsos e91e8c5a15
[documentation] Escape quotes in generate.js script (#1116)
Signed-off-by: Georgios Moutsos <georgios.moutsos@gmail.com>
Also-by: Yannick Schaus <github@schaus.net>
2021-06-27 18:16:10 +02:00
lolodomo 9fec9946e9
[basicui] Enhance displayed message when SSE subscription failed (#1121)
Fix #646

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-26 20:34:41 +02:00
lolodomo 2794c96c74
[basicui] Reload page when the state/command description of an item in the page (#1120)
Related to openhab/openhab-core#2413

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-26 20:32:57 +02:00
openhab-bot d5837ecb80
New Crowdin updates (#1111)
* New translations en.json (Russian)

* New translations en.json (Russian)
2021-06-25 02:54:26 +02:00
Yannick Schaus 41956ebc58
Realign "Copy UID" buttons (#1119)
Fixes #1024.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-06-25 02:53:47 +02:00
Yannick Schaus 8cec28a298
Add as Thing (with custom ID) - suggest last segment only (#1118)
Fixes #1034.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-06-25 02:18:08 +02:00
Yannick Schaus 6cd28ed7ca
Revert analyzer z-index changes. (#1117)
Reverts the CSS z-index changes made in #1095, without reinstating #1067
& #1068 because now the analyzer route is correctly modal. There doesn't seem to be an
easy way to insert the popup-backdrop between the item picker smart select popup
(or model picker) and the analyzer popup/analyzer controls sheet, especially if there's
another popup _behind_ the analyzer popup with the `popup-behind` class.

Fixes #1105.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-06-25 01:56:51 +02:00
hubsif dd0472f0a5
Enable linking of trigger channels (#1106) 2021-06-20 17:27:53 +02:00
Yannick Schaus 4c0f9fe64c
Fix analyzer back button if another popup was opened (#1095)
Framework7 would not consider an async route to be a modal route,
leading to critical code not being executed and thus causing #1068.
This regression was introduced when the routes were changed to async in #948.

So introduce a new component and lazy load the analyzer inside it, so
there's a minimal impact on the app entry point.

Changed some z-indexes to make sure the popup backdrop is displayed between
the analyzer popup and the item picker popup.

Fixes #1068.
Fixes #1067.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-06-10 15:16:16 +02:00
Boris Krivonog 551d26f81f
Upgrade echarts to 5.1.2 (#1099)
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2021-06-10 15:15:56 +02:00
hubsif 6f6da926ed
Set current item from selected name, fixes #1079 (#1093)
Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-06-06 21:04:51 +02:00
openhab-bot 4194cd247f
Renamed Hebrew language code from he to iw (#1086) 2021-06-02 18:10:57 +02:00
openhab-bot 25e2694c99
New Crowdin updates (#1075)
New complete Simplified Chinese translation.
2021-06-02 17:45:08 +02:00
Yannick Schaus 66eca55851
[habpanel] Initialize configuration-provided widgets (#1078)
This feature is deprecated in OH3 but code remains which would break if `$rootScope.configWidgets` is left undefined.
So define it as an empty object early.
Fixes #733.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-06-02 15:11:37 +02:00
Anders Alfredsson cc5a3fca28
Apply cronLastSpecificDomDay to DOW-field instead of DOM-field (#1085)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-06-02 15:11:18 +02:00
Christoph Weitkamp 299fc5cd7b
Changed 'ConfigDescriptionParameterDTO' field serialization 'defaultValue' -> 'default' (#1077)
Related to openhab/openhab-core#2383.

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-02 12:36:09 +02:00