Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule/script/scene edit: Update tag input & Refactoring #2083

Merged
merged 5 commits into from
Dec 7, 2023

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Sep 22, 2023

  • 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 Page edit: Add editing of tags #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 Page edit: Add editing of tags #2078.

@florian-h05 florian-h05 marked this pull request as ready for review September 23, 2023 09:51
@florian-h05 florian-h05 requested a review from a team as a code owner September 23, 2023 09:51
florian-h05 pushed a commit that referenced this pull request Sep 26, 2023
Closes #2086

- Adds Non-semantic tags to Items list (e.g. /settings/items/)
consistently with similar list of Rules / Scripts / Pages.
- Extends `getItemTypeAndMetaLabel` with relatesTo part of Semantic
classification and moves it to a mixin.
- Fixes incorrect calculation of vue virtual box height on Items list.
- Replaces custom tag input with accordion tag input (inspired by
#2078) and show number of
tags (inspired by #2083).
- Moves the custom tag input to `item-form.vue`, so it is available also
in Model view, when creating Item from Thing etc.

Also-by: Florian Hotze <[email protected]>
Signed-off-by: David Kesl <[email protected]>
@florian-h05 florian-h05 added enhancement New feature or request main ui Main UI labels Sep 26, 2023
@ghys ghys added the rebuild trigger a new Jenkins job label Sep 30, 2023
@florian-h05
Copy link
Contributor Author

I guess that Jenkins is failing because of a dependency mismatch between openHAB core and this branch. I will rebase so that #2098 is available in the PR branch.

@florian-h05 florian-h05 removed the rebuild trigger a new Jenkins job label Sep 30, 2023
@relativeci
Copy link

relativeci bot commented Sep 30, 2023

Job #1290: Bundle Size — 15.81MiB (+0.29%).

7c489d7(current) vs b7270d2 main#1158(baseline)

Important

Bundle introduced 1 and removed 1 duplicate package – View changed duplicate packages

Warning

Bundle introduced 13 new packages: @jsep-plugin/regex, @jsep-plugin/arrow, @jsep-plugin/object and 10 more – View changed packages

Bundle metrics  Change 10 changes Regression 5 regressions Improvement 1 improvement
                 Current
Job #1290
     Baseline
Job #1158
Regression  Initial JS 1.89MiB(+13.23%) 1.67MiB
Regression  Initial CSS 609.63KiB(+0.12%) 608.89KiB
Change  Cache Invalidation 93.81% 93.95%
Change  Chunks 217(-0.91%) 219
Change  Assets 683(-0.87%) 689
Change  Modules 3028(+78.12%) 1700
Regression  Duplicate Modules 170(+88.89%) 90
Improvement  Duplicate Code 1.6%(-17.95%) 1.95%
Regression  Packages 152(+10.14%) 138
Regression  Duplicate Packages 16(+6.67%) 15
Bundle size by type  Change 3 changes Regression 3 regressions
                 Current
Job #1290
     Baseline
Job #1158
Regression  JS 9.28MiB (+0.3%) 9.25MiB
Regression  Other 4.74MiB (+0.35%) 4.73MiB
Regression  CSS 860.87KiB (+0.16%) 859.49KiB
Not changed  Fonts 526.1KiB 526.1KiB
Not changed  Media 295.6KiB 295.6KiB
Not changed  IMG 140.74KiB 140.74KiB
Not changed  HTML 1.23KiB 1.23KiB

View job #1290 reportView florian-h05:rule-scene-edit branch activity

@florian-h05
Copy link
Contributor Author

@ghys Can you please have a look at this PR?

@florian-h05 florian-h05 merged commit ba7f126 into openhab:main Dec 7, 2023
6 checks passed
@florian-h05 florian-h05 deleted the rule-scene-edit branch December 7, 2023 21:08
@florian-h05 florian-h05 added this to the 4.1 milestone Dec 7, 2023
@ghys
Copy link
Member

ghys commented Dec 8, 2023

Sorry for not having reviewed it - you were right to merge, it's a good addition 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants