med-material / Whack_A_Mole_VR

Whack-A-Mole in VR
MIT License
3 stars 16 forks source link

SaveToCSV: Need UI indication while Whack-A-Mole is saving data #211

Closed bastianilso closed 1 year ago

bastianilso commented 2 years ago

Saving to CSV is multi-threaded, to ensure that there is no performance impact on Whack-A-Mole, since saving especially our continuous data can take some processing time. However, there is no UI indication that saving is happening and no warning, if clinicians try to close Whack-A-Mole VR before saving is finished.

We should design some indication to address this and to avoid data loss.

hendrikknoche commented 2 years ago

given it takes longer a progress indicator would be great.

bastianilso commented 2 years ago

@Xav1204 could you make this your next priority? this is important for our partner to get fixed.

It's important we make a clean solution for this, so please read carefully:

bastianilso commented 2 years ago

In addition to this, we may want a general text indication in the therapist UI. I suggest you drive this indication by making LoggingManager emit a UnityEvent, and use text.SetActive()

image

Xav1204 commented 2 years ago

image @bastianilso At the moment I have put in an indicator to show to the therapist how many files are saved. Should I put in a UI element like a progress bar or something else instead of the text on the left or should I leave it like that?

Xav1204 commented 2 years ago

Save1 We can see some updates on the UI elements in particular on the save status on the left bottom and also the number of files which are saved on the right top.

Save2 When all the files are not saved, we have the warning message panel which open and at the end of the save, the app closes automatically and we can see that all the csv files are downloaded.

hendrikknoche commented 2 years ago

it would be good to have a progress bar. but for now maybe this is sufficient. After the saving is done and the green button appears the pink-ish background should disappear shortly after reaching n/n.

Xav1204 commented 2 years ago

@hendrikknoche thanks for your answer I will do it now.

bastianilso commented 2 years ago

Hi @Xav1204, in the future please let me know when you make UI decisions that go outside of the mockup - this can save us both time (and potential wasted work). You seem to have decided to go in a different direction than what the designs I made suggest. Currently your design implies that the clinician cannot operate the "Start Game" button as long as the saving is going on. I don't think your suggestion is necessarily a problem, - but we need to be aware that it might present new issues such as how to cancel the operation if it takes too long (or is stuck).

On the other hand, I dont recall what LoggingManager will do if we start recording data, while data is being saved. So it might make sense to have something like this. In this case, I would need a technical rationale like this from you (the developer), so that we can discuss. Otherwise I would just have assumed you followed the directions (screenshots) I gave. 🙂

Is the "1/3" "2/3" "3/3" something you added as a replacement for a percentage?

bastianilso commented 1 year ago

resolved with #214 #226 #232