This adds support to the developer sidebar search to search persistence
configs by:
- serviceId
- label
- Items included in them
It also fixes a styling issue, where tools where to close to the search
bar and search results were far away from the search bar.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#2027.
When a script inside a rule was opened, the UI always saved the rule
before navigating to the script editor. With this fix, the rule is only
saved if there is a change to save. If the rule hasn't been changed, no
save request is performed.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#1334.
Fixes#1702.
After editing or removing an Item, the searchbar of the Items list was
sometimes not working anymore. Console then showed this error:
```
TypeError: undefined is not an object (evaluating
'n.virtualList.params')
```
It seems that this was caused because the replaceAllItems operation was
applied on the virtual list without re-rendering the searchbar
afterward.
The search query was forgotten when the Items list reloaded or the
Items list page was re-entered from an Item detail page.
This is also fixed by using `$f7.data` to store the query.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
- Refactor rule & scene settings into rule-general-settings Vue
component and use this component on rule-edit, scene-edit pages and
inside script-general-settings component.
- Replace semantic tag picker & custom tag input with accordion tag
input (inspired by #2078) and show number of tags.
- Refactor shared code from rules & scenes into mixin
(`rule-edit-mixin.js`).
- Fix Scene tag is not hidden from tag input.
- Show number of tags on page settings page, follow up for #2078.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Related to https://github.com/openhab/openhab-core/pull/3481.
Closes#2108.
- Ensures that the internal unit is set when an Item is created, so that
in case the system unit changes (i.e. measurement system changes)
persisted data does not get corrupted.
By default, the unit metadata is set to the system default unit, however
the user can easily change that on Item creation.
The unit can also be changed later as it is just normal metadata,
however this can corrupt persisted data.
- Adds the ability to set state description pattern when creating a UoM
Item.
- Shows the group type for groups, e.g. `Group (Number:Temperature)`
instead of just the Item type.
This applies to both the Items and the model page.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fix#2142
Add a border to the popup.
Also update the separator color (make it more visible) in dark theme.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Fixes#665.
Provides a button to expand or collapse the model tree while searching.
Note: I didn't implement an auto-open because I felt it would be rather disturbing.
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Adjust sitemap configuration in main UI for recent changes in sitemap
chart period configuration, see https://github.com/openhab/openhab-core/pull/3863.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
The period parameter syntax was extended.
Depends on openhab/openhab-core#3863
Also add few new default periods in the selection of chart period
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Depends on https://github.com/openhab/openhab-core/pull/3806.
1. Have the setup wizard propose these addon suggestions (as a
complement to the hardcoded recommended addons).
2. List the addon suggestions on top in the addon store page.
---------
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Extends the developer sidebar search to sitemaps, where uid, label and
slots are searched for the query.
Case is ignored.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This is meant to mainly help first time contributors where to start, but
it should also be quite practical for existing contributors and save
them some time looking up stuff.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Closes#2123.
This adds filtering by tags to the rules list, the filter is inside an
accordion.
In case you select multiple tags, the filter behaves like OR, which
means all rules which have at least one of the selected tags are
displayed.
In case you use the searchbar, the rules list will be narrowed down to
the rules which match the search query and have the selected tags.
---------
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Dmitry P. (d51x) <dimonich110@gmail.com>
Fixes#2139.
This adds a new toNumber block in the Math section that parses to float (I
think we don't need both parseFloat and parseInt).
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Closes#2058.
This converts the developer sidebar into a multipurpose dock.
It keeps the previous developer sidebar as the `Tools` panel and adds a
`Help` panel.
The new `Help` panel contains 4 different sections:
1) A context dependent section that will show basic help for the
administrative page currently viewed. These pages give basic
definitions, some simple tips and links to the relevant full
documentation.
2) An add-on section that lists all the currently installed add-ons and
provides direct links to their documentation pages.
3) A FAQ section for simple answers to common questions with internal
links to help guide the users, some external links to relevant
resources, and links to documentation pages providing more details about
the question.
4) A Quick-Start section that guides a new user with click-by-click
instructions for everything from binding installation to adding a widget
to a MainUI page with links to the detailed Getting Started Tutorial for
each step. This section is opened by default when an administrator opens
a new MainUI instance with no configured overview page (i.e., most
likely a new user).
All of the main setting list pages and the overview page now have a help
icon in the navbar that toggles the help dock.
FAQ and Quick-Start data are stored in separate JSON formatted files for
ease of addition and maintenance.
------
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
The docker environment is (unfortunately) kept. It can be used to
compress SVG files. Conversion from SVG into PNG format has been
commented in the script .convert.sh.
Closes#2071Closes#1768
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
It seems that Bountysource has been shut down as the website isn't
reachable anymore and they don't respond to support mails.
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Use of a dictionary to store audio sources currently playing and stop
them all when asked to.
Refs https://github.com/openhab/openhab-core/pull/3766.
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Make the blocks say "Cancel [private|shared] timer XXX" and "after xx
reschedule [private|shared] timer XXXX"
Also put the reschedule block right after cancel.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Fixes#2153.
Regression from #2055.
MainUI was broken on older iOS versions, e.g. 15.8, because RegEx
lookbehind assertions were introduced with Safari 16.4.
This uses split by string instead and adds an ESLint rule to forbid
the usage of RegEx lookbehind assertions.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
The temperature badge shows both the measured temperature and the
temperature setpoint in the form "measurement_value (setpoint_value)",
e.g. 20° (21°).
This introduces the same format for
humidity badge by showing humidity setpoint in addition to humidity
measurement.
Signed-off-by: Alexander Antonov <alexxys@gmail.com>
Closes#2143.
Only render model-card if `visible` computed property is `true`.
Hide divs in model-tabs which do not have a visible model-card.
Signed-off-by: Thomas Wunschel <thomas.wunschel@twistsolutions.de>
Fixes#2149: Syntax validation errors when command mappings contain special characters like [ and ].
Sitemaps now support icon rules and AND conditions in icon, color and visibility rules.
Mappings now also support an icon.
This PR introduces support to configure this in the sitemap editor.
It also contains a fix for staticIcon support.
Depends on https://github.com/openhab/openhab-core/pull/3850.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>