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

Fix analyzer back button if another popup was opened #1095

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

ghys
Copy link
Member

@ghys ghys commented Jun 7, 2021

Framework7 would not consider an async route to be a modal route,
leading to critical code not being executed and thus causing #1068.
This regression was introduced when the routes were changed to async in #948.

So introduce a new component and lazy load the analyzer inside it, so
there's a minimal impact on the app entry point.

Changed some z-indexes to make sure the popup backdrop is displayed between
the analyzer popup and the item picker popup.

Fixes #1068.
Fixes #1067.

Signed-off-by: Yannick Schaus [email protected]

Framework7 would not consider an async route to be a modal route,
leading to critical code not being executed and thus causing openhab#1068.
This regression was introduced when the routes were changed to async in openhab#948.

So introduce a new component and lazy load the analyzer inside it, so
there's a minimal impact on the app entry point.

Changed some z-indexes to make sure the popup backdrop is displayed between
the analyzer popup and the item picker popup.

Fixes openhab#1068.
Fixes openhab#1067.

Signed-off-by: Yannick Schaus <[email protected]>
@ghys ghys requested a review from a team as a code owner June 7, 2021 16:47
@relativeci
Copy link

relativeci bot commented Jun 7, 2021

Job #156: Bundle Size — 10.44MB (~-0.01%).

61649e6 vs d03fa36

Changed metrics (4/8)
Metric Current Baseline
Initial JS 1.6MB(+0.02%) 1.6MB
Initial CSS 602.11KB(~+0.01%) 602.07KB
Cache Invalidation 27.34% 5.97%
Modules 1479(+0.07%) 1478
Changed assets by type (2/7)
            Current     Baseline
CSS 837.25KB (~+0.01%) 837.21KB
JS 8.18MB (~-0.01%) 8.18MB

View Job #156 report on app.relative-ci.com

@ghys ghys merged commit 4c0f9fe into openhab:main Jun 10, 2021
ghys added a commit to ghys/openhab-webui that referenced this pull request Jun 24, 2021
Reverts the CSS z-index changes made in openhab#1095, without reinstating openhab#1067
& openhab#1068 because now analyzer route is
now modal. There doesn't seem to be an
easy way to insert the popup-backdrop
between the item picker smart select popup
(or model picker) and the analyzer popup/
analyzer controls sheet, especially if there's
another popup _behind_ the analyzer popup
with the `popup-behind` class.

Fixes openhab#1105.

Signed-off-by: Yannick Schaus <[email protected]>
ghys added a commit that referenced this pull request Jun 24, 2021
Reverts the CSS z-index changes made in #1095, without reinstating #1067
& #1068 because now the analyzer route is correctly modal. There doesn't seem to be an
easy way to insert the popup-backdrop between the item picker smart select popup
(or model picker) and the analyzer popup/analyzer controls sheet, especially if there's
another popup _behind_ the analyzer popup with the `popup-behind` class.

Fixes #1105.

Signed-off-by: Yannick Schaus <[email protected]>
@ghys ghys added this to the 3.1 milestone Jun 25, 2021
@ghys ghys added bug Something isn't working main ui Main UI labels Jun 25, 2021
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
1 participant