aprsworld / wsWebDisplay

0 stars 0 forks source link

Age of Data #98

Open Cdetviler opened 8 years ago

Cdetviler commented 8 years ago

I could not find the original issue for this - so I am opening a new one for now.

I managed to get the tooltips on Data cells and cameras to display a human readable time since the last data had come in for that station. There is a bunch of room for improvment:

1) the timer only updates when the values are updated throughout the tree. This results in the timer only being an approximation - typically within a few seconds. It doesn't seem like a big deal at first but it gets really annoying quickly.

2) The tooltip is not dynamic, and was not every envisioned to do something like this. Therefore, the user must move the mouse over the element everytime they want a new update - also annoying.

I think what my plan is with this, unless there are objections or other ideas, is to have it so that when the user hovers over a datacell, log, or camera, a discrete infobox will appear next to the element and display a dynamic timer. I think that is a much better solution.

Cdetviler commented 8 years ago

another improvement that I forgot to mention is that the timer only starts after the first update that the element receives after being added to the page.

So if an element is added to the page and only updates every 1 minute, it will take a minute for the timer to start

Cdetviler commented 8 years ago

Jim mentioned that it would also be nice to have global variables on the page that keep track of the newest and oldest element.

Also, if each node in the tree could have a child that shows the time, that would help.

kb0thn commented 8 years ago

I think what my plan is with this, unless there are objections or other ideas, is to have it so that when the user hovers over a datacell, log, or camera, a discrete infobox will appear next to the element and display a dynamic timer. I think that is a much better solution.

I think so too. Please start on that task this (Monday) morning.

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/aprsworld/wsWebDisplay/issues/98

-James Jefferson Jarvis APRS World, LLC +1-507-454-2727 www.aprsworld.com

Cdetviler commented 8 years ago

For my own reference, the timers for these elements need to be placed in a manner similar to the native tooltip. Unfortunately the native tooltip will not change dynamically unless the user re-hovers so I will need to create my own.