Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
1.93k stars 56 forks source link

Cache issue #856

Open ddanielww opened 2 weeks ago

ddanielww commented 2 weeks ago

I have an issue when I open a bubble card it breaks the Navigation on home assistant.

For example if I open a bubble card and then go to settings > devices > click device, I can’t go back to the list of devices.

If refresh the page or reset the cache it works until I open a bubble card again.

ddanielww commented 2 weeks ago

As you can see before I open the bubble card I go to to devices, click a device and go back.

Once I open a bubble card Navigation stop working.

Effects all areas like automations etc.

https://github.com/user-attachments/assets/1b8cba05-2742-4117-86b3-c84f34744bca

Clooos commented 2 weeks ago

Hi, I've just tried and I'm unable to reproduce this issue on my setup, do you have some other custom cards?

ddanielww commented 2 weeks ago

Nope, just the bubble card and the problem only appears after popping up a bubble card :(

ddanielww commented 2 weeks ago

https://github.com/user-attachments/assets/d462cb6c-e42e-4ebe-a9dc-5f3f0e77280d

Even on a basic setup with a new dashboard it breaks it.

Clooos commented 2 weeks ago

Have you tried to fully remove Bubble Card to see if this issue don't persist?

ddanielww commented 2 weeks ago

Correct I thought it was an issue with the home assistant core.

Drove me mad ..... after disabling stuff I found the issue was the bubble card.

Reported by others using the bubble card here as well

https://github.com/home-assistant/frontend/issues/17820#issuecomment-2422997801

ddanielww commented 2 weeks ago

Tried v2.2.4 and the latest beta2 but opening a bubble card breaks navigation.

Remove bubble card and use standard items and it works.

Refreshing the browser fixes the issue or closing the app and re-opening but bubble card appears to be causing this issue.

Clooos commented 2 weeks ago

Thank you, I will take a look at this then. I hope that I will be able to reproduce it.

Can you also check if you have any errors in your browser console? Just to be sure.

ddanielww commented 2 weeks ago

Check the console nothing useful

[Deprecation] -ms-high-constrast is in the process of being deprecated https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/

Are you saying your home assistant navigation works after opening a bubble card ?

Clooos commented 2 weeks ago

Yes, I just tried again and no issue at all.

ddanielww commented 2 weeks ago

Strange , only breaks when I use the bubble card on my install. Gonna try and fresh instance of home assistant in a VM and see if can replicate it with the bubble card there.

Clooos commented 2 weeks ago

Thank you! But this is weird that you seems to not be the only one.

ddanielww commented 2 weeks ago

https://github.com/user-attachments/assets/1ac37045-0c2c-45b0-bd41-8161d1fc1853

Now sure how you can not replicate, same issue on fresh install :(

Clooos commented 2 weeks ago

I'm using a more recent version than what is on GitHub, but I don't remember if I changed something that could have fixed this.

Thank you again for your test, we will see in the next beta 🤞

ddanielww commented 2 weeks ago

When will this be available for testing please.

I really like this card but this bug drives me crazy.

Clooos commented 2 weeks ago

I'm doing my best, I've made some progress, so it shouldn't be too long, in less than a week I hope.

oerix commented 2 weeks ago

I've been having this navigation bug during a few versions now, didn't realise it was Bubble card related. 😮

Clooos commented 2 weeks ago

I've tried again on multiple browsers (desktop and mobile) and I can confirm that this is fixed on my current build.

ddanielww commented 2 weeks ago

Any chance we can test this to confirm ?

love your card it’s the best but this bug spoils it for me haha

Clooos commented 2 weeks ago

Here it is, you will need to remove it from HACS first then install it with the "Without HACS" method. Then check in the editor if you see the right version (v2.3.0-beta.3).

All my fingers are crossed 🤞

bubble-card.js.zip

ddanielww commented 2 weeks ago

Replaced the JS file, but I still have the same issue :(

ddanielww commented 2 weeks ago

Capture -2024-10-19

ddanielww commented 2 weeks ago

Also tested on my fresh install and same issue there :(

ddanielww commented 2 weeks ago

Sorry I did not remove it from hacs, i replaced the JS file and rebooted.

Removing and manually installing gets rid of the issue, thank you so much =)

Clooos commented 2 weeks ago

Yeah! You scared me! 😅

ddanielww commented 2 weeks ago

So nice to have working navigation :), appreciate the quick turn around. Have a lovely weekends and thanks again :)

Clooos commented 2 weeks ago

You're welcome! Have a nice weekend as well!

ronbruins commented 2 weeks ago

I have a similar issue but then with automations. When clicking the back arrow it doesn't work, I have to click settings -> automations -> automation again. Is this related (and as such fixed)? I saw bubble card mentioned in an issue in the HA core for this behavior.

ddanielww commented 2 weeks ago

Same issue it affected all areas of the system after selecting a bubble card.

The developer has kindly fixed this by providing a new JS file above, you will need to manually install.

Or you can wait for it to get released to hacs.

ronbruins commented 2 weeks ago

I'll give it a try with the beta. Thanks

ddanielww commented 2 weeks ago

This problem still appears in beta 3, however, it didn’t appear when manually installing using the file you provided ?

Clooos commented 2 weeks ago

What?? Could you try to install the new beta manually? Have you also checked if the right version is showing in the editor? I haven't changed anything that might have broken this again.

ddanielww commented 2 weeks ago

Took the file out of the community folder (Where hacs installs it).

Uninstalled from hacs and deleted community folder.

Placecd the file in www folder.

Added resource and it works.

Could it be the be the haccs is picking the information up or something?

Clooos commented 2 weeks ago

This is really strange, I really have no idea...

ddanielww commented 2 weeks ago

installing the latest beta through hacs does not work.

If re-install using the general release it all appears correct (apart from the back bug).

Capture -2024-10-22

ddanielww commented 2 weeks ago

Seems to be an issue the the Hacs installation but I can’t work out why.

If I install latest beta it does not render the bubble cards as shown above.

I can get it to work by altering the resource and removing the hacs id ( the auto generated entry by hacs) but then the back button does not work.

If I download the file from the hacs folder , delete the resource, uninstall and remove any files and manually upload the same file and add resource manually it works.

The back issue seems to be related to installing through hacs. New beta does not install correctly.

Gonna leave mine manually configured because that works nicely :)

Clooos commented 2 weeks ago

I really don't understand why this is happening, this doesn't make any sense to me 😅

But I will try to install it though HACS to see if I can reproduce this issue.