Commit Graph

1771 Commits (main)

Author SHA1 Message Date
jimtng 4b77cd1c71
Script Editor: Fix editing RulesDSL scripts (#3087)
Regression from #3051

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-03-08 00:48:22 +01:00
stefan-hoehn 8561b88836
[blockly] Add block to set value to key of dictionary (#3078)
Closes #3075.
Provides a block that allows to update a dictionary that was assigned to
a (named) variable.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2025-03-08 00:46:42 +01:00
jimtng cceb4423e7
Downgrade vue-fragment to 1.5.1 (#3074)
Resolve #3072 
Regression from #3066

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-24 18:04:27 +01:00
Wouter Born de89b6fc27
Use Spotless sortpom plug-in (#3073)
This simplifies the sortpom configuration and also allows for checking
and reformatting them using the spotless:check and spotless:apply Maven
goals.

Similar to openhab/openhab-core#4618

Signed-off-by: Wouter Born <github@maindrain.net>
2025-02-23 19:05:22 +01:00
jsjames 8b7f4700dd
Script edit: Display conditions (#3042)
Added support so conditions will be displayed when script rules are viewed.

Signed-off-by: Jeff James <jeff@james-online.com>
2025-02-18 11:41:37 +01:00
Mike Major 5ad2b2bf79
oh-label-cell: Fix issue with setting badge colour (#3068)
Signed-off-by: Mike Major <mike_j_major@hotmail.com>
2025-02-18 11:15:32 +01:00
Mark Herwege 2e285d7e71
Sitemap editor: Fix icon parsing error (#3048)
Icons with both : and - in the name where not parsed correctly in sitemap code.
See https://community.openhab.org/t/basic-ui-text-color-depending-of-item-string-content/162110/10.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-02-17 23:32:35 +01:00
Florian Hotze 1c84a5bd70
Upgrade some Main UI dependencies (#3066)
- Upgrade dependencies with vulnerabilities through `npm audit fix`.
- Upgrade caniuse-lite/browserslist-db.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-02-16 17:57:28 +01:00
Florian Hotze a9839ed90b
Fix oh-image-card styling affects all cards (#3065)
Regression from #3046.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-02-16 15:31:36 +01:00
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