Commit Graph

1594 Commits (1cc0b830a6f28f78ca34bd944f40561f08652d12)

Author SHA1 Message Date
Florian Hotze 84b0fdce25
Remove unnecessary !important from block style fixes inside f7-card (#2804)
Minor regression from #2801.

This fixes difficulties with overwriting that style in widgets.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-09 17:03:05 +02:00
Florian Hotze 2dc7d721a1
Fix style regressions from #2801 (#2803)
Regression from #2801.

During testing, it looked good, but in production it introduced some
styling issues.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-07 01:27:27 +02:00
Sven Killig 3efc1a8902
Settings pages: Fix double scrollbars by hiding y-overflow in block-narrow (#2802)
Fixes #2788.

Signed-off-by: Sven Killig <sven@killig.de>
2024-10-06 22:43:21 +02:00
Florian Hotze 0767c91ffd
Fix safe area styling issues with card and card contents (#2801)
This fixes ugly styling issues with too large margin/padding on iOS
devices due to safe areas getting applied to children of f7-card, even
though f7-card already respects the safe areas.

-----

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-06 21:28:00 +02:00
Florian Hotze 0a3fb925e0
Revert "Change the default navbar style for non-desktop to simple navbar" (#2799)
Reverts openhab/openhab-webui#2791
2024-10-06 14:44:33 +02:00
Mark Herwege 6c46b7953a
Sitemap editor: Add Buttongrid Button support (#2755)
Refs https://github.com/openhab/openhab-core/pull/4377.

The most recent addition to the sitemap syntax allows defining buttons
nested as components inside the Buttongrid component.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-10-04 22:53:30 +02:00
Florian Hotze 2975d78f7e
Add version and commit to UI during production build (#2796)
This sets the version in the Framework7 parameters to the build version during production build,
and adds the commit hash to the Vuex store so it can be displayed on the about page.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 21:42:48 +02:00
Florian Hotze d6c8904417
Fix oh-image-card action regression (#2795)
Regression from #2781.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 20:51:20 +02:00
Florian Hotze 2c28db9f32
Fix oh-gauge-card action regression & Improve oh-card docs (#2794)
Fixes #2793.
Regression from #2781.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 18:59:53 +02:00
Florian Hotze 6dc8c4b1df
Item details: Show group function for group Items if defined (#2792)
Closes #1483.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 17:12:38 +02:00
Florian Hotze 4e341fdc57
Change the default navbar style for non-desktop to simple navbar (#2791)
Discussion in
https://community.openhab.org/t/permastore-ui-look-options/152052.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 17:06:31 +02:00
dependabot[bot] b53cc919bd
Bump path-to-regexp from 6.1.0 to 6.3.0 in /bundles/org.openhab.ui/web (#2784)
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) from 6.1.0 to 6.3.0.

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 14:31:53 +02:00
Florian Hotze e2c3c53d29
Thing details: Fix config action Thing config modification (#2786)
Follow-up for #2775.
Fixes #2782.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 21:40:19 +02:00
Florian Hotze e27280776f
Fix meta tag apple-mobile-web-app-capable deprecation warning (#2783)
igned-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 18:24:16 +02:00
dependabot[bot] 937e1ef4c5
Bump rollup from 2.79.1 to 2.79.2 in /bundles/org.openhab.ui/web (#2769)
Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 2.79.2.

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 18:06:04 +02:00
dependabot[bot] 32b4a994ac
Bump send and express in /bundles/org.openhab.ui/web (#2762)
Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express).
These dependencies needed to be updated together.

Updates `send` from 0.18.0 to 0.19.0
Updates `express` from 4.19.2 to 4.21.0

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 17:54:57 +02:00
Florian Hotze dcbc549245
Refactor card widgets to use a shared base component (#2781)
Supersedes #1801.

Implements the proposal from
https://github.com/openhab/openhab-webui/pull/1801#issuecomment-1475172733.

-----

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 17:45:35 +02:00
Florian Hotze 4785cfaeb9
oh-canvas-layout: Allow overriding style (#2780)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 13:16:29 +02:00
Florian Hotze d78e6d9470
Thing details: Fix config action saves the whole Thing (#2775)
A Thing config action is only supposed to save the config of the Thing,
not the whole Thing.

Fixes https://github.com/openhab/openhab-core/issues/4380.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 11:19:48 +02:00
Florian Hotze bdb54a54c7
System & Add-on settings: Add dirty indicator & Improve dirty handling (#2779)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 23:03:29 +02:00
Florian Hotze e500ffe0dd
Item metadata: Improve dirty handling & Fix description metadata always dirty (#2778)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 23:02:37 +02:00
Florian Hotze 851d2507ce
oh-rollershutter: Use displayState if available & Improve styling (#2777)
Fixes #2612.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 22:19:34 +02:00
Florian Hotze e007ccd1b0
Thing add page: Fix header styling for input field (#2776)
Follow-up for #2771.
Fixes
https://github.com/openhab/openhab-webui/pull/2771#issuecomment-2383783450.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 22:01:26 +02:00
Florian Hotze 91c7c16e4d
Z-Wave network map: Fix ECharts deprecation warnings (#2774)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 17:57:50 +02:00
Florian Hotze 1ea84a134f
Config sheet: Properly handle null as configuration value (#2773)
This fixes an error that was previously thrown.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 17:11:35 +02:00
Florian Hotze e742d7a13d
Persistence edit: Fix wrong config parameter type definitions (#2772)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 16:31:23 +02:00
Florian Hotze 38a486a291
Thing add page: Add support for optional scan input (#2771)
Refs https://github.com/openhab/openhab-core/pull/4389.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 15:32:35 +02:00
lolodomo 97d1d416ce
[BasicUI] Hide header row for MJPEG video when visibility is disabled (#2764)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-09-28 22:39:17 +02:00
Florian Hotze 217fc060ee
CSP: Allow loading of workers from blob: URIs (#2765)
Fixes issues with VideoJS reported on the community:

https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/26.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-22 00:45:03 +02:00
lolodomo 727b876853
[BasicUI] Fix character encoding of returned page (#2746)
Fix #2681

Concerns only the settings page and the page listing all sitemaps

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-09-17 21:08:34 +02:00
Florian Hotze 529893f371
Script & Transformation editor: Add links to the language reference docs (#2761)
Closes #1915.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 19:37:46 +02:00
Florian Hotze d84eed00eb
Script editor: Extend mode translation for more automation languages (#2760)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 18:20:57 +02:00
Florian Hotze bd70e6b9c1
Transformation edit: Improve dirty handling & Fix settings styling (#2759)
Only mark the transformation as dirty if there was an actual change, not
only an editor input.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 18:20:35 +02:00
Florian Hotze b7e2efead8
Fix dirty indicator blocks subtitles (#2758)
Regression from #2687.

The dirty indicator code blocked the use of subtitles, these were not
showing up anymore.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 18:04:20 +02:00
Mark Herwege 66787288e0
[blockly] Remove Nashorn support & Check for required automation add-on in script edit (#2743)
This PR removes Nashorn support from Blockly and removes all Nashorn 
specific code from the blocks.

When opening a Blockly script, the UI will tell you if the script needs
to be saved again (because the MIME type is for Nashorn or because newly
generated code is different from the saved code).
It will also warn if the JS Scripting addon is not installed.

The Run Now link from the script editor is grayed out when the required
scripting add-on is not installed, and will show a warning when trying to run.

-----

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-16 17:37:15 +02:00
Mark Herwege 05464128b3
[blockly] Add persistence median methods (#2732)
Depends on https://github.com/openhab/openhab-js/pull/376

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-16 15:46:19 +02:00
lolodomo 4ee283a6e4
Update CODEOWNERS (#2745)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-09-13 20:55:56 +02:00
Mark Herwege b293ab1b84
Sitemap editor: Validation improvements (#2720)
Closes #2701.

This PR contains a number of sitemap validation improvements,
interactive, before saving and in the DSL parser.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-13 19:36:25 +02:00
Florian Hotze 850fd48c1b
State description metadata: Allow to select transformations from list (#2752)
Resolves #1944.

When entering a state description pattern, an autocomplete list
is provided containing the available transformations.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-13 19:35:58 +02:00
Mark Herwege d79efb7cec
[blockly] Small improvements to blocks (#2742)
Several small improvements:

- Persistence `previous...State` and `next...State` blocks: add boolean
shadow block for skip same, default false
- Named `timer` blocks: add a `undefined` shadow block for `context`.
- `run rule or script` block: make the parameter dictionnary input a
shadow block

In addition to that, for the `transform` block, 
the transformation dropdown now dependens on the installed transformations.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-12 23:36:15 +02:00
Florian Hotze 920466e3aa
Rules/Scenes/Scripts: Gray out run now button if uninitialized (#2754)
Also improve toast messages in developer sidebar and fix a minor styling
issues for the script settings.

Addresses no. 1 of #2749.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 22:27:06 +02:00
Florian Hotze e958d3717b
Developer sidebar: Show error when trying to run unititialized rule (#2753)
Fixes #2748.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 21:48:59 +02:00
Florian Hotze b207722dd4
Home edit: Fix model tab settings not editable (#2751)
Fixes #2597.
Regression from #2304.

Also minimizes the gap between the Cards title and the reorder button.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 20:59:10 +02:00
Wouter Born 8e357f40df
Add stale action GHA workflow (#2747)
This allows for automatically marking issues as stale and closing them.

We use this in the core/add-ons and distro repos.
The "stale" label needs to be added for this to work.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-09-08 13:14:21 +02:00
Mark Herwege 99a9c0aa18
[blockly] Make HTTP block method name dropdown labels less technical (#2740)
See https://github.com/openhab/openhab-webui/pull/2607#issuecomment-2322954012.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-07 18:02:07 +02:00
Florian Hotze 22a42c3607
CSP: Allow embedding any source (#2741)
Regression from #2714.
This updates Main UI‘s CSP to allow embedding any source.

Fixes issues reported on the community, see
https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/6 and
https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/7.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-03 23:37:56 +02:00
dependabot[bot] ee27cecebd
Bump elliptic from 6.5.6 to 6.5.7 in /bundles/org.openhab.ui/web (#2726)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.6 to 6.5.7.

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 19:12:13 +02:00
Florian Hotze 2dccd471e2
Upgrade webpack from 5.93.0 to 5.94.0 (#2738)
Replaces #2736.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-31 18:53:28 +02:00
Florian Hotze 2a82a44884
[BasicUI] Update CONTRIBUTING.md (#2737)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-31 18:45:48 +02:00
lolodomo f295665469
[BasicUI] Upgrade node/npm/gulp/node-sass tools (#2722)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-31 18:39:53 +02:00