usnistgov / NEMO

NEMO is a laboratory logistics web application. Use it to schedule reservations, control tool access, track maintenance issues, and more.
Other
133 stars 62 forks source link

[Bug report] Orphan tooltips in kiosk with tool usage display #246

Open r-xyz opened 1 month ago

r-xyz commented 1 month ago

Hello,

I would like to report a minor UI bug in kiosk when using tool usage display (example).

Steps to reproduce on demo instance

  1. Go to NEMO kiosk with usage display
  2. Choose a tool currently in use and click on the name to show info tooltip
  3. Login as the user operating the tool (F2 + N + F2) and select:
    • Stop using the tool
    • I have finished using this kiosk
  4. The tooltip is still present in the usage table, but the corresponding tool is not present anymore, preventing from closing it. Only solution would be to refresh the page, which is not always viable on unattended kiosks.

Suggested solution

I see a few possible solutions, but not sure how to implement:

  1. Trigger a $('.tooltip').remove() when data in "usage table" changes.
  2. Trigger it only when clicking "I have finished using this kiosk", but a user might be logging off a tool from a different kiosk.
  3. Executing the remove command every few minutes.
rptmat57 commented 1 month ago

the problem with triggering it when data changes is that it happens quite often and the person looking at details of the tool will see the tooltip disappear even if they are not done reading it.

I have a couple more suggestions:

  1. add a button to trigger a manual refresh (bottom left corner for instance) that would also reset the tooltips
  2. add a timeout on tooltips so that they automatically disappear after a set time (like 30 seconds or a minute, something like that)
r-xyz commented 1 month ago

Good point! In my opinion, # 2 seems to be better UX since it requires no user intervention. I agree, 30 seconds or one minute should work well.

rptmat57 commented 1 month ago

that would also be my preferred option