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

Configuration & iPhone style fixes for the options widget action #1734

Merged
merged 4 commits into from
Mar 3, 2023

Conversation

florian-h05
Copy link
Contributor

  • Fixes the style of the actions popup on iPhones in the openHAB iOS app. It did not respect the safe-area-inlets and therefore large action popups possibly placed behing the notch or outside of the display.
  • Fixes oh-button actionOptions formatting #1210: trim whitespaces when parsing the actionOptions to avoid having whitespaces in commands sent to the server.

@florian-h05 florian-h05 requested a review from a team as a code owner February 25, 2023 14:08
@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Feb 25, 2023
@florian-h05 florian-h05 added this to the 4.0 milestone Feb 25, 2023
@relativeci
Copy link

relativeci bot commented Feb 25, 2023

Job #820: Bundle Size — 16.25MiB (0%).

ffe46b8(current) vs 97cb4ed main#819(baseline)

⚠️ Bundle contains 16 duplicate packages

Metrics (1 change)
                 Current
Job #820
     Baseline
Job #819
Initial JS 1.86MiB 1.86MiB
Initial CSS 608.62KiB 608.62KiB
Cache Invalidation 0% 90.64%
Chunks 218 218
Assets 688 688
Modules 2020 2020
Duplicate Modules 108 108
Duplicate Code 1.74% 1.74%
Packages 138 138
Duplicate Packages 15 15
Total size by type (no changes)
                 Current
Job #820
     Baseline
Job #819
CSS 857.89KiB 857.89KiB
Fonts 1.08MiB 1.08MiB
HTML 1.23KiB 1.23KiB
IMG 140.74KiB 140.74KiB
JS 9.19MiB 9.19MiB
Media 295.6KiB 295.6KiB
Other 4.71MiB 4.71MiB

View job #820 reportView main branch activity

@florian-h05
Copy link
Contributor Author

Here are some screenshots from the openHAB iOS app on iPhone XS:

Portrait mode:

Before:

After:

Landscape mode:

Before:

After:

@florian-h05 florian-h05 changed the title Style & configuration fixes for the options widget action Configuration & iPhone style fixes for the options widget action Feb 25, 2023
@florian-h05
Copy link
Contributor Author

@ghys Can you please review this PR with some „priority“ Yannick? Should be a fast review, only a few changed lines, and it would be nice to be able to use that actions menu in the iOS app.

bundles/org.openhab.ui/web/src/css/app.styl Outdated Show resolved Hide resolved
bundles/org.openhab.ui/web/src/css/app.styl Outdated Show resolved Hide resolved
bundles/org.openhab.ui/web/src/css/app.styl Outdated Show resolved Hide resolved
@florian-h05
Copy link
Contributor Author

@ghys I've addressed your review and tested it on my real hardware, looks even better now!

@florian-h05
Copy link
Contributor Author

I just need to rebase to get the CI build working (Karaf upgrade...)

@florian-h05 florian-h05 requested a review from ghys March 3, 2023 17:37
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes openhab#1210 and should have no negative side effects because having whitespaces at start or end of a command is very unlikely to happen, and for the label it doesn't matter at all.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@ghys ghys merged commit 1b5170e into openhab:main Mar 3, 2023
@florian-h05 florian-h05 deleted the action-options branch March 3, 2023 18:05
florian-h05 added a commit to florian-h05/openhab-webui that referenced this pull request Mar 28, 2023
Fixes openhab#1806, which is regression from openhab#1734.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
ghys pushed a commit that referenced this pull request Mar 29, 2023
Fixes #1806, which is regression from #1734.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

oh-button actionOptions formatting
2 participants