Commit Graph

1414 Commits (14adafb810c41a3c10d9847952ec9724e399355d)

Author SHA1 Message Date
Jimmy Tanagra d99d3bfc86 [blockly] Enable drag mode and move with wheel (#2419)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 23:20:28 +01:00
Jimmy Tanagra 4ee3e54e20 [blockly] Remove cross-tab-copy-paste plugin (#2419)
It conflicts with the multi-select plugin and the same functionality is provided by the multi-select plugin

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 23:20:28 +01:00
stefan-hoehn 5997c28655
[blockly] Add HTTP request block (#2411)
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-02-28 23:04:26 +01:00
Florian Hotze 9096d6de70
Item picker: Disable picker & hide chevron if not yet ready (#2428)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-28 18:41:51 +01:00
Florian Hotze 76e631632f
oh-player-controls: Hide default tooltip (#2426)
Previously, when hovering over a `oh-player-control` component, a
tooltip, which shouldn't be there, was shown.
This was caused by the config title being set as the divs title.
It is now fixed by manually setting title to an empy string.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-28 18:01:55 +01:00
Florian Hotze 4b8c1796c0
Location card: Swap status & measurement badges to avoid layout shift (#2425)
The status badges are displayed based on the actual state of that status
category. This causes the measurement badges, which are always shown to
be either first or second line.

This swaps those, so that measurement badges don't move around anymore.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-28 17:46:13 +01:00
openhab-bot 2255bb79ca
New Crowdin updates (#2357) 2024-02-28 17:31:19 +01:00
jimtng ab96ced901
Help sidebar: Add blockly help page (#2424)
Resolves #2416.
Depends on https://github.com/openhab/openhab-docs/pull/2260.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 17:30:20 +01:00
jimtng 22fe3f00c3
Rule module popup: Add dirty checking (#2412)
This PR adds dirty checking in the rule module popup.

Rule module popup comes up when you're editing a rule's module, e.g.
trigger, action, condition. Previously when you opened the rule module
and made changes, then clicked back, you wouldn't get a warning and the
changes will simply be lost.

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 17:14:49 +01:00
dependabot[bot] 1111f806d2
Bump es5-ext from 0.10.53 to 0.10.63 in /bundles/org.openhab.ui.basic (#2418)
Bumps [es5-ext](https://github.com/medikoo/es5-ext) from 0.10.53 to 0.10.63.

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-28 17:11:46 +01:00
jimtng cc62a8f45e
Settings menu: Fix search bar to include system and addons settings (#2409)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 13:57:37 +01:00
jimtng 5c1aa898f3
Add-on store: Title and searchbar focus tweaks (#2406)
- Display specific title for each tab, but avoid becoming too long on smaller screens.
- Don't autofocus on the search bar on mobile because it opens up the on-screen keyboard and covers up half the screen.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 13:51:53 +01:00
jimtng 4cef66d46e
Material theme: Fix lock icon is visible on editable items (#2403)
Fixes regressions from one of the previous PRs.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 13:38:55 +01:00
Florian Hotze 11c6a7b271
Help sidebar: Reduce list indentation (#2423)
Fixes https://github.com/openhab/openhab-docs/issues/2243.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-28 13:16:13 +01:00
Florian Hotze 6e17810a67
Fix UID copy for not editable channels and transformations (#2422)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-28 13:08:17 +01:00
Jeremy bc7b1e4485
Update alexa networking integration (#2421)
Related to https://github.com/openhab/openhab-alexa/pull/660.

Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-02-28 13:07:49 +01:00
jimtng 565844f8c8
Blockly Editor: combine renderer selection and show item label icons (#2415)
The current icons are too crowded for mobile devices. This PR combines
the renderer choice and the show labels into one icon.

Before
<img width="409" alt="image"
src="https://github.com/openhab/openhab-webui/assets/2554958/8c294ca4-8fce-4379-9635-fd4e053fc77c">

After
<img width="434" alt="image"
src="https://github.com/openhab/openhab-webui/assets/2554958/d04b59ef-50bf-4783-aab1-99493a8c9cf3">

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-26 17:21:15 +01:00
jimtng e2738b5d6b
Overview tab: Fix javascript error (#2414)
Fixes this error:
```
app.30bb9074a7a632ce30a5.js:2 TypeError: Cannot read properties of undefined (reading 'length')
    at i.overviewPage (app.30bb9074a7a632ce30a5.js:2:1827039)
    …
```

Also refactor the code for better readability.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-26 15:59:12 +01:00
jimtng 3b694d2680
[blockly] Add renderer switching (#2315)
This adds a little button on the bottom of blockly workspace to allow
switching the renderer on the fly.
The choice is saved in `localStorage`.

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-25 10:19:42 +01:00
jimtng 8b2e548c88
[blockly] Upgrade Blockly from v9.2.0 to v10.4.2 (#2310)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-24 17:34:23 +01:00
Florian Hotze 97ae723a42
Item edit: Fix dirty warning for not-editable Items (#2408)
Follow-up for one of the previous PRs.

Fix Item dirty warning for:
- Item not editable, but warning still displayed
- editable group Item

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-24 17:29:45 +01:00
Florian Hotze e32d5a7509
Add-on store: Fix toolbar style & material design logo (#2407)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-24 16:18:26 +01:00
Florian Hotze 69f487611f
Add support for SVG add-on logos (#2402)
Currently, Main UI attempts to load all add-on logos as PNG (the add-on
logo url is generated using the add-on name and expecting a PNG).

This PR adds support for SVG add-on logos, which means: 
The UI will now attempt to load a SVG logo, 
if that fails, it will attempt to load a PNG, 
and if that fails, fall back to the add-on‘s default logo (which is
dependent on the add-on type).

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-24 15:04:05 +01:00
jimtng 6272434ee7
Only align smart-select on wider screens (#2405)
On smaller screens, it's better to stick with standard styling

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-24 13:53:20 +01:00
Yannick Schaus 9cacb7c510
Add-on store: rename Blockly libraries to Block libraries (#2404)
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 (#2374)
- 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 (#2383)
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 (#2288)
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 (#2399)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-23 11:51:27 +01:00
jimtng 6927c7f9a8
Fix link to persistence doc (#2398)
Regression from #2339.

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

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 (#2381)
Resolves #2047.

- 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 (#2385)
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 (#2387)
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 (#2390)
Closes #2345.

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

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 (#2391)
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 (#2380)
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 (#2378)
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 (#2377)
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 (#2375)
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 (#2336)
Resolve #2335.

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 (#2362)
- 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 (#2369)
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 (#2373)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-17 21:17:45 +01:00
jimtng 6b8293548d
Developer sidebar: Add clipboard icons (#2372)
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 (#2367)
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 (#2371)
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 (#2370)
Fix regressions & leftovers from #2314.

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 (#2368)
- 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