Commit Graph

1812 Commits (5.0.0.RC1)

Author SHA1 Message Date
jimtng 20ec71f992
Page Settings: Add Copy and Remove Page buttons (#3057)
This offers a more convenient way to create a temporary copy when
editing/experimenting with a page.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-16 15:03:29 +01:00
jsjames 792ff7fab8
Script edit: Add support for new python add-on & Refactor automation-languages definition (#3051)
- Added support in script-edit.vue for new/imminent graal python
binding.
- Removed hard-coding of commentChar and pulled from restructured
annotation-language.js definition.
- Refactored the annotation-language.js definition implementation.

---------

Signed-off-by: Jeff James <jeff@james-online.com>
2025-02-16 11:21:32 +01:00
jimtng fe7e9394c9
Condition Module Wizard: Add Interval condition to Time Condition (#3049)
Refs https://github.com/openhab/openhab-core/pull/4583.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-16 10:45:26 +01:00
Chris Jackson 481ef4dfcc
[logviewer] Support history (#3030)
This is the UI side of the enhancements to a) receive historical logs
from the OH server, and b) improve performance by receiving arrays of
log entries rather than just single entries.

It does work with the existing log system since it will work with both
single log entries (as currently used) and arrays of logs. Due to the
change in format, the filter requests do log a parse error since it now
uses a DTO with a number of bits of data rather than just an array of
loggers, but this doesn't impact anything else. Therefore it is safe to
merge this before the core is merged (although it's probably best to
wait a little to ensure there's no major comments to the core side!).

This also fixes a minor bug where the number of filtered logs may be
incorrectly displayed.

With this and the core changes, I can display full zigbee debug - it's
about 2000 lines in 15 seconds (or put another way, the log buffer shows
about 15 seconds of data). The log remains responsive (I can change the
logging levels back). Possibly the log buffer can/should be increased
more than 2000 entries, but that's for another day...

Core PR coming soon...

Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2025-02-15 16:29:08 +01:00
Florian Hotze 3ec39a0b53
Tabbed Page: Fix label too large (#3064)
Regression from #3044.

Noticed on my iPhone that the font size of the label was way too large.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-02-15 16:27:34 +01:00
jimtng ed2e1c3dcf
UID Input: Add `Fix UID` button to normalize UID input (#3060)
Resolve #3052.
Also add automatic item name generation as the label is typed (only when
name hasn't been entered).

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 14:02:49 +01:00
jimtng 6eb9f2271b
Item Detail: Fix search in developer sidebar (#3045)
Fix the following scenario:
- "search for usages of this item" for Item A is clicked
- Sidebar opens and sets `searchFor=itemA` preloads the search as
requested
- User then types new query in the sidebar, meanwhile the searchFor prop
remains unchanged
- Clicking on "search for usages of this item" for item A again, caused
no changes in `searchFor`, as a result, the watch for this prop didn't
fire

This PR fixes this situation by resetting the searchFor prop, therefore
causing the watch to perform the search again.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 13:44:45 +01:00
jimtng 91182e317d
Tabbed Page: Support Iconify and openHAB icons for tabs (#3044)
Resolves #2937.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 13:41:30 +01:00
openhab-bot d50dd4c527
New Crowdin updates (#2971) 2025-02-15 13:40:51 +01:00
openhab-bot c0cbf9eca2
New Crowdin updates (#3041) 2025-02-15 13:31:50 +01:00
jimtng 66df892538
Link Edit: Add dirty checking (#3040)
Resolves #2943.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 13:25:39 +01:00
jimtng 34679aa8b5
Fix oh-icon icon name type in widget def & docs (#3043)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 13:23:27 +01:00
jimtng c217b88adb
Interactive SVG Canvas: Fix embedding SVG errors (#3036)
Canvas Layout: Fix embedding SVG errors

- When imageUrl is not configured, don't show/log an error message
- When imageUrl is not an SVG file, or
- When there's an error fetching the SVG file, show a toast message
- When flashing the embedded svg
- Show a toast message when flashing, but no 'openhab' elements were
found

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 13:20:27 +01:00
jimtng a0ccaa33f1
Addons Store: Show tab bar when left panel is hidden (#3053)
When the left panel is hidden, there's no way to see uninstalled
add-ons, so we should show the tab bar.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 13:13:08 +01:00
jimtng a7cc8f762c
oh-image-card: Fix inconsistent image size when action is defined (#3046)
Fixes #3002.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 12:58:53 +01:00
Mark Herwege 6ce2d2e107
Sitemap editor: fix negative number parameters (#3055)
See: https://community.openhab.org/t/basic-ui-setpoint-negative-values/161011

Parameters with negative number where not parsed correctly. This is
because hyphen is defined as a token and therefore already recognized
before recognizing the number. Changing the order does not help as it
breaks chart period parsing.

This fix avoids recognizing numbers as tokens and handles numbers in the
lexer.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-02-15 12:54:12 +01:00
jimtng f5d26e6c0a
Thing Validation: Mustn't start with a dash, include dash in error message (#3059)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 12:52:36 +01:00
stefan-hoehn 4dff3977dc
Interactive SVG Canvas: Use percentage state for color state computing (#3062)
Fixes 
https://community.openhab.org/t/interactive-svg-background-expression-works-in-widgets-expression-tester-but-not-in-svg-object/162078/2.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2025-02-15 12:51:09 +01: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