Commit Graph

1535 Commits (eb41bdca8a1f82e5f8d9595465282e543dba6ef5)

Author SHA1 Message Date
Jimmy Tanagra eb41bdca8a Use a more specific browser title for each page
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-07 12:44:04 +10:00
Holger Friedrich 0041fb699f
[cometvisu] Upgrade openapi generator to 7.0.1 (#2975) 2025-01-26 17:01:19 +01:00
Holger Friedrich 12f24d4f70
Upgrade plugins (#2974) 2025-01-26 16:59:47 +01:00
Holger Friedrich c346bcee92
Upgrade Karaf from 4.4.6 to 4.4.7 (#2798) 2025-01-26 16:06:44 +01:00
jimtng 95844d294b
Layout Editor: Fix invisible bottom part of the screen (#3033)
In non full-screen mode, the bottom of the screen was hidden behind the
bottom toolbar. This includes the "Add Masonry" button and any
components at the bottom of the screen.

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-23 18:54:50 +01:00
jimtng bb669d8172
Tag Input: Fix enter key on Android (#3031)
Fix #2890.
Fix #1440.

Tested it on browserstack:
- enter works on iphone 13
- enter works on pixel 7
- also works on my real android phone

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-23 18:31:08 +01:00
jimtng d203a02d1f
Link to New Item: Prefix with Thing's label (#3034)
Resolve #3032

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-23 17:26:59 +01:00
jimtng 7dd7f31cdd
Item Add: Navigate to the new Item once added (#3010)
Currently, if you go to Settings -> Items -> Add -> Save, you'll be
brought back to the Items list (back navigation).

This PR changes this behavior so that after the new item is saved/added,
the user is redirected to the Item Details page **of that new item**, so
they can immediately work on it.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-19 19:04:45 +01:00
jimtng 3e010ec300
Add-on Store: Extend search to add-on descriptions (#3028)
Resolves #2870.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-19 19:03:07 +01:00
jimtng 14a665fc1a
Channel Settings: Make long Channel UID fully visible (#3027)
Fixes #3023.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-19 19:00:55 +01:00
Florian Hotze d5b98631c0
Log viewer: Align logger name left (#3026)
Refs #3011.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-17 10:42:13 +01:00
David Tschida 8b4e6699c9
oh-slider: Fix handing of steps with many decimals when rounding state values (#3022)
Fixes #3019.

Signed-off-by: David Tschida <dmtschida1@gmail.com>
2025-01-16 19:17:23 +01:00
Florian Hotze a1ffc6c2ed
Page view: Fix title sometimes not centered & Fix Vue warn (#3024)
Fixes an issue, where the page title was not centered sometimes due to a
rendering issue (race condition?) in Framework7.

Fixes the following Vue warning:

```
 Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option.
 ```

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-16 19:08:44 +01:00
Florian Hotze cd09e5296d Minor cleanup for #3011
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-16 17:32:52 +01:00
Florian Hotze 9885f09d8d
Log viewer: Fixed column width for timestamp, level & logger name (#3011)
When using the log viewer, I have regularly noticed that the time column
is wider than required, as well as the logger name column taking up much
space and making the message column move if a new log with a longer
logger name comes in.
This sets the width of the time, level and logger name columns to a
fixed value and limits the logger name length.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-15 18:48:43 +01:00
Chris Jackson bf2f2ee8dc
Add level icons to log viewer (#2968)
Following a discussion on the forum.

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2025-01-15 00:38:36 +01:00
Jimmy Tanagra e59b71e49c Addons Store: Remove unused searchbar property
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-14 21:08:12 +01:00
Jimmy Tanagra 162aaa6390 Addons Store: Also search the addon id
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-14 21:07:11 +01:00
Jimmy Tanagra ec230c9c8d Addons Store: Show search term before loading addons
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-14 21:07:11 +01:00
jimtng 3a034210f1
Thing Add: Navigate to the new Thing once added (#3014)
Resolve #3013

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-14 21:01:10 +01:00
Florian Hotze 7ef5b6fe1c
Sitemap treeview: Fix arrows/chevrons shown if not expandable (#3007)
Regression from #2904.
Reported in https://github.com/openhab/openhab-webui/pull/2970#issuecomment-2585663931.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-13 13:13:22 +01:00
Florian Hotze 54a34981b0
Rule edit: Add descriptions to triggers, actions & conditions sections (#3008)
Closes https://github.com/openhab/openhab-core/issues/4503.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-13 13:11:39 +01:00
jimtng 9a9d363fb8
Thing Add: Validate Thing ID before saving (#3009)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-13 13:09:39 +01:00
jimtng e7d9b65bc2
Item Details: Add a link to search for the item in the developer bar (#3004)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-12 16:07:02 +01:00
jimtng 03a7fa1182
Developer Dock: Add tooltips to nav buttons (#3005)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-12 14:41:49 +01:00
jimtng 4b1ef3b4dc
Thing details: Add "Install Binding" button for HANDLER_MISSING_ERROR (#3003)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-12 11:03:36 +01:00
jimtng bd3f1c4e0d
Settings menu: Always show things count even when inbox is not empty (#3001)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-10 13:12:02 +01:00
jimtng f83116f447
Thing Details: broaden the criteria for hyperlinking thing status description (#3000)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-10 10:58:12 +01:00
jimtng d16fe3ac60
Thing details: Make link in Thing status description clickable (#2996)
Resolve #2994

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-09 19:24:04 +01:00
Florian Hotze a9954c3ee9
WS client: Add convenience method to connect to the event WebSocket (#2993)
Also improve the WS client code in general.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-09 00:28:10 +01:00
Florian Hotze ea5121d77e
Chart page: Fix wrong height and top position in sheets (#2992)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-08 18:33:42 +01:00
Florian Hotze 7034ad9a0a
Chart page: Fix wrong height inside popups, popovers & sheets on iOS (#2991)
Fixes known limitation from #2717.
Reported on the community:
https://community.openhab.org/t/openhab-4-3-release-discussion/160888/155?u=florian-h05

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-08 18:33:02 +01:00
jimtng aa572b772d
Tag Input: Fix automatic add on blur (#2982)
User inadvertently losing the entered new tag when they haven't realised
that they needed to press Enter. It seems that onblur was originally
intended to auto-add the typed tag, e.g. when user immediately clicked
"Save" (top right), but it was attached to the wrong element, thus the
event didn't fire.

Changes keypress to keyup event because the keypress is
missing the last letter otherwise. It wasn't a problem in the past
because it only worked with Enter key (being the last keypress). Missing
the last letter becomes a problem when adding it in the onblur event. So
keyup solved that.

Also removed `@keyPressed.native="keyPressed"`, not sure why it was needed.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-08 18:05:49 +01:00
jimtng 5cba1d80a0
Tag Input: Prevent user from adding a semantic tag (#2983)
When the tag input is supposed to filter out semantic tags, also prevent user from entering them.
It is up to the caller of tag-input form to determine whether it can accept semantic tags or not,
by specifying it in the `showSemanticTags` property.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-07 23:28:46 +01:00
jimtng 331ec6b79e
Thing Copy: Fix channel uid of copied Thing (#2984)
Fixes #2977.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-07 23:22:06 +01:00
Wouter Born 824bbc4711
Start license headers with `/*` instead of `/**` (#2988)
Prevents JavaDoc tooling issues because these tools check comments
starting with `/**`.

Depends on #2987

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 18:49:02 +01:00
Florian Hotze b69589bdb1
Developer tools: Add WS connection test (#2981)
Depends on https://github.com/openhab/openhab-core/pull/4540.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-06 20:00:21 +01:00
jimtng 7ac9838c9e
Fix Schedule page shows UTC instead of local timezone (#2969)
Reported in:
https://community.openhab.org/t/shown-time-in-schedule-view-is-wrong/161288
https://community.openhab.org/t/schedule-page-in-mainui-off-by-one-hour-since-4-3/161307

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-04 21:59:35 +01:00
Florian Hotze 75e866792a
WS client: Remove trailing `=` from base64-encoded access token (#2976)
Follow-up for #2907.

Fixes WS client broken due to `=` being part of the base74-encoded
token, which is no allowed WS subprotocol value.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-04 18:11:27 +01:00
Florian Hotze 6104cba46d
Add Inbox approve menu to add Thing of binding page (#2973)
Supersedes #2921.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-04 17:06:42 +01:00
Florian Hotze f1c3896897
Widget expressions: Fix handling of Item name being `undefined` & Align behaviour for @ and @@ shorthands in that case (#2965)
Fixes #2956.
This fix creates the limitation that an Item must not be named
`undefined` - for an Item with this name, state tracking won't work.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-04 16:13:18 +01:00
Holger Friedrich 4380671878
Upgrade plugins (#2972)
* frontend-maven-plugin to 1.15.1
* sortpom-maven-plugin to 4.0.0 (breaking change)
https://github.com/Ekryd/sortpom?tab=readme-ov-file#news
* license-maven-plugin to 4.6
https://github.com/mathieucarbou/license-maven-plugin/releases
* maven-clean-plugin to 3.4.0
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.0
* maven-dependency-plugin to 3.8.1
* maven-enforcer-plugin to 3.5.0
https://github.com/apache/maven-enforcer/releases
* maven-install-plugin to 3.1.3
https://github.com/apache/maven-install-plugin/releases
* maven-jar-plugin to 3.4.2
https://github.com/apache/maven-jar-plugin/releases/tag/maven-jar-plugin-3.4.2
* maven-javadoc-plugin to 3.11.2
* maven-release-plugin to 3.1.1
* maven-site-plugin to 3.21.0
* maven-surefire-plugin to 3.5.2
* build-helper-maven-plugin to 3.6.0
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0


leaving out the remaining
```
[INFO]   org.codehaus.mojo:jaxb2-maven-plugin ....................................................... 2.5.0 -> 3.2.0
[INFO]   org.openapitools:openapi-generator-maven-plugin ........................................... 4.3.0 -> 7.10.0
```
for now....

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-04 14:13:30 +01:00
Florian Hotze 095584a137
Model tabs: Fix left/right margin to small on mobile (#2964)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-01 19:25:13 +01:00
Wouter Born 4610a15ad1
Update license headers to 2025 (#2963)
Updates the license headers to 2025.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-01 17:09:54 +01:00
Florian Hotze 85616e1fb5
Refactor websocket code to `$oh` namespace & Pass access token through header (#2907)
Depens on https://github.com/openhab/openhab-core/pull/4515.

This refactors the WebSocket connection code from #2884 to the `$oh`
namespace, same as it is for the SSE logic.
It also passes the access token as WebSocket subprotocol so it is sent
with the `Sec-WebSocket-Protocol` header.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-31 17:02:06 +01:00
Florian Hotze f424e2b914
Layout pages: Safe area fixes & related code improvements (#2959)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-31 16:52:12 +01:00
Nadahar 0706f3a2b7
Enable additional chart types for `oh-data-series` (#2946)
This enables the use of all imported ECharts in (custom) widgets using `oh-data-series`.
2024-12-31 15:40:32 +01:00
openhab-bot f3a973e4d3
New Crowdin updates (#2955) 2024-12-31 15:39:39 +01:00
jimtng 2028872bfc
Allow item names to start with an underscore (#2958)
Reported in
https://community.openhab.org/t/openhab-4-3-item-name-starting-with-underscore/161244

Regression from #2658

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-31 15:31:09 +01:00
Florian Hotze 512ecce304
Page: Add ability to edit current tab of tabbed page (#2953)
Closes #2899.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-28 15:54:22 +01:00