Commit Graph

1612 Commits (5cba1d80a05816bfdc4fd5263d66b63e25f2d11c)

Author SHA1 Message Date
Mark Herwege 320c3f57b2
Persistence edit: Support excluding items or groups (#2896)
Ability to exclude items or groups from persistence configurations.

Refs https://github.com/openhab/openhab-core/pull/4468.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-08 16:25:40 +01:00
Chris Jackson 92dd646387
Add Log Viewer to MainUI (#2884)
Closes #2883.
This adds a basic log viewer into the Main UI, and displays the logs
from openHAB log file using a websocket connection.

## Overview 

This adds the log viewer to the Developer Tools -:

The main logger window is reasonably simple, and a little busy. Log
entries are styled with a background color:
red=error, yellow=warn, greed=info, grey text = trace, no change = debug.
The window scrolls horizontally - the time column
remains fixed, but the log level, class and message scroll left/right.
This allows the user to effectively remove these columns if they desire
by simply setting the horizontal scroll point accordingly.

Across the top in the navbar and the bottom toolbar are a bunch of status and configuration
data/buttons. These are:

* Play button: Continues receiving/processing logs if paused / stopped.
* Pause: Continues to receive logs from openHAB, but doesn't add them to
the display, so the display is static. When Play is pressed, the filter
is updated, so any recent entries will be added.
* Stop: Stops receiving data from the server. The websocket connection
is disconnected - this ensures there is no change to the local buffer.
* Filter input box - this filters the display to display only text in
either the logger name or message containing the filter text (case
insensitive).
* Time of the oldest and latest log entries held in the local buffer.
* Number of log entries currently displayed and in the buffer.
The color of the badge is green if all are displayed, orange if some are
filtered out, or red if the max size of the buffer (2000) is reached.
* Download: Downloads a CSV of the filtered log file for further
processing.
* Copy: Copies the log as HTML to the clipboard. This allows pasting of
the filtered log complete with highlighting.
* Delete: Clears the log buffer.
* Exclamation: Shows `ERROR` logs even if they would otherwise be
filtered out.
* Pen: Configures highlighting (more on this below).
* Cog: Configured logging (more on this below).
 
## Highlighting 

The UI allows the user to add any number of text elements that will be
highlighted. The user can specify a colour, and enable and disable if
the highlighting is active or not. The list of highlights is saved
locally.

## Log Settings 

The user can directly manipulate log levels. This allows the user to
simply change the log level for existing packages, or delete the log
entry (restoring it to default) or adding a new logger for a custom
package. If adding a custom package, this gets added as `WARN` level (it
uses the log level provided in the `ROOT` logger), which can then be
changed in the dropdown.

Also-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2024-12-08 14:11:14 +01:00
openhab-bot 1a208e77b6
New Crowdin updates (#2903) 2024-12-08 11:04:55 +01:00
lolodomo 7d80bbeb0e
[BasicUI] Replace OK by CLOSE in the 2 color pop-ups (#2895)
Also make the button label translatable.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-12-07 12:38:54 +01:00
lolodomo d6cc3419ff
[BasicUI] Fix unit determination for min/max from item state description (#2894)
Concerns the Colortemperaturepiucker element.

---------

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-12-07 12:38:10 +01:00
Florian Hotze 1258cf0e6a
Config sheet: Always show advanced params only if changed from default (#2888)
Improve code from #2313.
Closes #2879.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-03 21:08:39 +01:00
Florian Hotze d432f3bde7
Thing: Fix dirty warning shown on deletion if unsaved changes (#2892)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-01 15:26:12 +01:00
Florian Hotze f7352894a1
Channel copy: Fix changed config discarded (#2891)
Fixes https://github.com/openhab/openhab-core/issues/4458.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-01 13:27:26 +01:00
Florian Hotze ecb2cae390
Widget action taphold: Hide context menu in desktop browser (#2886)
Fixes #2808.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-30 22:12:08 +01:00
Wouter Born c1da41f909
Update bnd to 7.1.0 (#2885)
For release notes, see:

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

Signed-off-by: Wouter Born <github@maindrain.net>
2024-11-30 21:38:36 +01:00
Mark Herwege 09b153c388
Sitemap editor: Add support for color temperature picker (#2880)
Closes https://github.com/openhab/openhab-webui/issues/2852.

Refs https://github.com/openhab/openhab-core/pull/4420.
Related to https://github.com/openhab/openhab-core/issues/3891.

This implements configuring a color temperature picker in the sitemap builder UI.

It also does some visualisation improvements of names and labels (by
defaults shows item label in treeview, analogous to model treeview).

---------

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-11-30 14:50:33 +01:00
jimtng 1e0b7deaf6
[BasicUI] Align and optimize available space for switch with mappings (#2388)
- Should only affect switch with mappings, not player control
- Utilise the wasted space instead of wrapping the buttons into multiple
rows, if possible.
- Right align the buttons. This makes it look _much_ neater.
- Instead of limiting the width of the buttons, reserve a minimum width
for the label
- However if the label is shorter than 6 characters (including blank
labels), reduce the label's minimum width to just what's actually taken
up by the shorter label. This gives more space for the buttons with
shorter labels.
- When buttons wrap to multiple rows, make sure that each row contains
almost the same number of buttons, instead of having the first row
filling up the horizontal space, move the buttons down. By doing this,
there is more space for the label to occupy.
- Squeeze extra space for more buttons in "condensed layout" by reducing
padding, inter-button gaps, min-width, etc.
- The reduced padding in condensed layout also affects buttons in
buttongrid.

Before:
<img width="1130" alt="image"
src="https://github.com/user-attachments/assets/6bb010b7-d8e3-42bf-a3ae-0236e3ca3601">



After:

<img width="1127" alt="image"
src="https://github.com/user-attachments/assets/395b2440-532b-41f1-8369-c9963ebe84b7">

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-11-30 14:12:34 +01:00
Siegmar Immel b06c21f055
oh-context: Improve parameter descriptions (#2868)
Added info about changeability of elements to the parameter description.

Signed-off-by: Siegmar Immel <36704892+SiggiFR@users.noreply.github.com>
2024-11-29 18:34:35 +01:00
openhab-bot db99e5846e
New Crowdin updates (#2843) 2024-11-29 18:21:02 +01:00
stefan-hoehn ed54bf6d23
Canvas Interactive SVG: Prevent image caching & Add id in config dialog (#2881)
prevent url caching in edit mode, 
add svg element id to dialog title

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-19 00:38:42 +01:00
lolodomo d5a0748b32
[BasicUI] Add preview color to Colorpicker widget (#2873)
Also cleanup class ColorpickerRenderer

---------

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-18 08:58:09 +01:00
Florian Hotze 7c3d114750
oh-chart: Only include boundary & Item state if now between start/end time (#2878)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-17 22:46:54 +01:00
lolodomo e067305f32
[BasicUI] Fix selection of color temperature near min and max (#2871)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-17 18:20:59 +01:00
stefan-hoehn e1990669e0
Interactive SVG background: Allow processing whole SVG group for state (#2872)
Allows to flash and handle state on whole SVG groups without a proxy by
using the group's path elements instead, e.g. this whole group can be used directly

---------

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-16 18:43:42 +01:00
Florian Hotze e3daf94577
oh-label-card: Hide label if no label or Item configured (#2874)
This fixes an issue where "-" was displayed as label in that case, which
was very annoying when using the label card only for displaying an icon.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-16 18:06:44 +01:00
Florian Hotze 45dd117f9a
oh-image-card: Fix too much padding when no action configured (#2869)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-13 23:32:53 +01:00
Florian Hotze 549112b1bb
Thing actions: Respect action visibility (#2867)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-11 13:42:36 +01:00
Florian Hotze 90210ae986
Fix hsbToRgb util & Fix conversion in oh-canvas-embedded-svg-mixin.js (#2866)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-10 22:02:46 +01:00
Florian Hotze 7e8a03e5cc
Thing action popup: Fix invocation of action with signature hash (#2865)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-10 21:56:28 +01:00
stefan-hoehn 180cd785b9
oh-canvas: Fix exception on empty initial svg config (#2864)
This fixes a nasty bug on initial setup of an embedded SVG that has no configuration yet.

---------

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-10 15:02:38 +01:00
stefan-hoehn 3dfe023fa6
Canvas layout: Add interactive SVG support (#2787)
This is major contribution to the fixed canvas layout which allows
an SVG background to become an active part of the page. Through this
feature the SVG itself can become an active component of the page.

Keep in mind: it is not a replacement for widgets ... widgets can and
should still be used but it allows the background itself to be as
interactive as a widget.

---------

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-09 19:04:13 +01:00
Florian Hotze 3d0ac0b001
Config param time & datetime: Fix seconds support (#2863)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-09 18:24:31 +01:00
lolodomo 9e1a25df68
[BasicUI] Implement new sitemap element Colortemperaturepicker (#2851)
Related to openhab/openhab-core#3891

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-09 17:12:18 +01:00
Florian Hotze 1e4e69e018
oh-colorpicker: Fix color picker sends commands on external state change (#2860)
Fixes #1268.
Fixes #2849.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-06 14:12:51 +01:00
Florian Hotze e32700f4a4
Model (picker): Fix toolbar checkbox issues with safe areas (#2861)
Fixes #2718.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-05 20:14:23 +01:00
Florian Hotze 1612d507f9
Add-ons store: Improve card sizing on desktop (#2859)
Use grid instead of flex with a minimum card width and automatic sizing.
Looks nearly the same on smaller screens and much better on large
screens.

Also limit width of single add-on card in swiper component as a
safeguard.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-03 00:03:54 +01:00
Florian Hotze 7602f7156a
Thing copy: Keep label (#2858)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 02:26:57 +01:00
Florian Hotze 00e7f10408
Pages list: Don't allow selecting overview page for removal (#2856)
The overview page cannot be removed, so do not allow to select it for removal.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 00:26:37 +01:00
Florian Hotze c74af2dad3
Implement copy functionality for Things, Items, scenes & scripts (#2855)
Also improve the rule copy code.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 00:20:05 +01:00
Florian Hotze 3022654195
Rule/Scene/Script edit: Block addition of reserved tags (#2854)
Do NOT allow the addition of the scene tag outside the scene editor and
addition of the script tag outside the script editor.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 22:53:34 +01:00
Florian Hotze 4dfdc981f4
oh-cell: Fix safe-area issues (#2853)
Fixes #2844.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 22:18:30 +01:00
Florian Hotze 4f35c14dc9 Thing action popup: Fix regression from #2850.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 21:49:30 +01:00
Florian Hotze 36b578a447
Thing action popup: Improve rendering of output value (#2850)
This allows to display JSON-stringified versions of objects as returned
from the API.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 12:49:09 +01:00
Florian Hotze 90ce12573d
Config param time & datetime: Add support for seconds (#2848)
This allows setting the step size for date and datetime contexts, which
makes the UI display seconds if the step size is 1.

Refs #2847.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-30 17:04:21 +01:00
Yannick Schaus 21e429a3e7
Add bottom padding below advanced checkbox in config sheet (#2846)
Signed-off-by: Yannick Schaus <github@schaus.net>
2024-10-29 20:58:04 +01:00
openhab-bot 9b55947508
New Crowdin updates (#2829) 2024-10-29 00:02:35 +01:00
Florian Hotze 183f8f9d67
Thing action popup: Multiple improvements (#2840)
- Default to action input name if no label provided
- Use label for action output "result" if provided
- Display action output descriptions if provided

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-27 15:52:36 +01:00
Florian Hotze deadfdb6ab
Thing actions: Hide if no actions available & Merge with UI actions (#2839)
Fixes https://github.com/openhab/openhab-webui/pull/2834#issuecomment-2439904745.
Shows UI actions (currently only Z-Wave network map) with the Thing actions instead of the deprecated config actions.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-27 11:01:52 +01:00
Florian Hotze acb464a36e
Config parameter: Implement `date` and `datetime` contexts (#2838)
Closes #2816.
Depends on https://github.com/openhab/openhab-core/pull/4428.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 20:49:21 +02:00
Florian Hotze c6dda3cdfd
Fix flickering of list pages when updating (#2837)
Fixes Items list flickering when an Item is added, updated or removed.

Fixes the same issue for other lists, where this is a regression from
#2823 and #2827.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 14:13:40 +02:00
Florian Hotze 54b96e756e
Addons swiper: Fix single addon card width in landscape orientation (#2835)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 02:18:17 +02:00
Florian Hotze b9edd9767b
Thing actions: Sort by label, Show description, Hide unsupported actions (#2834)
Follow-up for #2818.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 01:45:00 +02:00
Florian Hotze 3166955eb9
Addons store: Multiple styling improvements (#2833)
Follow-up for #2216.

- Do not use addon swiper on iPad.
- Revert addon card size changes.
- Show more addon cards in swiper in landscape mode.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 01:19:47 +02:00
Florian Hotze c225819684
Number parameter: Allow configuring any step size/number of decimals (#2832)
By setting step size to 0 in a config description parameter, one can
allow any step size i.e. the user can enter as many decimals as he wants
to.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-25 18:24:20 +02:00
Florian Hotze 574c313fde
Addons store: Use swiper for addon cards on mobile & Reduce size of addon card on desktop (#2216)
Fixes #2205 and fixes #1668.

This slighly reduces the addon card size on desktop and uses a swiper
(like in many app stores) instead of a flex on mobile.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-25 13:56:15 +02:00