Commit Graph

1340 Commits (37cfea28623475c8f5d5da9aaec9bf34ac94664e)

Author SHA1 Message Date
Yannick Schaus 9cacb7c510
Add-on store: rename Blockly libraries to Block libraries ()
Signed-off-by: Yannick Schaus <github@schaus.net>
2024-02-24 09:46:32 +01:00
Florian Hotze def6effa21
Script & Item edit: Add/Fix dirty handling ()
- Add dirty handling for script-edit.
- Fix dirty handling of item-edit always saying dirty due to wrong
initialization order.
- Code improvements to other dirty handlings.
- Styling improvement to script-general-settings.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-23 17:48:55 +01:00
dependabot[bot] 57ed2da295
Bump ip from 2.0.0 to 2.0.1 in /bundles/org.openhab.ui.basic ()
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 12:12:37 +01:00
Florian Hotze a1f509133a
Change the default navbar style from orange to light for light theme ()
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-23 12:11:22 +01:00
Florian Hotze 843ee90c25
Persistence edit: Fix dirty for new persistence & Improve const handling ()
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-23 11:51:27 +01:00
jimtng 6927c7f9a8
Fix link to persistence doc ()
Regression from .

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-23 11:19:56 +01:00
jimtng e2292461f9
Update links to addons store ()
To match changes in .

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-23 10:21:00 +01:00
jimtng 6b7e1c479a
Add-on Store: Add sub menu items & various improvements ()
Resolves .

- Installed addons are grouped by category in the main Add-on Store section.
- Search in the main "Add-on Store" menu will search all types of addons.
- Search in the corresponding section will only search for add-ons for that category.

The subsections are implemented as routable tabs, so switching around the different sections is fast.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-23 01:14:42 +01:00
jimtng bfa2d4a44e
Add-on list: Top align the install buttons ()
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-22 22:01:33 +01:00
jimtng 3893abde19
Model Treeview: Remember the expanded state ()
Applies to both the model page and the model picker popup.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-22 21:55:45 +01:00
Mark Herwege 9704404968
Sitemap editor: Add slider releaseOnly parameter support ()
Closes .

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-02-22 21:52:25 +01:00
jimtng 94ccd311c3
Fix semantics picker alignment class ()
Missed these in .

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-22 21:44:46 +01:00
Mark Herwege 3a93123fc5
Persistence edit: Change empty-state-placeholder icon ()
Change the icon shown when no persistence is configured to be the same as the icon on the settings page.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-02-22 21:38:17 +01:00
jimtng ff034d5ed2
Update links to the add-ons store ()
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-20 18:49:07 +01:00
jimtng b30b7e2e18
Developer sidebar icon: Check for admin role ()
Fix https://github.com/openhab/openhab-webui/pull/2369#issuecomment-1951462800.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-19 17:51:03 +01:00
jimtng c703f4b23e
Rule edit: Generate suggested trigger title only when none is available ()
This lets the helper library provide a more accurate label for custom triggers.

Related: https://github.com/openhab/openhab-jruby/pull/254.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-18 19:28:33 +01:00
Florian Hotze 260389bd4d
Item edit: Fix code tab not working properly ()
This was due to bad ready handling, where the code editor was
initialized with not editable because the Item was not loaded yet.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-18 17:23:47 +01:00
jimtng a5869f3996
Label and style all UID elements consistently ()
Resolve .

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-18 15:59:35 +01:00
jimtng 3f024771dd
Rule & Script editor: Various improvements ()
- Remove/hide non-functional title/description input fields in the initial Add Trigger/Action/Condition for the rule editor. 
- When editing a rule module, set the popup title to reflect the type of module, i.e. "Edit Trigger", or "Edit Condition"
- Changed the link on the top right corner from `Done` to `Save`
- Removed the pencil icon for consistency.
   Previously, Cron and Scripts have a pencil icon which goes to the Edit module popup vs clicking directly on the line goes directly to Cron Builder, or Script Editor.
   Now with the pencil icon gone, cron will go into the Edit module popup, which can lead to the cron builder from there, and Scripts go directly to script editor.
   Changing the script title/description is possible from
within the script editor's bottom area as shown below.

Script Editor:
- Change the title of Script Editor, from "Edit Script" to better clarify what type of script is being edited.
- Add the ability to change the script's title and description after they're created.

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-18 13:24:00 +01:00
jimtng af6174b9dc
Add a global component developer-dock-icon ()
Also add the icon to widget-list and script-edit pages.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-18 11:56:31 +01:00
Florian Hotze 26673dc9f6
Help sidebar: Fix wrong section in developer tools ()
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-17 21:17:45 +01:00
jimtng 6b8293548d
Developer sidebar: Add clipboard icons ()
Add clipboard icons to the search results and the pinned entities to copy their IDs.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-17 21:02:03 +01:00
jimtng f95709c3c8
Fix rule module editor popup for blockly ()
Currently for Blockly Script Action or Condition, clicking on "Edit module" the pencil icon would open up rule-module-popup,
which allows user to edit the raw javascript directly without regard to the blockly's block code.

This PR changed it by replacing the configuration sheet with a button that leads to the blockly editor.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-17 20:26:15 +01:00
Florian Hotze add0b91a6b
Persistence edit: Make page title dynamic & Fix delete back navigation ()
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-17 20:11:19 +01:00
Florian Hotze 644a1fc7b6
Add-on config page: Fix dirty handling ()
Fix regressions & leftovers from .

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-17 18:44:34 +01:00
Florian Hotze 2c0182940b
Help sidebar docs: Fix external anchors & Script editor RegEx ()
- Fixes an issue reported in
https://github.com/openhab/openhab-webui/pull/2322#issuecomment-1948875309
where external anchor hrefs did not work.
- Fixes an issue where the script editor docs were shown on the
`/settings/scripts/` page.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-17 12:16:37 +01:00
Wouter Born a565bf2d12
Upgrade GHA dependencies ()
This fixes the following deprecation warning:

> Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20

Signed-off-by: Wouter Born <github@maindrain.net>
2024-02-17 11:18:05 +01:00
Jeremy 344779acfa
Fix alexa thermostat attribute parameters ()
Breakage introduced by 

Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-02-16 22:10:26 +01:00
jimtng 02317ea716
Add back the 'When' prefix for file-based script trigger titles ()
Fix regression from .

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-16 11:27:20 +01:00
Florian Hotze 18db55db26
Model page & Model Item picker: Don't remember "Show non-semantic" checkbox ()
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-16 10:39:06 +01:00
Florian Hotze 72f5637d01
Model page: Remember checkbox settings ()
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-15 20:43:35 +01:00
Florian Hotze e3fae0b051
Thing create: Fix bridge can't be selected ()
Regression from .

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-15 19:21:10 +01:00
jimtng 95c33a34b6
item-form.vue: Various (layout) improvements & Refactor tag-input.vue ()
- Make type, dimension, unit, semantic class and semantic property all lined up with name, label, category.
- Slightly shift category icon to the right to line it up with the rest.
- Move the group section directly underneath the Item type.
- Make the item form fields update their states after switching back from the Code editor.
- Show the parent groups similar to how tags are displayed.
- Minor bug fixes.

- Refactor tag-input.vue:
  - Make tags always extended.
  - Show zero when there are no tags.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-15 19:15:18 +01:00
Florian Hotze 80a172eab3
Home edit: Fix model card settings drop-down not accessible ()
Fixes issue mentioned in
https://github.com/openhab/openhab-webui/pull/2144#issuecomment-1784114001.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-15 15:57:07 +01:00
jimtng 735bf987ff
Accept double click to pick an Item in model picker popup ()
Allow double clicking to select an item here, without having to click "Pick" at the top right corner.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-15 14:26:52 +01:00
jimtng e2d2ca6a20
Remove padding in list grouping toolbar ()
Minor cosmetic change.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-14 19:38:34 +01:00
jimtng b30030fdda
Remember checkbox settings in model picker popup ()
Remember these checkboxes so they don't need to be re-checked every time.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-14 19:36:40 +01:00
jimtng 85f21bbec6
Rule edit: Fix undefined currentSection error in trigger-module-wizard ()
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-14 19:19:56 +01:00
jimtng 762b4b2a87
Rule edit: Remove redundant module title prefix ()
See https://github.com/openhab/openhab-core/pull/4090.

- When/If removed
- Added prefix "item", "thing", similar to "channel"
- play sound "xxx.mp3"
- thing changed -> thing status changed

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-14 19:09:53 +01:00
jimtng b88fa5dc43
[blockly] Fix console warnings when switching to Math ()
Fix this to avoid a whole bunch of these warnings were logged when
switching to math category

```
blocks-math.js:302  CodeGenerator init was not called before blockToCode was called.
blocks-math.js:303  CodeGenerator init was not called before blockToCode was called.
```

This is a quick and dirty solution without doing a bigger refactoring

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-13 22:12:45 +01:00
jimtng b10244dd1a
[blockly] Fix incorrect field names ()
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-13 22:10:41 +01:00
jimtng 979bfb1832
[blockly] Fix persistence block ZDT disconnection ()
Fix so oh_get_persistvalue block does not unnecessarily disconnect the
ZDT input every time a different methodname is selected.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-13 22:06:39 +01:00
jimtng 76aebaf08e
Fix item-add save ()
Regression from  causing a new item unable to be created / saved.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-13 10:23:49 +01:00
lolodomo 24a7bf05b8
[BasicUI] Show buttons on several lines when not enough place ()
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-02-11 18:34:34 +01:00
JustinGeorgi 946b499f6d
Allow custom page icons ()
This adds the ability to set custom icons for pages. The custom icons
can be any icons available to the the oh-icon component. They are
visible in the side bar and in the page settings list.

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-02-11 11:59:37 +01:00
JustinGeorgi 7c78241eb6
Fix sidebar search scene and script integration ()
Fixes a few minor error with scripts and scene in the developer toolbar
search function:
1) Scenes and scripts could be pinned but not unpinned
2) Scenes and scripts were not enumerated with the other types for
determining existence of search results

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-02-11 11:53:39 +01:00
Florian Hotze ee5adb92fa
Sidebar help: Add script editor docs ()
Depends on https://github.com/openhab/openhab-docs/pull/2231.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-10 17:30:57 +01:00
Florian Hotze 75bac51626
Fixes & Improvements to persistence edit, channel details & doc links logic ()
- Improve doc link logic and use Vuex store for the openHAB website url.
- Channel info: Fix clear buttons displayed even if not editable.
- Persistence edit: Fix styling issues.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-10 17:30:38 +01:00
Florian Hotze 6ed621e92f
Settings page: Improve loading behaviour ()
Fixes .

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-10 00:21:18 +01:00
jimtng 98271e57ca
Item edit: Fix semantic class cleared when property set to None ()
On the Item Editor:

Current behaviour, when we have:
Semantic Class: Control
Property: Light

When changing Property to None, it would clear Semantic Class "Control"
too.

The Fix is not to clear the Semantic Class.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-09 23:17:44 +01:00