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

[v3.2.0-rc.12] Refresh changes active tab to first, style of active tab broken #2855

Open
2 tasks done
ScrewThisBanana opened this issue Dec 12, 2024 · 31 comments
Open
2 tasks done
Assignees

Comments

@ScrewThisBanana
Copy link

*Please note that you may restore an old layout via jarvis adapter configuration directly within ioBroker

Prerequisites / Voraussetzungen

  • Which jarvis version are you running / Welche Version von jarvis nutzt du? BITTE GENAUE ANGABE!
    (Instance: jarvis.0, v3.2.0-rc.12)
  • Fehler / Screenshot der Browser Konsole (F12), siehe Fehleranalyse und -Meldung

Describe the bug / Beschreibe den Fehler
Create two tabs, Open second one.
Refresh page with CTRL+R or F5
-> Jarvis opens the first page instead of refreshing the second as expected.

Screenshots

Original page:
image

After refresh
image

Also, the color of the (originally) active tab in the tab list is broken.


Please note that bug reports may be closed if the information above are not given!

Bitte beachte, dass Bug-Reports ggf. einfach geschlossen werden, wenn die oben genannten Kriterien nicht angemessen gegeben sind!

@ScrewThisBanana
Copy link
Author

Console Output:
image

@mcuiobroker
Copy link
Collaborator

admin-Version: 7.1.5 ?

@ScrewThisBanana
Copy link
Author

Yes
image

@mcuiobroker
Copy link
Collaborator

You tried Upload from jarvis?

iob upload jarvis

@ScrewThisBanana
Copy link
Author

What would a backup change?
If I open my browser with the tab-id it does not load the right tab anymore in jarvis.
Same on refreshing - use a different tab than the default, reload the page and the default tab will be shown - not the one originally selected.

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

A backup change nothing, this only read data.
A Restore would be change the datapoints contents to the saved contents of the backup.

Which backup do you mean?

  • internal jarvis backup
  • backitup - backup

Browser-Cache from all used Browsers was deleted?

@ScrewThisBanana
Copy link
Author

Okay, again from the beginning. You were the one asking if I used iob upload jarvis (= make a backup of jarvis and upload the files to the backup location if I understood correctly).

I updated Jarvis from released version to v3.2.0 rc 12 - direct update, no backup import etc.
Since the update to RC12, reloading the page does not work as expected anymore.

Cache was of course deleted in all used browsers.

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

iob upload jarvis (= Upload the Adapter Data into RAM)

Sometimes by upgrade an adapter it is possible that not all data will correctly upload into the RAM / Cache.
I had this several times.

@ScrewThisBanana
Copy link
Author

Ok - did that. Does not make any difference.

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

Is this Browser Adress a Proxy-Adress?
My adress for an TAB is https://192.168.178.150:8400/jarvis/index.html#/777b1df6-f3d2-48f9-8c7a-593ac5e00982
But in your case it is http://iobroker.local:8400/#/12314182387123

@ScrewThisBanana
Copy link
Author

I am just accessing the page directly by the hostname - no proxy involved.

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

When you use Instance-Link you get this address?
image
Click on
image

@ScrewThisBanana
Copy link
Author

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

Should be http://192.168.178.150:8400/jarvis/index.html#/YOUR-TAB-ID

By using the new link by click on instance-Link, is there a different?

@ScrewThisBanana
Copy link
Author

ScrewThisBanana commented Dec 15, 2024

Nope - no difference.
Before reload:
image
After reload:
image

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

Before update Post i saw /jarvis/ is missing in the second image

Ok then I need the configuration of the page "Wandpanel" as image.
In the second, there is "Haus" selected?
On "Wandpanel" only the mouseover is highlight this page-id?
What is the TabId from "Haus" and from "Wandpanel" in configuration

@ScrewThisBanana
Copy link
Author

ScrewThisBanana commented Dec 15, 2024

Mouseover is not highlighting the page. It is still marked as the "active" page.
image

Did do any active selection of anything - just Reload page and open tab list. No selecting, nothing else.

Which part of the config do you want to see?

@mcuiobroker
Copy link
Collaborator

image
from "Haus" and "Wandpanel"

@ScrewThisBanana
Copy link
Author

image
image

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

all normal.
Do you have an extra jarvis-Backup from backitup?
image
So please insert it here and i try to verify.

Linux or windows System?

@ScrewThisBanana
Copy link
Author

Linux / Docker. Will provide the backup.

@ScrewThisBanana
Copy link
Author

ScrewThisBanana commented Dec 15, 2024

@mcuiobroker https://github.com/ScrewThisBanana/temporary-share/blob/main/jarvis.0_2024_12_15-20_51_47_backupiobroker.tar.gz

Due to some private stuff in the backup that I dont want somewhere freely accessible - this way.

@mcuiobroker
Copy link
Collaborator

I got it, you can delete it.

@ScrewThisBanana
Copy link
Author

If you need anything else - feel free to ask :)

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 15, 2024

Yes, it is definitely a bug.
It must be an internal misfunction.
As soon as you select a other page as the first and press F5 this Misfunctionality will shown.
-> the selected Page Name disappear in the sidebar
and the first Page content will be shown. The first Tab is not selected (underlined, normally it is).

With my Data after F5 it is OK?
githubIssue2855-myData
First jarvis load the first page, with the first tab and then it goes to the selected TAB.
So, try to use a IP and not iobroker.local?

@ScrewThisBanana
Copy link
Author

Also tried with IP, identical result.

@ScrewThisBanana
Copy link
Author

Actually - if I stay on the home page (first site) and open the e.g. second tab on this page, jarvis loads the selected second tab after a reload.

It just seems it can not find the other pages.

So if I have the following structure

Page1 tab1 tab2 tab3
Page2 tab4 tab5

And do the following, it works: open tab2, reload, tab2 is shown (after a short switch to tab1)

If I do the following, it does not work: open tab4, refresh, tab1 is shown and styles are broken

@ScrewThisBanana
Copy link
Author

Managed to reproduce with minimal config, empty dashboard, one additional page with two tabs.

jarvis.1_2024_12_16-17_33_48_backupiobroker.tar.gz

@mcuiobroker
Copy link
Collaborator

Is there the same effect?
Otherwise in additional instances there are other problems too.

@ScrewThisBanana
Copy link
Author

ScrewThisBanana commented Dec 16, 2024

Yes, identical issue. Refresh page changes site.

screen-20241216-174047.mp4

@ScrewThisBanana
Copy link
Author

@mcuiobroker Even after a complete deinstallation of the entire adapter, reinstalling to RC12 (and afterwards RC11) and rebooting the device I can reproduce the issue easily - you are telling me you can not reproduce it? Or do you have a official version of Jarvis (3.1.8) installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants