Commit Graph

489 Commits (4194cd247fbf82aba94386f8c2bda47947e8bb6f)

Author SHA1 Message Date
Yannick Schaus 49c55b68ca Add binding configuration page & link
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-30 10:49:55 +01:00
Yannick Schaus 0ab0a0b691 Improve thing addition and add-ons management
Shortcut to install new bindings when adding a thing
Inbox listens to SSE and refreshes automatically
Refresh constantly the discovery results when scanning
Fix search in manual thing type selection
Improve look & feel of add-on screens and sheet

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-30 10:49:55 +01:00
Yannick Schaus 2a03c40f9e
Try to fix routing bug after thing creation (#186)
After adding things after a series of pages, f7's router will sometimes
act up and display a backdrop on the main view and then freeze the UI,
only a page refresh would get it working back again.

These changes seem to help at least in these cases.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-29 10:57:48 +01:00
Yannick Schaus aa75037d9a Improve channel list logic (#185)
Fix a flaw in the channel list rendering
where a dynamically provided channel was
not appearing unless its type was extensible.
It was previously assumed that all
non-extensible channel types would appear
in the thing type's "channelGroups" or
"channels" property.

Some bindings have ChannelTypeProviders
which will define thing-specific channels
along with channel types which don't
appear on the thing type object. Example:
the "input" channel of the yamahareceiver
binding's zone thing.

The channel-list component now has a
mandatory "channelTypes" prop which must
be provided by the parent component. This
prop should contain an array of channel types
that can appear for the thing. It should be
retrieved using the /rest/channel-types API
call, eventually using the "prefixes" filter;
providing channel types prefixed by "system"
or the binding id should be enough.

This PR thus depends on:
https://github.com/openhab/openhab-core/pull/1340).
More filters were also added to relevant places.

In the "add equipment/points from thing"
screens, the prefix of the name suggestions
for the Point items will now be the name of the
parent Equipment if available (instead of the
normalized thing's label).

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-27 18:21:36 +01:00
Yannick Schaus 257c1a0c39 Minor cosmetic changes to the model builder (#183)
Actions are displayed as list buttons instead of FAB on large screens
Clear the selection in the tree by clicking in the blank area
Other minor fixes

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-25 20:54:46 +01:00
Yannick Schaus cfb0ef67ee Restore HABPanel service config (#182)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-24 19:24:20 +01:00
Wouter Born aede657ec0 Remove dashboard leftovers (#181)
* Remove dashboard leftover
* Remove dashboard from CODEOWNERS file

Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-24 08:40:55 +01:00
Yannick Schaus bd52584b3e Cosmetic changes, handle static files in UIService (#180)
* Cosmetic changes, handle static files in UIService

Restore the serving of static files through the UIService
(the Jetty handler doesn't seem to take precedence).
Add missing images for Basic UI and CometVisu,
cleanup temporary screenshot images.
Add description and author info for the Cordova app.
Rename "default UI" to "main UI".
Add version info in webapp initialization.
Adjust HABPanel dependencies.
Update README.md and CONTRIBUTING.md files.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-21 00:07:58 +01:00
Kai Kreuzer 0999145c81 removed dashboard as it has been replaced by new standard UI (#179)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-01-20 00:12:03 +01:00
Yannick Schaus ad27a717ed Add default UI bundle (#178)
This add the UI in its current state of development,
the intent is to test the integration in the distro
early. The other apps are listed on the home page by
calling the new REST endpoint introduced in
https://github.com/openhab/openhab-core/pull/1329

The onboarding wizard implementation is not complete
so it isn't possible to select a startup package with
the UI yet.  The wizard steps will be discussed in a
separate issue; it should however be possible to install
addons as needed from the settings screen.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-19 17:20:17 +01:00
Yannick Schaus 81b1cc5aea Remove all dependencies to the dashboard UI (#175)
* Remove all dependencies to the dashboard UI

Migrate all dashboard tiles to the core tile functionality
(https://github.com/openhab/openhab-core/pull/1329)

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-18 09:32:33 +01:00
Wouter Born 2dec14c257 Upgrade to SAT 0.9.0 (#176)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-18 09:31:49 +01:00
Christoph Weitkamp 739987de03 Moved ESH-INF folders to OH-INF folders (#174)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-17 15:29:49 +01:00
Wouter Born e4460f5500 Switch to Java 11 and drop Java 8 support (#160)
* Switch to Java 11 and drop Java 8 support

Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-12 22:33:58 +01:00
Kai Kreuzer baadca6f15 fixed bundle symbolic name for HABPanel (#166)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-01-03 11:30:15 +01:00
Kai Kreuzer 7614869023 removed dashboard feature from ui add-ons (#164)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-01-03 11:30:01 +01:00
Wouter Born 553c4b4deb Update copyright headers to 2020 (#161)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-01 18:04:49 +01:00
Kai Kreuzer 0a8ca96d6d
refactored namespace to org.openhab (#157)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-12-29 18:09:25 +01:00
Wouter Born 368c4fc2e3 Reuse jaxb feature (#150)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-12-29 12:32:45 +01:00
Wouter Born 7a9ac42a42 Update SAT currentVersionRegex for 3.0.0 (#151)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-12-29 12:31:37 +01:00
Kai Kreuzer 0d51db2b54
Removed Paper UI, Classic UI and HABmin (#154)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-12-29 12:31:13 +01:00
jenkins 30dfe0d9ee [unleash-maven-plugin] Preparation for next development cycle. 2019-12-15 18:52:07 +00:00
Christoph Weitkamp 6ada19c3d0 Fixed font size for group value (#149)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-11-29 17:25:40 +01:00
lolodomo e1c150bfe1 [basicui] Implement color management for setpoint widgets (#147)
Fix openhab/openhab-core#1234

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-11-26 08:18:01 +01:00
Yannick Schaus 6d752a30f9 [habot] avoid feeding null or empty attributes to the trainer (#141)
Signed-off-by: Yannick Schaus <github@schaus.net>
2019-11-19 20:20:32 +01:00
Wouter Born c13c0055e7 Upgrade bnd to 4.3.0 (#140)
For bnd 4.3.0 release notes, see:

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

Also note:

    The Bnd Maven plugins are now marked thread safe and can be used with -T.

It seems to work well so far as long as the features are build after the bundles so I've added the bundles BOM as dependency to the features POM.
We still need to make SAT thread safe (openhab/static-code-analysis#200).

When disabling SAT you can build using one thread per processor core by executing:

    mvn clean install -DskipChecks -T 1C

This significantly speeds up Maven builds and puts all your processor cores to good use. :-)

Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-11 20:01:29 +01:00
Wouter Born 556d6ff261 Upgrade to Karaf 4.2.7 (#139)
For Karaf 4.2.7 release notes, see:

https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12345539

Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-10 17:03:01 +01:00
dependabot[bot] 9cdfdda52e Bump bower from 1.8.4 to 1.8.8 in /bundles/org.openhab.ui.habmin (#135)
Bumps [bower](https://github.com/bower/bower) from 1.8.4 to 1.8.8.
- [Release notes](https://github.com/bower/bower/releases)
- [Changelog](https://github.com/bower/bower/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bower/bower/compare/v1.8.4...v1.8.8)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-07 17:22:55 +01:00
Wouter Born c101937616 Update sitemap model imports (#138)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-07 17:22:10 +01:00
Wouter Born bd9b5db691 Update to SAT 0.8.0 (#137)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-03 22:38:24 +01:00
Wouter Born c1b83e3b46 Fix SAT errors in resources and tests (#136)
Fixes all SAT errors in resources and tests reported by SAT 0.8.0-SNAPSHOT.

Related to: openhab/static-code-analysis#363

Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-03 11:53:16 +01:00
Wouter Born a0ef10303b Fix build by adding null annotations (#134)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-27 17:35:05 +01:00
Wouter Born a45c187018 Use SAT 0.7.0, fix errors and feature file warning (#131)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-21 22:39:10 +02:00
Yannick Schaus a6b978f170 [habpanel] Port over translations from Crowdin (#82)
Include a new complete Japanese translation (thanks to koui), and partial translations and fixes in Afrikaans, Arabic, Bulgarian, Korean, Lithuanian, Ukrainian.

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-10-16 12:39:09 +02:00
Christoph Weitkamp fca2365008 Changed pid from 'org.eclipse.smarthome.core.i18nprovider' to 'org.eclipse.smarthome.i18n' (#127)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-16 08:57:31 +02:00
Yannick Schaus c09ce6ef4f [habpanel] Filter out unnecessary SSE events (#128)
This should help improve the performance for large installations,
or when the event bus is busy.

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-10-16 08:45:38 +02:00
Yannick Schaus 33307aa446 [habpanel] Send early update events (#129)
This change broadcasts the 'openhab-update' event immediately, not waiting for
the result of the /rest/items request, if the items are already populated, when
OHService.reloadItems() is called.  This improves the dashboard switching latency
significantly at the expanse of reliability - some widgets (e.g. slider) might
'flicker' slighly.

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-10-16 08:45:05 +02:00
Christoph Weitkamp bb1f8e6a44 Fixed POM XML Shema Definition path (#125)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-12 10:21:28 +02:00
Hilbrand Bouwkamp 2802fff739 Updated schema location from smarthome -> openHAB (#124)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-10-11 02:25:08 -07:00
Yannick Schaus 45614b2a27 [habpanel] Update dependencies, 5-col selection widget fix (#106) (#116)
Also-by: Alari Truuts <Alariii@gmail.com>
Signed-off-by: Yannick Schaus <github@schaus.net>
2019-09-05 17:58:50 +02:00
Yannick Schaus ac54f10ea6 [habpanel] Widget gallery: handle short attachment urls (#115)
Discourse now seems to use relative "short URLs" redirects (`/uploads/short-url/...`) instead of linking to the absolute URL of the attachment on S3 (for new posts only, those created before are not affected).

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-09-04 20:43:10 +02:00
curlyel bfce718042 Providing modified icons for <motion> (#112)
Providing modified icons for <motion> suitable for both, bright _dark_ themes.

Signed-off-by: curlyel <curlyel@t-online.de>
2019-09-03 21:07:16 +02:00
lolodomo 4b69dcc9da [classicui] Remove iconType configuration setting (#113)
Icon type is now SVG by default.
Customized icons, even in only PNG format, are still handled.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-09-03 21:06:34 +02:00
lolodomo 742fc0b96d [basicui] Remove iconType configuration setting (#114)
Icon type is now SVG by default.
Customized icons, even in only PNG format, are still handled.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-09-03 21:06:13 +02:00
lolodomo c5b3049ef7 [ClassicUI] Render switch element with slide switch for switch item with state options (#95)
Signed-off-by: Laurent Garnioer <lg.hc@free.fr>
2019-08-23 08:20:08 +02:00
lolodomo ec52cb0eaa [BasicUI] Render switch element with slide switch for switch item with state options (#94)
Signed-off-by: Laurent Garnier <lg.hc]@free.fr>
2019-08-23 08:19:49 +02:00
lolodomo 835d6dad6d [BasicUI] Ignore too big item state when updating widget icon (#98)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-22 20:54:26 +02:00
lolodomo 747cd4758b [ClassicUI] mapview: handle UNDEF state (#102)
Signed-off-by : Laurent Garnier <lg.hc@free.fr>
2019-08-22 20:53:34 +02:00
lolodomo 81aab7ddeb [BasicUI] mapview : handle refresh and UNDEF state (#101)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-22 20:52:07 +02:00
lolodomo dab87c9f31 [BasicUI] Fix dynamic update of frame visibility (#103)
Fix #92

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-22 20:30:26 +02:00