ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.5k stars 255 forks source link

Media Server Widget loading animation color can be distracting #1894

Open 19980202yyq opened 4 months ago

19980202yyq commented 4 months ago

Environment

Docker

Version

0.14.6

Describe the problem

First I want to say I love homarr! My instance runs on unraid. I have setup Plex and Jellyfin intergration with the dashboard, and the Media server Widget reports the current playbacks just fine. However, the icons (Plex and jellyfin) on the bottom right of the widget periodically blinks orange, which from what I understand indicates homarr cannot reach them. Upon further investigation I found that the blinking corresponds to some network call related to the media server widget, I have uploaded a video sample. I suspect this is due to the time waiting for server response judging by the waterfall chart for the network calls (Screenshot attached as well). Is there a way to make this blinking behavior go away? It's kind of distracting.

Logs

There is no error logging for this issue from unraid docker logs.

Context

https://github.com/ajnart/homarr/assets/34179726/a399707c-8417-4eac-a82a-7b1ef9c6b3e4

image

Please tick the boxes

github-actions[bot] commented 4 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

manuel-rw commented 4 months ago

Hello, thanks for your issue. This color shows that the client is attempting to load data from your application. This is expected behaviour but maybe we could choose a different color or show a loading animation on the icon instead.

19980202yyq commented 4 months ago

Hello, thanks for your issue. This color shows that the client is attempting to load data from your application. This is expected behaviour but maybe we could choose a different color or show a loading animation on the icon instead.

I see, my mistake - the color for no connection is red, not orange.

Is having the orange color (Or a loading sign) for loading data really needed though? I suspect most users have their media servers and homarr running within the same network. In such case fetching the data should be pretty quick even if there's a lot of streams on both plex and jellyfin. As a result the indicator would only change for an instant before changing back. The exception is one user having a homarr dashboard pointing to the jellyfin instance of another user over WAN. In which case it may take longer but ultimately it would succeed.

My proposal: Could we add the option in the media server widget setting to disable this behavior?

github-actions[bot] commented 2 months ago

Hello 👋, this issue has been open for 60 days without activity. We mark issues to help prioritise and close dead issues. Can you confirm that this issue is still relevant on the latest version? I'll remove the stale label as soon as there is further activity on this issue. Thank you 🙏