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 navigation issues with model cards #2211

Closed
wants to merge 1 commit into from

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Dec 10, 2023

Fixes #2196.
Reverts #2074.

I have tried messing around with the browser history manually to fix that issue, however trying several approaches, none worked perfect. This is the best solution I could come up with, and it at least remembers which tab you had opened when you navigate back to the home page from any other page.

Fixes openhab#2196.
Reverts openhab#2074.

I have tried messing around with the browser history manually to fix that issue, however trying several approaches, none worked perfect.
This is the best solution I could come up with, it at least remembers which tab you had opened when you navigate back to the home page from any other page.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 requested a review from a team as a code owner December 10, 2023 20:55
@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Dec 10, 2023
@florian-h05 florian-h05 added this to the 4.1 milestone Dec 10, 2023
@florian-h05
Copy link
Contributor Author

@ghys Can you please have a look at this soon? (Not code-wise, but about the approach.) This is an important fix for 4.1.

Copy link

relativeci bot commented Dec 10, 2023

Job #1301: Bundle Size — 15.81MiB (+0.32%).

95dc62f(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 #1301
     Baseline
Job #1158
Regression  Initial JS 1.9MiB(+13.47%) 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 #1301
     Baseline
Job #1158
Regression  JS 9.29MiB (+0.35%) 9.25MiB
Regression  Other 4.74MiB (+0.37%) 4.73MiB
Regression  CSS 860.86KiB (+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 #1301 reportView florian-h05:fix-2196 branch activity

@ghys
Copy link
Member

ghys commented Dec 11, 2023

Yes I will have a close look at it this week.

@ghys
Copy link
Member

ghys commented Dec 15, 2023

@florian-h05 #2221 should fix the problem and keep the routes.
Please check if it works well for you and feel free to merge/close this one.

florian-h05 pushed a commit that referenced this pull request Dec 15, 2023
Fixes #2196.
Replaces #2211.

The double back navigation was caused by:

https://github.com/framework7io/framework7/blob/31f4c7065e8abe9b8b27f354de4e390a8cd584c0/src/core/utils/history.js#L56-L61

and `router.updateCurrentUrl()`, unlike the name implies, doesn't update
`router.url` for some reason (maybe a bug?).

-----

Signed-off-by: Yannick Schaus <github@schaus.net>
@florian-h05 florian-h05 deleted the fix-2196 branch December 29, 2023 23:35
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.

[MainUI] Closing Location/Equipment/Properties does load a wrong page in Milestone 4.1.0.M4
2 participants